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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0xc
call fcn.00525ec0
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
mov dword [esi + 4], ebx
test ebx, ebx
jne 0x413139
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 + 0x10], edi
call fcn.0050cbc0
neg edi
sbb edi, edi
mov dword [esp + 0x14], eax
test edi, fcn.00412cb0
je 0x413139
lea eax, [esp + 0x10]
push eax
mov ecx, str.thread.entry_event
call fcn.00413030
add esp, 4
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, dword [ebp + 8]
mov dword [edi + 8], eax
mov dword [esi + 8], eax
cmp dword [edi + 8], 0
jne 0x413196
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 + 0x10], edi
call fcn.0050cbc0
neg edi
sbb edi, edi
mov dword [esp + 0x14], eax
test edi, fcn.00412cb0
je 0x413193
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.thread.exit_event
call fcn.00413030
add esp, 4
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0xc]
push edx
push 0
push esi
push 0x412f90
push eax
push 0
mov dword [esp + 0x24], 0
call fcn.0050fa12
add esp, 0x18
mov dword [edi + 4], eax
test eax, eax
jne 0x41321c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
test ebx, ebx
je 0x4131df
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi + 8]
test edi, edi
je 0x4131ed
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x10], esi
call fcn.0050cbc0
neg esi
sbb esi, esi
mov dword [esp + 0x14], eax
test esi, fcn.00412cb0
je 0x41321c
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.thread
call fcn.00413030
add esp, 4
test ebx, ebx
je 0x413230
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 ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x414790
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
xor ecx, ecx
push 0xffffffffffffffff
push 0x54f9bb
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
mov edx, str.nowhere
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
or edx, 0xffffffff
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x4c], 0xf
mov dword [eax + 0x48], ecx
mov byte [eax + 0x38], cl
mov dword [esp + 8], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov byte [eax + 0x60], cl
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov byte [eax + 0x6c], cl
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ecx
mov dword [eax + 0x7c], ecx
mov dword [esp + 8], edx
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 4

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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x55035b
push eax
mov dword fs:[0], esp
mov eax, dword [0x5ba9a4]
push ebx
xor ebx, ebx
push esi
mov esi, dword [esp + 0x18]
mov dword [esi], 0x12345678
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
mov byte [esi + 0xc], bl
mov dword [esi + 0x10], 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
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], ebx
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x585fd3
mov byte [ecx + 4], bl
call fcn.0041a4e0
mov dword [esp + 0x10], ebx
mov dword [esi + 0x54], ebx
mov byte [esi + 0x58], bl
mov byte [esi + 0x59], bl
mov byte [esi + 0x5a], bl
mov byte [esi + 0x5b], bl
mov byte [esi + 0x5c], 1
mov dword [esi + 0x60], 0x87654321
mov dword [esi + 0x64], ebx
call fcn.0050cbc0
mov dword [esi + 0x68], eax
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4
Function at 0x416be0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x550300
push eax
mov eax, 0x20
mov dword fs:[0], esp
call fcn.00525ec0
push ebx
push esi
mov esi, ecx
push 0x28
xor ebx, ebx
push str.Day_of_month_value_is_out_of_range_1..31
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.0041a4e0
mov dword [esp + 0x30], ebx
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00417080
mov byte [esp + 0x30], 2
cmp dword [esp + 0x24], 0x10
jb 0x416c52
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0050d7de
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
mov dword [esi], vtable.boost::gregorian::bad_day_of_month.0
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x416e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x550300
push eax
mov eax, 0x20
mov dword fs:[0], esp
call fcn.00525ec0
push ebx
push esi
mov esi, ecx
push 0x22
xor ebx, ebx
push str.Month_number_is_out_of_range_1..12
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.0041a4e0
mov dword [esp + 0x30], ebx
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00417080
mov byte [esp + 0x30], 2
cmp dword [esp + 0x24], 0x10
jb 0x416e72
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0050d7de
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
mov dword [esi], vtable.boost::gregorian::bad_month.0
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x4170e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x550300
push eax
mov eax, 0x20
mov dword fs:[0], esp
call fcn.00525ec0
push ebx
push esi
mov esi, ecx
push 0x27
xor ebx, ebx
push str.Year_is_out_of_valid_range:_1400..10000
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.0041a4e0
mov dword [esp + 0x30], ebx
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00417080
mov byte [esp + 0x30], 2
cmp dword [esp + 0x24], 0x10
jb 0x417152
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0050d7de
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
mov dword [esi], vtable.boost::gregorian::bad_year.0
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4190e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5503f8
push eax
mov eax, 0x14
mov dword fs:[0], esp
call fcn.00525ec0
push ebx
push esi
push edi
push 0
lea ecx, [esp + 0x14]
call fcn.004f8696
mov dword [esp + 0x28], 0
mov edi, dword [0x5be8a8]
mov ecx, 0x5bb180
mov dword [esp + 0xc], edi
call fcn.00418870
mov ebx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [ebx]
cmp esi, dword [eax + 0xc]
jae 0x419158
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x41915c
cmp byte [eax + 0x14], 0
je 0x41915c
call fcn.004f87b5
cmp esi, dword [eax + 0xc]
jae 0x419162
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x41915e
xor ecx, ecx
jmp 0x419140
mov esi, ecx
test esi, esi
jne 0x4191b4
test edi, edi
je 0x41916a
mov esi, edi
jmp 0x4191b4
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.00418f30
add esp, 8
cmp eax, 0xffffffff
jne 0x41919a
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.0050d9cc
push 0x5a6494
lea ecx, [esp + 0x18]
push ecx
call fcn.00513b4b
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x5be8a8], esi
call fcn.00419070
push esi
call fcn.004f887a
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004f86be
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x41b040
Capabilities:
Get system information on windows

Disassembly:
mov eax, 0x24
call fcn.00525ec0
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
push edi
mov edi, 1
jne 0x41b080
mov eax, dword [0x5be910]
test eax, eax
jne 0x41b071
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x1c]
mov ecx, edi
cmp ecx, eax
sbb edx, edx
and edx, 0xffffffe0
add edx, 0x20
mov dword [esi + 0xc], edx
mov eax, dword [esi + 0xc]
cmp eax, 8
jb 0x41b0d2
cmp eax, 0x20
jae 0x41b098
pause
add dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0x24
ret
jne 0x41b0a8
call fcn.0041ae50
add dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0x24
ret
call fcn.0041afd0
test al, al
je 0x41b0cb
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x41b0d2
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0x24
ret
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0x24
ret

Function at 0x41d800
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [eax]
cmp edi, 0xffffffff
jne 0x41d81a
mov edi, 0x2719
jmp 0x41d856
or byte [eax + 4], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x1c]
push 4
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.0050cbc0
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], ebx
test edi, edi
jne 0x41d860
call fcn.0050cbc0
mov dword [esi + 4], eax
mov dword [esi], edi
mov ecx, dword [esi]
mov edx, dword [esi + 4]
pop edi
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x421ea0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esi]
cmp eax, 0x4cf
push ebx
mov ebx, dword [esp + 8]
push edi
jg 0x421ed2
je 0x421ecb
cmp eax, 0x79
je 0x421ec4
cmp eax, 0x4c9
jne 0x421ee8
mov edi, 0x274d
jmp 0x421ede
mov edi, 0x274c
jmp 0x421ede
mov edi, 0x2743
jmp 0x421ede
cmp eax, 0x4d0
jne 0x421ee8
mov edi, 0x2751
call fcn.0050cbc0
mov dword [esi + 4], eax
mov dword [esi], edi
cmp dword [esi], 0
jne 0x421f43
cmp ebx, 0xffffffff
jne 0x421f04
mov edi, 0x2719
call fcn.0050cbc0
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
pop ebx
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0x7010
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.0050cbc0
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], ebx
test edi, edi
jne 0x421f43
call fcn.0050cbc0
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
pop ebx
ret
Function at 0x422280
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x551b48
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x14]
push edi
mov dword [esi], vtable.boost::asio::detail::select_reactor.0
mov dword [esp + 0x10], 4
mov ecx, esi
call fcn.00422430
mov byte [esp + 0x10], 3
push 0x40b310
push 3
push 0xc
lea eax, [esi + 0x148]
push eax
call fcn.00510a3c
mov byte [esp + 0x10], 2
push 0x423020
push 4
push 0x44
lea ecx, [esi + 0x38]
push ecx
call fcn.00510a3c
mov byte [esp + 0x10], 1
lea edi, [esi + 0x30]
call fcn.00422c60
mov byte [esp + 0x10], 0
lea edx, [esi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 8]
mov dword [esi], vtable.boost::asio::io_service::service.0
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4

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

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x422623
mov edi, 0x2719
call fcn.0050cbc0
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, ebx
pop edi
pop ebx
pop ecx
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push edx
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov ebx, eax
mov eax, dword [esp + 0x10]
mov dword [edi], eax
call fcn.0050cbc0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jne 0x42266c
xor edi, edi
call fcn.0050cbc0
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x422750
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x422774
mov edi, 0x2719
call fcn.0050cbc0
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebp, eax
call fcn.0050cbc0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebp, ebp
jl 0x4227c1
xor edi, edi
call fcn.0050cbc0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esi], edi
cmp dword [ebx], edi
je 0x4227be
or byte [eax], 1
mov eax, ebp
pop edi
pop ebp
pop ebx
ret
and byte [eax], 0xfc
pop edi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x423270
Capabilities:
Get socket status

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push edi
push 0
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
test ebx, ebx
jne 0x4232d5
cmp dword [esp + 0x18], ebx
jne 0x4232d5
test ebp, ebp
jne 0x4232d5
test edi, edi
je 0x4232f3
mov ecx, dword [edi + 4]
mov eax, 0x10624dd3
imul ecx
mov ecx, dword [edi]
imul ecx, ecx, 0x3e8
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
jne 0x4232bc
mov eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
call fcn.0050cbc0
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
pop edi
pop ebp
pop ebx
ret
test edi, edi
je 0x4232f3
cmp dword [edi], 0
jne 0x4232f3
mov eax, dword [edi + 4]
test eax, eax
jle 0x4232f3
cmp eax, 0x3e8
jge 0x4232f3
mov dword [edi + 4], 0x3e8
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push edi
push ebp
push edx
push ebx
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.0050cbc0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jl 0x42332a
xor edi, edi
call fcn.0050cbc0
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
pop ebp
mov eax, ebx
pop ebx
ret

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

Disassembly:
mov eax, 0xc
call fcn.00525ec0
push ebx
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [esp + 0x1c]
push 0
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
push 1
push edx
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.0050cbc0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
cmp eax, 0x40
jne 0x423394
mov edi, 0x2746
jmp 0x4233a0
cmp eax, 0x4d2
jne 0x4233aa
mov edi, 0x274d
call fcn.0050cbc0
mov dword [esi + 4], eax
mov dword [esi], edi
test ebx, ebx
je 0x4233b7
or eax, 0xffffffff
pop edi
pop ebx
add esp, 0xc
ret
xor edi, edi
call fcn.0050cbc0
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
mov eax, dword [esp + 8]
pop ebx
add esp, 0xc
ret

Function at 0x423ba0
Capabilities:
Set socket configuration

Disassembly:
mov eax, 4
call fcn.00525ec0
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x423bce
mov edi, 0x2719
call fcn.0050cbc0
mov dword [esi], edi
mov dword [esi + 4], eax
xor al, al
pop edi
pop ebp
pop ebx
pop ecx
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push edi
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.0050cbc0
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], ebx
test edi, edi
jl 0x423bc7
xor edi, edi
call fcn.0050cbc0
mov dword [esi], edi
mov dword [esi + 4], eax
or byte [ebp], 2
pop edi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
Function at 0x423c20
Capabilities:
Connect socket

Disassembly:
push ecx
push ebx
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x423c40
mov edi, 0x2719
call fcn.0050cbc0
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
pop edi
pop ebx
pop ecx
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call fcn.0050cbc0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jne 0x423c7d
xor edi, edi
call fcn.0050cbc0
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x4246e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a69e8
push 0x54cae4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, 0x104
call fcn.00525ec0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.asio_58CCDC44_6264_4842_90C2_F3C545CB8AA7__u__p
push 0x80
lea eax, [ebp - 0x11c]
push eax
call fcn.005109c0
add esp, 0x14
lea ecx, [ebp - 0x11c]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test esi, esi
jne 0x424768
call ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0xb7
jne 0x424778
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi], 0
jne 0x4247cd
mov dword [ebp - 4], 0
push bind
lea edx, [edi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x4247c3
call ebx
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov byte [edi], 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424a80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x552170
mov eax, dword fs:[0]
push eax
mov eax, 0x18
mov dword fs:[0], esp
call fcn.00525ec0
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
push eax
mov esi, ecx
call fcn.00424840
mov dword [esp + 0x30], 0
lea ebx, [edi + 8]
mov eax, ebx
push esi
push eax
mov dword [esp + 0x44], eax
call fcn.00413fb0
mov byte [esp + 0x30], 2
lea ebp, [edi + 0x30]
mov eax, ebp
push esi
push eax
mov dword [esp + 0x44], eax
call fcn.00413fb0
mov byte [esp + 0x30], 4
lea esi, [edi + 0x58]
push esi
call fcn.00424a10
mov byte [esp + 0x30], 5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
sub ecx, eax
je 0x424b0d
test ecx, ecx
ja 0x424b06
call fcn.0050dd58
mov eax, dword [esi + 0xc]
mov ecx, eax
jmp 0x424b0f
xor ecx, ecx
mov esi, dword [esi + 0x10]
sub esi, eax
mov dword [edi + 0x74], esi
lea esi, [edi + 0x78]
push esi
mov dword [edi + 0x70], ecx
call fcn.00424a10
mov byte [esp + 0x30], 6
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
sub ecx, eax
je 0x424b42
test ecx, ecx
ja 0x424b3b
call fcn.0050dd58
mov eax, dword [esi + 0xc]
mov ecx, eax
jmp 0x424b44
xor ecx, ecx
mov esi, dword [esi + 0x10]
mov dword [edi + 0x90], ecx
sub esi, eax
xor eax, eax
lea ecx, [esp + 0x14]
push 1
mov dword [edi + 0x94], esi
push ecx
mov dword [edi + 0x98], eax
mov dword [edi + 0x9c], eax
call fcn.00416820
add esp, 8
lea edx, [esp + 0x14]
push edx
push 1
lea ecx, [esp + 0x44]
call fcn.004173e0
push eax
lea ecx, [esp + 0x24]
call fcn.00416710
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.004277e0
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00416820
add esp, 8
lea edx, [esp + 0x1c]
push edx
push 1
lea ecx, [esp + 0x44]
call fcn.004173e0
push eax
lea ecx, [esp + 0x1c]
call fcn.00416710
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
call fcn.004277e0
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 8
Function at 0x425eb0
Capabilities:
Set socket configuration

Disassembly:
mov eax, 8
call fcn.00525ec0
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, 0xffffffff
je 0x425fbb
cmp byte [esp + 0x1c], bl
je 0x425f26
test byte [ebp], 8
je 0x425f26
xor eax, eax
xor ecx, ecx
mov word [esp + 0x10], ax
mov word [esp + 0x12], cx
call fcn.0050cbc0
or byte [ebp], 8
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea edx, [esp + 0x14]
push edx
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call fcn.0050cbc0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x425f26
call fcn.0050cbc0
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.0050cbc0
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
test ebx, ebx
je 0x425fbb
call fcn.0050cbc0
cmp dword [esi + 4], eax
jne 0x425f65
cmp dword [esi], 0x2733
je 0x425f77
call fcn.0050cbc0
cmp dword [esi + 4], eax
jne 0x425fb7
cmp dword [esi], 0x4d5
jne 0x425fb7
lea ecx, [esp + 0x10]
push ecx
push 0x8004667e
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [ebp], 0xfc
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.0050cbc0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jne 0x425fc7
xor edi, edi
call fcn.0050cbc0
mov dword [esi], edi
mov dword [esi + 4], eax
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret

Function at 0x426400
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x551a10
push eax
mov eax, 8
mov dword fs:[0], esp
call fcn.00525ec0
push esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 3
lea eax, [esi + 0x78]
push eax
call fcn.00401930
mov byte [esp + 0x14], 2
lea ecx, [esi + 0x58]
push ecx
call fcn.00401930
mov cl, 1
mov byte [esp + 0x14], cl
lea eax, [esi + 0x30]
mov dword [esp + 8], eax
mov byte [esp + 0x14], cl
push eax
call fcn.004146b0
xor cl, cl
mov byte [esp + 0x14], cl
lea eax, [esi + 8]
mov dword [esp + 8], eax
mov byte [esp + 0x14], cl
push eax
call fcn.004146b0
mov dword [esp + 0x14], 0xffffffff
call fcn.004262e0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 4