joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e670
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48e6e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x693538]
mov edx, eax
test cl, 1
jne 0x48e6c0
or ecx, 1
mov dword [0x693530], 0x25c5e09b
mov eax, vtable.boost::system::detail::system_error_category.0
mov dword [0x693538], ecx
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], eax
jmp 0x48e6c5
mov eax, dword [0x693528]
mov eax, dword [eax + 0x18]
mov ecx, 0x693528
push edx
mov dword [ebp - 0xc], edx
call eax
mov byte [ebp - 8], al
mov dword [ebp - 4], 0x693528
test al, al
jne 0x48e6e8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x615e54
lea eax, [ebp - 0xc]
push eax
call fcn.0048cef0
int3

Function at 0x491b00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa6eb
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
mov eax, dword [0x68a300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x68]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x60]
mov eax, dword [esi + 8]
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0xc]
push 0xffffffffffffffff
mov dword [ebp - 0x64], eax
lea eax, [esi + 0x10]
push 0
push eax
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
call fcn.00420f90
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x44], eax
lea eax, [esi + 0x30]
push eax
mov dword [ebp - 4], 0
call fcn.004b9140
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x68]
push eax
push dword [esi]
mov dword [ebp - 4], 1
lea ecx, [ecx + 0x10]
call fcn.0049bf00
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], 2
test eax, eax
je 0x491bc1
test al, 1
jne 0x491bba
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x491bba
lea ecx, [ebp - 0x28]
push 2
push ecx
push ecx
call eax
add esp, 0xc
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x4c], 0x10
jb 0x491bd2
push dword [ebp - 0x60]
call fcn.005ba02a
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 0x4b8f20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fe763
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x68a300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
call fcn.00440520
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.004f10d0
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 0x4bb5b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa010
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x68a300]
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.005bc230
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 0x4bb644
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 0x4c4e10
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ffc87
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x68a300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi], vtable.boost::asio::detail::select_reactor.0
mov esi, dword [eax]
lea eax, [ebp - 0x18]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.004ae4e0
add esp, 8
lea eax, [ebp - 0x18]
mov ecx, esi
push dword [esi + 0x18]
push 0x4a7220
push eax
call fcn.004e0330
lea ecx, [edi + 0x18]
mov dword [edi + 0x14], eax
call fcn.0048bce0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 1
call fcn.004e9400
push 0x4c72f0
push 0x4bd250
push 4
push 0x1c
lea eax, [edi + 0x38]
mov byte [ebp - 4], 2
push eax
call fcn.005c101a
push fcn.004c57e0
push 0x4c5520
push 3
push 0xc
lea eax, [edi + 0xa8]
mov byte [ebp - 4], 3
push eax
call fcn.005c101a
mov dword [edi + 0xcc], 0
push 0xc
mov byte [ebp - 4], 4
mov byte [edi + 0xd0], 0
mov dword [edi + 0xd4], 0
mov byte [edi + 0xd8], 0
call fcn.005b9fd9
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x4c4f5d
push 0x10
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.005b9fd9
add esp, 4
test eax, eax
je 0x4c4f49
mov dword [eax], vtable.boost::asio::detail::win_thread::func_class_boost::asio::detail::select_reactor::thread_function_.0
mov dword [eax + 0xc], edi
jmp 0x4c4f4b
xor eax, eax
push 0
push eax
mov ecx, esi
call fcn.004f5170
mov dword [edi + 0xd4], esi
jmp 0x4c4f67
mov dword [edi + 0xd4], 0
mov eax, edi
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 0x4c5550
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ffe51
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x68a300]
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.005bc550
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.0048bce0
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 0x4c56fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x693538]
mov edx, eax
test cl, 1
jne 0x4c56c2
or ecx, 1
mov dword [0x693530], 0x25c5e09b
mov eax, vtable.boost::system::detail::system_error_category.0
mov dword [0x693538], ecx
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], eax
jmp 0x4c56c7
mov eax, dword [0x693528]
mov eax, dword [eax + 0x18]
mov ecx, 0x693528
push edx
mov dword [ebp - 0x138], edx
call eax
mov byte [ebp - 0x134], al
mov dword [ebp - 0x130], 0x693528
test al, al
je 0x4c56fd
push str.iocp
lea eax, [ebp - 0x138]
push eax
call fcn.0048cef0
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.005ba7b4
mov esp, ebp
pop ebp
ret 8
Function at 0x4d6e50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x69356c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d6e69
mov eax, dword [eax + 4]
jmp 0x4d6e6b
xor eax, eax
push dword [ebp + 8]
mov byte [ebp - 4], 0
push eax
push dword [ebp - 4]
call fcn.00496460
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x4d6e90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x69356c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d6ea8
mov edx, dword [eax + 4]
jmp 0x4d6eaa
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x4d6ec9
test edx, edx
je 0x4d6ec9
cmp dword [edx], 0
jne 0x4d6ec9
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [edx], ecx
pop ebp
ret
push dword [ebp + 8]
call fcn.005ba02a
add esp, 4
pop ebp
ret

Function at 0x4d8a30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x14]
cmp ebx, 0xffffffff
je 0x4d8b5e
cmp byte [ebp + 0x10], 0
je 0x4d8aa0
mov esi, dword [ebp + 0xc]
test byte [esi], 8
je 0x4d8aa0
xor eax, eax
lea ecx, [ebp - 0xc]
mov dword [ebp + 8], eax
call fcn.0048ba00
or byte [esi], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp + 8]
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.004a8700
add esp, 8
test eax, eax
jne 0x4d8aa0
lea ecx, [ebp - 0xc]
call fcn.0048ba00
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.004a8700
mov esi, eax
add esp, 8
test esi, esi
je 0x4d8b5e
push 0
push 0x2733
lea ecx, [ebp - 0xc]
call fcn.0048fc20
mov ecx, dword [edi]
cmp ecx, dword [ebp - 0xc]
jne 0x4d8b02
mov edx, dword [ebp - 4]
mov ecx, dword [edi + 8]
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
jne 0x4d8af2
cmp ecx, edx
sete al
test al, al
jne 0x4d8b22
jmp 0x4d8b02
mov eax, dword [edx + 8]
cmp dword [ecx + 8], eax
jne 0x4d8b02
mov eax, dword [edx + 0xc]
cmp dword [ecx + 0xc], eax
je 0x4d8b22
push 0
push 0x4d5
lea ecx, [ebp - 0xc]
call fcn.0048fc20
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004caa30
add esp, 8
test al, al
je 0x4d8b5a
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 0xc]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.004a8700
add esp, 8
mov esi, eax
test esi, esi
jne 0x4d8ba8
mov eax, dword [0x693538]
mov dword [ebp - 0xc], 0
mov byte [ebp - 8], 0
test al, 1
jne 0x4d8b98
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d44
movq xmm0, qword [ebp - 0xc]
movq qword [edi], xmm0
mov dword [edi + 8], 0x693528
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ebc10
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x68a300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x4ebc4e
push 0x2719
mov ecx, edi
call fcn.0048fde0
pop edi
or eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x20c], 1
push ebx
test ecx, ecx
js 0x4ebca9
mov eax, 0x10624dd3
lea ebx, [ebp - 0x220]
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x220], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [ebp - 0x21c], eax
jmp 0x4ebcab
xor ebx, ebx
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [0x693538]
mov esi, eax
pop ebx
test cl, 1
jne 0x4ebd03
or ecx, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], ecx
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d44
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x218], eax
mov ecx, 0x693528
push eax
mov eax, dword [0x693528]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x214], al
movq xmm0, qword [ebp - 0x218]
movq qword [edi], xmm0
mov dword [edi + 8], 0x693528
test esi, esi
js 0x4ebd8f
mov eax, dword [0x693538]
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x214], 0
test al, 1
jne 0x4ebd7c
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d44
movq xmm0, qword [ebp - 0x218]
movq qword [edi], xmm0
mov dword [edi + 8], 0x693528
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.005ba7b4
mov esp, ebp
pop ebp
ret
Function at 0x4ebdb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602f10
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x68a300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x4ebe52
mov ecx, edi
call fcn.004f5640
mov eax, dword [0x693538]
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
test al, 1
jne 0x4ebe2a
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d44
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp - 0x20]
movq qword [eax], xmm0
mov dword [eax + 8], 0x693528
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
test edi, edi
je 0x4ebe70
lea eax, [edi + 0x14]
jmp 0x4ebe72
xor eax, eax
push dword [0x69356c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x69356c]
call esi
push dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], 1
push 0
call fcn.004dfd60
push dword [ebp - 0x18]
mov edi, eax
push dword [0x69356c]
call esi
xor esi, esi
jmp 0x4ebec0
mov eax, dword [ebp + esi*4 - 0x14]
test eax, eax
je 0x4ebed1
push eax
call fcn.005ba02a
add esp, 4
inc esi
cmp esi, 2
jl 0x4ebec0
mov eax, edi
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 0x4ee780
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push edi
push 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
push eax
call fcn.004a8700
mov ecx, dword [edi]
add esp, 8
mov ebx, eax
cmp ecx, 0x40
jne 0x4ee7dc
push 0x2746
mov ecx, edi
call fcn.0048fde0
jmp 0x4ee81e
cmp ecx, 0x4d2
jne 0x4ee7f2
push 0x274d
mov ecx, edi
call fcn.0048fde0
jmp 0x4ee81e
cmp ecx, 0x2738
je 0x4ee802
cmp ecx, 0xea
jne 0x4ee81e
push esi
mov esi, dword [edi + 8]
mov ecx, esi
mov dword [edi], 0
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
call eax
mov dword [edi + 8], esi
mov byte [edi + 4], al
pop esi
test ebx, ebx
je 0x4ee82b
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x693538]
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
test al, 1
jne 0x4ee865
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d44
movq xmm0, qword [ebp - 0x14]
mov eax, dword [ebp - 4]
movq qword [edi], xmm0
mov dword [edi + 8], 0x693528
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f26b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6034f0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x68a300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x4f2754
mov ecx, esi
call fcn.004f5640
mov eax, dword [0x693538]
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
test al, 1
jne 0x4f272b
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d44
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp - 0x20]
movq qword [eax], xmm0
mov dword [eax + 8], 0x693528
xor eax, eax
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
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
test esi, esi
je 0x4f2772
lea eax, [esi + 0x14]
jmp 0x4f2774
xor eax, eax
push dword [0x69356c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x69356c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, esi
push ebx
push 0xffffffffffffffff
mov byte [ebp - 4], 1
xor edi, edi
call fcn.004dfd60
test eax, eax
je 0x4f27c7
cmp edi, 0xffffffff
je 0x4f27b9
inc edi
push ebx
push 0xffffffffffffffff
mov ecx, esi
call fcn.004dfd60
test eax, eax
jne 0x4f27b3
push dword [ebp - 0x18]
push dword [0x69356c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
mov eax, dword [ebp + esi*4 - 0x14]
test eax, eax
je 0x4f27e9
push eax
call fcn.005ba02a
add esp, 4
inc esi
cmp esi, 2
jl 0x4f27d8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f2b70
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [ebp + 0xc], 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
jne 0x4f2be3
test edx, edx
jne 0x4f2be3
test ecx, ecx
jne 0x4f2be3
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4f2c04
mov eax, 0x10624dd3
imul dword [esi + 4]
imul eax, dword [esi], 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
mov eax, 1
cmove ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0xc]
call fcn.0048ba00
mov ecx, dword [ebp + 0x1c]
pop esi
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4f2c04
cmp dword [esi], 0
jne 0x4f2c04
mov eax, dword [esi + 4]
test eax, eax
jle 0x4f2c04
cmp eax, 0x3e8
jge 0x4f2c04
mov dword [esi + 4], 0x3e8
push edi
mov edi, dword [ebp + 0x1c]
push edi
push esi
push ecx
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.004a8700
add esp, 8
test eax, eax
js 0x4f2c72
mov ecx, dword [0x693538]
mov dword [ebp - 0xc], 0
mov byte [ebp - 8], 0
test cl, 1
jne 0x4f2c62
or ecx, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], ecx
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d44
movq xmm0, qword [ebp - 0xc]
movq qword [edi], xmm0
mov dword [edi + 8], 0x693528
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4f2c80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 4]
push esi
push 0
push 0
push dword [ebp + 0x14]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
push eax
call fcn.004a8700
mov ecx, dword [esi]
add esp, 8
mov edi, eax
cmp ecx, 0x40
jne 0x4f2cce
push 0x2746
jmp 0x4f2cdb
cmp ecx, 0x4d2
jne 0x4f2ce2
push 0x274d
mov ecx, esi
call fcn.0048fde0
test edi, edi
je 0x4f2cef
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x693538]
mov dword [ebp - 0x10], 0
mov byte [ebp - 0xc], 0
test al, 1
jne 0x4f2d29
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d44
movq xmm0, qword [ebp - 0x10]
mov eax, dword [ebp - 4]
movq qword [esi], xmm0
pop edi
mov dword [esi + 8], 0x693528
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f3710
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [ebp + 0x14]
push edi
push 1
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASocketW]
push eax
call fcn.004a8700
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x4f3751
pop edi
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0x17
jne 0x4f376f
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x1b
push 0x29
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [0x693538]
mov dword [ebp - 0x10], 0
mov byte [ebp - 0xc], 0
test al, 1
jne 0x4f37a9
or eax, 1
mov dword [0x693530], 0x25c5e09b
mov dword [0x693538], eax
mov dword [0x693534], 0x8fafd21e
mov dword [0x693528], 0x615d44
movq xmm0, qword [ebp - 0x10]
mov eax, esi
movq qword [edi], xmm0
mov dword [edi + 8], 0x693528
pop edi
pop esi
mov esp, ebp
pop ebp
ret