joyce8/EMBER2024-capa huggingface dataset:
Function at 0x524c00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
call fcn.005377d5
add esp, 4
push edi
push edi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [esi + 0x28]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x6c]
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0xc], eax
push 1
lea eax, [ebp - 0x10]
push eax
push ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], 0x4000
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x524c9b
mov edx, dword [ebp - 4]
cmp edx, edi
jne 0x524c7b
cmp dword [esi + 0x48], edi
jne 0x524c71
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x48], 1
cmp ecx, edi
je 0x524c71
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push edi
push 5
push edi
push edi
push esi
call eax
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x6c]
cmp ecx, edi
je 0x524ce6
mov ebx, dword [ecx]
push edi
push 1
push edx
mov edx, dword [ebx + 8]
push eax
push esi
call edx
mov edi, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
je 0x524ce6
cmp dword [esi + 0x48], edi
jne 0x524ce3
call ebx
push eax
mov ecx, esi
call fcn.00524ba0
cmp eax, 0xfffffffd
jne 0x524cc5
mov dword [esi + 0x48], 1
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x524ce3
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 0
push 4
push 0
push 0
push esi
call edx
mov edi, eax
cmp edi, 1
je 0x524ce6
or edi, 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x524d20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
call fcn.005377d5
add esp, 4
push edi
push edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x6c]
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 0x10], eax
lea edx, [esi + 0x84]
push edx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 4]
push ecx
push 1
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [ebp - 8], 0x10
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], 0x4000
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
jne 0x524da9
mov edx, dword [ebp - 4]
cmp edx, edi
jbe 0x524dcf
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x6c]
cmp ecx, edi
je 0x524da1
push ebx
mov ebx, dword [ecx]
push edi
push 1
push edx
mov edx, dword [ebx + 8]
push eax
push esi
call edx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x524dd8
mov ecx, dword [esi + 0xc]
cmp ecx, edi
je 0x524dcf
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push edi
push 4
push edi
push edi
push esi
call edx
cmp eax, 1
je 0x524dda
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x525670
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x676300]
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 ebx, dword [ebp + 0x10]
push 0
mov esi, ecx
mov dword [ebp - 0x2c], eax
call fcn.005377d5
lea edi, [esi - 0x30]
add esp, 4
mov dword [esi - 0x7c], eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x5256c4
mov ecx, edi
call fcn.004f0b18
cmp dword [esi - 0x38], 1
mov dword [ebp - 4], 0
jne 0x525702
cmp dword [esi - 0x58], 0xffffffff
je 0x525702
mov edx, dword [esi - 0x80]
mov eax, dword [edx + 0x28]
lea ecx, [esi - 0x80]
call eax
test eax, eax
jne 0x525702
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x5256f8
mov ecx, edi
call fcn.004f0b20
mov eax, 0xfffffffd
jmp 0x52580e
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x525714
mov ecx, edi
call fcn.004f0b20
mov ecx, 2
push ebx
mov word [ebp - 0x20], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [ebp + 0x14]
push edx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp + 0xc]
mov ecx, dword [0x67fb04]
mov word [ebp - 0x1e], ax
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
xor ebx, ebx
cmp eax, ecx
jae 0x525757
mov eax, ecx
imul eax, eax, 0x3e8
mov dword [ebp - 0x24], eax
test edi, edi
jle 0x525806
cmp dword [esi - 0x38], 0
jne 0x525806
lea ecx, [esi - 0x4c]
mov dword [ebp - 0x28], 0
mov byte [esi - 0x50], 0
call fcn.004f1630
mov ecx, dword [ebp - 0x2c]
push 0
push 0
push 0x10
mov eax, edi
sub eax, ebx
lea edx, [ebp - 0x20]
push edx
mov edx, dword [esi - 0x58]
push 0
mov dword [ebp - 0x34], eax
add ecx, ebx
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x30], ecx
push 1
lea ecx, [ebp - 0x34]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
je 0x5257fb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x52582c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi - 0x54]
jne 0x5257dd
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x5257fe
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [esi - 0x4c]
call fcn.004f1643
cmp eax, 0x102
je 0x5257f6
cmp byte [esi - 0x50], 0
jne 0x5257fe
or eax, 0xffffffff
jmp 0x52580e
add ebx, dword [ebp - 0x28]
cmp ebx, edi
jl 0x525768
mov eax, ebx
sub eax, edi
neg eax
sbb 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.00534bba
mov esp, ebp
pop ebp
ret 0x14
push eax
lea ecx, [esi - 0x80]
call fcn.00524ba0
cmp eax, 0xfffffffd
jne 0x52580e
mov dword [esi - 0x38], 1
jmp 0x52580e
Function at 0x525890
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572d28
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x676300]
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
push 0
mov esi, ecx
call fcn.005377d5
add esp, 4
or ebx, 0xffffffff
cmp dword [esi + 0x48], 0
mov dword [esi + 4], eax
jne 0x5258d8
cmp dword [esi + 0x28], ebx
jne 0x525909
lea edi, [esi + 0x50]
mov dword [ebp - 0x24], edi
test edi, edi
je 0x5258e9
mov ecx, edi
call fcn.004f0b18
cmp dword [esi + 0x48], 0
mov dword [ebp - 4], 0
jne 0x525913
cmp dword [esi + 0x28], ebx
je 0x525913
mov dword [ebp - 4], ebx
test edi, edi
je 0x525909
mov ecx, edi
call fcn.004f0b20
mov eax, 1
jmp 0x525a94
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
mov ecx, esi
call edx
test eax, eax
jne 0x525928
mov dword [ebp - 4], ebx
jmp 0x525a87
cmp word [esi + 0x20], 0
jne 0x525937
mov dword [ebp - 4], ebx
jmp 0x525a87
mov eax, 2
mov word [ebp - 0x20], ax
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, word [esi + 0x20]
push ecx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_htons]
lea ebx, [esi + 0x40]
mov word [ebp - 0x1e], ax
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x52596a
test eax, eax
jne 0x525999
lea ecx, [esi + 0x3c]
call fcn.004f1630
push 0x525850
push esi
push ebx
call fcn.004f045d
add esp, 0xc
push 0xea60
lea ecx, [esi + 0x3c]
call fcn.004f1643
cmp eax, 0x102
je 0x525a80
lea ecx, [esi + 0x3c]
call fcn.004f1630
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x28]
push 0x33
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov edx, dword [esi + 0x28]
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x525a16
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x525a16
cmp eax, 0x2748
jne 0x5259e1
mov dword [esi + 0x7c], 1
movzx eax, word [esi + 0x20]
push eax
lea eax, [esi + 0x10]
push eax
push str.Connect_to__s:_d_failed
push str.NetworkConnection
push 0x67fa0c
call fcn.004ebec7
add esp, 0x14
call fcn.00568c15
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x525a80
push 0
push 7
push 0
push eax
jmp 0x525a78
mov ecx, dword [0x67fb08]
imul ecx, ecx, 0x3e8
push ecx
lea ecx, [esi + 0x3c]
call fcn.004f1643
cmp dword [esi + 0x48], 0
mov ecx, dword [esi + 0xc]
jne 0x525a6c
mov dword [esi + 0x7c], 1
test ecx, ecx
je 0x525a4f
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0
push 6
push 0
push 0
push esi
call eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x525909
mov ecx, edi
call fcn.004f0b20
mov eax, 1
jmp 0x525a94
test ecx, ecx
je 0x525a80
push 0
push 7
push 0
push 0
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push esi
call eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x525a92
mov ecx, edi
call fcn.004f0b20
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.00534bba
mov esp, ebp
pop ebp
ret
Function at 0x525b30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572d58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x676300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
call fcn.005377d5
lea edi, [esi + 0x50]
add esp, 4
mov dword [esi + 4], eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x525b79
mov ecx, edi
call fcn.004f0b18
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00525890
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x525bb2
cmp edi, ebx
je 0x525b99
mov ecx, edi
call fcn.004f0b20
mov eax, 0xfffffffd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, ebx
je 0x525bbd
mov ecx, edi
call fcn.004f0b20
mov ecx, dword [ebp + 0xc]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x67fb04]
cmp eax, edx
jae 0x525bdd
mov eax, edx
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
test ecx, ecx
jle 0x525c9c
mov edi, edi
cmp dword [esi + 0x48], 0
jne 0x525c9c
mov eax, dword [ebp + 8]
sub ecx, ebx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebx + eax]
mov dword [ebp - 0x18], ecx
lea ecx, [esi + 0x34]
mov dword [ebp - 0x10], 0
mov byte [esi + 0x30], 0
call fcn.004f1630
mov ecx, dword [esi + 0x28]
push 0
push 0
push 0
lea edx, [ebp - 0x10]
push edx
push 1
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x525c8e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x525cb8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0x2c]
jne 0x525c5e
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x525c91
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [esi + 0x34]
call fcn.004f1643
cmp eax, 0x102
je 0x525c77
cmp byte [esi + 0x30], 0
jne 0x525c91
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
add ebx, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
cmp ebx, ecx
jl 0x525bf0
mov eax, ebx
sub eax, ecx
neg eax
sbb eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
mov ecx, esi
call fcn.00524ba0
cmp eax, 0xfffffffd
jne 0x525ca4
mov dword [esi + 0x48], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x528000
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0
mov esi, ecx
push esi
push 0x527b80
push 0
push 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x74], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x528290
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov esi, ecx
call fcn.005377d5
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x10]
add esp, 4
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
push eax
push ebx
push ecx
push 0xa
push edx
mov dword [ebp - 4], 0
call fcn.00527e40
mov edi, eax
test edi, edi
je 0x528357
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
cmp eax, dword [esi + 0x30]
mov eax, 0x10624dd3
sete cl
imul ebx
mov eax, dword [0x67fb04]
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov dword [ebp + 8], ecx
cmp ebx, eax
jae 0x5282fb
mov ebx, eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], edx
mov dword [edi + 0x30], eax
mov ecx, dword [esi + 0x28]
mov dword [edi + 0x34], ecx
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], 0
call fcn.004f1630
mov ecx, dword [esi + 0x10]
push 0
push edi
push 0
lea edx, [ebp - 4]
push edx
push 1
lea eax, [edi + 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x528391
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x528363
mov dword [edi + 0x18], 0
mov ecx, dword [esi + 0x24]
push edi
call fcn.00527f70
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 8], 0
je 0x52837c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
imul ebx, ebx, 0x3e8
push ebx
lea ecx, [esi + 0x2c]
call fcn.004f1643
cmp dword [esi + 0x34], 0
jne 0x528357
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov edi, ecx
call fcn.005377d5
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x10]
add esp, 4
mov dword [edi + 4], eax
mov eax, dword [ebp + 8]
push eax
push ebx
push ecx
push 0xa
push edx
mov dword [ebp - 4], 0
call fcn.00527e40
mov esi, eax
test esi, esi
je 0x528504
mov eax, dword [ebp + 0x10]
push 0
push esi
push 0x10
lea ecx, [edi + 0x14]
push ecx
push 0
lea edx, [ebp - 4]
push edx
mov dword [esi + 0x30], eax
push 1
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], ebx
mov ecx, dword [edi + 0x10]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x528518
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x528510
mov dword [esi + 0x18], 0
mov ecx, dword [edi + 0x24]
push esi
call fcn.00527f70
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5285e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x676300]
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 edi, ecx
mov eax, dword [edi + 4]
lea ecx, [edi + 0x4c]
xor ebx, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
cmp ecx, ebx
je 0x528624
call fcn.004f0b18
mov ecx, dword [edi + 0x40]
mov dword [ebp - 4], ebx
cmp ecx, 0x38
jl 0x528649
mov eax, dword [edi + 0x34]
cmp eax, ebx
je 0x528649
mov ecx, dword [eax + 4]
mov edx, dword [edi + 0x38]
mov dword [edi + 0x34], ecx
mov dword [eax + 4], edx
mov dword [edi + 0x38], eax
mov esi, dword [eax]
jmp 0x528654
push ecx
call fcn.00538174
add esp, 4
mov esi, eax
cmp esi, ebx
jne 0x52866f
lea ecx, [edi + 0x4c]
mov dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x52866b
call fcn.004f0b20
xor esi, esi
jmp 0x5286d3
mov ecx, dword [edi + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax]
push 0x4020
call edx
cmp eax, ebx
jne 0x52868c
push esi
lea ecx, [edi + 0x34]
call fcn.00527d90
jmp 0x528658
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0x28], ecx
lea ecx, [edi + 0x4c]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x24], 1
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0x4000
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x5286d3
call fcn.004f0b20
cmp dword [edi + 0x7c], ebx
jne 0x52877a
push ebx
push esi
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
mov ecx, edx
push ecx
mov dword [esi + 0x30], edx
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x28]
push eax
push 1
lea eax, [esi + 0x14]
push eax
push ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x28], ebx
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x52872c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x52872c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x528771
cmp dword [edi + 0x7c], ebx
jne 0x52877a
mov edx, dword [edi + 0x28]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [edi + 4]
mov dword [esi + 0x28], ecx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x24], 1
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
cmp dword [edi + 0x7c], ebx
je 0x5286dc
push esi
mov ecx, edi
call fcn.00527f70
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.00534bba
mov esp, ebp
pop ebp
ret
Function at 0x5287a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572f18
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x10], 0
mov esi, dword [ebp + 8]
mov edi, ecx
jne 0x5287e8
cmp dword [esi + 0x24], 1
jne 0x5288d9
mov eax, dword [edi + 0x28]
push eax
jmp 0x5288d3
mov eax, dword [esi + 0x24]
dec eax
mov dword [ebp - 0x58], 0
je 0x528889
sub eax, 9
jne 0x5288d9
mov ecx, dword [ebp + 0xc]
add dword [esi + 0x20], ecx
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
cmp ecx, eax
jge 0x52887f
mov edx, dword [esi + 0x18]
sub eax, ecx
add edx, ecx
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x50]
mov dword [esi + 0x24], 0xa
mov dword [ebp - 0x5c], edx
mov edx, dword [edi + 4]
push ecx
push edx
mov dword [ebp - 0x54], 0x10
call dword [sym.imp.WS2_32.dll_getpeername]
mov eax, dword [ebp - 0x54]
push 0
push esi
push eax
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [edi + 4]
push 0
lea edx, [ebp - 0x58]
push edx
push 1
lea eax, [ebp - 0x60]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x5288d9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x5288d9
mov edx, dword [esi + 0x30]
push edx
push 0
mov ecx, edi
call fcn.00527ba0
push esi
mov ecx, edi
call fcn.00527f70
jmp 0x5288d9
push 0
push edi
lea ecx, [ebp - 0x40]
call fcn.005283a0
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x28], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + 0xc]
mov ecx, dword [edi + 0x2c]
push 0
mov dword [ebp - 0x20], edx
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push 1
push edx
mov edx, dword [esi + 0x18]
push edx
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 4], 0
call eax
mov ecx, dword [edi + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret 0xc
Function at 0x529590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push ebx
mov ebx, ecx
push 0xc8
lea ecx, [ebx + 0x34]
mov dword [ebx + 0x30], eax
call fcn.00528940
test al, al
je 0x5295f0
cmp dword [ebx + 0x78], 0xffffffff
mov dword [ebx + 0x64], 1
jne 0x5295f9
push 1
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [ebx + 0x78], eax
test eax, eax
jne 0x5295f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateIoCompletionPort___Failed_Reason__x
push str.NetworkServer
push 0x67fa0c
call fcn.004ebec7
add esp, 0x10
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 0x64], 0
mov dword [ebp + 8], 0
jbe 0x52965e
push esi
push edi
lea ecx, [ebp - 8]
push ecx
push 0
push ebx
push 0x527b60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [ebx + 0x68]
lea edx, [ebp - 4]
mov dword [ebp - 4], eax
mov eax, dword [edi + 4]
push edx
push eax
push edi
lea ecx, [ebx + 0x68]
call fcn.004266e0
mov ecx, dword [ebx + 0x6c]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, 1
jb 0x52966a
inc ecx
mov dword [ebx + 0x6c], ecx
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebx + 0x64]
jb 0x529608
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.list_T__too_long
call fcn.005535bb
int3

Function at 0x529970
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x28]
mov ebx, ecx
push edi
lea ecx, [ebx + 0x94]
xor edi, edi
mov dword [ebp + 8], eax
cmp ecx, edi
je 0x529995
call fcn.004f0b18
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 4]
push edx
lea ecx, [ebx + 0x84]
call fcn.005290a0
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x88]
je 0x5299bb
mov eax, dword [eax + 0x10]
mov dword [ebp + 8], eax
jmp 0x5299be
mov dword [ebp + 8], edi
lea ecx, [ebx + 0x94]
cmp ecx, edi
je 0x5299cd
call fcn.004f0b20
cmp dword [ebp + 8], edi
je 0x529a3d
mov eax, dword [esi + 0x34]
mov ecx, dword [ebp + 0xc]
push edi
mov dword [esi + 0x28], ecx
push esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], eax
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, 1
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 0x8000
mov edx, dword [esi + 0x28]
push ecx
mov dword [esi + 0x24], ecx
lea ecx, [esi + 0x14]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x529a50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x529a50
push esi
mov ecx, ebx
call fcn.00527bf0
push esi
mov ecx, ebx
call fcn.00527f70
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8