joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419b80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459d88
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x476458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x47b338]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
cmp eax, esi
je 0x419bc6
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x419c05
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x419bb8
lea eax, [ebp + 0x14]
push eax
mov ebx, 0x3c
call fcn.0041a5d0
add esp, 4
cmp eax, esi
je 0x419c40
mov dword [eax + 0x14], esi
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], esi
lea edi, [eax + 0x20]
mov ecx, 7
lea esi, [ebp + 0xc]
mov dword [eax + 0x18], 0x419da0
rep movsd dword es:[edi], dword [esi]
jmp 0x419c42
cmp dword [eax + 4], esi
je 0x419bc6
push esi
lea ecx, [ebp + 0xb]
call fcn.0041a640
lea edx, [ebp + 0xc]
push edx
mov eax, edx
mov dword [ebp - 4], esi
call fcn.00419f40
add esp, 4
lea ecx, [ebp + 0xb]
call fcn.0041a630
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
xor eax, eax
mov edi, eax
mov eax, dword [ebp + 8]
call fcn.0041c320
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x419fc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459d30
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x476458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x47b318]
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41a00b
mov edi, edi
cmp dword [eax], esi
je 0x41a05a
mov eax, dword [eax + 8]
test eax, eax
jne 0x41a000
lea eax, [ebp + 0x10]
mov ecx, eax
push ecx
mov ebx, 0x50
mov dword [ebp - 0x2c], eax
call fcn.0041a5d0
add esp, 4
xor ebx, ebx
mov dword [ebp - 4], 1
cmp eax, ebx
je 0x41a0a7
lea edi, [eax + 0x20]
mov ecx, 0xc
lea esi, [ebp + 0x10]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], fcn.0041a150
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x1c], ebx
rep movsd dword es:[edi], dword [esi]
mov esi, eax
jmp 0x41a0a9
cmp dword [eax + 4], 0
je 0x41a00b
push 0
lea ecx, [ebp + 0xf]
call fcn.0041a640
lea edx, [ebp + 0x10]
push edx
sub esp, 0x30
mov esi, edx
mov dword [ebp - 4], 0
mov ecx, 0xc
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0041a240
add esp, 0x34
lea ecx, [ebp + 0xf]
call fcn.0041a630
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
xor esi, esi
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push edi
call fcn.0041a4a0
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
cmp al, bl
je 0x41a12f
mov edx, dword [ebp + 0xc]
mov ecx, dword [0x47b318]
mov eax, dword [edx]
push ecx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x47b318]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, edx
push eax
push ecx
mov dword [ebp - 0x1c], edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 3
call fcn.00453d00
mov eax, dword [edi + 0x14]
push ebx
lea edx, [ebp + 0x38]
push edx
push esi
push eax
call fcn.0041a150
add esp, 0x10
lea esi, [ebp - 0x14]
call fcn.0041a430
mov ecx, dword [ebp - 0x18]
mov edx, dword [0x47b318]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
Function at 0x41a280
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x476458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x47b318]
mov esi, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41a2cf
lea esp, [esp]
cmp dword [eax], esi
je 0x41a3c2
mov eax, dword [eax + 8]
test eax, eax
jne 0x41a2c0
lea eax, [ebp + 0xc]
mov ecx, eax
push ecx
mov ebx, 0x34
mov dword [ebp - 0x2c], eax
call fcn.0041a5d0
add esp, 4
xor esi, esi
mov dword [ebp - 4], 1
cmp eax, esi
je 0x41a32d
mov dword [eax + 0x14], esi
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0x18], fcn.00419cd0
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x20], edx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x28], edx
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp + 0x1c]
mov dword [eax + 0x30], edx
mov esi, eax
mov ebx, dword [ebp + 8]
push ebx
mov eax, edi
call fcn.0041a4a0
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
test al, al
je 0x41a3af
mov ecx, dword [0x47b318]
mov eax, dword [edi]
push ecx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x47b318]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, edx
push eax
push ecx
mov dword [ebp - 0x1c], edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [ebx + 0x14]
mov eax, dword [edi]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
call fcn.00453d00
mov edx, dword [ebx + 0x14]
push 0
lea ecx, [ebp + 0x18]
push ecx
push esi
push edx
call fcn.00419cd0
add esp, 0x10
lea esi, [ebp - 0x14]
call fcn.0041a430
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x47b318]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp dword [eax + 4], 0
je 0x41a2cf
push 0
lea ecx, [ebp + 0xb]
call fcn.0041a640
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x10]
sub esp, 0x14
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x18]
mov dword [eax + 8], edx
mov edx, dword [ebp + 0x1c]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
call fcn.00419fa0
add esp, 0x18
lea ecx, [ebp + 0xb]
call fcn.0041a630
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x41a4a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x47b338]
push ebx
push edi
mov edi, eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41a4cb
mov edi, edi
cmp dword [eax], ebx
je 0x41a4fd
mov eax, dword [eax + 8]
test eax, eax
jne 0x41a4c0
xor ebx, ebx
mov edx, dword [edi]
add edx, 0x20
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
je 0x41a502
mov eax, dword [edi]
cmp byte [eax + 0x38], 0
jne 0x41a502
mov byte [eax + 0x38], 1
mov eax, dword [edi]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov al, 1
pop ebx
pop ebp
ret 4
mov ebx, dword [eax + 4]
jmp 0x41a4cd
mov eax, dword [edi]
cmp byte [eax + 0x38], 0
je 0x41a54c
mov dword [esi + 0x14], 0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x41a532
mov dword [ecx + 0x14], esi
mov dword [eax + 0x40], esi
mov ecx, dword [edi]
add ecx, 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop ebx
pop ebp
ret 4
mov dword [eax + 0x3c], esi
mov dword [eax + 0x40], esi
mov ecx, dword [edi]
add ecx, 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop ebx
pop ebp
ret 4
mov byte [eax + 0x38], 1
mov edx, dword [edi]
add edx, 0x20
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi]
mov dword [esi + 0x14], 0
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x41a571
mov dword [ecx + 0x14], esi
jmp 0x41a574
mov dword [eax + 0x44], esi
mov dword [eax + 0x48], esi
mov eax, dword [ebp + 8]
mov edi, dword [edi]
mov eax, dword [eax + 0x14]
call fcn.0041c320
pop edi
xor al, al
pop ebx
pop ebp
ret 4

Function at 0x41a5d0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x47b338]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41a605
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41a605
mov eax, dword [ecx]
test eax, eax
je 0x41a605
mov dword [ecx], 0
mov cl, byte [eax]
movzx edx, cl
cmp edx, ebx
jae 0x41a622
push eax
call fcn.004410cb
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.00441178
add esp, 4
cmp ebx, 0xff
ja 0x41a620
movzx ecx, bl
mov byte [eax + ebx], cl
ret
xor ecx, ecx
mov byte [eax + ebx], cl
ret
Function at 0x41a960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c128
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x476458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.00440cd0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.00402c70
mov dword [esi + 0x30], vtable.boost::exception.0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
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 4

Function at 0x41ae00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ae30
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x476458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.00440cd0
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], 0
call fcn.00402c70
mov dword [esi], vtable.boost::lock_error.0
mov dword [ebp - 4], 1
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x41ae92
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41bce0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e730
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x476458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x41bd40
mov eax, esi
call fcn.0041c5b0
xor esi, esi
call fcn.00453d00
mov dword [edi + 4], eax
mov dword [edi], esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov edx, dword [0x47b338]
lea ecx, [ebp - 0x10]
push edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x47b338]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0041ba60
test eax, eax
je 0x41bd92
cmp ebx, 0xffffffff
je 0x41bd86
inc ebx
push edi
mov ecx, esi
call fcn.0041ba60
test eax, eax
jne 0x41bd80
mov edx, dword [ebp - 0x14]
mov eax, dword [0x47b338]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41bdb2
push eax
call fcn.004410cb
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41cb60
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
push 0
lea edx, [ebp - 8]
push edx
push 2
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x47b310
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
test eax, eax
je 0x41cbad
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
push edx
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret
Function at 0x41cee0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45dfdf
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x476458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
lea eax, [esi + 0x34]
mov byte [ebp - 4], 3
push eax
mov dword [esi + 0x30], edi
call fcn.0041ce00
mov ebx, eax
call fcn.00453d00
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
cmp ebx, edi
je 0x41cf69
lea ecx, [ebp - 0x18]
push ecx
mov ecx, str.mutex
call fcn.0040c3f0
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
or ecx, 0xffffffff
mov byte [ebp - 4], 5
mov dword [ebp + 0xc], ecx
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x10], ecx
ja 0x41cf87
lea eax, [ebp + 0x10]
mov edx, dword [eax]
push edx
push edi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
cmp eax, edi
jne 0x41cfbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x18], ebx
call fcn.00453d00
mov dword [ebp - 0x14], eax
cmp ebx, edi
je 0x41cfbf
lea eax, [ebp - 0x18]
push eax
mov ecx, str.iocp
call fcn.0040c3f0
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 0xc

Function at 0x41da50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45df7b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x476458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
push 0x41e880
lea ecx, [ebp - 0x14]
xor ebx, ebx
push ecx
mov dword [ebp - 0x14], 0x478b70
mov dword [ebp - 0x10], ebx
call fcn.0041c0f0
mov edi, dword [ebp + 8]
mov dword [edi], eax
lea esi, [edi + 4]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], 2
mov byte [esi + 0x20], bl
xor eax, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x24], 2
mov dword [esi + 0x28], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [edi]
add ebx, 0x14
call fcn.0041ffc0
mov eax, edi
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 0x4201b0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x476458]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x4201ee
mov edi, 0x2719
call fcn.00453d00
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440ba3
mov esp, ebp
pop ebp
ret
mov eax, 1
push 0
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
push edi
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.00453d00
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
js 0x420250
xor edi, edi
call fcn.00453d00
mov dword [esi], edi
mov dword [esi + 4], eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00440ba3
mov esp, ebp
pop ebp
ret

Function at 0x4202f0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, eax
cmp edi, 0xffffffff
jne 0x420314
mov ebx, 0x2719
call fcn.00453d00
mov dword [esi], ebx
mov dword [esi + 4], eax
jmp 0x420350
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
call fcn.00453d00
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], ebx
test edi, edi
jne 0x42034d
call fcn.00453d00
mov dword [esi], edi
mov dword [esi + 4], eax
mov edi, dword [ebp + 8]
call fcn.00453d00
cmp dword [esi + 4], eax
jne 0x420362
cmp dword [esi], 0x2734
je 0x420374
call fcn.00453d00
cmp dword [esi + 4], eax
jne 0x4203b0
cmp dword [esi], 0x2733
jne 0x4203b0
mov ecx, edi
call fcn.004201b0
test eax, eax
js 0x4203b0
lea edx, [ebp - 4]
push edx
lea eax, [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp + 8], 4
call fcn.00420270
add esp, 4
cmp eax, 0xffffffff
je 0x4203b0
call fcn.00453d00
mov ecx, dword [ebp - 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4208f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [esi + 4], edi
test edi, edi
jne 0x420947
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov dword [esp + 0x10], ebx
call fcn.00453d00
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x420947
lea eax, [esp + 0x10]
push eax
mov ecx, str.thread.entry_event
call fcn.0040c3f0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], eax
mov dword [esi + 8], eax
cmp dword [ebx + 8], 0
jne 0x420999
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov dword [esp + 0x10], ebx
call fcn.00453d00
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x420996
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.thread.exit_event
call fcn.0040c3f0
mov ebx, dword [ebp + 8]
lea edx, [esp + 0xc]
push edx
push 0
push esi
push 0x420840
push 0
push 0
mov dword [esp + 0x24], 0
call fcn.00442a86
add esp, 0x18
mov dword [ebx + 4], eax
test eax, eax
jne 0x420a12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
test edi, edi
je 0x4209e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4209ee
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x10], esi
call fcn.00453d00
mov dword [esp + 0x14], eax
test esi, esi
je 0x420a12
lea eax, [esp + 0x10]
push eax
mov ecx, str.thread
call fcn.0040c3f0
test edi, edi
je 0x420a26
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x420e60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45efc8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x476458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov byte [ebp - 0x11], al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
add edi, 0x38
lea esi, [eax + 4]
nop
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
lea ebx, [ebp - 0x1c]
mov ecx, edi
call fcn.00420da0
test al, al
jne 0x420ebd
cmp byte [ebp - 0x11], al
mov byte [ebp - 0x11], al
je 0x420ec1
mov byte [ebp - 0x11], 1
add edi, 0x24
dec esi
jne 0x420ea0
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0x14]
lea ebx, [ebp - 0x1c]
call fcn.00411bd0
xor ebx, ebx
cmp byte [ebp - 0x11], bl
je 0x420f39
lea ecx, [ebp + 0xb]
mov byte [ebp + 0xb], bl
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 1
call fcn.00453d00
mov esi, dword [esi + 0x34]
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
push ebx
lea edx, [ebp + 0x10]
push edx
push 1
lea eax, [ebp - 0x24]
push eax
push esi
mov dword [ebp + 0x10], ebx
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call fcn.00453d00
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x420f2b
cmp eax, 0x4d2
jne 0x420f30
call fcn.00453d00
cmp esi, ebx
jne 0x420f39
call fcn.00453d00
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
mov edi, esi
cmp esi, ebx
je 0x420f70
lea eax, [esi + 0x14]
mov esi, dword [eax]
mov dword [eax], ebx
mov dword [ebp - 0x24], ebx
call fcn.00453d00
mov edx, dword [edi + 0x18]
push ebx
lea ecx, [ebp - 0x24]
push ecx
push edi
push ebx
mov dword [ebp - 0x20], eax
call edx
add esp, 0x10
mov edi, esi
cmp esi, ebx
jne 0x420f49
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