joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402061
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push 0x34
push 0x47b1e0
call fcn.00439940
or dword [ebp - 0x20], 0xffffffff
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x44], edx
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], edx
mov esi, dword [ebp + 8]
cmp esi, edx
jne 0x4020a1
cmp dword [ebp + 0xc], edx
jne 0x4020a1
mov dword [ebp - 0x20], reloc.OLEAUT32.dll_SysStringLen
jmp 0x4021da
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov ecx, dword [esi + 0x3c]
add ecx, esi
mov edx, dword [ecx + 0x50]
mov ebx, dword [ecx + 0x34]
mov edi, dword [0x4eb194]
lea edi, [edi + 0x4eb158]
mov ecx, dword [edi + 0x50]
lea eax, [eax + eax*2]
add eax, edx
lea esi, [eax + ecx + 4]
push 0x1c
lea eax, [ebp - 0x44]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4021da
cmp dword [ebp - 0x34], 0x10000
jne 0x402103
cmp esi, dword [ebp - 0x38]
jae 0x402103
push 0x40
push 0x1000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40212c
push 0x40
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x40212c
mov dword [ebp - 0x20], 0x80000046
jmp 0x4021da
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x4eb158
push dword [ebp + 8]
push esi
push dword [ebp - 0x1c]
call fcn.00401dce
add esp, 0x1c
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4021da
cmp dword [ebp - 0x1c], ebx
je 0x402170
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00401a4e
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4021da
mov esi, dword [ebp - 0x24]
push esi
call fcn.004019bd
pop ecx
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4021da
push esi
push eax
push esi
call fcn.00401a4e
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4021da
mov eax, dword [edi + 0x28]
add eax, esi
test dword [ebp + 0x10], 0x40000000
je 0x4021c8
lea ecx, [ebp - 0x28]
push ecx
xor esi, esi
push esi
push dword [ebp - 0x1c]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 0x14]
cmp ecx, esi
je 0x4021bf
mov dword [ecx], eax
jmp 0x4021da
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4021da
push dword [ebp - 0x1c]
call eax
jmp 0x4021da
mov dword [ebp - 4], 0xfffffffe
xor esi, esi
cmp dword [ebp - 0x20], esi
je 0x4021ff
cmp dword [ebp - 0x1c], esi
je 0x4021ff
push 0x10000
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
call fcn.00439986
ret 0x10
Function at 0x407380
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455710
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ec560]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
lea eax, [edi + 4]
xorps xmm0, xmm0
mov dword [edi], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [ebx + 4]
push eax
call sub.VCRUNTIME140.dll___std_exception_copy
add esp, 8
mov dword [edi], vtable.boost::system::system_error.0
lea ecx, [edi + 0x14]
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
lea eax, [ebx + 0x14]
push eax
mov dword [ebp - 4], 0
call fcn.00404740
lea esi, [edi + 0x2c]
mov dword [ebp - 4], 1
mov dword [esi], vtable.boost::exception.0
mov ecx, dword [ebx + 0x30]
mov dword [ebp + 8], esi
mov dword [esi + 4], ecx
test ecx, ecx
je 0x407412
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x34]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x38]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x3c]
mov dword [esi + 0x10], eax
mov eax, edi
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455398
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ec560]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
lea eax, [edi + 4]
push eax
mov dword [edi], vtable.std::exception.0
movq qword [eax], xmm0
lea eax, [esi + 4]
push eax
call sub.VCRUNTIME140.dll___std_exception_copy
add esp, 8
mov dword [edi], vtable.boost::system::system_error.0
lea ecx, [edi + 0x14]
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea eax, [esi + 0x14]
push eax
mov dword [ebp - 4], 0
call fcn.00404740
mov dword [edi + 0x2c], vtable.boost::exception.0
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4080b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4553c8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ec560]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
lea eax, [edi + 4]
push eax
mov dword [edi], vtable.std::exception.0
movq qword [eax], xmm0
lea eax, [esi + 4]
push eax
call sub.VCRUNTIME140.dll___std_exception_copy
add esp, 8
mov dword [edi], vtable.boost::system::system_error.0
lea ecx, [edi + 0x14]
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea eax, [esi + 0x14]
push eax
mov dword [ebp - 4], 0
call fcn.00404740
mov dword [edi + 0x2c], vtable.boost::exception.0
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408ac0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455740
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ec560]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 8]
lea eax, [esi + 4]
xorps xmm0, xmm0
mov dword [esi], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [ebx + 4]
push eax
call sub.VCRUNTIME140.dll___std_exception_copy
add esp, 8
mov dword [esi], vtable.boost::system::system_error.0
lea ecx, [esi + 0x14]
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
lea eax, [ebx + 0x14]
push eax
mov dword [ebp - 4], 0
call fcn.00404740
mov dword [esi], vtable.boost::thread_resource_error.0
lea edi, [esi + 0x2c]
mov dword [ebp - 4], 1
mov dword [edi], vtable.boost::exception.0
mov ecx, dword [ebx + 0x30]
mov dword [ebp + 8], edi
mov dword [edi + 4], ecx
test ecx, ecx
je 0x408b58
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x34]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x38]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x3c]
mov dword [edi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408d30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4557f4
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4ec560]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], edi
mov dword [edi], vtable.boost::detail::thread_data_base.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea esi, [edi + 0x14]
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040c7a0
mov dword [esi], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
push 0
push 0
push 1
push 0
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
je 0x408e0b
mov dword [edi + 0x34], eax
mov eax, edi
mov byte [edi + 0x38], 1
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.004385c0
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x3c]
call fcn.00408f40
push eax
mov byte [ebp - 4], 4
call fcn.00408870
int3
Function at 0x418700
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4ec560]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ecx, dword [edx]
mov eax, dword [edx + 4]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x118], ecx
mov ecx, eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x114], ecx
mov ebx, dword [edi]
mov al, byte [edi + 4]
mov byte [ebp - 0x109], al
mov dword [ebp - 0x110], ebx
cmp ebx, 0xffffffff
jne 0x418771
call fcn.0044b890
mov dword [esi], 0x2719
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004385c0
mov esp, ebp
pop ebp
ret 0x10
test ecx, ecx
jne 0x418786
test al, 0x10
je 0x418786
call fcn.0044b890
mov dword [esi], 0
jmp 0x418759
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x11c]
push 1
push eax
push ebx
call fcn.0041ea90
add esp, 0x14
test eax, eax
jns 0x41875e
mov cl, byte [ebp - 0x109]
and cl, 1
mov byte [ebp - 0x109], cl
nop
test cl, cl
jne 0x41875c
call fcn.0044b890
cmp dword [esi + 4], eax
jne 0x4187c6
cmp dword [esi], 0x2733
je 0x4187d8
call fcn.0044b890
cmp dword [esi + 4], eax
jne 0x41875c
cmp dword [esi], 0x4d5
jne 0x41875c
push 0
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
lea eax, [ebx + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.0044b890
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jne 0x41882b
call fcn.0044b890
mov dword [esi], ebx
mov dword [esi + 4], eax
jmp 0x418843
jle 0x41883b
call fcn.0044b890
mov dword [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
js 0x41875c
mov ebx, dword [ebp - 0x110]
lea eax, [ebp - 0x11c]
push esi
push dword [ebp + 0x10]
push 1
push eax
push ebx
call fcn.0041ea90
mov cl, byte [ebp - 0x109]
add esp, 0x14
test eax, eax
js 0x4187b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004385c0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x418c50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457994
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ec560]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov eax, dword [ebp + 8]
lea ebx, [esi + 0x3c]
mov dword [esi], vtable.boost::asio::basic_streambuf_class_std::allocator_char__.0
mov dword [esi + 0x38], eax
mov dword [ebp - 4], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov edi, dword [esi + 0x38]
mov byte [ebp - 4], 1
cmp edi, 0x80
jbe 0x418cc1
mov edi, 0x80
jmp 0x418ccb
mov eax, 1
cmp edi, 1
jb 0x418ccd
mov eax, edi
push ebx
push eax
mov ecx, ebx
call fcn.00416f00
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x419120
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457b61
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x4ec560]
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 dword [ebp - 0x1ac], edi
mov dword [ebp - 0x1b0], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1b4], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi], vtable.boost::asio::detail::service_base_class_boost::asio::detail::resolver_service_class_boost::asio::ip::tcp__.0
lea ebx, [edi + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1b0], ebx
lea ecx, [ebx + 4]
mov eax, dword [eax + 8]
mov dword [ebx], eax
call fcn.0041cca0
mov esi, eax
call fcn.0044b890
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1a4], eax
test esi, esi
jne 0x4192b7
push 0xc
mov byte [ebp - 4], 1
call sub.mfc140.dll_Ordinal_1507
mov esi, eax
add esp, 4
mov dword [ebp - 0x1b8], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x41926d
mov ecx, esi
call fcn.00419310
mov byte [ebp - 4], 3
mov eax, 1
lock xadd dword [0x4ee52c], eax
inc eax
mov edi, 0x4ee530
cmp eax, 1
jne 0x419211
lea eax, [ebp - 0x1a0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [edi], eax
xor edi, edi
mov eax, 0x4ee530
lock xadd dword [eax], edi
test edi, edi
jne 0x4192c8
push 0x60
mov byte [ebp - 4], 4
call sub.mfc140.dll_Ordinal_1507
add esp, 4
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x41924e
push 0xffffffffffffffff
push esi
mov ecx, eax
call fcn.00419600
mov edi, eax
jmp 0x419250
xor edi, edi
mov dword [ebp - 0x1a4], edi
mov ecx, dword [esi]
push edi
mov byte [ebp - 4], 6
call fcn.00417230
mov dword [esi + 8], edi
mov edi, dword [ebp - 0x1ac]
jmp 0x41926f
xor esi, esi
mov dword [ebx + 0x1c], esi
mov ecx, esi
mov eax, dword [esi + 8]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], ecx
mov byte [ebx + 0x28], 1
mov ecx, dword [ecx + 8]
add ecx, 0x18
lock inc dword [ecx]
mov dword [ebx + 0x2c], 0
mov eax, edi
mov dword [edi], vtable.boost::asio::detail::resolver_service_class_boost::asio::ip::tcp_.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.004385c0
mov esp, ebp
pop ebp
ret 4
push str.mutex
lea eax, [ebp - 0x1a8]
push eax
call fcn.0040d260
call fcn.0044b890
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x1a8]
push str.winsock
push eax
mov dword [ebp - 0x1a8], edi
call fcn.0040d260
int3
Function at 0x419600
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457c11
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4ec560]
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 dword [ebp - 0xb0], edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xb8], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi], vtable.boost::asio::detail::win_iocp_io_context.0
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 0
push 0x94
lea eax, [ebp - 0xa4]
mov dword [edi + 0x18], 0
push 0
push eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xac], 0x9c
mov dword [ebp - 0xa8], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
neg eax
sbb eax, eax
and eax, 0xfffffe0b
add eax, 0x1f4
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 3
mov dword [edi + 0x34], 0
call fcn.0041cca0
mov esi, eax
call fcn.0044b890
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], eax
test esi, esi
jne 0x419783
mov dword [edi + 0x50], esi
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
or eax, 0xffffffff
mov byte [ebp - 4], 5
test ebx, ebx
mov dword [edi + 0x5c], ebx
cmovns eax, ebx
push eax
push esi
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x419763
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0xb4], esi
call fcn.0044b890
mov dword [ebp - 0xb0], eax
test esi, esi
jne 0x419794
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 - 0x10]
xor ecx, ebp
call fcn.004385c0
mov esp, ebp
pop ebp
ret 8
push str.mutex
lea eax, [ebp - 0xb4]
push eax
call fcn.0040d260
push str.iocp
lea eax, [ebp - 0xb4]
push eax
call fcn.0040d260
int3
Function at 0x41c910
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x41c932
call fcn.0044b890
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], eax
or eax, esi
mov dword [ecx], 0x2719
pop esi
pop ebp
ret
push ebx
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call fcn.0044b890
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [ebp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x41c96e
call fcn.0044b890
mov dword [edi], ebx
mov dword [edi + 4], eax
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x41d620
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x4ee6e8
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
push 0
push ecx
test eax, eax
je 0x41d66e
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov esp, ebp
pop ebp
ret
push 0x41ace0
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
push 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.0044b890
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
mov dword [edi + 4], esi
cmp eax, 0x40
jne 0x41e3d5
call fcn.0044b890
mov dword [edi], 0x2746
mov dword [edi + 4], eax
jmp 0x41e400
cmp eax, 0x4d2
jne 0x41e3ec
call fcn.0044b890
mov dword [edi], 0x274d
mov dword [edi + 4], eax
jmp 0x41e400
cmp eax, 0x2738
je 0x41e3fa
cmp eax, 0xea
jne 0x41e400
mov dword [edi], 0
test ebx, ebx
je 0x41e40e
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0044b890
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e960
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458460
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x4ec560]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x14], 0
call fcn.0044b890
mov edi, dword [esi + 8]
xor edx, edx
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x18]
lock xadd dword [eax], edx
test edx, edx
jne 0x41e9c2
mov ecx, edi
call fcn.0041f0f0
xor esi, esi
call fcn.0044b890
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
jmp 0x41ea6f
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push dword [0x4ee594]
mov ecx, edi
mov dword [ebp - 4], 0
neg ecx
lea eax, [edi + 0x14]
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4ee594]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 0xffffffffffffffff
mov ecx, edi
xor esi, esi
call fcn.0041cd60
test eax, eax
je 0x41ea3d
cmp esi, 0xffffffff
lea eax, [esi + 1]
mov ecx, edi
cmove eax, esi
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
call fcn.0041cd60
test eax, eax
jne 0x41ea21
push dword [ebp - 0x20]
push dword [0x4ee594]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov eax, dword [ebp + esi*4 - 0x1c]
test eax, eax
je 0x41ea66
push eax
call sub.mfc140.dll_Ordinal_1509
add esp, 4
inc esi
cmp esi, 2
jl 0x41ea55
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x41ea84
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
call fcn.0041d130
int3