joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e040
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f842b
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x689300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x70]
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x68]
mov eax, dword [esi + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [esi + 0xc]
push 0xffffffffffffffff
mov dword [ebp - 0x6c], eax
lea eax, [esi + 0x10]
push 0
push eax
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
call fcn.00420f90
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x4c], eax
lea eax, [esi + 0x30]
push eax
mov dword [ebp - 4], 0
call fcn.004b6330
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x70]
push eax
push dword [esi]
mov dword [ebp - 4], 1
lea ecx, [ecx + 0x10]
call fcn.00498470
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], 2
test eax, eax
je 0x48e101
test al, 1
jne 0x48e0fa
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x48e0fa
lea ecx, [ebp - 0x28]
push 2
push ecx
push ecx
call eax
add esp, 0xc
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x54], 0x10
jb 0x48e112
push dword [ebp - 0x68]
call fcn.00470aa0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f8458
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
mov eax, dword [0x689300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x3c]
movq xmm0, qword [esi + 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x44], eax
lea eax, [esi + 0x30]
push eax
movq qword [ebp - 0x5c], xmm0
call fcn.004b61e0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x64]
push eax
push dword [esi]
mov dword [ebp - 4], 0
lea ecx, [ecx + 0x10]
call fcn.004a0d40
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x48e1d7
test al, 1
jne 0x48e1d7
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x48e1d7
lea ecx, [ebp - 0x24]
push 2
push ecx
push ecx
call eax
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x48e1f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f8458
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
mov eax, dword [0x689300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x3c]
movq xmm0, qword [esi + 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x44], eax
lea eax, [esi + 0x30]
push eax
movq qword [ebp - 0x5c], xmm0
call fcn.004b6250
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x64]
push eax
push dword [esi]
mov dword [ebp - 4], 0
lea ecx, [ecx + 0x10]
call fcn.004a0e20
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x48e297
test al, 1
jne 0x48e297
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x48e297
lea ecx, [ebp - 0x24]
push 2
push ecx
push ecx
call eax
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x48f890
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f8670
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x689300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [ebx + 0x18], ecx
ja 0x48f911
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [ebx + 8]
lea eax, [ecx*8]
mov esi, dword [ebx]
mov dword [ebp - 0x18], eax
add eax, edx
mov dword [ebp + 0xc], eax
mov eax, dword [eax]
cmp esi, eax
je 0x48f94d
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x48f94d
mov eax, dword [edi]
lea esp, [esp]
mov esi, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x48f997
cmp esi, dword [edx + ecx*8]
jne 0x48f940
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
cmp esi, eax
je 0x48f97e
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 0x18]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x48f9da
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x48f9fc
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.004dd990
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 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 0xc
cmp eax, esi
jne 0x48f9e2
mov dword [ecx], edi
jmp 0x48f9fc
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x48f9fc
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.004cfb80
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
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 0x4a3560
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
push esi
xor esi, esi
dec ecx
bts esi, ecx
cmp ecx, 0x20
push edi
mov edi, dword [ebp + 0x18]
cmovae eax, esi
xor esi, eax
cmp ecx, 0x40
cmovae eax, esi
cmp byte [ebp + 0x1c], 0
jne 0x4a3599
push edi
push dword [ebp + 0x10]
call fcn.004af140
movzx eax, ax
add esp, 8
mov dword [ebp + 0x10], eax
test edi, edi
je 0x4a35e0
mov eax, dword [ebp + 0xc]
push ebx
mov bx, word [ebp + 0x10]
jmp 0x4a35b0
test byte [ebp + 0x10], 1
mov edx, 0
cmovne edx, esi
xor edx, dword [eax]
test esi, edx
setne al
xor ecx, ecx
test al, al
lea eax, [edx + edx]
cmovne ecx, dword [ebp + 0x14]
xor ecx, eax
shr bx, 1
mov eax, dword [ebp + 0xc]
mov word [ebp + 0x10], bx
mov dword [eax], ecx
dec edi
jne 0x4a35b0
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4ad5b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [0x6924ec]
mov edi, ecx
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ad5d5
mov eax, dword [eax + 4]
jmp 0x4ad5d7
xor eax, eax
push 0x44
push eax
mov byte [ebp + 0xc], 0
push dword [ebp + 0xc]
call fcn.00492910
add esp, 0xc
test eax, eax
je 0x4ad5fa
push esi
push dword [ebp + 8]
mov ecx, eax
call fcn.0048bea0
jmp 0x4ad5fc
xor eax, eax
mov ecx, dword [edi]
push 0
push eax
mov ecx, dword [ecx + 8]
call fcn.004e92c0
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call fcn.004ecea0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4ad630
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fb909
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x689300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [0x6924ec]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ad674
mov eax, dword [eax + 4]
jmp 0x4ad676
xor eax, eax
push 0x80
push eax
mov byte [ebp + 0xc], 0
push dword [ebp + 0xc]
call fcn.00492910
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4ad6b4
push esi
push dword [ebp + 8]
mov ecx, eax
call fcn.0048bf30
jmp 0x4ad6b6
xor eax, eax
mov ecx, dword [edi]
push 0
push eax
mov ecx, dword [ecx + 8]
call fcn.004e92c0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
call fcn.004ecf30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4ad700
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fb949
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x689300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [0x6924ec]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ad744
mov eax, dword [eax + 4]
jmp 0x4ad746
xor eax, eax
push 0xa0
push eax
mov byte [ebp + 0xc], 0
push dword [ebp + 0xc]
call fcn.00492910
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4ad784
push esi
push dword [ebp + 8]
mov ecx, eax
call fcn.0048bfb0
jmp 0x4ad786
xor eax, eax
mov ecx, dword [edi]
push 0
push eax
mov ecx, dword [ecx + 8]
call fcn.004e92c0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
call fcn.004ecfa0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4af3b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
push esi
mov esi, dword [eax]
cmp esi, 0xffffffff
jne 0x4af3d2
mov esi, dword [ebp + 0x14]
mov ecx, esi
push 0x2719
call fcn.0048c2d0
jmp 0x4af411
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
push dword [ebp + 0x10]
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [ebp + 0x14]
push esi
push eax
call fcn.004a4dd0
add esp, 8
test eax, eax
jne 0x4af411
lea ecx, [ebp - 0xc]
call fcn.00487e10
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
movq xmm0, qword [esi]
mov ecx, dword [esi + 8]
pop esi
movq qword [eax], xmm0
mov dword [eax + 8], ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4b5fc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fc3d3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x689300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
call fcn.0043c410
mov eax, dword [ebp + 8]
lea edx, [ebx + 0x38]
mov dword [ebx], vtable.boost::asio::basic_streambuf_class_std::allocator_char__.0
mov dword [edx], eax
mov dword [ebp - 4], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
cmp dword [edx], 0x80
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x80
lea ecx, [ebp - 0x10]
cmovbe eax, edx
mov byte [ebp - 4], 1
mov esi, dword [eax]
cmp esi, 1
lea eax, [ebp + 8]
mov dword [ebp - 0x10], esi
cmovae eax, ecx
mov dword [ebp + 8], 1
lea ecx, [ebx + 0x3c]
push dword [eax]
call fcn.004edcc0
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x3c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
sub ecx, ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x3c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x20]
lea edx, [ecx + esi]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x30]
mov dword [eax], edx
mov eax, ebx
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 0x4b8650
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7c70
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x689300]
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.005baa92
mov dword [esi], vtable.boost::system::system_error.0
lea ecx, [esi + 0x18]
movq xmm0, qword [edi + 0xc]
movq qword [esi + 0xc], xmm0
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x18]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [ebp - 4], 0
mov byte [ecx], 0
call fcn.00420f90
mov dword [esi], vtable.boost::lock_error.0
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [ebp - 4], 1
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x4b86e4
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, esi
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::lock_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 4
Function at 0x4c07d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fd41d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x689300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x2c], 0xf
mov dword [edi + 0x28], 0
mov byte [edi + 0x18], 0
mov dword [edi + 0x44], 0xf
mov dword [edi + 0x40], 0
mov byte [edi + 0x30], 0
xor eax, eax
mov dword [edi + 0x5c], 7
mov dword [edi + 0x58], 0
mov word [edi + 0x48], ax
lea ecx, [edi + 0x60]
call fcn.004c2030
lea esi, [edi + 0x114]
mov byte [ebp - 4], 5
mov ecx, esi
call fcn.004c1790
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 6
push esi
push eax
call fcn.004abde0
add esp, 8
or ebx, 0xffffffff
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [edi], ecx
mov esi, dword [edi + 4]
mov dword [edi + 4], edx
test esi, esi
je 0x4c08d2
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x4c08d2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, ebx
lock xadd dword [eax], edx
cmp edx, 1
jne 0x4c08d2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x4c0901
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x4c0901
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
cmp ebx, 1
jne 0x4c0901
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov eax, edi
mov byte [edi + 0x14], 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 0x4c1670
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fd6f0
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x689300]
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 ebx, dword [ebp + 8]
push 0x20
mov dword [ebp - 0x1a8], edi
call fcn.005b7f9f
mov esi, eax
add esp, 4
mov dword [ebp - 0x1a4], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4c16d9
mov ecx, esi
call fcn.00488100
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], 0
jmp 0x4c16db
xor esi, esi
mov dword [edi], esi
push 0x6924f4
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x4c170f
lea eax, [ebp - 0x1a0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x6924f8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x6924f4
call fcn.0048a8e0
push 0x60
mov byte [ebp - 4], 2
call fcn.005b7f9f
add esp, 8
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4c174c
mov ecx, 1
cmp ebx, ecx
cmove ebx, ecx
mov ecx, eax
push ebx
push edi
call fcn.004c25e0
mov esi, eax
jmp 0x4c174e
xor esi, esi
mov dword [ebp - 0x1a4], esi
mov ecx, dword [edi]
push esi
mov byte [ebp - 4], 4
call fcn.004928c0
mov dword [edi + 8], esi
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.005b8774
mov esp, ebp
pop ebp
ret 4

Function at 0x4c1790
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fd760
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x689300]
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
push 0x20
mov dword [ebp - 0x1a8], edi
call fcn.005b7f9f
mov esi, eax
add esp, 4
mov dword [ebp - 0x1a4], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4c17f5
mov ecx, esi
call fcn.00488100
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], 0
jmp 0x4c17f7
xor esi, esi
mov dword [edi], esi
push 0x6924f4
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x4c182b
lea eax, [ebp - 0x1a0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x6924f8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x6924f4
call fcn.0048a8e0
push 0x60
mov byte [ebp - 4], 2
call fcn.005b7f9f
add esp, 8
mov dword [ebp - 0x1a4], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4c185f
push 0xffffffffffffffff
push edi
mov ecx, eax
call fcn.004c25e0
mov esi, eax
jmp 0x4c1861
xor esi, esi
mov dword [ebp - 0x1a4], esi
mov ecx, dword [edi]
push esi
mov byte [ebp - 4], 4
call fcn.004928c0
mov dword [edi + 8], esi
mov eax, edi
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.005b8774
mov esp, ebp
pop ebp
ret
Function at 0x4c1ed0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fd8e7
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x689300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 0
mov dword [esi], vtable.boost::asio::detail::select_reactor.0
mov ecx, dword [ecx]
mov dword [ebp - 4], 0
call fcn.004b36f0
lea ecx, [esi + 0x18]
mov dword [esi + 0x14], eax
call fcn.00488100
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.004e60c0
push 0x4c41e0
push 0x4ba2f0
push 4
push 0x1c
lea eax, [esi + 0x38]
mov byte [ebp - 4], 2
push eax
call fcn.005bf02a
push fcn.004fda70
push 0x4c25b0
push 3
push 0xc
lea eax, [esi + 0xa8]
mov byte [ebp - 4], 3
push eax
call fcn.005bf02a
mov dword [esi + 0xcc], 0
push 0xc
mov byte [ebp - 4], 4
mov byte [esi + 0xd0], 0
mov dword [esi + 0xd4], 0
mov byte [esi + 0xd8], 0
call fcn.005b7f9f
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov byte [ebp - 4], 5
test edi, edi
je 0x4c1ff1
push 0x10
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.005b7f9f
add esp, 4
test eax, eax
je 0x4c1fdd
mov dword [eax], vtable.boost::asio::detail::win_thread::func_class_boost::asio::detail::select_reactor::thread_function_.0
mov dword [eax + 0xc], esi
jmp 0x4c1fdf
xor eax, eax
push 0
push eax
mov ecx, edi
call fcn.004f1d40
mov dword [esi + 0xd4], edi
jmp 0x4c1ffb
mov dword [esi + 0xd4], 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 0x4c25e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fdab1
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x689300]
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 eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x13c], edi
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 0x11c
lea eax, [ebp - 0x12c]
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 fcn.005ba350
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
mov dword [ebp - 0x128], 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 - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
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.00488100
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
or eax, 0xffffffff
mov byte [ebp - 4], 5
test esi, esi
mov dword [edi + 0x5c], esi
cmovns eax, esi
push eax
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x4c278d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x6924b8]
mov edx, eax
test cl, 1
jne 0x4c2752
or ecx, 1
mov dword [0x6924b0], 0x25c5e09b
mov eax, vtable.boost::system::detail::system_error_category.0
mov dword [0x6924b8], ecx
mov dword [0x6924b4], 0x8fafd21e
mov dword [0x6924a8], eax
jmp 0x4c2757
mov eax, dword [0x6924a8]
mov eax, dword [eax + 0x18]
mov ecx, 0x6924a8
push edx
mov dword [ebp - 0x138], edx
call eax
mov byte [ebp - 0x134], al
mov dword [ebp - 0x130], 0x6924a8
test al, al
je 0x4c278d
push str.iocp
lea eax, [ebp - 0x138]
push eax
call fcn.00489360
mov eax, edi
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.005b8774
mov esp, ebp
pop ebp
ret 8