```bash
section .text
global _sum

_sum:
    push ebp
    mov ebp, esp
    push ebx
    mov ebx, [ebp + 8] ; get the first argument
    mov ecx, [ebp + 12] ; get the second argument
    add eax, ebx ; add the first argument to the result
    add eax, ecx ; add the second argument to the result
    pop ebx
    leave
    ret
```
```bash
section .text
global _sum

_sum:
    push ebp
    mov ebp, esp
    push ebx
    mov ebx, [ebp + 8] ; get the first argument
    mov ecx, [ebp + 12] ; get the second argument
    add eax, ebx ; add the first argument to the result
    add eax, ecx ; add the second argument to the result
    pop ebx
    leave
    ret
```