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

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x24]
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
push eax
push ecx
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.0047ec30
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [esp + 0x28]
mov dword [esi], eax
mov dword [esi + 4], edi
cmp eax, 0x40
jne 0x451df5
mov edi, 0x2746
jmp 0x451e01
cmp eax, 0x4d2
jne 0x451e0b
mov edi, 0x274d
call fcn.0047ec30
mov dword [esi + 4], eax
mov dword [esi], edi
test ebx, ebx
je 0x451e19
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
xor edi, edi
call fcn.0047ec30
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
mov eax, dword [esp + 8]
pop esi
pop ebx
add esp, 8
ret

Function at 0x451f30
Capabilities:
Set socket configuration

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 1
push 0
push 0
push eax
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
call fcn.0047ec30
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [esp + 0x20]
mov dword [esi], eax
mov dword [esi + 4], ebx
cmp edi, 0xffffffff
jne 0x451f7b
or eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x17
jne 0x451f9a
push 4
lea edx, [esp + 0x24]
push edx
push 0x1b
push 0x29
push edi
mov dword [esp + 0x34], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
xor ebx, ebx
call fcn.0047ec30
mov dword [esi + 4], eax
mov eax, edi
pop edi
mov dword [esi], ebx
pop esi
pop ebp
pop ebx
ret

Function at 0x451fb0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp edi, 0xffffffff
jne 0x451fd3
mov esi, 0x2719
call fcn.0047ec30
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], eax
or eax, edi
pop edi
mov dword [ecx], esi
pop esi
ret
push ebx
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push edx
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov ebx, eax
mov eax, dword [esp + 0x10]
mov dword [esi], eax
call fcn.0047ec30
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [esp + 0x1c]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jne 0x452025
xor edi, edi
call fcn.0047ec30
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, ebx
pop ebx
pop edi
pop esi
ret
Function at 0x4520c0
Capabilities:
Get socket status

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
test edx, edx
jne 0x45212b
test edi, edi
jne 0x45212b
test esi, esi
jne 0x45212b
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x45214d
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
mov eax, 0x10624dd3
imul ecx, ecx, 0x3e8
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
jne 0x45210f
mov eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
call fcn.0047ec30
mov ecx, dword [esp + 0x20]
pop edi
mov dword [ecx], esi
mov dword [ecx + 4], eax
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x45214d
cmp dword [ecx], 0
jne 0x45214d
mov eax, dword [ecx + 4]
test eax, eax
jle 0x45214d
cmp eax, 0x3e8
jge 0x45214d
mov dword [ecx + 4], 0x3e8
push ebx
push ecx
push esi
push edi
push edx
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.0047ec30
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [esp + 0x24]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jl 0x452185
xor edi, edi
call fcn.0047ec30
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, ebx
pop ebx
pop edi
pop esi
ret

Function at 0x4522c0
Capabilities:
Resolve dns

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4522d2
cmp byte [edi], 0
jne 0x4522d4
xor edi, edi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4522e1
cmp byte [esi], 0
jne 0x4522e3
xor esi, esi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push esi
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
push eax
lea edx, [esp + 0xc]
push edx
call fcn.00452190
mov edx, dword [eax]
mov ecx, dword [esp + 0x30]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 4]
add esp, 8
pop edi
mov dword [ecx + 4], eax
mov dword [ecx], edx
mov eax, ecx
pop esi
add esp, 8
ret
Function at 0x453290
Capabilities:
Send data
Send data on socket

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [esp + 0x18], 0
je 0x4532bc
mov ecx, dword [esp + 0x1c]
push 0
push 0
push ecx
mov ecx, dword [edi + 4]
call fcn.00452f10
pop edi
ret 0x18
mov edx, dword [esp + 8]
mov eax, dword [edx]
cmp eax, 0xffffffff
jne 0x4532df
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 4]
push 0
push 0x2719
push eax
call fcn.00452f10
pop edi
ret 0x18
mov ecx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x24]
push 0
push esi
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
push ecx
push edx
push eax
mov dword [esp + 0x3c], 0
call dword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
jne 0x45331f
mov eax, 0x274d
test ebx, ebx
je 0x45333f
cmp eax, 0x3e5
je 0x45333f
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [edi + 4]
push eax
push esi
call fcn.00452f10
pop esi
pop ebx
pop edi
ret 0x18
mov ecx, dword [edi + 4]
push esi
call fcn.00452ea0
pop esi
pop ebx
pop edi
ret 0x18

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

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [esp + 0x18], 0
je 0x45337c
mov ecx, dword [esp + 0x1c]
push 0
push 0
push ecx
mov ecx, dword [edi + 4]
call fcn.00452f10
pop edi
ret 0x18
mov edx, dword [esp + 8]
mov eax, dword [edx]
cmp eax, 0xffffffff
jne 0x45339f
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 4]
push 0
push 0x2719
push eax
call fcn.00452f10
pop edi
ret 0x18
mov ecx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x24]
push 0
push esi
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ecx
push eax
mov dword [esp + 0x3c], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x4533e7
mov eax, 0x2746
jmp 0x4533f3
cmp eax, 0x4d2
jne 0x4533f3
mov eax, 0x274d
test ebx, ebx
je 0x453413
cmp eax, 0x3e5
je 0x453413
mov edx, dword [esp + 0x20]
mov ecx, dword [edi + 4]
push edx
push eax
push esi
call fcn.00452f10
pop esi
pop ebx
pop edi
ret 0x18
mov ecx, dword [edi + 4]
push esi
call fcn.00452ea0
pop esi
pop ebx
pop edi
ret 0x18
Function at 0x4557b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x49f9fb
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4c5cd8]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push esi
push edi
mov eax, dword [0x4c5cd8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov esi, ecx
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
xor ebx, ebx
mov dword [esi + 0x18], eax
push 0xffffffffffffffff
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], eax
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov dword [esp + 0x1c], esi
mov byte [ecx + 4], bl
call fcn.00402250
push 0xffffffffffffffff
lea ecx, [esi + 0x3c]
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edi
mov dword [esp + 0x2c], ebx
mov byte [ecx + 4], bl
call fcn.00402250
mov eax, dword [esp + 0x30]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
mov dword [esi + 0xc], 6
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00480438
add esp, 0x14
ret 0xc

Function at 0x4567b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49fc48
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4c5cd8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00402e20
mov dword [esp + 0x18], 0
test edi, edi
je 0x4567f4
add edi, 0x28
jmp 0x4567f6
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x45680e
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_std::logic_error_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_std::logic_error_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x456850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49fc78
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4c5cd8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00402e20
mov dword [esi], vtable.std::length_error.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x45689a
add edi, 0x28
jmp 0x45689c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x4568b4
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_std::length_error_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_std::length_error_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x457200
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49fe68
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4c5cd8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x44]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], esp
test ecx, ecx
je 0x457259
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov ecx, dword [esp + 0x48]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x34]
call fcn.00453ff0
mov esi, dword [esp + 0x34]
mov dword [esp + 0x14], 0xffffffff
test esi, esi
je 0x4572ad
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4572ad
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4572ad
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x45b770
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0
push 0
push 1
push 0
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, dword [esp + 0x20]
mov ebx, eax
mov dword [esi + 4], ebx
test ebx, ebx
jne 0x45b7ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov dword [esp + 0x14], edi
call fcn.0047ec30
neg edi
sbb edi, edi
mov dword [esp + 0x18], eax
test edi, fcn.004206b0
je 0x45b7ce
push str.thread.entry_event
lea eax, [esp + 0x18]
push eax
call fcn.0045a680
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp + 8], eax
mov dword [esi + 8], eax
cmp dword [ebp + 8], 0
jne 0x45b822
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov dword [esp + 0x14], edi
call fcn.0047ec30
neg edi
sbb edi, edi
mov dword [esp + 0x18], eax
test edi, fcn.004206b0
je 0x45b822
push str.thread.exit_event
lea ecx, [esp + 0x18]
push ecx
call fcn.0045a680
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x10]
push edx
push 0
push esi
push 0x451140
push eax
push 0
mov dword [esp + 0x28], 0
call fcn.004824e5
add esp, 0x18
mov dword [ebp + 4], eax
test eax, eax
jne 0x45b8a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
test ebx, ebx
je 0x45b86a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [ebp + 8]
test ebp, ebp
je 0x45b878
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], edi
call fcn.0047ec30
neg edi
sbb edi, edi
mov dword [esp + 0x18], eax
test edi, fcn.004206b0
je 0x45b8a0
push str.thread
lea ecx, [esp + 0x18]
push ecx
call fcn.0045a680
test ebx, ebx
je 0x45b8b4
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x45b8c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a048f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4c5cd8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [esp + 0x24], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x30]
mov byte [esp + 0x24], 3
mov dword [esi + 0x2c], ebx
call fcn.00451080
mov edi, eax
call fcn.0047ec30
mov dword [esp + 0x14], edi
neg edi
sbb edi, edi
mov dword [esp + 0x18], eax
test edi, fcn.004206b0
je 0x45b954
push str.mutex
lea ecx, [esp + 0x18]
push ecx
call fcn.0045a680
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
or ecx, 0xffffffff
mov byte [esp + 0x24], 5
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x2c]
cmp dword [esp + 0x30], ecx
ja 0x45b977
lea eax, [esp + 0x30]
mov edx, dword [eax]
push edx
push ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
cmp eax, ebx
jne 0x45b9ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp + 0x14], edi
call fcn.0047ec30
neg edi
sbb edi, edi
mov dword [esp + 0x18], eax
test edi, fcn.004206b0
je 0x45b9ba
push str.iocp
lea eax, [esp + 0x18]
push eax
call fcn.0045a680
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8
Function at 0x45d280
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45d2c6
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0xc], esi
call fcn.0047ec30
neg esi
sbb esi, esi
test esi, fcn.004206b0
mov dword [esp + 0x10], eax
pop esi
je 0x45d2c6
push 0x4ab628
lea eax, [esp + 0xc]
push eax
call fcn.0045a680
mov dword [edi], ebx
mov eax, edi
pop edi
pop ebx
add esp, 8
ret

Function at 0x45eaf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4a09f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c5cd8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push edi
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x45eb4a
push 1
add esi, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor esi, esi
call fcn.0047ec30
mov ecx, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov dword [ecx], esi
xor eax, eax
jmp 0x45ebb3
mov ecx, dword [0x4c7e40]
push ecx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x4c7e40]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, edx
push eax
push ecx
mov dword [esp + 0x20], edx
call ebp
mov ebx, dword [esp + 0x30]
push ebx
push 1
mov ecx, esi
mov dword [esp + 0x30], edi
call fcn.0045d8d0
test eax, eax
je 0x45eba4
nop
cmp edi, 0xffffffff
je 0x45eb96
inc edi
push ebx
push 1
mov ecx, esi
call fcn.0045d8d0
test eax, eax
jne 0x45eb90
mov edx, dword [esp + 0x1c]
mov eax, dword [0x4c7e40]
push edx
push eax
call ebp
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4

Function at 0x460940
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4a0c8c
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4c5cd8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.boost::asio::detail::select_reactor.0
mov dword [esp + 0x14], 4
call fcn.00460820
push 0x46a180
push 3
push 0xc
lea eax, [esi + 0x148]
push eax
mov byte [esp + 0x24], 3
call fcn.00482381
push 0x45dc20
push 4
push 0x44
lea ecx, [esi + 0x38]
push ecx
mov byte [esp + 0x24], 2
call fcn.00482381
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call fcn.00453230
lea edx, [esi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esi], vtable.boost::asio::io_service::service.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4609e0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4a0cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4c5cd8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x18]
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov ebx, 0x3e3
call fcn.0047ec30
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x18], ebx
call fcn.00460040
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0xc

Function at 0x460ae0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a0ceb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c5cd8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
call fcn.0045fb50
mov dword [ebp], eax
lea esi, [ebp + 4]
xor ebx, ebx
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 + 0x24], 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 ecx, 2
xor edx, edx
mov word [esi + 0x24], cx
mov word [esi + 0x26], dx
mov dword [esi + 0x28], ebx
mov edi, dword [ebp]
lea ecx, [esi + 8]
mov dword [esp + 0x24], ebx
add edi, 0x14
mov dword [esi], 0xffffffff
mov byte [esi + 4], bl
call fcn.004535a0
lea eax, [edi + 0xc]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
mov eax, dword [edi + 0x24]
cmp eax, ebx
je 0x460b93
mov dword [eax + 0x18], esi
mov ecx, dword [esp + 0x14]
push ecx
mov dword [edi + 0x24], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x461720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a0ef1
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4c5cd8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x14], edi
mov edi, dword [esp + 0x2c]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x18], edi
mov edi, dword [esp + 0x34]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
mov dword [esi + 0x40], eax
lea eax, [esi + 0x5c]
mov byte [esi + 0x57], cl
mov dword [esi + 0x58], eax
lea edx, [esi + 0x58]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], ecx
lea ecx, [esi + 0x7c]
mov byte [esp + 0x18], 1
call fcn.00459b90
mov ecx, dword [esp + 0x38]
push ecx
push edi
mov ecx, esi
mov byte [esp + 0x20], 2
call fcn.00475630
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x24