joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x858]
push esi
push 0x44
xorps xmm0, xmm0
mov esi, ecx
push 0
push eax
movdqu xmmword [ebp - 0x814], xmm0
call fcn.00546e30
mov eax, dword [esi + 0x10]
add esp, 0xc
cmp dword [esi + 0x140], 2
mov dword [ebp - 0x820], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x858], 0x44
mov dword [ebp - 0x82c], 0x100
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x818], eax
jne 0x404bfe
lea eax, [ebp - 0x804]
push eax
lea eax, [esi + 0x38]
push eax
call fcn.004062d0
add esp, 8
test eax, eax
jne 0x404bf6
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x804]
jmp 0x404c00
xor eax, eax
push edi
lea ecx, [ebp - 0x814]
push ecx
lea ecx, [ebp - 0x858]
push ecx
push 0x5dc3a0
push 0
push 0x8000000
push 1
push 0
push 0
push dword [esi + 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
test edi, edi
je 0x404c53
mov ecx, dword [ebp - 0x80c]
push dword [ebp - 0x810]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x814]
mov dword [esi + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404c59
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005463d8
mov esp, ebp
pop ebp
ret 4
Function at 0x404f20
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0xfffffffffffffff5
mov esi, ecx
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
mov dword [esi + 0x2c], eax
lea edi, [esi + 0x20]
lea eax, [ebp - 0xc]
push eax
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x404f6c
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
je 0x404f63
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [esi + 0x24]
push 2
push 0
push 0
push eax
call edi
push eax
push dword [ebx]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x404f63
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
lea ecx, [ebp - 0xc]
mov dword [esi + 0x28], eax
push ecx
lea ebx, [esi + 0x14]
lea eax, [esi + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x404f63
push dword [esi + 0x10]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
je 0x404f63
push 2
push 0
push 0
lea eax, [esi + 0x18]
push eax
call edi
push eax
push dword [ebx]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x404f63
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x30]
mov ecx, esi
push eax
call fcn.00404b60
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4062d0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.00547f50
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push esi
push ebx
push 0x576c63
mov dword [ebp - 0x1808], esi
call fcn.004063e0
add esp, 0xc
test eax, eax
jne 0x4063cb
push 0x800
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.004063e0
add esp, 0xc
test eax, eax
jne 0x4063cb
push 0x800
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.004063e0
add esp, 0xc
test eax, eax
jne 0x4063cb
push 0x1000
lea eax, [ebp - 0x1804]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x406389
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
push edi
lea edi, [ebp - 0x1804]
cmp byte [edi], 0
je 0x4063c8
push 0x3b
push edi
call fcn.00546ec0
mov esi, eax
add esp, 8
test esi, esi
je 0x4063a9
mov byte [esi], 0
push dword [ebp - 0x1808]
push ebx
push edi
call fcn.004063e0
add esp, 0xc
test eax, eax
jne 0x4063ca
test esi, esi
je 0x4063c8
lea edi, [esi + 1]
test edi, edi
jne 0x406390
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005463d8
mov esp, ebp
pop ebp
ret

Function at 0x406600
Capabilities:
Send data
Send data on socket

Disassembly:
cmp dword [ecx + 0x14], 0
mov eax, dword [ecx + 0xc]
push 0
push 0xa
jne 0x40661f
push str.Username:
push dword [eax + 0x1224c]
call dword [sym.imp.WS2_32.dll_send]
ret
push 0x5cb010
push dword [eax + 0x1224c]
call dword [sym.imp.WS2_32.dll_send]
ret

Function at 0x406640
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x18]
mov dword [esi], vtable.cbasethread.0
push eax
push 4
push esi
push 0x406750
push 0
push 0
mov word [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
mov eax, esi
pop esi
ret
Function at 0x406810
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xc], 0
jne 0x406874
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebx
mov edi, eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x406839
mov ecx, dword [esi + 0x10]
add ecx, eax
cmp ecx, edi
jbe 0x406839
sub ecx, edi
jmp 0x406856
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
call ebx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x20], eax
sub eax, edi
cmp eax, ecx
jb 0x406854
cmp byte [esi + 0xd], 0
je 0x40686c
sub ecx, eax
cmp byte [esi + 0xd], 0
mov eax, 0xffffffff
cmovne ecx, eax
push ecx
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0xc], 0
je 0x406821
pop edi
pop ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x406890
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x406890
push 0x12345678
push esi
push ecx
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
pop esi
ret

Function at 0x406900
Capabilities:
Resume thread

Disassembly:
push dword [ecx + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret

Function at 0x4069b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0xc], 0
jne 0x406a3d
push ebx
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
mov ecx, dword [esi + 0x801c]
cmp ecx, 0x8000
jne 0x4069e4
push 0x64
call edi
jmp 0x406a15
push 0
lea eax, [ebp - 4]
push eax
mov eax, 0x8000
sub eax, ecx
push eax
lea eax, [esi + 0x1c]
add eax, ecx
push eax
push dword [esi + 0x8024]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406a34
mov eax, dword [ebp - 4]
test eax, eax
je 0x406a34
add dword [esi + 0x801c], eax
push 0x12
push esi
push dword [esi + 8]
push dword [esi + 4]
call ebx
push 0xffffffffffffffff
push dword [esi + 0x8020]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0xc], 0
je 0x4069d0
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406c20
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5de4c8], 0
je 0x406c4c
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x5de4c0], eax
cmp eax, 0xffffffff
jne 0x406c72
or eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
movzx eax, word [0x5d5b9e]
xorps xmm0, xmm0
push eax
movdqu xmmword [ebp - 0x14], xmm0
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, 2
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [0x5de4c0]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x406cd5
push dword [0x5de4c0]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x5de4c0], 0
mov eax, 0xfffffffe
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
push 0xa
push dword [0x5de4c0]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x406d11
push dword [0x5de4c0]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x5de4c0], 0
mov eax, 0xfffffffd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
mov dword [0x5de4c8], 1
call fcn.005463d8
mov esp, ebp
pop ebp
ret
Function at 0x407320
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5643dc
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x120], eax
cmp edi, 1
jne 0x40746d
push 0x104
lea eax, [ebp - 0x114]
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4074d9
mov ecx, ebx
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4073a0
sub ecx, edx
lea eax, [ecx + 0x168]
push eax
call fcn.0041a36e
mov esi, eax
add esp, 4
mov dword [ebp - 0x124], esi
test esi, esi
je 0x4074d9
lea ecx, [ebp - 0x114]
mov edx, esi
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4073d4
lea ecx, [esi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4073e4
mov eax, dword [str.__c]
mov edx, ebx
mov dword [ecx], eax
mov al, byte [0x577688]
mov byte [ecx + 4], al
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x407400
sub ebx, edx
lea edi, [esi - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407410
mov ecx, ebx
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x150
call fcn.0041a33c
add esp, 4
mov dword [ebp - 0x128], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4074d9
push dword [ebp - 0x120]
mov ecx, eax
push 1
push dword [ebp - 0x11c]
push dword [ebp - 0x124]
push dword [ebp - 0x118]
call fcn.00404670
jmp 0x4074db
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407472
sub ecx, edx
lea eax, [ecx + 0xa]
push eax
call fcn.0041a36e
mov esi, eax
add esp, 4
test esi, esi
je 0x4074d9
mov ecx, esi
sub ecx, ebx
mov al, byte [ebx]
lea ebx, [ebx + 1]
mov byte [ecx + ebx - 1], al
test al, al
jne 0x407491
push 0x150
call fcn.0041a33c
add esp, 4
mov dword [ebp - 0x128], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4074d9
push dword [ebp - 0x120]
mov ecx, eax
push edi
push dword [ebp - 0x11c]
push esi
push dword [ebp - 0x118]
call fcn.00404670
jmp 0x4074db
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
Function at 0x407b00
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10020]
test eax, eax
je 0x407b5e
push 0
push eax
lea edi, [esi + 0x20]
push edi
push dword [esi + 0x1224c]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, eax
test ecx, ecx
jg 0x407b2d
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 0x10020]
cmp ecx, eax
jge 0x407b54
sub eax, ecx
push eax
mov dword [esi + 0x10020], eax
lea eax, [esi + 0x20]
add eax, ecx
push eax
push edi
call fcn.005485d0
add esp, 0xc
xor eax, eax
pop edi
pop esi
ret
mov dword [esi + 0x10020], 0
pop edi
xor eax, eax
pop esi
ret

Function at 0x407b70
Capabilities:
Send data
Send data on socket

Disassembly:
push 0
push 2
push 0x5cb23c
push dword [ecx + 0x1224c]
call dword [sym.imp.WS2_32.dll_send]
xor eax, eax
ret

Function at 0x407d00
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.00407500
push 0
push eax
mov dword [esi + 0x12250], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x12250]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [esi + 0x12250]
push dword [esi + 0x1224c]
call fcn.004083a0
mov ecx, dword [esi + 4]
add esp, 8
test ecx, ecx
je 0x407d50
mov eax, dword [esi + 8]
test eax, eax
je 0x407d50
push 1
push esi
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
pop esi
ret
Function at 0x4088d0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x5de5d4], eax
cmp eax, 0xffffffff
jne 0x408906
or eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
mov ecx, 2
mov dword [ebp - 0x10], 0
push 4
mov word [ebp - 0x14], cx
lea ecx, [ebp - 0x18]
push ecx
push 0x1001
push 0xffff
push eax
mov dword [ebp - 0x18], 0x8000
call dword [sym.imp.WS2_32.dll_setsockopt]
movzx eax, word [0x5d5b76]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [0x5de5d4]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x408976
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, 0xfffffffe
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
Function at 0x4095a0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
push 2
mov esi, ecx
mov dword [ebp - 0x1c], 0x3e8
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x1c], eax
cmp eax, 0xffffffff
jne 0x4095df
or eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005463d8
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, 2
push 4
mov word [ebp - 0x14], cx
lea ecx, [ebp - 0x1c]
push ecx
push 0x1006
push 0xffff
push eax
mov dword [ebp - 0x10], 0
call edi
mov eax, dword [esi + 0x48]
mov ebx, 0x2000
cmp word [eax + 0x20], 1
jne 0x40963e
mov eax, dword [eax + 0xc]
add eax, 0x800
cmp eax, ebx
push 4
cmovl eax, ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x1001
push 0xffff
push dword [esi + 0x1c]
call edi
mov eax, dword [esi + 0x48]
cmp word [eax + 0x20], 2
jne 0x409670
mov eax, dword [eax + 0xc]
add eax, 0x800
cmp eax, 0x2000
push 4
cmovl eax, ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x1002
push 0xffff
push dword [esi + 0x1c]
call edi
movzx eax, word [0x5cb240]
mov edi, dword [sym.imp.WS2_32.dll_htons]
push eax
call edi
mov ebx, dword [sym.imp.WS2_32.dll_bind]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 0x1c]
call ebx
cmp eax, 0xffffffff
jne 0x4096da
mov ecx, 0x401
nop
mov ax, word [0x5cb240]
inc ax
mov word [0x5cb240], ax
cmp ax, cx
jae 0x4096bb
mov eax, ecx
mov word [0x5cb240], ax
movzx eax, ax
push eax
call edi
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 0x1c]
call ebx
mov ecx, 0x401
cmp eax, 0xffffffff
je 0x4096a0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.005463d8
mov esp, ebp
pop ebp
ret
Function at 0x409710
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 3
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp + 8]
mov word [edi], ax
inc word [ebx + 0x24]
movzx eax, word [ebx + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 2], ax
mov eax, dword [ebx + 0x48]
push dword [ebx + 0x20]
push dword [eax + 0xc]
lea eax, [edi + 4]
push 1
push eax
call fcn.00549005
add esp, 0x10
pop edi
pop ebx
pop ebp
ret 4

Function at 0x409760
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 4
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
mov word [edi], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 2], ax
mov eax, dword [ebp + 0xc]
push 0x10
mov dword [eax], 4
mov eax, dword [ebx + 0x48]
add eax, 0x28
push eax
push 0
push 4
push edi
push dword [ebx + 0x1c]
call dword [sym.imp.WS2_32.dll_sendto]
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x4097b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x48]
push 0x10
add eax, 0x28
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 0x1c]
call dword [sym.imp.WS2_32.dll_sendto]
pop ebp
ret 8

Function at 0x4097e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 5
mov edi, ecx
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 8]
mov word [ebp - 0x804], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x802], ax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x409833
lea edx, [ebp - 0x800]
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x409824
jmp 0x40983a
mov byte [ebp - 0x800], 0
lea ecx, [ebp - 0x800]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409843
mov eax, dword [edi + 0x48]
sub ecx, edx
push 0x10
add eax, 0x28
push eax
push 0
lea eax, [ecx + 5]
push eax
lea eax, [ebp - 0x804]
push eax
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.005463d8
mov esp, ebp
pop ebp
ret 8
Function at 0x409880
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 6
mov edi, ecx
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [ebp + 8]
mov word [ebx], ax
lea esi, [ebx + 2]
mov eax, dword [edi + 0x48]
test byte [eax + 0x22], 1
je 0x4098dc
mov eax, dword [str.blksize]
mov dword [esi], eax
mov eax, dword [0x5776c4]
mov dword [esi + 4], eax
add esi, 8
mov eax, dword [edi + 0x48]
push 0xa
push esi
push dword [eax + 0xc]
call fcn.00549430
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4098d0
sub ecx, edx
inc esi
add esi, ecx
mov eax, dword [edi + 0x48]
test byte [eax + 0x22], 2
je 0x40991c
mov eax, dword [str.timeout]
mov dword [esi], eax
mov eax, dword [0x5776cc]
mov dword [esi + 4], eax
add esi, 8
mov eax, dword [edi + 0x48]
push 0xa
push esi
push dword [eax + 0x10]
call fcn.00549430
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409910
sub ecx, edx
inc esi
add esi, ecx
mov eax, dword [edi + 0x48]
test byte [eax + 0x22], 4
je 0x40995e
mov eax, dword [str.tsize]
mov dword [esi], eax
mov ax, word [0x5776d4]
mov word [esi + 4], ax
add esi, 6
mov eax, dword [edi + 0x48]
push 0xa
push esi
push dword [eax + 0x1c]
push dword [eax + 0x18]
call fcn.00549400
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409952
sub ecx, edx
inc esi
add esi, ecx
mov eax, dword [ebp + 0xc]
sub esi, ebx
push 0x10
mov dword [eax], esi
mov eax, dword [edi + 0x48]
add eax, 0x28
push eax
push 0
push esi
push ebx
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_sendto]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x409990
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x5d6b10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 6
mov edi, ecx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [edi + 0x48]
lea esi, [ebp - 0x802]
mov word [ebp - 0x804], ax
test byte [ecx + 0x22], 1
je 0x409a09
mov eax, dword [str.blksize]
mov dword [ebp - 0x802], eax
mov eax, dword [0x5776c4]
mov dword [ebp - 0x7fe], eax
lea eax, [ebp - 0x7fa]
push 0xa
push eax
push dword [ecx + 0xc]
call fcn.00549430
lea ecx, [ebp - 0x7fa]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4099f8
sub ecx, edx
lea esi, [ebp - 0x7f9]
add esi, ecx
mov eax, dword [edi + 0x48]
test byte [eax + 0x22], 2
je 0x409a4c
mov eax, dword [str.timeout]
mov dword [esi], eax
mov eax, dword [0x5776cc]
mov dword [esi + 4], eax
add esi, 8
mov eax, dword [edi + 0x48]
push 0xa
push esi
push dword [eax + 0x10]
call fcn.00549430
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409a40
sub ecx, edx
inc esi
add esi, ecx
mov eax, dword [edi + 0x48]
test byte [eax + 0x22], 4
je 0x409a8e
mov eax, dword [str.tsize]
mov dword [esi], eax
mov ax, word [0x5776d4]
mov word [esi + 4], ax
add esi, 6
mov eax, dword [edi + 0x48]
push 0xa
push esi
push dword [eax + 0x1c]
push dword [eax + 0x18]
call fcn.00549400
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409a82
sub ecx, edx
inc esi
add esi, ecx
mov eax, dword [edi + 0x48]
push 0x10
add eax, 0x28
push eax
lea eax, [ebp - 0x804]
push 0
sub esi, eax
push esi
push eax
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005463d8
mov esp, ebp
pop ebp
ret