joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bec0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x118
mov eax, dword [0x501230]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x11c]
push ebx
mov ebx, dword [esp + 0x124]
push ebp
push esi
push edi
push 4
mov dword [esp + 0x20], eax
call fcn.00405450
mov edi, eax
push 4
mov dword [esp + 0x20], edi
call fcn.00405450
mov ecx, dword [esp + 0x24]
xor ebp, ebp
add esp, 8
mov dword [esp + 0x14], eax
cmp dword [ecx + 4], ebp
jbe 0x41c01a
mov eax, dword [ecx]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
push ecx
mov eax, dword [eax + ebp*4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], 0x80
mov eax, dword [eax + 8]
push dword [eax]
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
je 0x41bf77
push 1
push str.CONNR
call fcn.004073a0
add esp, 8
test eax, eax
je 0x41bff5
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
push dword [eax]
push str.CONN:_getsockname_failed__fd_u__n
push 1
push str.CONNR
call fcn.00407400
add esp, 0x10
jmp 0x41bff5
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xa8]
push eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
push dword [eax]
call dword [sym.imp.WSOCK32.dll_getpeername]
test eax, eax
je 0x41bfc9
push 1
push str.CONNR
call fcn.004073a0
add esp, 8
test eax, eax
je 0x41bff5
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
push dword [eax]
push str.CONN:_getpeername_failed__fd_u__n
push 1
push str.CONNR
call fcn.00407400
add esp, 0x10
jmp 0x41bff5
xor esi, esi
cmp dword [ebx + 4], esi
jbe 0x41bff5
mov eax, dword [ebx]
mov edi, dword [eax + esi*4]
lea eax, [esp + 0x24]
push eax
push edi
call fcn.00406e20
add esp, 8
test eax, eax
jne 0x41c06c
inc esi
cmp esi, dword [ebx + 4]
jb 0x41bfd0
mov edi, dword [esp + 0x18]
push 1
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
call fcn.00405640
mov ecx, dword [esp + 0x28]
inc ebp
add esp, 0xc
cmp ebp, dword [ecx + 4]
jb 0x41bf14
mov eax, dword [esp + 0x14]
xor esi, esi
cmp dword [eax + 4], esi
jbe 0x41c044
mov eax, dword [eax]
push 1
mov eax, dword [eax + esi*4]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push edi
call fcn.00405640
mov eax, dword [esp + 0x20]
inc esi
add esp, 0xc
cmp esi, dword [eax + 4]
jb 0x41c021
lea eax, [esp + 0x14]
push eax
call fcn.00405490
mov ecx, dword [esp + 0x128]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c75e8
add esp, 0x118
ret
test edi, edi
je 0x41bff1
lea eax, [esp + 0xa4]
push eax
push edi
call fcn.00407080
mov edi, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x41bff5
push 1
lea eax, [esp + 0x14]
push eax
push edi
jmp 0x41c000
Function at 0x424e50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd059
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x501230]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x50]
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
push eax
mov dword [ebp - 0x5c], edi
lea eax, [esi + 4]
mov dword [ebp - 0x58], 0
push eax
mov dword [ebp - 0x54], vtable.std::exception.0
movq qword [ebp - 0x50], xmm0
call sub.VCRUNTIME140.dll___std_exception_copy
add esp, 8
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 0x3c]
movq xmm0, qword [esi + 0xc]
mov dword [ebp - 0x40], eax
lea eax, [esi + 0x18]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], vtable.boost::system::system_error.0
movq qword [ebp - 0x48], xmm0
call fcn.00426350
movaps xmm0, xmmword [0x4e25b0]
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x54], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [ebp - 0x24], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov dword [edi + 0x44], 0x4e25a4
mov dword [ebp - 4], 1
mov dword [edi + 0x4c], vtable.boost::exception_detail::clone_base.0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
mov dword [ebp - 0x58], 6
call fcn.004268b0
mov eax, dword [edi + 0x44]
lea esi, [edi + 0x30]
mov dword [edi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::lock_error__.0
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::lock_error__.1.0
mov dword [ebp - 4], 4
mov eax, dword [eax + 4]
mov dword [eax + edi + 0x44], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::lock_error__.2.0
mov eax, dword [edi + 0x44]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0x40], eax
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.00429460
mov eax, dword [edi + 0x44]
add esp, 8
mov dword [edi], vtable.boost::wrapexcept_class_boost::lock_error_.0
mov dword [esi], vtable.boost::wrapexcept_class_boost::lock_error_.1.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 0x44], vtable.boost::wrapexcept_class_boost::lock_error_.2.0
mov eax, dword [edi + 0x44]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0x40], eax
mov dword [ebp - 0x54], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [ebp - 0x24], vtable.boost::exception.0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 5
test ecx, ecx
je 0x424fac
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [ebp - 0x20]
xor edx, edx
test al, al
cmovne ecx, edx
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], vtable.boost::thread_exception.0
call fcn.00427c40
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.004c75e8
mov esp, ebp
pop ebp
ret
Function at 0x4268b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd5c5
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x501230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
lea eax, [edi + 4]
xorps xmm0, xmm0
mov dword [edi], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [ebx + 4]
push eax
call sub.VCRUNTIME140.dll___std_exception_copy
add esp, 8
mov dword [edi], vtable.boost::system::system_error.0
lea ecx, [edi + 0x18]
movq xmm0, qword [ebx + 0xc]
movq qword [edi + 0xc], xmm0
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x14], eax
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 4], 0
call fcn.00426350
mov dword [edi], vtable.boost::lock_error.0
lea esi, [edi + 0x30]
mov dword [ebp - 4], 1
mov dword [esi], vtable.boost::exception.0
mov ecx, dword [ebx + 0x34]
mov dword [ebp + 8], esi
mov dword [esi + 4], ecx
test ecx, ecx
je 0x42694c
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x38]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x3c]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x40]
mov dword [esi + 0x10], eax
mov eax, edi
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [esi], 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
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426a40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd635
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x501230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
lea eax, [edi + 4]
xorps xmm0, xmm0
mov dword [edi], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [ebx + 4]
push eax
call sub.VCRUNTIME140.dll___std_exception_copy
add esp, 8
mov dword [edi], vtable.boost::system::system_error.0
lea ecx, [edi + 0x18]
movq xmm0, qword [ebx + 0xc]
movq qword [edi + 0xc], xmm0
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x14], eax
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 4], 0
call fcn.00426350
mov dword [edi], vtable.boost::thread_resource_error.0
lea esi, [edi + 0x30]
mov dword [ebp - 4], 1
mov dword [esi], vtable.boost::exception.0
mov ecx, dword [ebx + 0x34]
mov dword [ebp + 8], esi
mov dword [esi + 4], ecx
test ecx, ecx
je 0x426adc
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x38]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x3c]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x40]
mov dword [esi + 0x10], eax
mov eax, edi
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x430930
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x89c
mov eax, dword [0x501230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x894], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x88c], eax
mov eax, dword [ebp + 0x20]
push eax
push ecx
push edi
mov dword [ebp - 0x890], ecx
mov dword [ebp - 0x89c], edx
mov dword [ebp - 0x898], ebx
mov dword [edx], 0
call fcn.00431410
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
je 0x430ab7
test esi, esi
je 0x430a0e
lea eax, [ebp - 0x888]
mov dword [ebp - 0x888], 0x80
push eax
lea eax, [ebp - 0x884]
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jns 0x4309d0
push str.getsockname
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
add esp, 4
jmp 0x430a0e
push 0xa
push 0
push 0
push dword [ebp - 0x88c]
lea eax, [ebp - 0x884]
push esi
push dword [ebp - 0x888]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x430a0e
push eax
push str.getnameinfo___failed_:__d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004020f0
add esp, 0xc
mov eax, dword [ebp - 0x890]
movzx eax, ax
push eax
push edi
push 0x4e2d04
push dword [ebp - 0x894]
lea eax, [ebp - 0x804]
push str.GET__s_HTTP__s_r_nHost:__s:_d_r_nConnection:_Close_r_nUser_Agent:_Windows__UPnP_1.1__MiniUPnPc_2.2.1_r_n_r_n
push 0x800
push eax
call fcn.0042aae0
mov edi, eax
add esp, 0x1c
cmp edi, 0x800
jae 0x430ab0
xor esi, esi
test edi, edi
jle 0x430a71
nop dword [eax]
push 0
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp - 0x804]
add eax, esi
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
js 0x430aa2
add esi, eax
cmp esi, edi
jl 0x430a50
push dword [ebp - 0x898]
push dword [ebp - 0x89c]
push ebx
call fcn.00430150
add esp, 0xc
mov esi, eax
push ebx
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
push str.send
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
add esp, 4
push ebx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
Function at 0x430e30
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x501230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x1c]
mov esi, eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x218], eax
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x430e70
mov byte [ebp - 0xc], al
sub esi, ecx
mov ax, word [ebp + 0x14]
cmp ax, 0x50
je 0x430e9d
movzx eax, ax
push eax
push str.:_hu
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.0042aae0
add esp, 0x10
push dword [ebp - 0x210]
lea eax, [ebp - 0xc]
push esi
push eax
push ebx
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push edi
push str.POST__s_HTTP__s_r_nHost:__s_s_r_nUser_Agent:_Windows__UPnP_1.1__MiniUPnPc_2.2.1_r_nContent_Length:__d_r_nContent_Type:_text_xml_r_nSOAPAction:___s__r_nConnection:_Close_r_nCache_Control:_no_cache_r_nPragma:_no_cache_r_n_r_n
push 0x200
push eax
call fcn.0042aae0
mov ebx, eax
add esp, 0x24
cmp ebx, 0x200
jb 0x430ee7
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
lea eax, [ebx + esi]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x430f10
or esi, 0xffffffff
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
push esi
push dword [ebp - 0x218]
lea eax, [edi + ebx]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x18
lea eax, [ebx + esi]
push 0
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
test esi, esi
jns 0x430f6c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.send
push str.Socket_error:__s___d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004020f0
add esp, 0x10
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
Function at 0x431620
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x431667
push eax
call dword [sym.imp.WSOCK32.dll_ntohl]
xor edx, edx
nop dword [eax]
mov ecx, dword [edx + 0x4e3694]
mov esi, eax
mov edi, dword [edx + 0x4e3690]
shr edi, cl
shr esi, cl
cmp esi, edi
je 0x431667
add edx, 8
cmp edx, 0x90
jb 0x431640
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x431be0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x501230]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, 0x10624dd3
imul ecx
push ebx
sar edx, 6
mov eax, edx
mov ebx, dword [ebp + 0xc]
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x110], eax
imul eax, eax, 0x3e8
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x18]
sub ecx, eax
mov dword [ebp - 0x104], esi
imul eax, ecx, 0x3e8
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0x40
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
jns 0x431c94
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.select
push str.Socket_error:__s___d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004020f0
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
jne 0x431ca9
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 0x10]
push ebx
push esi
call dword [sym.imp.WSOCK32.dll_recv]
mov esi, eax
test esi, esi
jns 0x431ce1
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.recv
push str.Socket_error:__s___d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.004020f0
add esp, 0x10
test edi, edi
je 0x431ceb
mov dword [edi], 0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c75e8
mov esp, ebp
pop ebp
ret
Function at 0x445d20
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
push esi
mov esi, dword [esp + 0xc]
cmp esi, 4
jb 0x445d45
mov ecx, esi
shr ecx, 2
xor eax, dword [edx]
sub esi, 4
add edx, 4
rol eax, 0xd
sub ecx, 1
jne 0x445d35
test esi, esi
je 0x445d60
nop dword [eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
rol eax, 8
sub esi, 1
jne 0x445d50
pop esi
ret

Function at 0x4498a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4c
push ebx
push esi
push edi
push 0x34
call fcn.00407e60
mov ecx, dword [esp + 0x60]
mov ebx, eax
mov esi, dword [esp + 0x64]
add esp, 4
xor eax, eax
mov dword [esp + 0xc], ebx
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x74]
mov dword [ebx + 4], 4
mov dword [ebx + 8], 1
mov dword [esp + 0x40], 0x4496f0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 1
mov dword [esp + 0x3c], 0x4e7464
test esi, esi
je 0x449926
movzx edx, word [esi]
movzx ecx, word [esp + 0x20]
test dx, dx
mov eax, edx
cmovne ecx, eax
mov eax, 0x10
mov word [esp + 0x20], cx
xor ecx, ecx
test dx, dx
cmove eax, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x449926
mov dword [esp + 0x3c], ecx
or eax, 0x2304
push eax
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0044ae90
mov edi, eax
add esp, 0xc
test edi, edi
je 0x44996b
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
push dword [esp + 0x70]
push edi
call fcn.0044fb20
add esp, 4
push eax
push dword [esp + 0x6c]
call dword [esp + 0x78]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
test esi, esi
je 0x449a2a
mov esi, dword [esi + 4]
mov dword [esp + 0x74], esi
test esi, esi
je 0x449a2a
mov eax, dword [esi + 4]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.00407e60
add esp, 4
mov dword [esp + 0x5c], eax
test eax, eax
jne 0x4499a2
mov dword [esp + 0x5c], eax
jmp 0x449a16
push ebp
xor edi, edi
xor ebp, ebp
cmp dword [esi + 4], edi
jbe 0x449a15
mov ebx, dword [esp + 0x78]
lea esi, [eax + 8]
mov eax, dword [ebx]
push 0
push dword [eax + edi*4]
call fcn.00407150
mov edx, eax
add esp, 8
test edx, edx
je 0x449a04
movzx ecx, word [edx]
mov dword [esi - 4], ecx
movzx eax, word [edx]
sub eax, 2
je 0x4499e4
sub eax, 0x15
jne 0x4499e9
movups xmm0, xmmword [edx + 8]
movups xmmword [esi], xmm0
jmp 0x4499e9
mov eax, dword [edx + 4]
mov dword [esi], eax
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test ebp, ebp
je 0x449a01
lea eax, [esi - 8]
mov dword [ebp], eax
mov ebp, eax
jmp 0x449a04
lea ebp, [esi - 8]
inc edi
add esi, 0x18
cmp edi, dword [ebx + 4]
jb 0x4499b3
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x60]
pop ebp
push eax
push dword [ebx]
call fcn.0044fdd0
push dword [esp + 0x64]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 0xc
push dword [esp + 0x64]
call fcn.00406760
mov dword [ebx + 0x20], eax
add esp, 4
mov eax, dword [esp + 0x70]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x6c]
pop edi
mov dword [ebx + 0x30], eax
mov eax, ebx
pop esi
pop ebx
add esp, 0x4c
ret
Function at 0x44aa50
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x509570]
test eax, eax
je 0x44aa66
inc eax
mov dword [0x509570], eax
xor eax, eax
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
mov dword [0x509570], 1
push esi
test bl, 1
je 0x44ab20
push str.iphlpapi.dll
mov dword [0x509578], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x509578], eax
test eax, eax
jne 0x44aaa5
pop esi
mov eax, 0x16
pop ebx
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNetworkParams
push eax
call esi
mov dword [0x509560], eax
test eax, eax
jne 0x44aad1
push dword [0x509578]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, 0x17
pop ebx
pop ebp
ret
push 0x4e797c
push dword [0x509578]
call esi
push str.GetBestRoute2
push dword [0x509578]
mov dword [0x509568], eax
call esi
push str.advapi32.dll
mov dword [0x50956c], eax
mov dword [0x50957c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x50957c], eax
test eax, eax
je 0x44ab20
push str.SystemFunction036
push eax
call esi
mov dword [0x509564], eax
pop esi
mov dword [0x509574], ebx
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x44c3d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esi], 0
call fcn.00451220
cmp eax, 3
jne 0x44c4c6
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.WSOCK32.dll_bind
mov dword [ebp + 8], 0
mov dword [esi], 0
call ebx
test eax, eax
jne 0x44c599
push esi
push str.NameServer
push dword [ebp - 4]
call fcn.0044c5b0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x44c4a4
push esi
push str.DhcpNameServer
push dword [ebp - 4]
call fcn.0044c5b0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x44c4a4
lea eax, [ebp + 8]
push eax
push 9
push edi
push str.Interfaces
push dword [ebp - 4]
call ebx
test eax, eax
je 0x44c47a
push dword [ebp - 4]
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push str.NameServer
push dword [ebp + 8]
call fcn.0044cd30
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x44c4a4
push esi
push str.DhcpNameServer
push dword [ebp + 8]
call fcn.0044cd30
add esp, 0xc
mov edi, eax
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x44c4b4
push eax
call ebx
push dword [ebp - 4]
call ebx
test edi, edi
je 0x44c599
jmp 0x44c56e
cmp eax, 2
jne 0x44c599
lea eax, [ebp + 8]
mov dword [esi], 0
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesVxDMSTCP
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44c599
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push str.NameServer
push edi
call ebx
test eax, eax
je 0x44c528
cmp eax, 0xea
jne 0x44c590
mov eax, dword [ebp - 4]
test eax, eax
je 0x44c590
inc eax
push eax
call dword [0x501134]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x44c590
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.NameServer
push edi
call ebx
test eax, eax
jne 0x44c57f
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x44c57f
mov eax, dword [esi]
mov byte [ecx + eax], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi], 0
je 0x44c599
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi]
call dword [0x50113c]
add esp, 4
mov dword [esi], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c5b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [ebp + 8]
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x44c5e6
cmp eax, 0xea
jne 0x44c640
mov eax, dword [ebp - 4]
test eax, eax
je 0x44c640
inc eax
push eax
call dword [0x501134]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x44c640
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44c62f
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x44c62f
mov eax, dword [esi]
pop esi
mov byte [ecx + eax], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
push dword [esi]
call dword [0x50113c]
add esp, 4
mov dword [esi], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret