joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4360e4]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0
push 0
push 1
push 0
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
jne 0x402bf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x14], eax
call dword [edx]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4384c8]
mov edx, dword [eax]
cmp ecx, dword [edx + 4]
jle 0x402bdf
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], 0xffffffff
jne 0x402bdf
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x4369a8
test eax, eax
jne 0x402d57
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 8], eax
mov dword [edi + 8], eax
cmp dword [ebx + 8], 0
jne 0x402c81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x14], eax
call dword [edx]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4384c8]
mov edx, dword [eax]
cmp ecx, dword [edx + 4]
jle 0x402c69
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], 0xffffffff
jne 0x402c69
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x4369a8
test eax, eax
jne 0x402d65
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0
push edi
push 0x402d90
push 0
push 0
call fcn.004130df
add esp, 0x18
mov dword [ebx + 4], eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x402d33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x14], eax
call dword [edx]
test esi, esi
je 0x402ccc
push esi
call ebx
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x402cda
push eax
call ebx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4384c8]
cmp eax, dword [ecx + 4]
jle 0x402d1f
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], 0xffffffff
jne 0x402d1f
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x4369a8
test eax, eax
jne 0x402d73
test esi, esi
je 0x402d43
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040f853
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [esp + 0x10]
call fcn.00402270
mov edx, str.thread.exit_event
lea ecx, [esp + 0x10]
call fcn.00402270
mov edx, str.thread
lea ecx, [esp + 0x18]
call fcn.00402270
int3
Function at 0x402e90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42878e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
mov eax, dword [0x4360e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x24], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.asio::detail::win_iocp_io_context.0
mov dword [esi + 0x14], 0
lea edi, [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [edi], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], 0
call fcn.004026e0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], 0
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x402fe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4384c8]
cmp eax, dword [ecx + 4]
jle 0x402fd4
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], 0xffffffff
jne 0x402fd4
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x4369a8
test edi, edi
jne 0x403087
lea edi, [esi + 0x18]
cmp byte [ebx + 0x10], 0
je 0x403065
lock inc dword [edi]
push 0xc
call fcn.0040fa4b
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 7
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
push 0x10
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.0040fa4b
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
push eax
mov ecx, edi
movups xmmword [eax], xmm0
mov dword [eax], vtable.asio::detail::win_thread::func_struct_asio::detail::win_iocp_io_context::thread_function_.0
mov dword [eax + 0xc], esi
call fcn.00402b50
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x403062
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push dword [ebp - 0x20]
call fcn.0040fde6
add esp, 8
mov dword [esi + 0x60], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f853
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
mov edx, str.iocp
lea ecx, [ebp - 0x1c]
call fcn.00402270
int3
Function at 0x4030e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4287c0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4360e4]
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
cmp dword [esi + 0x60], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], vtable.asio::detail::win_iocp_io_context.0
je 0x403199
call fcn.004037b0
mov edi, dword [esi + 0x60]
push 0xffffffffffffffff
push 0
mov eax, dword [edi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [edi + 8]
call ebx
xor eax, eax
mov ecx, 0x4384d4
lock xadd dword [ecx], eax
mov ecx, dword [edi + 4]
push 0
push ecx
test eax, eax
je 0x403165
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x40317b
push method.asio::execution_context::service.virtual_8
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esi + 0x60]
test edi, edi
je 0x403192
push dword [edi + 4]
call ebx
push 0xc
push edi
call fcn.0040fde6
add esp, 8
mov dword [esi + 0x60], 0
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4031ec
mov edx, ecx
nop dword [eax]
mov eax, dword [edx + 0x14]
mov dword [esi + 0x54], eax
test eax, eax
jne 0x4031bd
mov dword [esi + 0x58], eax
push 0
lea eax, [ebp - 0x18]
mov dword [edx + 0x14], 0
push eax
mov eax, dword [ecx + 0x18]
push ecx
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x436998
call eax
mov ecx, dword [esi + 0x54]
add esp, 0x10
mov edx, ecx
test ecx, ecx
jne 0x4031b0
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x403200
push eax
call ebx
mov edi, dword [esi + 0x2c]
test edi, edi
je 0x403217
push dword [edi + 4]
call ebx
push 0xc
push edi
call fcn.0040fde6
add esp, 8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x403221
push eax
call ebx
mov dword [esi], vtable.asio::execution_context::service.0
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.0040f853
mov esp, ebp
pop ebp
ret
Function at 0x403620
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428845
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4360e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x18]
xor edx, edx
lock xadd dword [eax], edx
test edx, edx
jne 0x403676
call fcn.004037b0
mov dword [ebx], 0
xor eax, eax
mov dword [ebx + 4], 0x436998
jmp 0x403755
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push eax
call fcn.0040ede3
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
add esp, 4
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x54], xmm0
movups xmmword [ebp - 0x44], xmm0
mov ecx, esi
mov dword [ebp - 4], 0
push dword [0x43872c]
neg ecx
movq qword [ebp - 0x20], xmm0
lea eax, [esi + 0x14]
mov dword [ebp - 0x18], 0
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x43872c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
push ecx
mov ecx, esi
xor edi, edi
call fcn.00403a00
test eax, eax
je 0x40371c
nop
cmp edi, 0xffffffff
lea eax, [edi + 1]
push ebx
cmove eax, edi
mov edi, eax
lea eax, [ebp - 0x54]
push eax
push ecx
mov ecx, esi
call fcn.00403a00
test eax, eax
jne 0x403700
push dword [ebp - 0x18]
push dword [0x43872c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
nop dword [eax]
mov eax, dword [ebp + esi*4 - 0x54]
test eax, eax
je 0x403741
push eax
call fcn.0040fde1
add esp, 4
inc esi
cmp esi, 0xa
jl 0x403730
lea eax, [ebp - 0x28]
push eax
call fcn.0040eece
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f853
mov esp, ebp
pop ebp
ret 4
Function at 0x4044e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4360e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x14], edx
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0xffffffff
je 0x404662
cmp byte [ebp + 8], 0
je 0x404547
mov al, byte [edx]
test al, 8
je 0x404547
or al, 8
mov dword [ebp - 0xc], 0x436998
push 4
mov byte [edx], al
xor ecx, ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], ecx
push eax
push 0x80
push 0xffff
push ebx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0x10]
setne dl
call fcn.004043e0
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
mov ecx, edi
test esi, esi
setne dl
call fcn.004043e0
test esi, esi
je 0x40464f
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx]
mov ecx, dword [0x4384c8]
mov dword [ebp - 8], edx
cmp ecx, dword [edx + 4]
jle 0x4045b9
push 0x4384c8
call fcn.0040f975
mov ecx, dword [0x4384c8]
add esp, 4
cmp ecx, 0xffffffff
jne 0x4045b6
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
mov ecx, dword [0x4384c8]
add esp, 4
mov edx, dword [ebp - 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [0x4369ac]
jne 0x4045cf
cmp dword [edi], 0x2733
je 0x40461d
cmp ecx, dword [edx + 4]
jle 0x404607
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], 0xffffffff
jne 0x404607
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [0x4369ac]
jne 0x40464f
cmp dword [edi], 0x4d5
jne 0x40464f
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 0x14]
push ebx
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
mov ecx, edi
test esi, esi
setne dl
call fcn.004043e0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f853
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f853
mov esp, ebp
pop ebp
ret

Function at 0x404680
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
cmp ecx, 0xffffffff
jne 0x4046e6
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4384c8]
cmp eax, dword [ecx + 4]
jle 0x4046cf
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], 0xffffffff
jne 0x4046cf
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x2719
mov dword [eax + 4], 0x4369a8
or eax, 0xffffffff
pop esi
pop ecx
pop ebp
ret
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
setne dl
call fcn.004043e0
mov eax, esi
pop esi
pop ecx
pop ebp
ret
Function at 0x404710
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov edi, dword fs:[0x2c]
mov eax, dword [esi]
cmp eax, 0x4cf
jg 0x404819
je 0x4047d3
cmp eax, 0x79
je 0x40478a
cmp eax, 0x4c9
jne 0x404871
mov ecx, dword [edi]
mov eax, dword [0x4384c8]
cmp eax, dword [ecx + 4]
jle 0x404780
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], 0xffffffff
jne 0x404780
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
mov eax, 0x274d
jmp 0x404868
mov ecx, dword [edi]
mov eax, dword [0x4384c8]
cmp eax, dword [ecx + 4]
jle 0x4047c9
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], 0xffffffff
jne 0x4047c9
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
mov eax, 0x274c
jmp 0x404868
mov ecx, dword [edi]
mov eax, dword [0x4384c8]
cmp eax, dword [ecx + 4]
jle 0x404812
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], 0xffffffff
jne 0x404812
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
mov eax, 0x2743
jmp 0x404868
cmp eax, 0x4d0
jne 0x4048c5
mov ecx, dword [edi]
mov eax, dword [0x4384c8]
cmp eax, dword [ecx + 4]
jle 0x404863
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], 0xffffffff
jne 0x404863
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
mov eax, 0x2751
mov dword [esi + 4], 0x4369a8
mov dword [esi], eax
test eax, eax
jne 0x4048c5
cmp ebx, 0xffffffff
jne 0x4048c9
mov ecx, dword [edi]
mov eax, dword [0x4384c8]
cmp eax, dword [ecx + 4]
jle 0x4048b8
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], ebx
jne 0x4048b8
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
mov dword [esi], 0x2719
mov dword [esi + 4], 0x4369a8
pop edi
pop esi
pop ebx
ret
push 0
push 0
push 0x7010
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
pop edi
test eax, eax
mov ecx, esi
pop esi
setne dl
pop ebx
jmp fcn.004043e0

Function at 0x404d20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, edx
push edi
cmp ecx, 0xffffffff
jne 0x404d8a
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4384c8]
cmp eax, dword [ecx + 4]
jle 0x404d72
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], 0xffffffff
jne 0x404d72
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x2719
mov dword [eax + 4], 0x4369a8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
mov ebx, dword [ebp + 0xc]
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.004043e0
test edi, edi
js 0x404dc5
cmp dword [ebx], 0
mov cl, byte [esi]
je 0x404dc0
or cl, 1
mov eax, edi
mov byte [esi], cl
pop edi
pop esi
pop ebx
pop ebp
ret
and cl, 0xfc
mov byte [esi], cl
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4056b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4360e4]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push 0
push 0
lea eax, [esp + 0x17]
mov byte [esp + 0x17], 0
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 1
push eax
push dword [ecx + 4]
mov dword [esp + 0x2c], 0
call dword [sym.imp.WS2_32.dll_WSASend]
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x4384c8]
cmp eax, dword [esi + 4]
jle 0x405742
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], 0xffffffff
jne 0x405742
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 8], 0x4369a8
cmp eax, 0x40
je 0x40575c
cmp eax, 0x4d2
jne 0x405799
mov eax, dword [0x4384c8]
cmp eax, dword [esi + 4]
jle 0x405799
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], 0xffffffff
jne 0x405799
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.0040f853
mov esp, ebp
pop ebp
ret
Function at 0x4057b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x4360e4]
xor eax, esp
mov dword [esp + 0x420], eax
lea eax, [esp + 0x1c]
mov dword [esp + 8], ecx
push ebx
mov dword [esp + 0x1c], eax
mov eax, dword fs:[0x2c]
push esi
push edi
mov dword [esp + 0x20], 0x400
mov ebx, dword [eax]
nop dword [eax]
push 0
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 0
push eax
push 1
lea eax, [esp + 0x34]
push eax
push dword [ecx]
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ecx, dword [0x4384c8]
mov dword [esp + 0x10], eax
cmp ecx, dword [ebx + 4]
jle 0x40585f
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], 0xffffffff
jne 0x40585f
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov edi, 0x4369a8
cmp esi, 0x40
jne 0x4058bc
mov eax, dword [0x4384c8]
cmp eax, dword [ebx + 4]
jle 0x4058ae
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], 0xffffffff
jne 0x4058ae
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
mov edi, 0x4369a8
mov esi, 0x2746
mov eax, edi
jmp 0x405924
cmp esi, 0x4d2
jne 0x40590f
mov eax, dword [0x4384c8]
cmp eax, dword [ebx + 4]
jle 0x405901
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], 0xffffffff
jne 0x405901
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
mov edi, 0x4369a8
mov esi, 0x274d
mov eax, edi
jmp 0x405924
cmp esi, 0x2738
je 0x40592d
mov eax, 0x4369a8
cmp esi, 0xea
je 0x40592d
cmp dword [esp + 0x10], 0
jne 0x405957
jmp 0x405932
mov eax, 0x4369a8
mov ecx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, 0x400
je 0x4057f0
test eax, eax
jg 0x405a0e
je 0x4059f7
mov eax, dword [0x4384c8]
cmp eax, dword [ebx + 4]
jle 0x405994
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], 0xffffffff
jne 0x405994
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
mov eax, dword [edi + 4]
cmp eax, dword [0x4369ac]
jne 0x4059a7
cmp esi, 0x2733
je 0x405a0e
mov eax, dword [0x4384c8]
cmp eax, dword [ebx + 4]
jle 0x4059e4
push 0x4384c8
call fcn.0040f975
add esp, 4
cmp dword [0x4384c8], 0xffffffff
jne 0x4059e4
push 0x429950
call fcn.0040fdcc
add esp, 4
push 0x4384c8
call fcn.0040f92b
add esp, 4
mov eax, dword [edi + 4]
cmp eax, dword [0x4369ac]
jne 0x4059f7
cmp esi, 0x4d5
je 0x405a0e
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0040f853
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x42c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040f853
mov esp, ebp
pop ebp
ret
Function at 0x4069e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428b3d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4360e4]
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 dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
cmp dword [eax], 0xffffffff
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
je 0x406a92
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4384d0]
cmp eax, dword [ecx + 4]
jle 0x406a73
push 0x4384d0
call fcn.0040f975
add esp, 4
cmp dword [0x4384d0], 0xffffffff
jne 0x406a73
push 0x429960
call fcn.0040fdcc
add esp, 4
push 0x4384d0
call fcn.0040f92b
add esp, 4
mov dword [edi], 1
mov dword [edi + 4], 0x4369a0
mov dword [esi], 1
mov dword [esi + 4], 0x4369a0
jmp 0x406b57
push 1
push 0
push 0
push ebx
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
mov ecx, edi
cmp ebx, 0xffffffff
sete dl
call fcn.004043e0
cmp ebx, 0xffffffff
jne 0x406ab9
or ebx, ebx
jmp 0x406ad7
cmp dword [ebp - 0x18], 0x17
jne 0x406ad7
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x1b
push 0x29
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x406af0
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
jmp 0x406b4d
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x2c]
push edi
push ebx
push eax
mov ecx, dword [ecx + 4]
call fcn.00403590
cmp dword [eax], 0
jne 0x406ae6
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0xffffffff
mov dword [eax], ebx
sub ecx, 1
je 0x406b2b
sub ecx, 1
je 0x406b25
mov byte [eax + 4], 0
jmp 0x406b2f
mov byte [eax + 4], 0x20
jmp 0x406b2f
mov byte [eax + 4], 0x10
push dword [ebp - 0x1c]
push ecx
lea ecx, [eax + 8]
call fcn.00409c10
xor eax, eax
mov dword [edi + 4], 0x436998
mov dword [edi], eax
mov dword [esi + 4], 0x436998
lea ecx, [ebp - 0x18]
mov dword [esi], eax
call fcn.00405050
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.0040f853
mov esp, ebp
pop ebp
ret 0x18