joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46be42
Capabilities:
Copy file

Disassembly:
push ebp
sub esp, 0x54
mov eax, 0x6aa4a0
call fcn.006375a8
sub esp, 0x74
push ebx
push esi
mov esi, dword [ebp + 0x64]
push edi
push dword [ebp + 0x6c]
mov edi, dword [ebp + 0x68]
push esi
push dword [ebp + 0x60]
and dword [edi], 0
call fcn.0046146c
mov ebx, eax
test ebx, ebx
jne 0x46be8c
push dword [ebp + 0x60]
call fcn.0045f4bc
xor ecx, ecx
test al, al
setne cl
add ecx, 2
xor eax, eax
mov dword [edi], ecx
jmp 0x46bfbe
cmp byte [ebx], 0x64
jne 0x46bfbc
cmp dword [esi], 0x39
jb 0x46bfbc
push 0x11
push str.d10:.fileguard40:
push ebx
call fcn.00650747
add esp, 0xc
test eax, eax
je 0x46beca
push 0x11
push str.d10:file_guard40:
push ebx
call fcn.00650747
add esp, 0xc
test eax, eax
jne 0x46bfbc
push 0xa
pop ecx
push 1
push 0x28
lea eax, [ebp]
push eax
lea eax, [ebp + 0x2c]
lea esi, [ebx + 0x11]
lea edi, [ebp]
rep movsd dword es:[edi], dword [esi]
push eax
mov byte [ebp + 0x28], 0
call fcn.0046eaa0
test al, al
jne 0x46bef5
mov eax, str.malformed_guard
jmp 0x46bf6c
mov esi, dword [ebp + 0x64]
add dword [esi], 0xffffffc8
mov eax, dword [esi]
dec eax
push eax
lea eax, [ebx + 0x39]
push eax
lea eax, [ebx + 1]
push eax
call fcn.0064f4c0
mov eax, dword [esi]
lea ecx, [ebp - 0x80]
add esp, 0xc
mov byte [ebx + eax], 0
call fcn.004683d2
push dword [esi]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x80]
push ebx
call fcn.0046836e
mov edx, eax
lea esi, [ebp + 0x2c]
xor ecx, ecx
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x46bf5b
inc ecx
cmp ecx, 5
jne 0x46bf33
push dword [ebp + 0x60]
push str.File_passed_integrity_check:__s
call fcn.0040c884
add esp, 8
lea ecx, [ebp - 0x80]
call fcn.0040c884
jmp 0x46bfbc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.0040c884
mov eax, str.hash_doesnt_match
push dword [ebp + 0x60]
push eax
push str.Warning:_file_integrity_check_failed___s_:__s
call fcn.00479c3c
push str.Ignore_this_warning_if_you_switched_to_1.6.1_or_older_and_back
call fcn.00479c3c
add esp, 0x10
lea eax, [ebp + 0x40]
push 0x6c45d8
push dword [ebp + 0x60]
push eax
call fcn.0046c1b2
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x46bfa4
lea eax, [ebp + 0x40]
push 0
push eax
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
push 0
push 1
lea ecx, [ebp + 0x40]
call fcn.004267c2
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x58]
pop ebp
ret 0x10

Function at 0x46d9bb
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x46d9fb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x46d9fb
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x4705b7
Capabilities:
Delete file

Disassembly:
mov eax, 0x69824c
call fcn.006375a8
sub esp, 0x28
push ebx
push esi
push dword [0x77d620]
xor ebx, ebx
mov byte [ebp - 0xd], bl
call fcn.00480435
mov esi, eax
test esi, esi
jne 0x4705e8
push ebx
mov byte [ebp - 0xd], 1
call fcn.00480435
mov esi, eax
mov eax, fcn.0047fb5e
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
test esi, esi
je 0x470690
push str.campaigncode.txt
lea eax, [ebp - 0x34]
mov dword [ebp - 0x14], ebx
push eax
call fcn.0047af87
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x47061b
mov eax, dword [eax]
push edi
lea ecx, [ebp - 0x14]
push ecx
push eax
push esi
call fcn.0047fea2
push ebx
push 1
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.004267c2
test edi, edi
je 0x470661
cmp dword [ebp - 0x14], 0
je 0x470661
push edi
call fcn.0065df72
pop ecx
mov ecx, 0x79f188
mov ebx, eax
call fcn.00470854
test eax, eax
jne 0x47065b
mov dword [0x7a0040], ebx
mov dword [0x7a003c], ebx
cmp byte [ebp - 0xd], 0
je 0x47067a
cmp dword [esi + 0x14], 8
jb 0x470671
mov eax, dword [esi]
jmp 0x470673
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov byte [ebp - 4], 2
test edi, edi
je 0x47068a
push 1
push edi
call fcn.0045e47c
mov eax, fcn.0047fb5e
pop edi
mov dword [ebp - 4], 3
test eax, eax
je 0x4706a5
test esi, esi
je 0x4706a5
push esi
call fcn.0047fb5e
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4707c1
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x69825e
call fcn.006375a8
sub esp, 0xc
push esi
push edi
xor edx, edx
lea edi, [ecx + 0xedc]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x14], edx
jb 0x4707e5
mov eax, dword [edi]
jmp 0x4707e7
mov eax, edi
push edx
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
xor ecx, ecx
mov dword [ebp - 0x10], eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00637905
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x470819
mov edi, dword [edi]
push dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov ecx, dword [ebp + 8]
push esi
call fcn.00427f43
test esi, esi
je 0x470838
push esi
call fcn.006375d6
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x471f4b
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x69846c
call fcn.006375a8
sub esp, 0x44
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push edi
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], 1
call fcn.00475cf1
mov edi, dword [ebp + 8]
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], ebx
jb 0x471f88
mov eax, dword [edi]
jmp 0x471f8a
mov eax, edi
mov byte [eax], bl
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ebx
call fcn.0047374e
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
test ecx, ecx
je 0x4720c1
push esi
call fcn.0047374e
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x14], eax
mov edx, dword [eax + 8]
jmp 0x472097
mov edi, dword [edx + 4]
movzx edx, word [edx + 8]
add edi, dword [eax]
test dl, 0xe0
je 0x47208e
and edx, 0xf
jmp dword [edx*4 + 0x472393]
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
add edx, 0x1c
mov ebx, dword [edx]
mov dword [ebp - 0x18], edx
test ebx, ebx
jne 0x471fbd
mov ebx, dword [ebp - 0x1c]
inc ebx
mov dword [ebp - 0x1c], ebx
call fcn.0047374e
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
cmp ebx, ecx
jb 0x471fa8
pop esi
mov dword [ebp - 4], 5
call fcn.00475d32
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x47627a
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
je 0x47637d
push ebx
xor ebx, ebx
inc ebx
cmp byte [esp + 0x10], 0
je 0x4762b9
xor eax, eax
mov word [esp + 0x10], bx
push 4
mov word [esp + 0x16], ax
lea eax, [esp + 0x14]
push eax
push 0x80
push 0xffff
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
test byte [edi + 0xe], 0x20
je 0x476349
mov ecx, dword [edi + 0x54]
test ecx, ecx
jns 0x4762ce
neg ecx
jmp 0x4762d0
xor ecx, ecx
mov esi, dword [edi + 0x90]
test esi, esi
jns 0x4762de
neg esi
jmp 0x4762e0
xor esi, esi
xor eax, eax
push ebp
mov dword [esp + 0x14], eax
cmp dword [edi + 0xf4], eax
jle 0x476319
lea ebp, [edi + 0xe0]
mov ebx, dword [ebp]
test ebx, ebx
je 0x476309
mov eax, ecx
cdq
add dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x14]
adc dword [ebx + 0x30], edx
inc eax
add ebp, 4
mov dword [esp + 0x14], eax
cmp eax, dword [edi + 0xf4]
jl 0x4762f5
xor ebx, ebx
cmp dword [edi + 0xf4], ebx
jle 0x476345
lea ebp, [edi + 0xe0]
mov ecx, dword [ebp]
test ecx, ecx
je 0x476339
mov eax, esi
cdq
add dword [ecx + 0x34], eax
adc dword [ecx + 0x38], edx
inc ebx
add ebp, 4
cmp ebx, dword [edi + 0xf4]
jl 0x476329
xor ebx, ebx
inc ebx
pop ebp
push dword [edi + 4]
call fcn.00477c01
or dword [edi + 4], 0xffffffff
test byte [edi + 0xe], 0x20
je 0x47637c
cmp byte [edi + 0x18], 6
jb 0x47637c
push ebx
push 2
push 0x40
lea ecx, [edi + 0x4c]
call fcn.00474355
push 0
push 2
push 0x40
lea ecx, [edi + 0x4c]
call fcn.00474355
pop ebx
and byte [edi + 0xe], 0xdf
cmp byte [edi + 0xe], 0
jge 0x4763a6
mov esi, dword [edi + 0xf8]
and dword [edi + 0xf8], 0
test esi, esi
je 0x4763a6
push esi
call fcn.004e0706
push 0
push esi
call fcn.004e1083
pop edi
pop esi
ret 4
Function at 0x476ef5
Capabilities:
Terminate process

Disassembly:
mov eax, 0x6ab3b7
call fcn.006375a8
sub esp, 0x18
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.0047af87
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x476f1a
mov eax, dword [eax]
push eax
push 0x6b6d5c
push 0x10
call fcn.00492573
add esp, 0xc
lea ecx, [ebp - 0x24]
push 0
push 1
call fcn.004267c2
push 1
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x477519
call fcn.004c8773
jmp 0x477525
lea eax, [ebp - 0x84]
push eax
call fcn.004c86b9
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
cmp dword [ecx + 4], 0xffffffff
jne 0x477631
or eax, 0xffffffff
jmp 0x477664
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x98]
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x47762c
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.004c86b9
movzx eax, word [eax + 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4776e9
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, ecx
push 0
push 0
push 1
push ebp
call fcn.00464567
movzx eax, al
mov ecx, ebx
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
call fcn.004778a4
cmp dword [ebx + 4], 0xffffffff
jne 0x477722
xor al, al
jmp 0x477805
cmp byte [esp + 0x24], 0
push esi
push edi
mov dword [esp + 0x28], 1
je 0x477777
push 4
lea eax, [esp + 0x2c]
push eax
push 4
push 0xffff
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x477777
call fcn.0065cd9e
mov esi, eax
call fcn.0065cd9e
push dword [esi]
mov edi, eax
call fcn.00666b74
push eax
push dword [edi]
push dword [ebx + 4]
push str.Cant_set_SO_REUSEADDR_option_on_socket__d____d__s
call fcn.00479bc5
add esp, 0x14
push ebp
mov ecx, ebx
call fcn.00475e2a
cmp eax, 0xffffffff
jne 0x4777c7
cmp byte [esp + 0x2c], 0
mov edi, 0x2740
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
jne 0x47779c
call esi
cmp eax, edi
je 0x4777f9
call esi
cmp eax, edi
jne 0x4777f9
push 5
pop ecx
xor eax, eax
lea edi, [esp + 0x10]
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov word [esp + 0x20], ax
mov ecx, ebx
lea eax, [esp + 0x10]
push eax
call fcn.00475e2a
cmp eax, 0xffffffff
je 0x4777f9
jmp 0x4777d8
push ebp
push dword [ebx + 4]
push str.Bound_listening_socket__d_to_IP__A
call fcn.00479bc5
add esp, 0xc
push 0xa
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4777fd
push ebp
push dword [ebx + 4]
push str.Cant_listen_on_socket__d_IP__A
call fcn.00479bc5
add esp, 0xc
xor al, al
jmp 0x477803
mov byte [ebx + 0xe], 0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x47946b
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov eax, 0x69887b
call fcn.006375a8
sub esp, 0x40
push ebx
push edi
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
push 0x6bdc50
push 1
push ebx
push 0x6bdc40
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x4795a1
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push edx
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 2
call dword [ecx + 0x1c]
mov edi, eax
test edi, edi
js 0x479590
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push edx
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 5
call dword [ecx + 0x1c]
mov edi, eax
test edi, edi
js 0x47957f
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push edx
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 9
call dword [ecx + 0x50]
mov edi, eax
mov eax, dword [ebp - 0x10]
test edi, edi
js 0x479571
test eax, eax
jne 0x479507
mov edi, 0x80004005
jmp 0x479571
push dword [ebp + 8]
lea ecx, [ebp - 0x4c]
call fcn.00427f43
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x12
push eax
call fcn.0043ee18
cmp dword [eax + 0x14], 8
jb 0x479528
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp + 8], esi
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.004267c2
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x14
call fcn.004267c2
mov eax, dword [ebp - 0x10]
test esi, esi
jne 0x47955d
mov edi, 0x8007000e
jmp 0x479570
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x24]
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
pop esi
mov byte [ebp - 4], 0x19
test eax, eax
je 0x47957f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x1a
test eax, eax
je 0x479590
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x1b
test eax, eax
je 0x4795a1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0x1c
test eax, eax
je 0x4795b5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x47a83b
Capabilities:
Check if file exists
Get common file path
Get disk information

Disassembly:
mov eax, 0x6976e3
call fcn.006375a8
sub esp, 0x414
push ebx
push esi
push edi
push 0x104
xor ecx, ecx
lea eax, [ebp - 0x218]
push eax
push ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push 0x6b7f2c
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
mov edi, dword [ebp + 8]
mov ecx, edi
push eax
call fcn.00427f43
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x10], 1
jb 0x47a8b1
mov eax, dword [edi]
jmp 0x47a8b3
mov eax, edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x47a96d
push 0x6b7f48
call fcn.00426a30
pop ecx
push eax
push 0x6b7f48
mov ecx, edi
call fcn.0042689e
cmp dword [edi + 0x14], 8
jb 0x47a8eb
mov eax, dword [edi]
jmp 0x47a8ed
mov eax, edi
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x47a96d
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x47a965
call fcn.004918b1
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
mov esi, eax
push esi
call fcn.00426a30
pop ecx
push eax
push esi
mov ecx, edi
call fcn.004372ba
cmp dword [edi + 0x14], 8
jb 0x47a942
mov eax, dword [edi]
jmp 0x47a944
mov eax, edi
push 0x6b7f2c
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
mov esi, eax
push esi
call fcn.00426a30
pop ecx
push eax
push esi
mov ecx, edi
call fcn.004372ba
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
jmp 0x47a98b
cmp dword [edi + 0x14], 8
jb 0x47a977
mov eax, dword [edi]
jmp 0x47a979
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
mov ecx, dword [ebp + 0xc]
cmp eax, 2
sete dl
or byte [ecx], dl
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x47ee4f
Capabilities:
Reference l3 dns server

Disassembly:
mov eax, 0x698c0d
call fcn.006375a8
sub esp, 0x80
cmp byte [ebp + 8], 2
push esi
jne 0x47eec2
mov eax, dword fs:[0x2c]
mov ecx, dword [0x7d3240]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7a3bb0]
cmp eax, dword [ecx + 4]
jle 0x47eeae
mov esi, 0x7a3bb0
push esi
call fcn.0063772c
cmp dword [0x7a3bb0], 0xffffffff
pop ecx
jne 0x47eeae
push str.4.2.2.1
call dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov dword [0x7a3bac], eax
call fcn.006376ed
pop ecx
push dword [ebp + 0xc]
push dword [0x7a3bac]
call dword [0x7a3b94]
jmp 0x47ef47
cmp dword [0x7a3b98], 0
jne 0x47eed2
mov eax, 0x2741
jmp 0x47ef47
mov eax, dword fs:[0x2c]
xor esi, esi
mov ecx, dword [0x7d3240]
push ebx
mov ebx, 0x7a3bb4
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7a3bc8]
cmp eax, dword [ecx + 4]
jle 0x47ef27
push edi
mov edi, 0x7a3bc8
push edi
call fcn.0063772c
cmp dword [0x7a3bc8], 0xffffffff
pop ecx
jne 0x47ef26
push esi
push str.2001:db8::1428:57ab
push ebx
mov dword [ebp - 4], esi
call fcn.004c8ee5
or dword [ebp - 4], 0xffffffff
push edi
call fcn.006376ed
pop ecx
pop edi
push esi
lea eax, [ebp - 0x8c]
mov ecx, ebx
push eax
call fcn.0047752e
push dword [ebp + 0xc]
lea eax, [ebp - 0x8c]
push eax
call dword [0x7a3b98]
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x47f0c7
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
call fcn.0047f3ea
test al, al
je 0x47f123
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0047ee4f
test eax, eax
jne 0x47f123
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp + 0xc]
push eax
call fcn.0047efcd
lea ecx, [ebp - 0x18]
call fcn.004663a7
test al, al
jne 0x47f123
lea ecx, [ebp - 0x18]
call fcn.004c8e75
test al, al
jne 0x47f123
mov eax, dword [ebp + 8]
push esi
push edi
push 5
pop ecx
lea esi, [ebp - 0x18]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
jmp 0x47f183
cmp byte [ebp + 0xc], 2
jne 0x47f178
push 0x100
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x47f178
cmp word [eax + 8], 2
jne 0x47f178
cmp word [eax + 0xa], 4
jne 0x47f178
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x47f178
push 0
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp + 8]
push eax
call fcn.004c870d
jmp 0x47f180
mov ecx, dword [ebp + 8]
call fcn.004c8773
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x47f3ea
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
cmp dword [0x7a3b84], 0
push esi
jne 0x47f4f9
push str.Iphlpapi.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [0x7a3b84], eax
test eax, eax
jne 0x47f414
xor al, al
jmp 0x47f4fb
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GetAdaptersInfo
push eax
call esi
mov dword [0x7a3b88], eax
test eax, eax
jne 0x47f440
push dword [0x7a3b84]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
and dword [0x7a3b84], 0
jmp 0x47f40d
push str.GetIfTable
push dword [0x7a3b84]
call esi
mov dword [0x7a3b8c], eax
test eax, eax
je 0x47f42b
push str.GetIfEntry
push dword [0x7a3b84]
call esi
mov dword [0x7a3b90], eax
test eax, eax
je 0x47f42b
push str.GetBestInterface
push dword [0x7a3b84]
call esi
mov dword [0x7a3b94], eax
test eax, eax
je 0x47f42b
push str.GetBestInterfaceEx
push dword [0x7a3b84]
call esi
push str.GetIpAddrTable
push dword [0x7a3b84]
mov dword [0x7a3b98], eax
call esi
mov dword [0x7a3b9c], eax
test eax, eax
je 0x47f42b
push str.GetAdaptersAddresses
push dword [0x7a3b84]
call esi
push 0x6c8324
push dword [0x7a3b84]
mov dword [0x7a3ba0], eax
call esi
push str.NotifyIpInterfaceChange
push dword [0x7a3b84]
mov dword [0x7a3ba4], eax
call esi
mov dword [0x7a3ba8], eax
test eax, eax
je 0x47f4f9
lea ecx, [esp + 4]
push ecx
push 0
push 0x77d608
push 0x47f3e0
push 2
call eax
mov al, 1
pop esi
pop ecx
ret
Function at 0x47f8a0
Capabilities:
Get process image filename
List tcp connections and listeners

Disassembly:
sub esp, 0x234
push ebp
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 4], ebp
call fcn.0047f3ea
test al, al
jne 0x47f8d5
mov eax, dword [esp + 0x23c]
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ebp
mov word [eax], cx
jmp 0x47fa10
push esi
push edi
push 0x1c
pop esi
push esi
call fcn.0045e489
push ebp
push 4
push 2
mov edi, eax
mov dword [esp + 0x18], esi
push 1
lea eax, [esp + 0x1c]
push eax
push edi
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
cmp eax, 0x7a
jne 0x47f910
push 1
push edi
call fcn.0045e47c
push dword [esp + 0xc]
call fcn.0045e489
mov edi, eax
push 0x208
lea eax, [esp + 0x3c]
push ebp
push eax
call fcn.00651ed0
add esp, 0xc
lea eax, [esp + 0xc]
push ebp
push 4
push 2
push 1
push eax
push edi
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
test eax, eax
jne 0x47f9ee
push ebx
mov ebx, ebp
cmp dword [edi], ebp
jle 0x47f9ed
lea ebp, [edi + 0xc]
movzx eax, word [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [esp + 0x14], eax
movzx eax, word [ebp]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x24c]
movzx esi, ax
mov eax, dword [ebp + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push eax
call fcn.004773a3
movzx eax, word [eax + 0x10]
cmp esi, eax
jne 0x47f9b5
mov ecx, dword [esp + 0x24c]
call fcn.0047761d
cmp eax, dword [esp + 0x14]
jne 0x47f9b5
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x1c], eax
je 0x47f9bf
inc ebx
add ebp, 0x18
cmp ebx, dword [edi]
jl 0x47f94b
jmp 0x47f9ed
push dword [esp + 0x20]
push 0
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x47f9ed
push 0x104
lea eax, [esp + 0x40]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
push 1
push edi
call fcn.0045e47c
mov ecx, dword [esp + 0x244]
lea eax, [esp + 0x38]
push eax
call fcn.00427f43
mov eax, dword [esp + 0x244]
pop edi
pop esi
pop ebp
add esp, 0x234
ret 8