joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4456e0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov ebx, edx
mov dword [ebp - 4], ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
test ebx, ebx
jne 0x44574c
test ecx, ecx
jne 0x44574c
test edi, edi
jne 0x44574c
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x44576d
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]
call fcn.004a56a0
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x44576d
cmp dword [esi], 0
jne 0x44576d
mov eax, dword [esi + 4]
test eax, eax
jle 0x44576d
cmp eax, 0x3e8
jge 0x44576d
mov dword [esi + 4], 0x3e8
push esi
push edi
push ecx
push ebx
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.004a56a0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [ebp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
js 0x4457a3
call fcn.004a56a0
mov dword [edi], 0
mov dword [edi + 4], eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4457b0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x503040]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x445800
call fcn.004a56a0
mov dword [edi + 4], eax
or eax, esi
mov dword [edi], 0x2719
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
push 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, 0
lea eax, [esp + 0x18]
and bl, 1
cmove eax, ecx
push eax
push ecx
lea eax, [esp + 0x28]
push eax
push ecx
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [esp + 0x10], eax
call fcn.004a56a0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 4], esi
mov esi, dword [esp + 0x10]
mov dword [edi], eax
test esi, esi
jne 0x4458a3
test bl, bl
je 0x445885
call fcn.004a56a0
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x2733
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
jmp 0x4458b0
mov dword [esp + 0x10], 0
call fcn.004a56a0
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
jmp 0x4458b0
jle 0x4458b3
call fcn.004a56a0
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
Function at 0x445eb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x41c], 0x400
mov esi, ecx
movq qword [ebp - 0x410], xmm0
lea eax, [ebp - 0x408]
mov dword [ebp - 0x420], esi
push edi
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x410], 0
call fcn.004a56a0
mov dword [ebp - 0x40c], eax
lea edx, [ebp - 0x41c]
lea eax, [ebp - 0x410]
push eax
push ecx
mov ecx, dword [esi]
push 1
call fcn.00445300
add esp, 0xc
test eax, eax
setg bl
cmp eax, 0x400
jne 0x445fa5
mov edi, dword [sym.imp.WS2_32.dll_WSARecv]
mov esi, dword [esi]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x414], 0
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x40c], 0
push eax
push 1
lea eax, [ebp - 0x41c]
push eax
push esi
call edi
mov esi, eax
call fcn.004a56a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x445f85
cmp eax, 0x4d2
jne 0x445f8a
call fcn.004a56a0
test esi, esi
jne 0x445fa5
call fcn.004a56a0
cmp dword [ebp - 0x414], 0x400
mov esi, dword [ebp - 0x420]
je 0x445f30
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b73db
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
push edi
mov edi, dword [ebp + 0x1c]
mov eax, dword [esi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
push 0
je 0x446af4
mov ecx, dword [esi + 4]
push 0
push edi
call fcn.0043d880
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebx]
cmp ecx, 0xffffffff
jne 0x446b1c
mov ecx, dword [esi + 4]
push 0x2719
push edi
call fcn.0043d880
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x446b53
mov eax, 0x2746
jmp 0x446b60
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
je 0x446b8b
cmp eax, 0x3e5
je 0x446b8b
push dword [ebp - 8]
mov ecx, dword [esi + 4]
push eax
push edi
call fcn.0043d880
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [esi + 4]
push edi
call fcn.0043d810
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b73db
mov esp, ebp
pop ebp
ret 0x18
Function at 0x448810
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c58a4
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x503040]
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 ebx, ecx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x38]
mov dword [ebp - 4], 0
mov dword [ebx], vtable.boost::asio::basic_streambuf_class_std::allocator_char__.0
mov dword [ecx], eax
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
cmp dword [ecx], 0x80
mov dword [ebp - 0x18], 0x80
cmovbe eax, ecx
lea ecx, [ebp - 0x14]
mov esi, dword [eax]
cmp esi, 1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], esi
cmovae eax, ecx
mov dword [ebp - 0x18], 1
lea ecx, [ebx + 0x3c]
push dword [eax]
call fcn.00448e50
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, ebx
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x3c]
add esi, edx
sub esi, edx
mov dword [ecx], edx
mov ecx, dword [ebx + 0x20]
mov dword [ecx], edx
mov ecx, dword [ebx + 0x30]
mov dword [ecx], esi
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.004b73db
mov esp, ebp
pop ebp
ret 8
Function at 0x44da70
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x44dab1
call fcn.004a56a0
mov dword [edi + 4], eax
or eax, esi
mov dword [edi], 0x2719
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x118], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [ebp - 0x118]
push eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.004a56a0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x44db08
jle 0x44db16
call fcn.004a56a0
mov dword [edi + 4], eax
mov dword [edi], 0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b73db
mov esp, ebp
pop ebp
ret

Function at 0x44db30
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
jne 0x44db70
call fcn.004a56a0
mov dword [edi + 4], eax
or eax, esi
mov dword [edi], 0x2719
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.004a56a0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
js 0x44dbda
call fcn.004a56a0
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b73db
mov esp, ebp
pop ebp
ret
Function at 0x456d20
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c7208
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x503040]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.0040f3d0
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.00456c50
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x456d91
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x456dbc
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7294
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x503040]
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], vtable.boost::detail::thread_data_base.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
lea ecx, [edi + 0x14]
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.0043ac00
mov dword [edi + 0x14], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
push 0
push 0
push 1
push 0
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
jne 0x457071
push str.boost::thread_resource_error
push 0xb
lea ecx, [ebp - 0x3c]
call fcn.004112d0
mov dword [ebp - 0x3c], vtable.boost::thread_resource_error.0
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 4
push eax
call fcn.004127e0
mov dword [edi + 0x34], eax
mov eax, edi
mov byte [edi + 0x38], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x457830
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c7376
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x503040]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push esi
push edi
mov eax, dword [0x503040]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
push 0x148
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.004635b0
mov dword [esp + 0x178], 0
lea ebx, [edi + 0x48]
mov eax, ecx
xchg dword [ebx], eax
sub esp, 0x18
mov esi, esp
mov dword [esp + 0x30], esi
mov dword [esi + 0x10], 0
push 0x14
mov byte [esp + 0x194], 1
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
jne 0x4578d5
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xbad_alloc_void_]
mov ecx, dword [esp + 0x2c]
mov dword [eax], vtable.._AV___Func_impl_U___Callable_obj_V___Bind__00HU___Pmf_wrap_P8CNewThirdpartyServer__AEHPAUHINSTANCE_____ZHV1_PAU2__std__QAVCNewThirdpartyServer__AAPAUHINSTANCE_____std___0A__std__V__allocator_V___Func_class_H___V_std___2_H___V_std__.0
mov dword [eax + 4], 0x458e00
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [esi + 0x10], eax
mov byte [esp + 0x190], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push dword [esp + 0x30]
lea ecx, [esp + 0x3c]
call fcn.00463b00
xor eax, eax
xchg dword [ebx], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x178], 0xffffffff
call fcn.00463670
mov eax, 1
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 8
Function at 0x459b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x10
mov edi, eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [ebp - 0x10]
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x459c16
push eax
push eax
push eax
push eax
push 0x4d9510
push str._s__d._d._d._d
push 0x400
push ebx
call dword [sym.imp.MSVCR120.dll_sprintf_s]
add esp, 0x20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push eax
push edi
push esi
call dword [sym.imp.MSVCR120.dll_memcpy_s]
add esp, 0x10
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4d9534
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x10]
mov edi, dword [eax + 8]
mov esi, dword [eax + 0xc]
call dword [sym.imp.MSVCR120.dll_free]
movzx eax, si
push eax
shr esi, 0x10
push esi
movzx eax, di
push eax
shr edi, 0x10
push edi
push 0x4d9510
push str._s__d._d._d._d
push 0x400
push ebx
call dword [sym.imp.MSVCR120.dll_sprintf_s]
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004b73db
mov esp, ebp
pop ebp
ret
Function at 0x45c9e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c79d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x503040]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x38], 0
jne 0x45ca7f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x38], eax
mov eax, dword [0x50d5d4]
test al, 1
jne 0x45ca64
or eax, 1
mov dword [0x50d5d4], eax
push 0xe8
push 0
push 0x50d5e0
mov dword [esp + 0x2c], 0
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.00437d30
push 0x4d0d80
call fcn.004b7531
add esp, 4
mov dword [esp + 0x20], 0xffffffff
sub esp, 8
mov ecx, 0x50d6a8
call fcn.00437c30
add esp, 8
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
jmp 0x45cb8e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x50d5d4]
mov edi, eax
test cl, 1
jne 0x45cad1
or ecx, 1
mov dword [0x50d5d4], ecx
push 0xe8
push 0
push 0x50d5e0
mov dword [esp + 0x2c], 1
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.00437d30
push 0x4d0d80
call fcn.004b7531
add esp, 4
mov dword [esp + 0x20], 0xffffffff
sub esp, 8
mov ecx, 0x50d6a8
call fcn.00437c30
mov ecx, dword [0x50d5d4]
add esp, 8
mov dword [esp + 0x10], edx
mov ebx, eax
test cl, 1
jne 0x45cb31
or ecx, 1
mov dword [0x50d5d4], ecx
push 0xe8
push 0
push 0x50d5e0
mov dword [esp + 0x2c], 2
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.00437d30
push 0x4d0d80
call fcn.004b7531
add esp, 4
mov dword [esp + 0x20], 0xffffffff
sub esp, 8
mov ecx, 0x50d6b0
call fcn.00437c30
add esp, 8
test edx, edx
jne 0x45cb49
test eax, eax
je 0x45cb81
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, 0x50d6b0
call fcn.00437bf0
mov eax, edi
add esp, 8
sub eax, dword [esi + 0x38]
cmp eax, 0x3e8
jb 0x45cb81
mov eax, dword [esp + 0x10]
mov ecx, ebx
sub ecx, dword [esi + 0x40]
sbb eax, dword [esi + 0x44]
push eax
push ecx
push 0x4df930
call fcn.00431770
add esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], eax
mov dword [esi + 0x38], edi
mov eax, dword [0x50d5d4]
test al, 1
jne 0x45cbd5
or eax, 1
mov dword [0x50d5d4], eax
push 0xe8
push 0
push 0x50d5e0
mov dword [esp + 0x2c], 3
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.00437d30
push 0x4d0d80
call fcn.004b7531
add esp, 4
mov dword [esp + 0x20], 0xffffffff
mov ecx, 0x50d5e0
call fcn.00438950
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e590
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7d58
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x414]
mov byte [ebp - 0x414], 0x5c
lea ecx, [ebp + 8]
push eax
call fcn.0045ee50
mov esi, eax
cmp esi, 0xffffffff
je 0x45e604
mov eax, dword [ebp + 0x18]
dec eax
cmp esi, eax
jne 0x45e61f
sub esp, 0x18
lea ecx, [ebp + 8]
mov eax, esp
push esi
push 0
push eax
call fcn.00429dc0
call fcn.0045e590
add esp, 0x18
cmp dword [ebp + 0x1c], 0x10
jb 0x45e712
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x45e712
test esi, esi
je 0x45e604
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x448]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.MSVCR120.dll__stat64i32]
add esp, 8
test eax, eax
jne 0x45e6a3
test dword [ebp - 0x442], 0x4000
jne 0x45e70a
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x410]
push 0x4dfa88
push eax
call fcn.0040ddf0
add esp, 0xc
lea eax, [ebp - 0x410]
mov dword [ebp - 0x44c], eax
lea ecx, [ebp - 0x458]
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4fd0f8
lea eax, [ebp - 0x458]
push eax
call sub.MSVCR120.dll__CxxThrowException
sub esp, 0x18
lea ecx, [ebp + 8]
mov eax, esp
push esi
push 0
push eax
call fcn.00429dc0
call fcn.0045e590
add esp, 0x18
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x45e70a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 0xb7
je 0x45e70a
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x410]
push 0x4dfa44
push eax
call fcn.0040ddf0
add esp, 0x10
jmp 0x45e673
lea ecx, [ebp + 8]
call fcn.0040f9a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret
Function at 0x45eab0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4c7dab
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x503040]
xor eax, esp
mov dword [esp + 0x168], eax
push esi
mov eax, dword [0x503040]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov esi, ecx
push 0x100
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x45eb0b
xor eax, eax
jmp 0x45ebe5
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
lea eax, [esp + 0x28]
xorps xmm0, xmm0
push eax
push 0
lea eax, [esp + 0x70]
movdqa xmmword [esp + 0x30], xmm0
push eax
movdqa xmmword [esp + 0x44], xmm0
mov dword [esp + 0x38], 2
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
mov eax, dword [esp + 8]
test eax, eax
je 0x45eb99
mov eax, dword [eax + 0x18]
lea ecx, [esp + 0x50]
push 0x10
push ecx
add eax, 4
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_ntop]
lea eax, [esp + 0x50]
push eax
push 0x4de8c8
push 0x400
push esi
call dword [sym.imp.MSVCR120.dll_sprintf_s]
add esp, 0x10
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x45ebca
push 0
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x1c], 0
jne 0x45ebac
xor esi, esi
jmp 0x45ebcf
cmp dword [esp + 0x20], 0x10
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
push 0x400
push esi
call dword [sym.imp.MSVCR120.dll_strcpy_s]
add esp, 0xc
mov esi, 1
cmp dword [esp + 0x20], 0x10
jb 0x45ebe3
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.004b73db
mov esp, ebp
pop ebp
ret