joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473610
Capabilities:
Delete file

Disassembly:
mov eax, 0x6a336d
call fcn.006426c4
sub esp, 0x28
push ebx
push esi
push dword [0x78d848]
xor ebx, ebx
mov byte [ebp - 0xd], bl
call fcn.00483993
mov esi, eax
test esi, esi
jne 0x473641
push ebx
mov byte [ebp - 0xd], 1
call fcn.00483993
mov esi, eax
mov eax, fcn.004830bc
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
test esi, esi
je 0x4736e9
push str.campaigncode.txt
lea eax, [ebp - 0x34]
mov dword [ebp - 0x14], ebx
push eax
call fcn.0047e93b
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x473674
mov eax, dword [eax]
push edi
lea ecx, [ebp - 0x14]
push ecx
push eax
push esi
call fcn.00483400
push ebx
push 1
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.004285f6
test edi, edi
je 0x4736ba
cmp dword [ebp - 0x14], 0
je 0x4736ba
push edi
call fcn.006690e2
pop ecx
mov ecx, 0x7b06c8
mov ebx, eax
call fcn.00473a8b
test eax, eax
jne 0x4736b4
mov dword [0x7b1594], ebx
mov dword [0x7b1590], ebx
cmp byte [ebp - 0xd], 0
je 0x4736d3
cmp dword [esi + 0x14], 8
jb 0x4736ca
mov eax, dword [esi]
jmp 0x4736cc
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov byte [ebp - 4], 2
test edi, edi
je 0x4736e3
push 1
push edi
call fcn.00460614
mov eax, fcn.004830bc
pop edi
mov dword [ebp - 4], 3
test eax, eax
je 0x4736fe
test esi, esi
je 0x4736fe
push esi
call fcn.004830bc
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4739f8
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x6a33d7
call fcn.006426c4
sub esp, 0xc
push esi
push edi
xor edx, edx
lea edi, [ecx + 0xef0]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x14], edx
jb 0x473a1c
mov eax, dword [edi]
jmp 0x473a1e
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.00642a25
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x473a50
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.00429d77
test esi, esi
je 0x473a6f
push esi
call fcn.006426f2
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 0x4753be
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x6a35ff
call fcn.006426c4
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.00479151
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 0x4753fb
mov eax, dword [edi]
jmp 0x4753fd
mov eax, edi
mov byte [eax], bl
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ebx
call fcn.00476b8c
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
test ecx, ecx
je 0x475534
push esi
call fcn.00476b8c
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x14], eax
mov edx, dword [eax + 8]
jmp 0x47550a
mov edi, dword [edx + 4]
movzx edx, word [edx + 8]
add edi, dword [eax]
test dl, 0xe0
je 0x475501
and edx, 0xf
jmp dword [edx*4 + 0x475806]
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 0x475430
mov ebx, dword [ebp - 0x1c]
inc ebx
mov dword [ebp - 0x1c], ebx
call fcn.00476b8c
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
cmp ebx, ecx
jb 0x47541b
pop esi
mov dword [ebp - 4], 5
call fcn.00479192
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 0x479701
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
je 0x479804
push ebx
xor ebx, ebx
inc ebx
cmp byte [esp + 0x10], 0
je 0x479740
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 0x4797d0
mov ecx, dword [edi + 0x54]
test ecx, ecx
jns 0x479755
neg ecx
jmp 0x479757
xor ecx, ecx
mov esi, dword [edi + 0x90]
test esi, esi
jns 0x479765
neg esi
jmp 0x479767
xor esi, esi
xor eax, eax
push ebp
mov dword [esp + 0x14], eax
cmp dword [edi + 0xf4], eax
jle 0x4797a0
lea ebp, [edi + 0xe0]
mov ebx, dword [ebp]
test ebx, ebx
je 0x479790
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 0x47977c
xor ebx, ebx
cmp dword [edi + 0xf4], ebx
jle 0x4797cc
lea ebp, [edi + 0xe0]
mov ecx, dword [ebp]
test ecx, ecx
je 0x4797c0
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 0x4797b0
xor ebx, ebx
inc ebx
pop ebp
push dword [edi + 4]
call fcn.0047b089
or dword [edi + 4], 0xffffffff
test byte [edi + 0xe], 0x20
je 0x479803
cmp byte [edi + 0x18], 6
jb 0x479803
push ebx
push 2
push 0x40
lea ecx, [edi + 0x4c]
call fcn.004777a9
push 0
push 2
push 0x40
lea ecx, [edi + 0x4c]
call fcn.004777a9
pop ebx
and byte [edi + 0xe], 0xdf
cmp byte [edi + 0xe], 0
jge 0x47982d
mov esi, dword [edi + 0xf8]
and dword [edi + 0xf8], 0
test esi, esi
je 0x47982d
push esi
call fcn.004e4231
push 0
push esi
call fcn.004e4bae
pop edi
pop esi
ret 4
Function at 0x47a37c
Capabilities:
Terminate process

Disassembly:
mov eax, 0x6b10e9
call fcn.006426c4
sub esp, 0x18
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.0047e93b
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x47a3a1
mov eax, dword [eax]
push eax
push 0x6c408c
push 0x10
call fcn.004956cd
add esp, 0xc
lea ecx, [ebp - 0x24]
push 0
push 1
call fcn.004285f6
push 1
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x47a96e
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 0x47a9a1
call fcn.004cc3c3
jmp 0x47a9ad
lea eax, [ebp - 0x84]
push eax
call fcn.004cc309
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
cmp dword [ecx + 4], 0xffffffff
jne 0x47aab9
or eax, 0xffffffff
jmp 0x47aaec
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 0x47aab4
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.004cc309
movzx eax, word [eax + 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x47ab71
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.004669ff
movzx eax, al
mov ecx, ebx
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
call fcn.0047ad2c
cmp dword [ebx + 4], 0xffffffff
jne 0x47abaa
xor al, al
jmp 0x47ac8d
cmp byte [esp + 0x24], 0
push esi
push edi
mov dword [esp + 0x28], 1
je 0x47abff
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 0x47abff
call fcn.00667f12
mov esi, eax
call fcn.00667f12
push dword [esi]
mov edi, eax
call fcn.00671cc4
push eax
push dword [edi]
push dword [ebx + 4]
push str.Cant_set_SO_REUSEADDR_option_on_socket__d____d__s
call fcn.0047d579
add esp, 0x14
push ebp
mov ecx, ebx
call fcn.004792b1
cmp eax, 0xffffffff
jne 0x47ac4f
cmp byte [esp + 0x2c], 0
mov edi, 0x2740
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
jne 0x47ac24
call esi
cmp eax, edi
je 0x47ac81
call esi
cmp eax, edi
jne 0x47ac81
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.004792b1
cmp eax, 0xffffffff
je 0x47ac81
jmp 0x47ac60
push ebp
push dword [ebx + 4]
push str.Bound_listening_socket__d_to_IP__A
call fcn.0047d579
add esp, 0xc
push 0xa
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x47ac85
push ebp
push dword [ebx + 4]
push str.Cant_listen_on_socket__d_IP__A
call fcn.0047d579
add esp, 0xc
xor al, al
jmp 0x47ac8b
mov byte [ebx + 0xe], 0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x47cde8
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov eax, 0x6a3af5
call fcn.006426c4
sub esp, 0x40
push ebx
push edi
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
push 0x6caf78
push 1
push ebx
push 0x6caf68
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x47cf1e
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 0x47cf0d
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 0x47cefc
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 0x47ceee
test eax, eax
jne 0x47ce84
mov edi, 0x80004005
jmp 0x47ceee
push dword [ebp + 8]
lea ecx, [ebp - 0x4c]
call fcn.00429d77
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x12
push eax
call fcn.00440cce
cmp dword [eax + 0x14], 8
jb 0x47cea5
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.004285f6
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x14
call fcn.004285f6
mov eax, dword [ebp - 0x10]
test esi, esi
jne 0x47ceda
mov edi, 0x8007000e
jmp 0x47ceed
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 0x47cefc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x1a
test eax, eax
je 0x47cf0d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x1b
test eax, eax
je 0x47cf1e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 0x1c
test eax, eax
je 0x47cf32
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 0x47e1ef
Capabilities:
Check if file exists
Get common file path
Get disk information

Disassembly:
mov eax, 0x69d947
call fcn.006426c4
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 0x6c5254
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
mov edi, dword [ebp + 8]
mov ecx, edi
push eax
call fcn.00429d77
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x10], 1
jb 0x47e265
mov eax, dword [edi]
jmp 0x47e267
mov eax, edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x47e321
push str..old
call fcn.00428864
pop ecx
push eax
push str..old
mov ecx, edi
call fcn.004286d2
cmp dword [edi + 0x14], 8
jb 0x47e29f
mov eax, dword [edi]
jmp 0x47e2a1
mov eax, edi
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x47e321
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x47e319
call fcn.004949f9
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
mov esi, eax
push esi
call fcn.00428864
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00439135
cmp dword [edi + 0x14], 8
jb 0x47e2f6
mov eax, dword [edi]
jmp 0x47e2f8
mov eax, edi
push 0x6c5254
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
mov esi, eax
push esi
call fcn.00428864
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00439135
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
jmp 0x47e33f
cmp dword [edi + 0x14], 8
jb 0x47e32b
mov eax, dword [edi]
jmp 0x47e32d
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 0x4826b7
Capabilities:
Reference l3 dns server

Disassembly:
mov eax, 0x6a3e5d
call fcn.006426c4
sub esp, 0x80
cmp byte [ebp + 8], 2
push esi
jne 0x48272a
mov eax, dword fs:[0x2c]
mov ecx, dword [0x7e59f0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7b5108]
cmp eax, dword [ecx + 4]
jle 0x482716
mov esi, 0x7b5108
push esi
call fcn.00642848
cmp dword [0x7b5108], 0xffffffff
pop ecx
jne 0x482716
push str.4.2.2.1
call dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov dword [0x7b5104], eax
call fcn.00642809
pop ecx
push dword [ebp + 0xc]
push dword [0x7b5104]
call dword [0x7b50ec]
jmp 0x4827af
cmp dword [0x7b50f0], 0
jne 0x48273a
mov eax, 0x2741
jmp 0x4827af
mov eax, dword fs:[0x2c]
xor esi, esi
mov ecx, dword [0x7e59f0]
push ebx
mov ebx, 0x7b510c
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7b5120]
cmp eax, dword [ecx + 4]
jle 0x48278f
push edi
mov edi, 0x7b5120
push edi
call fcn.00642848
cmp dword [0x7b5120], 0xffffffff
pop ecx
jne 0x48278e
push esi
push str.2001:db8::1428:57ab
push ebx
mov dword [ebp - 4], esi
call fcn.004ccb35
or dword [ebp - 4], 0xffffffff
push edi
call fcn.00642809
pop ecx
pop edi
push esi
lea eax, [ebp - 0x8c]
mov ecx, ebx
push eax
call fcn.0047a9b6
push dword [ebp + 0xc]
lea eax, [ebp - 0x8c]
push eax
call dword [0x7b50f0]
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x48292f
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
call fcn.00482c52
test al, al
je 0x48298b
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.004826b7
test eax, eax
jne 0x48298b
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp + 0xc]
push eax
call fcn.00482835
lea ecx, [ebp - 0x18]
call fcn.00468c74
test al, al
jne 0x48298b
lea ecx, [ebp - 0x18]
call fcn.004ccac5
test al, al
jne 0x48298b
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 0x4829eb
cmp byte [ebp + 0xc], 2
jne 0x4829e0
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 0x4829e0
cmp word [eax + 8], 2
jne 0x4829e0
cmp word [eax + 0xa], 4
jne 0x4829e0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4829e0
push 0
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp + 8]
push eax
call fcn.004cc35d
jmp 0x4829e8
mov ecx, dword [ebp + 8]
call fcn.004cc3c3
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x482c52
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
cmp dword [0x7b50dc], 0
push esi
jne 0x482d61
push str.Iphlpapi.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [0x7b50dc], eax
test eax, eax
jne 0x482c7c
xor al, al
jmp 0x482d63
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GetAdaptersInfo
push eax
call esi
mov dword [0x7b50e0], eax
test eax, eax
jne 0x482ca8
push dword [0x7b50dc]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
and dword [0x7b50dc], 0
jmp 0x482c75
push str.GetIfTable
push dword [0x7b50dc]
call esi
mov dword [0x7b50e4], eax
test eax, eax
je 0x482c93
push str.GetIfEntry
push dword [0x7b50dc]
call esi
mov dword [0x7b50e8], eax
test eax, eax
je 0x482c93
push str.GetBestInterface
push dword [0x7b50dc]
call esi
mov dword [0x7b50ec], eax
test eax, eax
je 0x482c93
push str.GetBestInterfaceEx
push dword [0x7b50dc]
call esi
push str.GetIpAddrTable
push dword [0x7b50dc]
mov dword [0x7b50f0], eax
call esi
mov dword [0x7b50f4], eax
test eax, eax
je 0x482c93
push str.GetAdaptersAddresses
push dword [0x7b50dc]
call esi
push 0x6d5b74
push dword [0x7b50dc]
mov dword [0x7b50f8], eax
call esi
push str.NotifyIpInterfaceChange
push dword [0x7b50dc]
mov dword [0x7b50fc], eax
call esi
mov dword [0x7b5100], eax
test eax, eax
je 0x482d61
lea ecx, [esp + 4]
push ecx
push 0
push 0x78d830
push 0x482c48
push 2
call eax
mov al, 1
pop esi
pop ecx
ret
Function at 0x482dfe
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.00482c52
test al, al
jne 0x482e33
mov eax, dword [esp + 0x23c]
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ebp
mov word [eax], cx
jmp 0x482f6e
push esi
push edi
push 0x1c
pop esi
push esi
call fcn.00460621
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 0x482e6e
push 1
push edi
call fcn.00460614
push dword [esp + 0xc]
call fcn.00460621
mov edi, eax
push 0x208
lea eax, [esp + 0x3c]
push ebp
push eax
call fcn.0065d010
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 0x482f4c
push ebx
mov ebx, ebp
cmp dword [edi], ebp
jle 0x482f4b
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.0047a82a
movzx eax, word [eax + 0x10]
cmp esi, eax
jne 0x482f13
mov ecx, dword [esp + 0x24c]
call fcn.0047aaa5
cmp eax, dword [esp + 0x14]
jne 0x482f13
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x1c], eax
je 0x482f1d
inc ebx
add ebp, 0x18
cmp ebx, dword [edi]
jl 0x482ea9
jmp 0x482f4b
push dword [esp + 0x20]
push 0
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x482f4b
push 0x104
lea eax, [esp + 0x40]
push eax
push esi
call sub.KERNEL32.DLL_K32GetProcessImageFileNameW
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
push 1
push edi
call fcn.00460614
mov ecx, dword [esp + 0x244]
lea eax, [esp + 0x38]
push eax
call fcn.00429d77
mov eax, dword [esp + 0x244]
pop edi
pop esi
pop ebp
add esp, 0x234
ret 8
Function at 0x4860af
Capabilities:
Delete file

Disassembly:
mov eax, 0x6a2775
call fcn.006426c4
sub esp, 0x30
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x68]
cmp dword [eax + 0x14], 8
jb 0x4860cb
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00473f1c
lea eax, [esi + 0xcc]
xor edi, edi
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.00427fbe
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], edi
je 0x486105
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x4860fe
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [esi + 0x78], edi
je 0x48611c
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
jae 0x486116
lea eax, [ebp - 0x3c]
push eax
call fcn.00461675
push edi
push 1
lea ecx, [ebp - 0x24]
mov dword [esi + 0x64], 4
call fcn.004285f6
push edi
push 1
lea ecx, [ebp - 0x3c]
call fcn.004285f6
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4862f8
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x7b4ee6], 0
je 0x486308
mov eax, 0x80004005
jmp 0x48633f
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov ecx, esi
sub ecx, 0
je 0x48633c
dec ecx
sub ecx, 1
je 0x48633c
push dword [esp + 0xc]
push esi
push str.RegKey::DeleteKey_fail___d_:__s_n
call fcn.0047d5f0
add esp, 0xc
mov eax, esi
jmp 0x48633e
xor eax, eax
pop esi
ret 8

Function at 0x486342
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x7b4ee6], 0
je 0x48634f
xor al, al
jmp 0x486380
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, eax
sub ecx, 0
je 0x48637e
dec ecx
sub ecx, 1
je 0x48637e
push dword [esp + 8]
push eax
push str.RegKey::DeleteTree_fail___d_:__s_n
call fcn.0047d5f0
add esp, 0xc
jmp 0x48634b
mov al, 1
ret 8

Function at 0x486383
Capabilities:
Delete registry value

Disassembly:
cmp byte [0x7b4ee6], 0
je 0x486390
xor al, al
jmp 0x4863c2
push esi
push dword [esp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x4863ba
cmp esi, 2
je 0x4863ba
push esi
push dword [esp + 0xc]
push str.RegKey:_Could_not_delete_value__s:__d_n
call fcn.0047d5f0
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret 4