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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov eax, dword [ecx + 4]
lock inc dword [eax + 0x18]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x40776e
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp], 0
mov dword [esp + 4], ebp
lea ebp, [esp + 4]
mov ecx, esp
push 0
push ebx
push edi
push edx
push ebp
push ecx
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmovne ecx, eax
mov esi, dword [esi + 4]
test edi, edi
je 0x4077b4
cmp ecx, 0x3e5
je 0x4077b4
mov eax, dword [esp]
mov dword [ebx + 0x1c], 1
mov dword [ebx], section..data
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
jmp 0x4077c5
mov esi, dword [esi + 4]
mov dword [ebx + 0x1c], 1
mov dword [ebx], section..data
mov dword [ebx + 8], 0x2719
mov dword [ebx + 0xc], 0
push ebx
push 2
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x40780a
lea edi, [esi + 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x54]
mov dword [ebx + 0x14], 0
jmp 0x4077eb
mov ecx, 1
xor eax, eax
lock cmpxchg dword [ebx + 0x1c], ecx
cmp eax, 1
jne 0x40780a
push ebx
push 2
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x40780a
lea edi, [esi + 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebx + 0x14], 0
lea eax, [esi + 0x54]
mov ecx, dword [esi + 0x58]
lea edx, [ecx + 0x14]
test ecx, ecx
cmove edx, eax
mov dword [edx], ebx
mov dword [esi + 0x58], ebx
mov eax, 1
xchg dword [esi + 0x34], eax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
Function at 0x407d70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, ecx
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x40d100
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x407e2a
mov dword [ebp - 0x24], edi
cmp dword [ebx + 0x68], 0
je 0x407dce
lea eax, [ebx + 0x58]
mov ecx, dword [ebx + 0x64]
mov ecx, dword [ecx]
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0x20], ebx
call ecx
mov ebx, dword [ebp - 0x20]
add esp, 4
mov esi, dword [ebx + 0x48]
test esi, esi
je 0x407dee
lock dec dword [esi + 4]
jne 0x407dee
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock dec dword [esi + 8]
jne 0x407dee
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebx + 0x40]
test esi, esi
mov edi, dword [ebp - 0x24]
je 0x407e11
lock dec dword [esi + 4]
jne 0x407e11
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock dec dword [esi + 8]
jne 0x407e11
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x407e23
lock dec dword [ecx + 8]
jne 0x407e23
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x407e77
push dword [0x436658]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x407e53
mov eax, dword [eax + 4]
test eax, eax
je 0x407e53
cmp dword [eax], 0
je 0x407e5e
cmp dword [eax + 4], 0
je 0x407e62
push esi
call fcn.00416c13
add esp, 4
jmp 0x407e70
xor ecx, ecx
jmp 0x407e67
mov ecx, 1
movzx edx, byte [esi + 0x74]
mov byte [esi], dl
mov dword [eax + ecx*4], esi
mov dword [edi + 4], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4081d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x40d130
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x30], eax
mov eax, dword [0x436658]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x408220
mov eax, dword [eax + 4]
jmp 0x408222
xor eax, eax
mov dword [ebp - 0x10], 1
movzx ecx, byte [ebp - 0x20]
mov byte [esp], cl
mov dword [esp + 4], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x34
call fcn.004083b0
mov dword [ebp - 0x28], 0
lea edx, [ebp + 8]
mov ecx, dword [edx]
mov dword [eax + 4], ecx
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov ecx, dword [edx + 4]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 0xc], ecx
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov ecx, dword [edx + 0xc]
mov dword [eax + 0x10], ecx
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x14], ecx
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
movzx ecx, byte [edx + 0x14]
mov byte [eax + 0x18], cl
movzx ecx, byte [edx + 0x18]
mov byte [eax + 0x1c], cl
mov ecx, dword [edx + 0x1c]
mov dword [eax + 0x20], ecx
movsd xmm0, qword [edx + 0x20]
movsd qword [eax + 0x24], xmm0
mov ecx, dword [edx + 0x28]
mov dword [eax + 0x2c], ecx
mov dword [eax], 0x408560
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x30]
call fcn.004086b0
lea edi, [ebp + 8]
mov esi, dword [edi + 0x10]
test esi, esi
je 0x408310
lock dec dword [esi + 4]
jne 0x408310
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock dec dword [esi + 8]
jne 0x408310
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [edi + 8]
test esi, esi
je 0x408330
lock dec dword [esi + 4]
jne 0x408330
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock dec dword [esi + 8]
jne 0x408330
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x24]
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret 0x30
Function at 0x4086b0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x408703
mov edi, dword [ebx + 0x14]
test edi, edi
je 0x4086dc
lock dec dword [edi + 4]
jne 0x4086dc
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock dec dword [edi + 8]
jne 0x4086dc
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x4086fc
lock dec dword [edi + 4]
jne 0x4086fc
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock dec dword [edi + 8]
jne 0x4086fc
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [esi + 8], 0
mov edi, dword [esi + 4]
test edi, edi
je 0x408754
push dword [0x436658]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40872d
mov eax, dword [eax + 4]
test eax, eax
je 0x40872d
cmp dword [eax + 0x10], 0
je 0x408738
cmp dword [eax + 0x14], 0
je 0x40873f
push edi
call fcn.00416c13
add esp, 4
jmp 0x40874d
mov ecx, 4
jmp 0x408744
mov ecx, 5
movzx edx, byte [edi + 0x34]
mov byte [edi], dl
mov dword [eax + ecx*4], edi
mov dword [esi + 4], 0
pop esi
pop edi
pop ebx
ret

Function at 0x408870
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, ecx
mov esi, dword [esp + 0x24]
mov eax, dword [0x435b40]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [ecx]
test eax, eax
jne 0x4088a4
push 0x37
push str.D:extensionLibrary_asio_1_28_0include_asio_impl_cancellation_signal.ipp
push str.handler_
call fcn.00418a85
add esp, 0xc
mov eax, dword [ebx]
mov dword [esi], 0
mov dword [esi + 4], 0
mov ecx, dword [eax]
test ecx, ecx
je 0x4088d8
mov eax, dword [ecx]
lea edx, [esp + 4]
push edx
call dword [eax + 4]
mov edi, dword [esp + 4]
mov dword [esi], edi
mov ebp, dword [esp + 8]
mov dword [esi + 4], ebp
mov eax, dword [ebx]
mov dword [eax], 0
jmp 0x4088dc
xor edi, edi
xor ebp, ebp
mov ebx, dword [esp + 0x2c]
cmp ebp, dword [esp + 0x28]
jb 0x4088f0
mov eax, edi
xor edx, edx
div ebx
test edx, edx
je 0x408967
test edi, edi
je 0x408928
push dword [0x436658]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40891f
cmp ebp, 0x3fc
ja 0x40891f
mov eax, dword [eax + 4]
test eax, eax
je 0x40891f
cmp dword [eax + 0x18], 0
je 0x40897e
cmp dword [eax + 0x1c], 0
je 0x408985
push edi
call fcn.00416c13
add esp, 4
push dword [0x436658]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40893d
mov eax, dword [eax + 4]
jmp 0x40893f
xor eax, eax
sub esp, 0x10
movzx ecx, byte [esp + 0x10]
mov byte [esp], cl
mov dword [esp + 0xc], ebx
mov edi, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
call fcn.004089a0
add esp, 0x10
mov dword [esi], eax
mov dword [esi + 4], edi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0040d4a2
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ecx, 6
jmp 0x40898a
mov ecx, 7
movzx edx, byte [edi + ebp]
mov byte [edi], dl
mov dword [eax + ecx*4], edi
jmp 0x408928
Function at 0x409be0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov esi, ecx
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x40d1f0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mfence
mov eax, dword [esi + 0x18]
test eax, eax
je 0x409cd9
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push eax
call fcn.0040dc40
add esp, 4
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x38], esi
lea eax, [esi + 0x14]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x30], eax
push dword [0x436658]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push dword [0x436658]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 0x20], 0
nop dword [eax]
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x38]
push dword [ebp + 8]
lea eax, [ebp - 0x6c]
push eax
push 0xffffffffffffffff
call fcn.00409df0
test eax, eax
je 0x409cbd
mov eax, dword [ebp - 0x20]
inc eax
mov ecx, 0xffffffff
cmove eax, ecx
mov dword [ebp - 0x20], eax
jmp 0x409c90
push dword [ebp - 0x2c]
push dword [0x436658]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea ecx, [ebp - 0x6c]
call fcn.0040a1f0
mov eax, dword [ebp - 0x20]
jmp 0x409d20
mov eax, 1
mov ecx, 1
xchg dword [esi + 0x1c], ecx
test ecx, ecx
jne 0x409d0e
xchg dword [esi + 0x20], eax
test eax, eax
jne 0x409d0e
push 0
push 0
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x409d0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x409d34
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0x43536c
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea ecx, [ebp - 0x34]
push str.pqcs
push section..data
push eax
call fcn.004017e0
mov dword [ebp - 0x6c], vtable.std::exception.0
lea eax, [ebp - 0x68]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0x30]
push eax
push ecx
call fcn.0040fbcc
add esp, 8
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x6c], vtable.std::system_error.0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x6c]
push 0x433384
push eax
call fcn.0040f600
add esp, 8
nop word [eax + eax]
push ebp
sub esp, 0x10
add ebp, 0xc
mov dword [ebp - 0x34], vtable.std::exception.0
lea eax, [ebp - 0x30]
push eax
call fcn.0040fc2f
add esp, 0x14
pop ebp
ret
Function at 0x40afa0
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [esp + 0x1c]
xor esi, esi
cmp ebx, 0xffffffff
je 0x40b06e
mov ecx, dword [esp + 0x20]
cmp byte [esp + 0x24], 0
je 0x40aff6
movzx eax, byte [ecx]
test al, 8
je 0x40aff6
mov dword [esp + 4], 0
or al, 8
mov byte [ecx], al
lea eax, [esp + 4]
push 4
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x40aff6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, dword [esp + 0x28]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x40b060
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 4], 0x435000
mov dword [ebp], eax
cmp eax, 0x2733
je 0x40b027
mov esi, edi
cmp eax, 0x4d5
jne 0x40b06e
mov dword [esp], 0
mov eax, esp
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esp + 0x20]
and byte [eax], 0xfc
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
test eax, eax
je 0x40b069
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 4], 0x435000
jmp 0x40b06b
mov dword [ebp], 0
jmp 0x40b06e
xor eax, eax
mov dword [ebp], eax
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40be30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x40d300
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebx + 4]
test al, 1
jne 0x40bec8
and eax, 0xfffffffc
mov esi, dword [eax + 8]
push dword [0x436658]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40bec8
add esi, 0x14
nop word cs:[eax + eax]
cmp dword [eax], esi
je 0x40be9d
mov eax, dword [eax + 8]
test eax, eax
jne 0x40be90
jmp 0x40bec8
cmp dword [eax + 4], 0
je 0x40bec8
mov dword [ebp - 0x24], ebx
mov eax, dword [edi]
mov dword [edi], 0
test eax, eax
je 0x40bec3
mov ecx, dword [eax]
mov dword [ebp - 0x10], 1
push 1
push eax
call ecx
add esp, 8
jmp 0x40bf9b
push dword [0x436658]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40bee4
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 0xffffffff
jmp 0x40bee6
xor eax, eax
mov dword [ebp - 0x10], 0xffffffff
sub esp, 0x10
movzx ecx, byte [ebp - 0x20]
mov byte [esp], cl
mov dword [esp + 4], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x28
call fcn.00407820
add esp, 0x10
mov esi, eax
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0x40c320
mov dword [eax + 0x1c], 0
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov eax, dword [edi]
mov dword [esi + 0x20], eax
mov dword [edi], 0
mov eax, dword [ebx + 4]
and eax, 0xfffffffc
mov edi, dword [eax + 8]
lock inc dword [edi + 0x18]
mov dword [esi + 0x1c], 1
push esi
push 0
push 0
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x40bf9b
lea ebx, [edi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x54]
mov dword [esi + 0x14], 0
mov ecx, dword [edi + 0x58]
lea edx, [ecx + 0x14]
test ecx, ecx
cmove edx, eax
mov dword [edx], esi
mov dword [edi + 0x58], esi
mov eax, 1
xchg dword [edi + 0x34], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x40c000
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
push dword [0x436658]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40c03a
add esi, 0x14
nop word cs:[eax + eax]
cmp dword [eax], esi
je 0x40c02d
mov eax, dword [eax + 8]
test eax, eax
jne 0x40c020
jmp 0x40c03a
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40c03a
pop esi
jmp fcn.0040c110
pop esi
ret
Function at 0x40c040
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, ecx
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x40d310
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x40c09b
mov eax, dword [eax + 0x20]
test eax, eax
je 0x40c094
mov ecx, dword [eax]
mov dword [ebp - 0x10], 0
push 0
push eax
mov dword [ebp - 0x20], edi
call ecx
mov edi, dword [ebp - 0x20]
add esp, 8
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x40c0e8
push dword [0x436658]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40c0c4
mov eax, dword [eax + 4]
test eax, eax
je 0x40c0c4
cmp dword [eax], 0
je 0x40c0cf
cmp dword [eax + 4], 0
je 0x40c0d3
push esi
call fcn.00416c13
add esp, 4
jmp 0x40c0e1
xor ecx, ecx
jmp 0x40c0d8
mov ecx, 1
movzx edx, byte [esi + 0x28]
mov byte [esi], dl
mov dword [eax + ecx*4], esi
mov dword [edi + 4], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40c9c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, ecx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x40d350
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
je 0x40ca16
mov dword [ecx], 1
mov dword [ecx + 4], 0x435008
movsd xmm0, qword [ecx]
movsd qword [ebx], xmm0
jmp 0x40cb98
mov ebx, dword [ebp + 0x10]
push 1
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x40ca77
mov esi, eax
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
cmp ebx, 0x17
jne 0x40ca59
mov dword [ebp - 0x2c], 0
push 4
lea eax, [ebp - 0x2c]
push eax
push 0x1b
push 0x29
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 4]
push 0
push 0
push dword [eax + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x40ca95
mov edi, 0x43536c
xor eax, eax
jmp 0x40caa0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 4], 0x435000
mov dword [ecx], eax
movsd xmm0, qword [ecx]
mov ebx, dword [ebp + 8]
jmp 0x40ca0d
mov edi, section..data
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
mov dword [edx + 4], edi
test eax, eax
je 0x40cab9
mov dword [ecx], eax
mov dword [ecx + 4], edi
jmp 0x40cb69
mov dword [ebp - 0x24], 0xffffffff
mov edx, dword [ebp + 0xc]
mov dword [edx], esi
mov ecx, dword [ebp + 0x14]
cmp ecx, 2
sete al
shl al, 5
cmp ecx, 1
movzx eax, al
mov ecx, 0x10
cmovne ecx, eax
mov byte [edx + 4], cl
mov dword [ebp - 0x10], 0
push 0x10
call fcn.0040d42e
add esp, 4
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_resource_void___struct_asio::detail::socket_ops::noop_deleter_.0
mov dword [eax + 0xc], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov esi, dword [ecx + 0xc]
mov dword [ecx + 0xc], eax
test esi, esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
je 0x40cb47
lock dec dword [esi + 4]
jne 0x40cb47
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [ebp + 0x1c]
lock dec dword [esi + 8]
jne 0x40cb47
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp + 0x1c]
mov dword [eax + 4], 0x43536c
mov dword [eax], 0
mov esi, dword [ebp - 0x24]
mov dword [ebx + 4], 0x43536c
mov dword [ebx], 0
cmp esi, 0xffffffff
je 0x40cb98
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x43536c
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x1d]
lea ecx, [ebp - 0x2c]
push ecx
push 1
push eax
push esi
call fcn.0040afa0
add esp, 0x10
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
Function at 0x40ce50
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x118
mov edi, dword [esp + 0x13c]
mov esi, dword [esp + 0x134]
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x130]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 0x10], ecx
cmp word [esi], 2
mov ecx, 0x10
mov ebp, 0x1c
cmove ebp, ecx
mov ebx, dword [eax]
cmp ebx, 0xffffffff
je 0x40cf72
movzx eax, byte [eax + 4]
mov byte [esp + 3], al
lea eax, [ebx + 1]
mov dword [esp + 4], eax
nop word cs:[eax + eax]
mov dword [esp + 0x14], 0
push 0
push 0
push ebp
push dword [esp + 0x140]
push dword [esp + 0x148]
lea eax, [esp + 0x28]
push eax
push 1
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_WSASendTo]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 4], 0x435000
mov dword [edi], eax
cmp eax, 0x40
je 0x40cf20
cmp eax, 0x4d2
jne 0x40cf27
mov eax, 0x274d
jmp 0x40cf25
mov eax, 0x2746
mov dword [edi], eax
test esi, esi
je 0x40cf83
xor esi, esi
test byte [esp + 3], 1
jne 0x40cfa5
cmp eax, 0x2733
je 0x40cf42
cmp eax, 0x4d5
jne 0x40cfa5
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 1
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x40cf96
mov dword [edi], 0
jmp 0x40cec0
mov dword [edi], 0x2719
mov dword [edi + 4], 0x435000
xor esi, esi
jmp 0x40cfa5
mov dword [edi], 0
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
cmovg esi, eax
jmp 0x40cfa5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 4], 0x435000
mov dword [edi], eax
mov eax, esi
add esp, 0x118
pop esi
pop edi
pop ebx
pop ebp
ret 0x14

Function at 0x40e968
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x40e98f
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x40e992
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0040e944
pop esi
leave
ret 8

Function at 0x40ed35
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ed74
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ed74
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ed74
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ed74
cmp dword [ecx + 0x74], 0xe
jbe 0x40ed74
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41aaf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41ab1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41ab1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret