joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402009
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41fd74], ebx
push esi
push edi
jne 0x402089
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4020c4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x41fd74], eax
je 0x4020c4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41fd78], eax
call esi
cmp dword [0x41fc18], 2
mov dword [0x41fd7c], eax
jne 0x402089
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41fd84], eax
je 0x402089
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41fd80], eax
mov eax, dword [0x41fd80]
test eax, eax
je 0x4020ce
call eax
test eax, eax
je 0x4020b5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41fd84]
test eax, eax
je 0x4020b5
test byte [ebp - 8], 1
jne 0x4020ce
cmp dword [0x41fc24], 4
jb 0x4020c8
or byte [ebp + 0x12], 0x20
jmp 0x4020ed
xor eax, eax
jmp 0x4020fd
or byte [ebp + 0x12], 4
jmp 0x4020ed
mov eax, dword [0x41fd78]
test eax, eax
je 0x4020ed
call eax
mov ebx, eax
test ebx, ebx
je 0x4020ed
mov eax, dword [0x41fd7c]
test eax, eax
je 0x4020ed
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41fd74]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40384e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40387c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x403883
cmp ebx, dword [eax + 4]
jae 0x403883
xor eax, eax
jmp 0x403a73
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x403894
xor eax, eax
inc eax
jmp 0x403a72
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4038aa
cmp ecx, edx
jae 0x4039ef
cmp dword [eax + 4], 0
je 0x4038b3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40389b
cmp dword [ebp + 8], 0
je 0x4038d5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4039ef
cmp eax, esi
jae 0x4039ef
mov eax, dword [0x41fd90]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4038fa
cmp dword [esi*4 + 0x41fd98], edi
je 0x4039f3
inc esi
cmp esi, eax
jl 0x4038e8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403a6f
cmp dword [ebp - 8], 0x1000000
jne 0x403a6f
test byte [ebp - 0xc], 0xcc
je 0x403978
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x403a6f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403a6f
cmp word [eax + 0x18], 0x10b
jne 0x403a6f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x403a6f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x403978
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x403978
test byte [ecx + 0x27], 0x80
jne 0x4039ef
push 1
push 0x41fdd8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40388c
mov ecx, dword [0x41fd90]
test ecx, ecx
mov edx, ecx
jle 0x4039ac
lea eax, [ecx*4 + 0x41fd94]
cmp dword [eax], edi
je 0x4039ac
dec edx
sub eax, 4
test edx, edx
jg 0x4039a0
test edx, edx
jne 0x4039dd
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4039b9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4039d1
lea eax, [edx*4 + 0x41fd98]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4039bf
cmp ecx, 0x10
jge 0x4039dd
inc ecx
mov dword [0x41fd90], ecx
push 0
push 0x41fdd8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40388c
xor eax, eax
jmp 0x403a72
test esi, esi
jle 0x40388c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x41fdd8
call ebx
test eax, eax
jne 0x40388c
cmp dword [esi*4 + 0x41fd98], edi
je 0x403a49
mov eax, dword [0x41fd90]
lea esi, [eax - 1]
test esi, esi
jl 0x403a37
cmp dword [esi*4 + 0x41fd98], edi
je 0x403a33
dec esi
jns 0x403a27
test esi, esi
jge 0x403a47
cmp eax, 0x10
jge 0x403a42
inc eax
mov dword [0x41fd90], eax
lea esi, [eax - 1]
jmp 0x403a49
je 0x403a61
xor ecx, ecx
test esi, esi
jl 0x403a61
lea eax, [ecx*4 + 0x41fd98]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x403a4f
push 0
push 0x41fdd8
call ebx
jmp 0x40388c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4048fc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00401f10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404997
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x41fc18]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x404997
cmp eax, 1
je 0x4049b8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404997
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x404964
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404993
xor eax, eax
inc eax
jmp 0x4049d7
cmp edi, eax
jae 0x40499b
xor eax, eax
jmp 0x4049d7
cmp eax, esi
jae 0x4049a2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41fc18]
jmp 0x4049bb
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404d80
Capabilities:
Delete registry key
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x404dc8
push 1
push 0x41fe10
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x404dc1
push eax
mov edi, 1
call ebx
push esi
call ebx
test edi, edi
jne 0x404de3
push 0x41fe10
push str.The__s_service_is_not_installed_n
call fcn.004137e4
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x404e16
push 0x41fe10
push str.Could_not_open_service_manager._Failed_to_uninstall_the__s_service_n
call fcn.004137e4
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10020
push 0x41fe10
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x404e4e
push edi
call ebx
push 0x41fe10
push str.Could_not_close_service._Failed_to_uninstall_the__s_service_n
call fcn.004137e4
add esp, 8
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov dword [ebp - 4], eax
call ebx
push edi
call ebx
push 0x41fe10
push str.SYSTEMCurrentControlSetServicesEventLogApplication_s
lea ecx, [ebp - 0x124]
push 0x104
push ecx
call fcn.00417940
add esp, 0x10
lea edx, [ebp - 0x124]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [ebp - 4]
test eax, eax
push 0x41fe10
je 0x404ebd
push str.Successfully_uninstalled_the__s_service_n
call fcn.004137e4
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Service_could_not_be_deleted._Failed_to_uninstall_the__s_service_n
call fcn.004137e4
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404f40
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
push ecx
lea edx, [ebp - 0x204]
push 0x200
push edx
call fcn.00417820
lea eax, [ebp - 0x204]
mov dword [ebp - 4], eax
mov eax, dword [0x41ff3c]
add esp, 0x10
test eax, eax
je 0x404fb5
push esi
push 0x41fe10
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x404fb0
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 1
push 0
push 0x3e8
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp + 8]
dec eax
je 0x40500c
dec eax
je 0x404ff4
sub eax, 2
je 0x404fdc
lea eax, [ebp - 0x204]
push eax
push str.___t_s_n
call fcn.004137e4
add esp, 8
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x204]
push ecx
push 0x41b004
call fcn.004137e4
add esp, 8
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x204]
push edx
push str.___t_s_n
call fcn.004137e4
add esp, 8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x204]
push eax
push str._t_s_n
call fcn.004137e4
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x4056a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x40]
push edi
mov edi, dword [esi + 0x44]
add edi, 0xfffffff2
mov eax, edi
add edx, 0xe
cmp eax, ecx
mov dword [esi + 0x44], edi
mov dword [esi + 0x2c], edx
jae 0x4056eb
push str.SkBuff_Push_under
push 0x84
push str.c:ob_bora_19175_bora_apps_vmnat_skbuff.h
push str.BUG__s:_d:__s_n
push 0x41f3d0
call fcn.00413858
add esp, 0x14
mov byte [0], 0
mov edi, dword [esi + 0x44]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, edi
mov dword [ecx], edx
mov ax, word [eax + 4]
mov word [ecx + 4], ax
mov edx, dword [0x420c90]
lea ecx, [edi + 6]
mov dword [ecx], edx
mov ax, word [0x420c94]
mov word [ecx + 4], ax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi + 0xc], ax
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x44]
lea edx, [ebp + 8]
push edx
mov edx, dword [0x41f2ac]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
ret
Function at 0x405aa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push eax
push str.host
xor edi, edi
call fcn.0040a310
mov esi, eax
add esp, 8
test esi, esi
je 0x405b42
push 0x2f
push esi
call fcn.00413c10
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x405ae3
lea ecx, [ebx + 1]
push ecx
call fcn.004179bf
add esp, 4
mov edi, eax
mov byte [ebx], 0
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, eax
cmp ebx, 0xffffffff
push esi
jne 0x405b31
push str._s_is_not_valid_IP_address_n
push 0x41f3d0
call fcn.00413858
mov eax, dword [0x41ff50]
add esp, 0xc
test eax, eax
je 0x405b20
push eax
call fcn.004179ba
add esp, 4
mov dword [0x41ff50], 0
call fcn.00407790
call fcn.00408bb0
push 0x72
call fcn.0040135c
call fcn.00402836
mov edx, dword [ebp + 8]
add esp, 4
test edi, edi
mov dword [edx], ebx
jne 0x405b6a
push str.netmask
push str.host
call fcn.0040a310
mov edi, eax
add esp, 8
test edi, edi
jne 0x405b6a
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2e
push edi
call fcn.00413b50
add esp, 8
test eax, eax
je 0x405bef
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x405ba4
push edi
push str._s_is_not_valid_netmask__not_a.b.c.d__n
push 0x41f3d0
call fcn.00413858
add esp, 0xc
call fcn.00405a50
push 0x71
call fcn.0040135c
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
lea ecx, [eax - 1]
or ecx, eax
not ecx
test ecx, ecx
je 0x405bd5
push edi
push str._s_is_not_valid_netmask__invalid_value__n
push 0x41f3d0
call fcn.00413858
add esp, 0xc
call fcn.00405a50
push 0x70
call fcn.0040135c
test eax, eax
mov esi, dword [ebp + 0xc]
mov dword [esi], 0
je 0x405c12
xor ecx, ecx
shl eax, 1
inc ecx
test eax, eax
jne 0x405be4
mov dword [esi], ecx
jmp 0x405c12
push 0xa
lea edx, [ebp - 4]
push edx
push edi
call fcn.00413b1e
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x405c6a
cmp byte [eax], 0
jne 0x405c6a
mov esi, dword [ebp + 0xc]
push edi
call fcn.00402836
mov eax, dword [esi]
add esp, 4
cmp eax, 1
jb 0x405c2b
cmp eax, 0x1e
jbe 0x405b63
push str.Netmask_must_be_in_range_128.0.0.0_to_255.255.255.252_n
push 0x41f3d0
call fcn.00413858
mov eax, dword [0x41ff50]
add esp, 8
test eax, eax
je 0x405c59
push eax
call fcn.004179ba
add esp, 4
mov dword [0x41ff50], 0
call fcn.00407790
call fcn.00408bb0
push 0x6e
call fcn.0040135c
push edi
push str._s_is_not_valid_netmask__not_a_number__n
push 0x41f3d0
call fcn.00413858
mov eax, dword [0x41ff50]
add esp, 0xc
test eax, eax
je 0x405c99
push eax
call fcn.004179ba
add esp, 4
mov dword [0x41ff50], 0
call fcn.00407790
call fcn.00408bb0
push 0x6f
call fcn.0040135c
int3
Function at 0x405cb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push str.IncomingUDP
mov dword [ebp - 4], 0
call fcn.00409dd0
add esp, 4
test eax, eax
mov dword [ebp - 0x10], eax
je 0x405dfa
push ebx
push edi
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00409ec0
add esp, 8
test eax, eax
mov dword [ebp - 8], eax
je 0x405dec
push esi
mov esi, dword [ebp - 8]
push 0xa
lea edx, [ebp - 0xc]
push edx
push esi
call fcn.00413b1e
mov ebx, eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
test eax, eax
je 0x405e8e
cmp byte [eax], 0
jne 0x405e8e
cmp ebx, 1
jb 0x405e8e
cmp ebx, 0xffff
ja 0x405e8e
mov eax, dword [ebp - 4]
push 0x3a
push eax
call fcn.00413b50
mov esi, eax
add esp, 8
test esi, esi
je 0x405dfe
push 0xa
lea ecx, [ebp - 0xc]
push ecx
lea edx, [esi + 1]
push edx
call fcn.00413b1e
mov edi, eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
test eax, eax
je 0x405e74
cmp byte [eax], 0
jne 0x405e74
cmp edi, 1
jb 0x405e74
cmp edi, 0xffff
ja 0x405e74
mov byte [esi], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
je 0x405e1b
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [0x41ff58]
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_htons]
push eax
push esi
call fcn.0040ad50
add esp, 0x10
test eax, eax
jne 0x405e35
mov edx, dword [ebp - 8]
push edx
call fcn.00402836
mov eax, dword [ebp - 4]
push eax
call fcn.00402836
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push edx
call fcn.00409ec0
add esp, 0x10
test eax, eax
mov dword [ebp - 8], eax
jne 0x405cf0
pop esi
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00409e90
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
push str._s_is_not_valid_UDP_destination_address_in_form_a.b.c.d:port_n
push 0x41f3d0
call fcn.00413858
mov esi, 0x6c
jmp 0x405ea3
mov ecx, dword [ebp - 4]
push ecx
push str._s_is_not_valid_UDP_destination_address_n
push 0x41f3d0
call fcn.00413858
mov esi, 0x6a
jmp 0x405ea3
push esi
call dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edx, eax
and edx, 0xff
push edx
mov edx, eax
movzx ecx, ah
push ecx
shr edx, 0x10
movzx edx, dl
push edx
mov dword [ebp - 0x14], eax
shr eax, 0x18
push eax
push ebx
push str.Cannot_create_UDP_forwarding_entry_for__lu____u._u._u._u:_lu_n
push 0x41f3d0
call fcn.00413858
add esp, 0x20
mov esi, 0x69
jmp 0x405ea6
mov eax, dword [ebp - 4]
push eax
push str._s_does_not_contain_valid_UDP_port_number_n
push 0x41f3d0
call fcn.00413858
mov esi, 0x6b
jmp 0x405ea3
push esi
push str._s_is_not_valid_UDP_port_number_n
push 0x41f3d0
call fcn.00413858
mov esi, 0x6d
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00409e90
mov eax, dword [0x41ff50]
add esp, 4
test eax, eax
je 0x405ece
push eax
call fcn.004179ba
add esp, 4
mov dword [0x41ff50], 0
call fcn.00407790
call fcn.00408bb0
mov edx, dword [ebp - 8]
push edx
call fcn.00402836
mov eax, dword [ebp - 4]
push eax
call fcn.00402836
add esp, 8
push esi
call fcn.0040135c
int3
Function at 0x405f00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push str.IncomingTCP
mov dword [ebp - 4], 0
call fcn.00409dd0
add esp, 4
test eax, eax
mov dword [ebp - 0x10], eax
je 0x406051
push ebx
push edi
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00409ec0
add esp, 8
test eax, eax
mov dword [ebp - 8], eax
je 0x406043
push esi
mov esi, dword [ebp - 8]
push 0xa
lea edx, [ebp - 0xc]
push edx
push esi
call fcn.00413b1e
mov ebx, eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
test eax, eax
je 0x4060e5
cmp byte [eax], 0
jne 0x4060e5
cmp ebx, 1
jb 0x4060e5
cmp ebx, 0xffff
ja 0x4060e5
mov eax, dword [ebp - 4]
push 0x3a
push eax
call fcn.00413b50
mov esi, eax
add esp, 8
test esi, esi
je 0x406055
push 0xa
lea ecx, [ebp - 0xc]
push ecx
lea edx, [esi + 1]
push edx
call fcn.00413b1e
mov edi, eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
test eax, eax
je 0x4060cb
cmp byte [eax], 0
jne 0x4060cb
cmp edi, 1
jb 0x4060cb
cmp edi, 0xffff
ja 0x4060cb
mov byte [esi], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
je 0x406072
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [0x41ff58]
movzx ecx, ax
push ecx
push 0xffffffffffffffff
push 0
push edx
push edi
call dword [sym.imp.WS2_32.dll_htons]
push eax
push esi
call fcn.0040b5e0
add esp, 0x18
test eax, eax
je 0x40608c
mov eax, dword [ebp - 8]
push eax
call fcn.00402836
mov ecx, dword [ebp - 4]
push ecx
call fcn.00402836
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
push edx
push eax
call fcn.00409ec0
add esp, 0x10
test eax, eax
mov dword [ebp - 8], eax
jne 0x405f40
pop esi
mov eax, dword [ebp - 0x10]
push eax
call fcn.00409e90
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
push str._s_is_not_valid_TCP_destination_address_in_form_a.b.c.d:port_n
push 0x41f3d0
call fcn.00413858
mov esi, 0x6c
jmp 0x4060fa
mov edx, dword [ebp - 4]
push edx
push str._s_is_not_valid_TCP_destination_address_n
push 0x41f3d0
call fcn.00413858
mov esi, 0x6a
jmp 0x4060fa
push esi
call dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov ecx, eax
and ecx, 0xff
push ecx
mov ecx, eax
movzx edx, ah
push edx
shr ecx, 0x10
movzx ecx, cl
push ecx
mov dword [ebp - 0x14], eax
shr eax, 0x18
push eax
push ebx
push str.Cannot_create_TCP_forwarding_entry_for__lu____u._u._u._u:_lu_n
push 0x41f3d0
call fcn.00413858
add esp, 0x20
mov esi, 0x69
jmp 0x4060fd
mov edx, dword [ebp - 4]
push edx
push str._s_does_not_contain_valid_TCP_port_number_n
push 0x41f3d0
call fcn.00413858
mov esi, 0x6b
jmp 0x4060fa
push esi
push str._s_is_not_valid_TCP_port_number_n
push 0x41f3d0
call fcn.00413858
mov esi, 0x6d
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call fcn.00409e90
mov eax, dword [0x41ff50]
add esp, 4
test eax, eax
je 0x406125
push eax
call fcn.004179ba
add esp, 4
mov dword [0x41ff50], 0
call fcn.00407790
call fcn.00408bb0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00402836
mov edx, dword [ebp - 4]
push edx
call fcn.00402836
add esp, 8
push esi
call fcn.0040135c
int3
Function at 0x406150
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push eax
mov dword [ebp - 4], 0
call fcn.00409dd0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x406217
cmp byte [edi], 0x40
jae 0x4061f4
push esi
lea ebx, [ebx]
lea ecx, [ebp - 4]
push ecx
push ebx
call fcn.00409ec0
mov esi, eax
add esp, 8
test esi, esi
je 0x4061f3
push str.port
push esi
call fcn.00413815
add esp, 8
test eax, eax
jne 0x4061db
mov eax, dword [ebp - 4]
push 0xa
lea edx, [ebp - 8]
push edx
push eax
call fcn.00413b1e
mov ecx, dword [ebp - 8]
add esp, 0xc
test ecx, ecx
je 0x40621c
cmp byte [ecx], 0
jne 0x40621c
cmp eax, 1
jb 0x40621c
cmp eax, 0xffff
ja 0x40621c
movzx ecx, byte [edi]
mov edx, dword [ebp + 0xc]
mov word [edx + ecx*2], ax
inc byte [edi]
push esi
call fcn.00402836
mov eax, dword [ebp - 4]
push eax
call fcn.00402836
mov al, byte [edi]
add esp, 8
cmp al, 0x40
jb 0x406180
pop esi
push ebx
call fcn.00409e90
mov ecx, dword [ebp + 8]
push 0
push str.autodetect
push ecx
call fcn.0040a3a0
add esp, 0x10
test eax, eax
mov eax, dword [ebp + 0x10]
setne dl
mov byte [eax], dl
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push ecx
push edx
push str.The_specified_port:__s_in_section__s_is_not_a_valid_port_number_n
push 0x41f3d0
call fcn.00413858
push esi
call fcn.00402836
mov eax, dword [ebp - 4]
push eax
call fcn.00402836
push ebx
call fcn.00409e90
mov eax, dword [0x41ff50]
add esp, 0x1c
test eax, eax
je 0x406267
push eax
call fcn.004179ba
add esp, 4
mov dword [0x41ff50], 0
call fcn.00407790
call fcn.00408bb0
push 0x83
call fcn.0040135c
int3

Function at 0x406560
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x400]
push 0x400
push edx
call fcn.00417820
lea eax, [ebp - 0x400]
push eax
push str.VMware_NAT_Panic:__s_n
push 1
call fcn.00404f40
add esp, 0x1c
push 0xff
call fcn.0040135c
int3
Function at 0x408df0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push eax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 8]
push ecx
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x74]
push 0x10
lea edx, [ebp - 0x10]
push edx
mov edx, dword [esi + 0x20]
push 0
mov word [ebp - 0xe], ax
mov eax, dword [esi + 0x78]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x408e5d
mov eax, dword [esi + 0x4c]
push 0x2750
push eax
call fcn.0040fba0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x4c]
push eax
push ecx
call fcn.0040fba0
add esp, 8
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x409010
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
mov edi, eax
mov eax, 0xff
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 1
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetServicesTcpipParametersTransient
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x40908a
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x114]
push edx
push eax
push eax
mov eax, dword [ebp - 8]
push str.NameServer
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40908a
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x40908a
mov edx, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x114]
push ecx
push edi
push edx
call fcn.00408c40
add esp, 0x10
mov esi, eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x409124
mov ecx, dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push str.NameServer
push ecx
call ebx
test eax, eax
jne 0x4090d8
mov eax, dword [ebp - 0xc]
cmp eax, 7
ja 0x4090fe
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push str.DhcpNameServer
push ecx
call ebx
test eax, eax
jne 0x40911a
mov eax, dword [ebp - 0x10]
cmp eax, 7
jbe 0x40911a
push eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x114]
push edx
sub edi, esi
lea ecx, [eax + esi*4]
push edi
push ecx
call fcn.00408c40
add esp, 0x10
add esi, eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret