joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405900
Capabilities:
Connect socket

Disassembly:
push edi
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WSOCK32.dll_connect]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405937
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.004068d0
add esp, 4
mov dword [esi], eax
mov eax, edi
pop esi
pop edi
ret

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

Disassembly:
push edi
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WSOCK32.dll_getsockname]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405af7
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.004068d0
add esp, 4
mov dword [esi], eax
mov eax, edi
pop esi
pop edi
ret

Function at 0x405dd0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x501230]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x405e3b
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push eax
call fcn.004067e0
add esp, 4
push eax
push str.WSAStartup_failed:__s___d__n
push 1
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
mov eax, 1
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004c75e8
add esp, 0x194
ret
mov ecx, dword [esp + 0x190]
xor eax, eax
xor ecx, esp
call fcn.004c75e8
add esp, 0x194
ret
Function at 0x406540
Capabilities:
Receive data
Receive data on socket

Disassembly:
push edi
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.WSOCK32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406579
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.004068d0
add esp, 4
mov dword [esi], eax
mov eax, edi
pop esi
pop edi
ret

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

Disassembly:
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WSOCK32.dll_recvfrom]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4065c3
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.004068d0
add esp, 4
mov dword [esi], eax
mov eax, edi
pop esi
pop edi
ret

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

Disassembly:
push edi
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.WSOCK32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406629
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.004068d0
add esp, 4
mov dword [esi], eax
mov eax, edi
pop esi
pop edi
ret

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

Disassembly:
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WSOCK32.dll_sendto]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406673
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.004068d0
add esp, 4
mov dword [esi], eax
mov eax, edi
pop esi
pop edi
ret

Function at 0x406680
Capabilities:
Set socket configuration

Disassembly:
push edi
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4066bf
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.004068d0
add esp, 4
mov dword [esi], eax
mov eax, edi
pop esi
pop edi
ret
Function at 0x406b90
Capabilities:
Convert ip address from string

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x406cce
cmp byte [ebx], 0
je 0x406cce
push 0x6c
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x406cce
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
push edi
push ebx
push 2
call esi
test eax, eax
je 0x406bf0
mov eax, 2
push 0x40
mov word [edi + 0x68], ax
lea eax, [edi + 0x28]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov eax, edi
pop esi
pop edi
pop ebx
pop ecx
ret
push ebp
push 0x25
push ebx
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x406c31
push edi
push ebx
push 0x17
call esi
test eax, eax
je 0x406cbc
mov eax, 0x17
push 0x40
mov word [edi + 0x68], ax
lea eax, [edi + 0x28]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov eax, edi
pop ebp
pop esi
pop edi
pop ebx
pop ecx
ret
push 0xa
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
lea esi, [ebp + 1]
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoll]
add esp, 0xc
mov dword [esp + 0x10], eax
test edx, edx
jl 0x406cbc
jg 0x406cbc
test eax, eax
jb 0x406cbc
test edx, edx
jg 0x406cbc
jl 0x406c66
cmp eax, 0xffffffff
ja 0x406cbc
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x406cbc
cmp byte [eax], 0
jne 0x406cbc
sub eax, ebx
sub ebp, ebx
cmp eax, 0x40
jae 0x406cbc
inc eax
lea esi, [edi + 0x28]
push eax
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov byte [edi + ebp + 0x28], 0
push edi
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x406cbc
mov eax, 0x17
mov word [edi + 0x68], ax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
mov byte [edi + ebp + 0x28], 0x25
pop ebp
pop esi
pop edi
pop ebx
pop ecx
ret
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop ebp
pop esi
pop edi
pop ebx
pop ecx
ret
pop edi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x40b230
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x501230]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40b2f2
cmp byte [esi + 0x3d], 0
je 0x40b2f2
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40b2df
mov ecx, dword [esi + 0x38]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x40b2a3
sub eax, 1
je 0x40b2a7
sub eax, 2
jne 0x40b2df
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c75e8
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x40b2c7
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40b2df
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c75e8
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c75e8
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.004c75e8
add esp, 0x28
ret
Function at 0x40bbe0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x501230]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40bc10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004c75e8
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x40bc41
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x40bc41
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004c75e8
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x40bd4b
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40bc6a
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40bc9f
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004c75e8
add esp, 0x30
ret 4
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1d]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x40bd07
sub eax, 1
je 0x40bd07
sub eax, 2
jne 0x40bd4b
push dword [esi + 0x4c]
push dword [esp + 0x10]
call fcn.00409d10
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004c75e8
add esp, 0x30
ret 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edi, eax
je 0x40bd27
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40bd4b
lea eax, [esp + 0xc]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
je 0x40bd4b
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004c75e8
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c75e8
add esp, 0x30
ret 4
Function at 0x40c870
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0x10]
test eax, eax
jg 0x40c88f
jl 0x40c886
test ebp, ebp
jne 0x40c88f
pop ebp
xor eax, eax
xor edx, edx
pop ebx
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40c8a6
push eax
push ebp
push dword [esp + 0x14]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop ebp
pop ebx
ret 0xc
mov eax, dword [ebx + 0x1c]
push esi
push edi
mov edi, ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x40c8e6
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x40c8e6
mov edi, dword [esp + 0x14]
cmp eax, ebp
mov esi, ebp
cmovb esi, eax
push esi
push ecx
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x20], edi
add esp, 0xc
mov edi, ebp
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
mov esi, dword [esp + 0x14]
je 0x40c95c
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40c913
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x40c948
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x40c96e
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x40c922
test ecx, ecx
je 0x40c95c
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov edx, dword [esp + 0x1c]
sub ebp, ecx
pop edi
pop esi
mov eax, ebp
sbb edx, 0
pop ebp
pop ebx
ret 0xc
mov edx, dword [esp + 0x1c]
sub ebp, edi
pop edi
pop esi
mov eax, ebp
sbb edx, 0
pop ebp
pop ebx
ret 0xc
Function at 0x40c980
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40c9a5
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
add esp, 8
ret 0xc
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0xc], esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x40c9c8
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40c9ca
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x40ca45
jg 0x40c9dd
test esi, esi
je 0x40ca45
test eax, eax
jl 0x40ca27
jg 0x40c9e7
test ebp, ebp
je 0x40ca27
cmp edi, eax
jg 0x40c9f7
jl 0x40c9f1
cmp esi, ebp
jae 0x40c9f7
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x30]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
sub esi, ebp
sbb edi, dword [esp + 0x20]
add ecx, ebp
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
test edi, edi
jl 0x40ca45
jg 0x40ca2b
test esi, esi
je 0x40ca45
jmp 0x40ca2b
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40ca45
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x414550
Capabilities:
Create thread

Disassembly:
cmp dword [0x5068cc], 0
mov dword [0x5068c8], 0
jne 0x414566
xor eax, eax
ret
push ebp
push dword [0x506944]
mov dword [0x5068cc], 0
mov dword [0x506928], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x5068d0], 1
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x4145d2
push 0xffffffffffffffff
push dword [0x50693c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x50693c]
call ebp
push dword [0x506944]
call ebp
mov dword [0x50693c], 0
mov dword [0x506940], 0
mov dword [0x506944], 0
cmp dword [0x5068d4], 1
xorps xmm0, xmm0
movlpd qword [0x506930], xmm0
mov dword [0x506928], 0
jne 0x414624
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0x4137e0
push 0
push 0
mov dword [0x506944], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [0x50693c], eax
xor eax, eax
pop ebp
ret
push ebx
push edi
call fcn.00413b70
mov edi, dword [0x506938]
push 3
push str.UPNP
call fcn.004073a0
add esp, 8
test eax, eax
je 0x414658
push str.upnpc_cleanup_set_n
push 3
push str.UPNP
call fcn.00407400
add esp, 0xc
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
je 0x4146e7
push esi
mov eax, dword [edi]
test eax, eax
je 0x4146e0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4146e0
mov eax, dword [eax]
dec ecx
mov esi, dword [eax + ecx*4]
lea ebp, [eax + ecx*4]
push 0x5068d8
push dword [esi + 0x128]
lea ebx, [esi + 0x120]
push ebx
lea eax, [esi + 0x80]
push eax
push esi
call fcn.00413e60
add esp, 0x14
test eax, eax
je 0x4146cb
push 1
push str.UPNP
call fcn.004073a0
add esp, 8
test eax, eax
je 0x4146cb
push ebx
push str.UPNPC:_failed_to_remove_mapped_socket__mapped_port_s__n
push 1
push str.UPNP
call fcn.00407400
add esp, 0x10
push ebp
push edi
call fcn.004cb8f0
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
call ebx
add esp, 0xc
jmp 0x414667
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [0x50692c]
test eax, eax
je 0x41470b
push eax
call fcn.0042c660
push dword [0x50692c]
call ebx
add esp, 8
mov dword [0x50692c], 0
push 0x506938
call fcn.004cb8a0
add esp, 4
push dword [0x506940]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x506940]
call ebp
neg eax
pop edi
sbb eax, eax
pop ebx
inc eax
pop ebp
ret
Function at 0x414b70
Capabilities:
Create thread

Disassembly:
sub esp, 8
mov dword [0x5068cc], 1
cmp dword [0x50693c], 0
push edi
mov edi, dword [esp + 0x10]
je 0x414bb7
cmp dword [0x506928], 0
je 0x414bb7
test edi, edi
je 0x414bb7
mov dword [0x5068d0], edi
mov dword [0x5068d4], 1
mov dword [0x506928], 0
pop edi
add esp, 8
ret
mov edx, dword [esp + 0x14]
mov ecx, edx
push ebx
push esi
mov dword [0x5068d4], 0
mov dword [0x506928], 0
lea esi, [ecx + 1]
mov dword [0x5068d0], edi
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414be0
sub ecx, esi
mov eax, 0x50
cmp ecx, eax
cmova ecx, eax
push ecx
push edx
push 0x5068d8
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push 0x4133a0
push 4
call fcn.004cb870
mov dword [0x506938], eax
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00405b50
add esp, 0x1c
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, dword [esp + 0x20]
mov dword [0x506940], eax
test ebx, ebx
je 0x414d98
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414c42
sub ecx, edx
je 0x414d98
push ebp
push 0xbc0
call fcn.00407e00
mov esi, eax
xorps xmm0, xmm0
lea ecx, [esi + 0xb98]
movups xmmword [ecx], xmm0
push 0x10
movups xmmword [esi + 0xba8], xmm0
mov eax, dword [esp + 0x18]
cdq
push ecx
mov dword [esi + 0xbb8], eax
lea eax, [esi + 0x14]
push eax
push esi
push ebx
mov dword [esi + 0xbbc], edx
call fcn.0042c810
mov ebx, eax
add esp, 0x18
cmp ebx, 1
jne 0x414d41
lea eax, [esi + 0xba8]
push eax
lea ebp, [esi + 0x518]
push ebp
push dword [esi]
call fcn.0042dfb0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x414d68
mov eax, dword [0x50692c]
test eax, eax
je 0x414cdb
push dword [eax + 0x10]
push dword [esi + 0x10]
call sub.VCRUNTIME140.dll_strstr
add esp, 8
test eax, eax
jne 0x414d36
push 3
push str.UPNP
call fcn.004073a0
add esp, 8
test eax, eax
je 0x414d02
push str.IGD_mappings_cleanup_started_n
push 3
push str.UPNP
call fcn.00407400
add esp, 0xc
push 0x5068d8
push ebp
push dword [esi]
call fcn.004140a0
push 3
push str.UPNP
call fcn.004073a0
add esp, 0x14
test eax, eax
je 0x414d36
push str.IGD_mappings_cleanup_finished_n
push 3
push str.UPNP
call fcn.00407400
add esp, 0xc
push esi
call fcn.00413f90
add esp, 4
jmp 0x414d97
push 1
push str.UPNP
call fcn.004073a0
add esp, 8
test eax, eax
je 0x414d68
push str.UPNPC:_create_global_gate:_UPNP_GetIGDFromUrl_failed_n
push 1
push str.UPNP
call fcn.00407400
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push 1
push str.UPNP
call fcn.004073a0
add esp, 0xc
test eax, eax
je 0x414d97
push ebx
push str.UPNPC:_create_global_gate:_UPNP_GetExternalIPAddress_failed_with_code__d_n
push 1
push str.UPNP
call fcn.00407400
add esp, 0x10
pop ebp
pop esi
pop ebx
cmp edi, 1
jne 0x414dcf
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0x4137e0
push 0
push 0
mov dword [0x506944], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [0x50693c], eax
pop edi
add esp, 8
ret
Function at 0x417b80
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
sub esp, 0x40
mov eax, dword [0x501230]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x58]
push ebx
mov ebx, dword [esp + 0x48]
push ebp
mov ebp, dword [esp + 0x5c]
push esi
mov esi, dword [esp + 0x54]
push edi
push 3
push str.TUBES
mov dword [esp + 0x1c], eax
call fcn.004073a0
add esp, 8
test eax, eax
je 0x417bce
push esi
push str.TUBE:_NEW_CONNECTOR_PIPE_fd_d_n
push 3
push str.TUBES
call fcn.00407400
add esp, 0x10
push 0x300
push esi
push 0
push esi
push ebx
call fcn.00418c30
mov ecx, dword [esp + 0x70]
mov edi, eax
push edi
mov dword [edi + 0x44], 1
mov dword [edi + 0x2c], ecx
call fcn.004179d0
mov eax, dword [esp + 0x78]
push 8
push 1
movups xmm0, xmmword [eax]
movups xmmword [edi + 0x30], xmm0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
push dword [esp + 0x34]
mov esi, eax
call fcn.00406760
push 4
mov dword [esi + 4], eax
call fcn.00405450
mov dword [esi], eax
push dword [ebp + 4]
push dword [ebp]
push eax
call fcn.00405640
mov dword [edi + 0x48], esi
mov eax, dword [ebx + 0x34]
mov dword [edi + 0x40], eax
lea eax, [esp + 0x48]
push 4
push eax
push edi
push ebx
mov byte [esp + 0x57], 0
mov dword [esp + 0x58], 5
call fcn.00418f50
add esp, 0x44
lea eax, [esp + 0x13]
push 1
push eax
push edi
push ebx
call fcn.00418f50
push 4
push 0x4df584
push edi
push ebx
call fcn.00418f50
add esp, 0x20
cmp dword [edi + 4], 2
je 0x417c8e
push 0x21a
push str..._tech1utils_tube_tubes.c
push str.s__type__ST_TRANSMIT
call fcn.00407dc0
add esp, 0xc
push 4
push dword [edi + 0x10]
mov dword [edi + 8], 1
mov dword [edi + 0xc], 4
call fcn.00405680
add esp, 8
mov dword [esp + 0x18], 0x10
lea eax, [esp + 0x18]
xorps xmm0, xmm0
movups xmmword [esp + 0x2c], xmm0
push eax
lea eax, [esp + 0x20]
movups xmmword [esp + 0x40], xmm0
push eax
mov eax, dword [edi + 0x18]
push dword [eax]
call dword [sym.imp.WSOCK32.dll_getsockname]
push 2
push 0
push 0
push 0x20
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
push dword [edi + 0x2c]
lea eax, [esp + 0x30]
push eax
mov eax, dword [ebx + 0x2c]
call eax
mov ecx, dword [esp + 0x54]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c75e8
add esp, 0x40
ret