joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b530
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp edx, eax
je 0x1000b6a2
cmp dword [edx + 0x1c], 0xf
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0xc]
push ebx
mov dword [ebp - 0x18], eax
lea ebx, [edx + 8]
mov eax, dword [edx + 4]
push esi
mov dword [ebp - 0xc], eax
mov esi, edx
jbe 0x1000b569
mov ebx, dword [edx + 8]
mov eax, dword [edx + 0x18]
xor edx, edx
push edi
mov edi, 0x811c9dc5
test eax, eax
je 0x1000b594
mov ecx, eax
nop word [eax + eax]
movzx eax, byte [ebx + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1000b580
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x18]
and eax, edi
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 4]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], eax
nop dword [eax]
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
push ecx
lea ecx, [edi + 8]
call fcn.10011110
push 0x38
push edi
call fcn.1001948e
mov eax, dword [ebp - 8]
add esp, 8
dec dword [eax + 8]
cmp ebx, dword [ebp - 0x14]
je 0x1000b5fe
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x1000b5b0
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jne 0x1000b697
mov ecx, dword [ebp - 0x10]
pop edi
mov dword [ecx], esi
mov ecx, dword [ebp - 0xc]
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
jne 0x1000b610
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x1000b613
mov eax, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
cmp esi, eax
je 0x1000b697
nop dword [eax]
cmp dword [esi + 0x1c], 0xf
lea edi, [esi + 8]
jbe 0x1000b62c
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0x18]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x1000b651
nop word [eax + eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x1000b640
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
and edx, dword [ecx + 0x18]
lea eax, [eax + edx*8]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
push ecx
lea ecx, [edi + 8]
call fcn.10011110
push 0x38
push edi
call fcn.1001948e
mov ecx, dword [ebp - 8]
add esp, 8
mov eax, dword [ebp + 0xc]
dec dword [ecx + 8]
cmp ebx, dword [ebp - 0x14]
je 0x1000b6a8
cmp esi, eax
jne 0x1000b666
mov ecx, dword [ebp - 4]
mov dword [ecx], esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], edx
mov dword [ecx + 4], edx
cmp esi, eax
jne 0x1000b620
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40608a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a74], 0
push esi
jne 0x4060c1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40609b
mov dword [ecx*4 + 0x422a70], eax
inc ecx
cmp ecx, 0x100
jl 0x406096
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4060f2
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a70]
xor eax, esi
inc ecx
dec edx
jne 0x4060d4
pop edi
not eax
pop esi
ret 0xc

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x139e0acc
nop
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x77263838
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4076e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [esp], 1
call dword [0x4092cc]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fflush]
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x4081d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00408290
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x30025e24
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43189c], 0
push esi
jne 0x30025e5b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x30025e35
mov dword [ecx*4 + 0x431898], eax
inc ecx
cmp ecx, 0x100
jl 0x30025e30
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x30025e8c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431898]
xor eax, esi
inc ecx
dec edx
jne 0x30025e6e
pop edi
not eax
pop esi
ret 0xc
Function at 0x4077b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f0d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x43f00c]
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 esi, ecx
mov dword [ebp - 4], 0
cmp dword [esi + 0x60], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_context.0
je 0x407870
call fcn.00407e10
mov ebx, dword [esi + 0x60]
push 0xffffffffffffffff
push 0
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebx + 8]
call edi
xor eax, eax
mov ecx, 0x4412f4
lock xadd dword [ecx], eax
mov ecx, dword [ebx + 4]
push 0
push ecx
test eax, eax
je 0x40783c
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x407852
push method.boost::asio::detail::win_iocp_socket_service_class_boost::asio::ip::tcp_.virtual_8
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [esi + 0x60]
test ebx, ebx
je 0x407869
push dword [ebx + 4]
call edi
push 0xc
push ebx
call fcn.0042d0f1
add esp, 8
mov dword [esi + 0x60], 0
lea ecx, [esi + 0x54]
call fcn.00411530
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40788c
push eax
call edi
mov ebx, dword [esi + 0x2c]
test ebx, ebx
je 0x4078a3
push dword [ebx + 4]
call edi
push 0xc
push ebx
call fcn.0042d0f1
add esp, 8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4078ad
push eax
call edi
test byte [ebp + 8], 1
mov dword [esi], vtable.boost::asio::execution_context::service.0
je 0x4078c4
push 0x64
push esi
call fcn.0042d0f1
add esp, 8
mov eax, esi
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.0042c87e
mov esp, ebp
pop ebp
ret 4
Function at 0x408b50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43f00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov ebx, edx
cmp edi, 0xffffffff
je 0x408c66
cmp byte [ebp + 8], 0
je 0x408bae
mov al, byte [ebx]
test al, 8
je 0x408bae
or al, 8
xor ecx, ecx
push 4
mov byte [ebx], al
lea eax, [ebp - 8]
push eax
push 0x80
push 0xffff
push edi
mov dword [ebp - 8], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0x18]
setne dl
call fcn.00408ad0
push esi
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0xc]
mov esi, eax
test esi, esi
setne dl
call fcn.00408ad0
test esi, esi
je 0x408c53
mov edx, 0x2733
lea ecx, [ebp - 0x24]
call fcn.00406b40
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x18]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x10], eax
call fcn.00405e80
test al, al
jne 0x408c23
mov edx, 0x4d5
lea ecx, [ebp - 0x24]
call fcn.00406b40
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x18]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x10], eax
call fcn.00405e80
test al, al
je 0x408c53
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [ebx], 0xfc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 0xc]
mov esi, eax
test esi, esi
setne dl
call fcn.00408ad0
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c87e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.0042c87e
mov esp, ebp
pop ebp
ret

Function at 0x408c80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, edx
push edi
mov edi, ecx
cmp dword [esi + 8], 1
je 0x408c96
mov eax, dword [esi]
jmp 0x408caa
mov eax, dword [esi + 4]
xor edx, edx
mov ecx, 0x1ffff7
div ecx
imul eax, edx, 0x3e8
add eax, dword [esi]
cmp eax, 0x4cf
jg 0x408cd4
je 0x408ccd
cmp eax, 0x79
je 0x408cc6
cmp eax, 0x4c9
jne 0x408cf6
mov edx, 0x274d
jmp 0x408ce0
mov edx, 0x274c
jmp 0x408ce0
mov edx, 0x2743
jmp 0x408ce0
cmp eax, 0x4d0
jne 0x408cf6
mov edx, 0x2751
lea ecx, [ebp - 0xc]
call fcn.00406b40
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
test al, 1
je 0x408d07
cmp eax, 1
jne 0x408d4e
cmp dword [esi], 0
jne 0x408d4e
cmp edi, 0xffffffff
jne 0x408d2d
mov edx, 0x2719
lea ecx, [ebp - 0xc]
call fcn.00406b40
pop edi
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x7010
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov ecx, esi
setne dl
call fcn.00408ad0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408f30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, edx
cmp ecx, 0xffffffff
jne 0x408f64
mov edx, 0x2719
lea ecx, [ebp - 0xc]
call fcn.00406b40
mov ecx, dword [ebp + 0x10]
pop esi
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push ebx
push 0x8004667e
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebp + 0x10]
mov edi, eax
test edi, edi
sets dl
call fcn.00408ad0
test edi, edi
js 0x408fa3
cmp dword [ebx], 0
mov cl, byte [esi]
je 0x408f9e
mov eax, edi
or cl, 1
pop edi
pop ebx
mov byte [esi], cl
pop esi
mov esp, ebp
pop ebp
ret
and cl, 0xfc
mov byte [esi], cl
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408fb0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
test edx, edx
jne 0x40900e
test ecx, ecx
jne 0x40900e
cmp dword [ebp + 0xc], ecx
jne 0x40900e
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40902c
mov eax, 0x10624dd3
imul dword [esi + 4]
imul eax, dword [esi], 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
mov eax, 1
cmove ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
pop esi
pop ebx
movq qword [eax], xmm0
mov dword [eax + 8], 0
xor eax, eax
pop ebp
ret
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40902c
cmp dword [esi], 0
jne 0x40902c
mov eax, dword [esi + 4]
dec eax
cmp eax, 0x3e6
ja 0x40902c
mov dword [esi + 4], 0x3e8
push esi
push dword [ebp + 0xc]
push ecx
push edx
push ebx
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [ebp + 0x14]
mov esi, eax
test esi, esi
sets dl
call fcn.00408ad0
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x409da0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0
lea eax, [ebp - 5]
mov byte [ebp - 5], 0
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push dword [ecx + 4]
mov dword [ebp - 0xc], 0
call dword [sym.imp.WS2_32.dll_WSASend]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [0x43f078]
mov esi, eax
mov eax, dword [0x43f07c]
cmp ecx, 0x257edfd1
jne 0x409e05
cmp eax, 0xb2ab117a
je 0x409e14
cmp ecx, 0x257edfd0
jne 0x409e1b
cmp eax, 0xb2ab117a
jne 0x409e1b
test esi, esi
setne al
jmp 0x409e2b
mov eax, dword [0x43f070]
mov ecx, 0x43f070
push esi
mov eax, dword [eax + 0x18]
call eax
movzx ecx, al
mov edi, 0x1ffff7
cmp ecx, 0xffffffff
je 0x409e3c
mov eax, esi
jmp 0x409e4d
xor edx, edx
mov eax, 0x43f070
div edi
imul eax, edx, 0x3e8
add eax, esi
cmp eax, 0x40
jne 0x409e59
mov edx, 0x2746
jmp 0x409e7c
cmp ecx, 0xffffffff
jne 0x409e6f
xor edx, edx
mov eax, 0x43f070
div edi
imul eax, edx, 0x3e8
add esi, eax
cmp esi, 0x4d2
jne 0x409e84
mov edx, 0x274d
lea ecx, [ebp - 0x20]
call fcn.00406b40
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042c87e
mov esp, ebp
pop ebp
ret
Function at 0x40b050
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43f00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebx + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x18], 0
je 0x40b0e4
mov esi, dword [ebx + 4]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
push edi
push 2
push 0
mov dword [edi + 0x1c], 1
mov dword [edi], 0x43f070
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x40b19f
lea ebx, [esi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x40b0ce
mov dword [eax + 0x14], edi
jmp 0x40b0d1
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
lea eax, [esi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
jmp 0x40b199
mov eax, dword [ecx]
cmp eax, 0xffffffff
jne 0x40b0f7
mov esi, dword [ebx + 4]
mov dword [edi + 8], 0x2719
jmp 0x40b087
push 0
push edi
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push dword [ebp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x40b144
cmp eax, 0x3e5
je 0x40b144
mov esi, dword [ebx + 4]
mov dword [edi + 8], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0xc], eax
jmp 0x40b08e
mov esi, dword [ebx + 4]
lea ecx, [edi + 0x1c]
mov ebx, 1
xor eax, eax
mov edx, ebx
lock cmpxchg dword [ecx], edx
cmp eax, ebx
jne 0x40b19f
push edi
push 2
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x40b19f
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x40b18a
mov dword [eax + 0x14], edi
jmp 0x40b18d
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
lea eax, [esi + 0x34]
xchg dword [eax], ebx
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c87e
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40b1c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x43f00c]
xor eax, esp
mov dword [esp + 8], eax
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x18], 0
je 0x40b258
mov edi, dword [edi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
push esi
push 2
push 0
mov dword [esi + 0x1c], 1
mov dword [esi], 0x43f070
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x40b32b
lea ebx, [edi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x40b242
mov dword [eax + 0x14], esi
jmp 0x40b245
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
lea eax, [edi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
jmp 0x40b325
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
jne 0x40b26b
mov edi, dword [edi + 4]
mov dword [esi + 8], 0x2719
jmp 0x40b1fb
mov eax, dword [ebp + 0x14]
push 0
push esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [ebp + 0x10]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x40b2a6
mov eax, 0x2746
jmp 0x40b2b3
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
je 0x40b2d0
cmp eax, 0x3e5
je 0x40b2d0
mov edi, dword [edi + 4]
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], eax
jmp 0x40b202
mov edi, dword [edi + 4]
lea ecx, [esi + 0x1c]
mov ebx, 1
xor eax, eax
mov edx, ebx
lock cmpxchg dword [ecx], edx
cmp eax, ebx
jne 0x40b32b
push esi
push 2
push 0
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x40b32b
lea eax, [edi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x40b316
mov dword [eax + 0x14], esi
jmp 0x40b319
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
lea eax, [edi + 0x34]
xchg dword [eax], ebx
lea eax, [edi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042c87e
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40c920
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f53a
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x43f00c]
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 esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 2
xor edi, edi
mov dword [esi + 0x24], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x28], 5
mov dword [ebp - 0x20], esi
push 0xc
call fcn.0042cd56
add esp, 4
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 3
xorps xmm0, xmm0
movq qword [eax], xmm0
mov ecx, eax
mov dword [eax + 8], 0
call fcn.00408760
mov byte [ebp - 4], 2
mov ecx, dword [esi + 4]
mov dword [ebp - 0x18], eax
cmp ecx, dword [esi + 8]
je 0x40c9f0
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x40c9fc
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, esi
call fcn.004147f0
push 4
call fcn.0042cd56
mov edx, eax
add esp, 4
mov dword [ebp - 0x18], edx
mov eax, dword [esi]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 8]
mov dword [edx], eax
lock inc dword [eax + 0x18]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x18], edx
cmp ecx, dword [esi + 0x14]
je 0x40ca2c
mov dword [ecx], edx
add dword [esi + 0x10], 4
jmp 0x40ca39
lea edx, [ebp - 0x18]
push edx
push ecx
lea ecx, [esi + 0xc]
call fcn.004147f0
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
cmp eax, dword [esi + 0x20]
je 0x40ca8b
push 8
call fcn.0042cd56
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
add eax, 4
push eax
push 0
push ecx
push 0x41a430
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [ebp - 0x18]
add esp, 0x1c
mov dword [ecx], eax
test eax, eax
je 0x40cac2
mov byte [ebp - 4], 2
add dword [esi + 0x1c], 8
jmp 0x40ca98
lea ecx, [ebp - 0x20]
push ecx
push eax
lea ecx, [esi + 0x18]
call fcn.00413ae0
inc edi
cmp edi, 5
jb 0x40c9b3
mov eax, esi
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.0042c87e
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [ecx + 4], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3