joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b2f7
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48
push 1
call dword [0x4d3378]
mov esi, dword [ebp + 8]
mov edi, eax
pop ecx
pop ecx
push 8
mov dword [esi + 0x364], edi
pop ebx
test edi, edi
je 0x48b3b7
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov byte [esi + 0x35c], cl
mov dword [esi + 0x360], ecx
mov dword [esi + 0x358], ecx
push eax
push dword [ebp + 0xc]
mov dword [esi + 0x354], eax
or dword [edi + 4], 0xffffffff
mov dword [edi], ecx
lea ecx, [edi + 0x10]
push ecx
call fcn.0048b3d6
add esp, 0x10
test eax, eax
je 0x48b3b7
mov eax, dword [esi + 0x350]
test eax, eax
je 0x48b372
push eax
call dword [0x4d336c]
and dword [esi + 0x350], 0
pop ecx
push dword [ebp + 0xc]
call dword [0x4d3374]
mov dword [esi + 0x350], eax
pop ecx
test eax, eax
je 0x48b3b7
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x48b3b7
lea eax, [edi + 0x10]
push eax
push 0x48b26a
call fcn.004954ed
mov dword [edi], eax
pop ecx
pop ecx
test eax, eax
jne 0x48b3d2
call fcn.004b45f2
mov ebx, dword [eax]
lea eax, [esi + 0x350]
push eax
call fcn.0048b1a4
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
mov al, 1
jmp 0x48b3cd

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi + eax*4 + 0x130]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov esi, eax
and dword [ebx], 0
cmp esi, 0xffffffff
jne 0x492c0e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x492be6
xor esi, esi
mov dword [ebx], 0x51
jmp 0x492c0e
push eax
push edi
call fcn.00487de3
push eax
push 0x408e20
push dword [edi]
call fcn.004928db
mov eax, dword [edi]
add esp, 0x14
mov ecx, dword [ebp + 8]
mov dword [eax + 0x856c], ecx
mov dword [ebx], 0x37
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x492d97
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x164]
test eax, eax
je 0x492dbf
push dword [esi + 0xf4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
jmp 0x492df7
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x492df5
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
push 2
add eax, 0x408e08
push eax
call fcn.004b6d0b
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004b6d0b
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x492f51
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov ecx, dword [eax + 0x530]
cmp ecx, edi
je 0x492fa5
mov eax, dword [eax + 0x524]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x492fa5
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x492f7e
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
mov esi, dword [eax + 0x130]
jne 0x492fa5
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
cmove esi, edi
mov eax, esi
jmp 0x492fa7
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4930fe
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4d33b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x19c], 0
mov ebx, dword [edi]
jne 0x49321e
lea eax, [ebp - 0x108]
mov esi, 0x80
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x493170
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00487de3
push eax
push esi
push 0x408fb0
push ebx
call fcn.004928db
add esp, 0x18
jmp 0x493225
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], esi
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4931a9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00487de3
push eax
push esi
push 0x408f28
jmp 0x493162
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0x9e]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0049357a
add esp, 0xc
test eax, eax
jne 0x4931e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00487de3
push eax
push esi
push 0x408fd8
jmp 0x493162
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0049357a
add esp, 0xc
test eax, eax
jne 0x49321e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00487de3
push eax
push esi
push 0x409004
jmp 0x493162
push edi
call fcn.00492fab
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aab4c
mov esp, ebp
pop ebp
ret
Function at 0x49395a
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4939a2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00487de3
push eax
push 0x409044
push esi
call fcn.00492971
add esp, 0x14
jmp 0x4939af
push 0x409064
push esi
call fcn.00492971
pop ecx
pop ecx
pop edi
pop esi
pop ebp
ret

Function at 0x494269
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 8]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x49427a
jmp dword [eax*4 + 0x4942ed]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, cl
pop ebp
ret
Function at 0x494593
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
and dword [ebp - 0xc], edi
and dword [eax], edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4946fd
push esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
test esi, esi
je 0x4946e9
push ebx
cmp dword [esi + 4], 2
jne 0x494688
cmp dword [esi + 0x18], 0
je 0x494688
cmp dword [esi + 0x10], 0
jbe 0x494688
cmp dword [esi + 0x10], 0x10
jb 0x494688
push 0x20
call dword [0x4d3368]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4946dd
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
and dword [ebx + 0x18], 0
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push 0x10
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 0x10
call dword [0x4d3368]
mov dword [ebx + 0x18], eax
pop ecx
test eax, eax
je 0x4946d1
mov esi, dword [esi + 0x18]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x14], 0
je 0x494670
push dword [esi + 0x14]
call dword [0x4d3374]
mov dword [ebx + 0x14], eax
pop ecx
test eax, eax
je 0x4946ba
mov edi, dword [ebp - 4]
test edi, edi
mov eax, dword [ebp - 0xc]
cmove edi, ebx
mov dword [ebp - 4], edi
test eax, eax
je 0x494685
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x4945d5
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 8], 0
pop ebx
je 0x4946a9
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x4946e2
push dword [ebp - 4]
call fcn.00494552
pop ecx
xor edi, edi
jmp 0x4946f5
push 8
pop esi
push dword [ebx + 0x18]
call dword [0x4d336c]
push ebx
call dword [0x4d336c]
pop ecx
pop ecx
jmp 0x494699
push 8
pop esi
push ebx
call dword [0x4d336c]
jmp 0x4946ce
push 8
pop esi
jmp 0x494699
mov edi, dword [ebp - 4]
test edi, edi
jne 0x4946f5
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4954ed
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call fcn.004bf07a
add esp, 0x18
test eax, eax
je 0x49550d
cmp eax, 0xffffffff
jne 0x49550f
xor eax, eax
pop ebp
ret
Function at 0x49b8c4
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x4d33b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp - 0x320], esi
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x314], esi
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x49b90d
cmp edi, 0xffffffff
jne 0x49b90d
push ebx
call fcn.0049bb0a
pop ecx
jmp 0x49baf9
test ebx, ebx
jle 0x49b92b
mov dword [ebp - 0x314], ebx
call fcn.0049453c
mov dword [ebp - 0x320], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x31c], edx
mov ecx, esi
mov dword [ebp - 0x20c], esi
or edx, 0xffffffff
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x324], 1
cmp eax, 0xffffffff
je 0x49b96b
mov ecx, dword [ebp - 0x324]
mov edx, eax
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x310], esi
cmp edi, 0xffffffff
je 0x49b9b5
mov dword [ebp - 0x30c], edi
mov eax, esi
mov dword [ebp - 0x310], 1
test ecx, ecx
je 0x49b99a
cmp dword [ebp + eax*4 - 0x104], edi
je 0x49b99a
inc eax
cmp eax, ecx
jb 0x49b98c
cmp eax, ecx
jne 0x49b9b0
cmp ecx, 0x40
jae 0x49b9b0
mov dword [ebp + eax*4 - 0x104], edi
inc dword [ebp - 0x108]
cmp edi, edx
cmova edx, edi
xor ecx, ecx
lea eax, [ebp - 0x32c]
test ebx, ebx
cmovs eax, ecx
lea ecx, [edx + 1]
mov dword [ebp - 0x330], ecx
mov ecx, dword [ebp - 0x314]
mov dword [ebp - 0x318], eax
test ebx, ebx
jle 0x49b9ff
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x32c], eax
imul eax, edx, 0x3e8
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x318]
jmp 0x49ba0d
jne 0x49ba0d
mov dword [ebp - 0x32c], esi
mov dword [ebp - 0x328], esi
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x330]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x49ba89
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x49ba45
cmp eax, 0x2714
jne 0x49ba8d
mov ecx, dword [ebp - 0x314]
mov eax, dword [ebp - 0x318]
test ebx, ebx
jle 0x49b9ff
push dword [ebp - 0x31c]
push dword [ebp - 0x320]
call fcn.0049453c
push edx
push eax
call fcn.004944e6
mov ecx, ebx
add esp, 0x10
sub ecx, eax
mov dword [ebp - 0x314], ecx
test ecx, ecx
jle 0x49ba8d
mov eax, dword [ebp - 0x318]
jmp 0x49b9d7
test eax, eax
jns 0x49ba92
or eax, 0xffffffff
jmp 0x49baf9
jne 0x49ba98
xor eax, eax
jmp 0x49baf9
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x49baca
lea eax, [ebp - 0x20c]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
lea eax, [ebp - 0x108]
push eax
cmovne esi, dword [ebp - 0x324]
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x49baca
or esi, 4
cmp edi, 0xffffffff
je 0x49baf7
lea eax, [ebp - 0x310]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x49bae3
or esi, 2
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x49baf7
or esi, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aab4c
mov esp, ebp
pop ebp
ret
Function at 0x49c539
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4d33b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x49c574
push eax
push 0x40a9d0
push esi
call fcn.004928db
add esp, 0xc
jmp 0x49c59c
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x49c58f
shr eax, 8
test al, al
jne 0x49c58f
xor eax, eax
jmp 0x49c59f
push 0x40a9e8
push esi
call fcn.004928db
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004aab4c
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x130]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x49ccda
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x40aa5c
push edi
call fcn.004928db
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push 0x40aa78
push dword [esi]
call fcn.0049c6b0
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x49cd99
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x4d33b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x90c], ebx
mov esi, dword [ebx]
mov dword [ebp - 0x908], esi
mov edi, dword [esi + 0x8664]
mov eax, dword [edi + 0x1ab0]
sub eax, dword [edi + 0x1aac]
add eax, 2
push eax
lea eax, [edi + 0x18ac]
push eax
push 0x3c
push esi
call fcn.0049c799
mov eax, dword [edi + 0x1aac]
add esp, 0x10
movzx ecx, byte [eax]
inc eax
mov dword [edi + 0x1aac], eax
cmp ecx, 0x18
je 0x49cf46
cmp ecx, 0x23
je 0x49cf22
cmp ecx, 0x27
jne 0x49cfd1
push 0
push ecx
push 0xfa
push 0xff
push 0x40aba8
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.004888f6
mov edi, dword [edi + 0x18a8]
add esp, 0x1c
push 4
pop ebx
test edi, edi
je 0x49ceba
mov ecx, dword [edi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49ce4b
sub ecx, edx
lea esi, [ebx + 1]
add esi, ecx
cmp esi, 0x7fa
jae 0x49cead
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x40abb4
push dword [edi]
call fcn.0048aa93
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, 0x800
sub eax, ebx
push 0x40abc4
push eax
lea eax, [ebp - 0x904]
add eax, ebx
push eax
call fcn.004888f6
add esp, 0x2c
mov ebx, esi
mov edi, dword [edi + 4]
test edi, edi
jne 0x49ce46
mov esi, dword [ebp - 0x908]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, ebx
push 0x40abd0
push eax
lea eax, [ebp - 0x904]
add eax, ebx
push eax
call fcn.004888f6
add esp, 0x14
lea eax, [ebp - 0x904]
add ebx, 2
push 0
push ebx
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x49cf1a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x40aa5c
push esi
call fcn.004928db
add esp, 0xc
lea eax, [ebx - 2]
jmp 0x49cfbe
lea edx, [edi + 0x1828]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49cf2d
push 0xf0
mov eax, 0xff
push eax
push edx
push 0
push 0x23
jmp 0x49cf68
lea edx, [edi + 0x1808]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49cf51
push 0xf0
mov eax, 0xff
push eax
push edx
push 0
push 0x18
push 0xfa
push eax
push 0x40ab98
sub ecx, edi
lea eax, [ebp - 0x904]
push 0x800
push eax
lea edi, [ecx + 6]
call fcn.004888f6
add esp, 0x28
lea eax, [ebp - 0x904]
push 0
push edi
push eax
push dword [ebx + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x49cfbb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x40aa5c
push esi
call fcn.004928db
add esp, 0xc
lea eax, [edi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push esi
call fcn.0049c799
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aab4c
mov esp, ebp
pop ebp
ret
Function at 0x49dc96
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4d33b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax + 0x3d0]
mov edi, dword [eax]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x49dd27
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.004ad220
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], eax
mov ebx, dword [esi + 0x14c]
cmp ebx, 4
jge 0x49dd59
push 0x40b190
push edi
call fcn.004928db
pop ecx
pop ecx
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aab4c
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x15c]
movzx eax, byte [ecx]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 1]
or edx, eax
mov dword [esi + 0xc], edx
sub edx, 3
je 0x49dde1
sub edx, 1
je 0x49de51
sub edx, 1
je 0x49ddba
sub edx, 1
je 0x49dd9f
push 0x40b1ac
push 0x4180a8
push edi
call fcn.004928db
jmp 0x49de4e
lea eax, [ebx - 2]
push eax
lea eax, [ecx + 2]
push eax
push esi
call fcn.0049da49
add esp, 0xc
test eax, eax
je 0x49de51
jmp 0x49dd48
mov edx, ecx
movzx eax, byte [edx + 2]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 3]
or ecx, eax
lea eax, [edx + 4]
push eax
push 0x4080fc
push edi
mov dword [esi + 8], ecx
call fcn.00492971
jmp 0x49de4e
cmp ebx, 4
jle 0x49de51
movzx eax, byte [ecx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 3]
or edx, eax
movzx eax, word [esi + 0x40]
inc eax
movzx eax, ax
cmp eax, edx
jne 0x49de51
lea eax, [ebx - 4]
push eax
lea eax, [ecx + 4]
push eax
push 1
push dword [ebp - 0x8c]
call fcn.004926ce
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x49de32
push 5
push esi
call fcn.0049e4eb
pop ecx
pop ecx
mov eax, ebx
jmp 0x49dd48
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x38], eax
adc dword [edi + 0x3c], edx
push dword [edi + 0x3c]
push dword [edi + 0x38]
push edi
call fcn.0049a9cf
add esp, 0xc
push dword [ebp - 0x8c]
call fcn.0049abc7
pop ecx
test eax, eax
je 0x49dd46
push 5
push esi
call fcn.0049e4eb
pop ecx
pop ecx
push 0x2a
pop eax
jmp 0x49dd48
Function at 0x49de77
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 3
pop ebx
mov eax, dword [esi + 0x10]
mov edi, dword [eax]
mov eax, dword [ebp + 0xc]
sub eax, ebx
je 0x49dfe3
dec eax
sub eax, 1
je 0x49df8b
sub eax, 1
je 0x49df21
sub eax, 1
je 0x49dec1
push 0x40b0b8
push 0x4180a8
push edi
call fcn.004928db
add esp, 0xc
push 0x47
jmp 0x49e094
inc dword [esi + 0x18]
movzx eax, word [esi + 0x40]
push dword [esi + 0x18]
inc eax
movzx eax, ax
push eax
push 0x40b084
push edi
call fcn.00492971
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x49def4
mov dword [esi + 8], 0xffffff9d
mov dword [esi], ebx
jmp 0x49e0bb
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push 0
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x49e0bb
jmp 0x49e074
xor eax, eax
xor ebx, ebx
mov word [esi + 0x40], ax
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x160]
mov byte [eax], bl
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 4
movzx edx, word [esi + 0x40]
mov eax, dword [esi + 0x160]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x160]
mov byte [eax + 3], dl
lea eax, [esi + 0xc8]
push dword [esi + 0x148]
push eax
push ebx
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x49e074
mov dword [esi], 1
jmp 0x49e0b1
mov eax, dword [esi + 0x160]
xor ebx, ebx
mov byte [eax], bl
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 5
movzx edx, word [esi + 0x40]
mov eax, dword [esi + 0x160]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x160]
mov byte [eax + 3], dl
lea eax, [esi + 0xc8]
push dword [esi + 0x148]
push eax
push ebx
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
push 3
pop eax
mov dword [esi], eax
jmp 0x49e0bb
mov ecx, dword [esi + 0x15c]
movzx eax, byte [ecx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 3]
or edx, eax
movzx eax, word [esi + 0x40]
inc eax
movzx eax, ax
cmp eax, edx
je 0x49e01b
push eax
push edx
push 0x40b044
push edi
call fcn.00492971
add esp, 0x10
jmp 0x49e0bb
mov word [esi + 0x40], dx
xor ebx, ebx
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x160]
mov byte [eax], bl
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 4
movzx edx, word [esi + 0x40]
mov eax, dword [esi + 0x160]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x160]
mov byte [eax + 3], dl
lea eax, [esi + 0xc8]
push dword [esi + 0x148]
push eax
push ebx
push 4
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x49e097
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.00487de3
push eax
push 0x4180a8
push edi
call fcn.004928db
add esp, 0x14
push 0x37
pop eax
jmp 0x49e0bd
mov eax, dword [esi + 0x154]
xor ecx, ecx
add eax, 4
inc ecx
cmp dword [esi + 0x14c], eax
push 3
pop eax
cmovl ecx, eax
mov dword [esi], ecx
lea eax, [esi + 0x38]
push eax
call fcn.004b6de2
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret