joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100242c0
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a020
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x10080060]
xor eax, ebp
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0x4000
lea ecx, [ebp - 0x2c]
call fcn.10026fe0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10027050
mov dword [ebp - 0x20], eax
push 0
push 5
push 2
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x7a
jne 0x10024352
mov dword [ebp - 0x9c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10027010
mov eax, dword [ebp - 0x9c]
jmp 0x1002447b
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], 0
jmp 0x10024371
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx]
jae 0x10024458
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x98], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x94], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x90], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x8c], edx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x88], ecx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x84], edx
lea ecx, [ebp - 0x7c]
call fcn.100244a0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
push ecx
call sub.WS2_32.dll_inet_ntoa
push eax
lea ecx, [ebp - 0x78]
call fcn.100168f0
movzx edx, word [ebp - 0x90]
push edx
call sub.WS2_32.dll_htons
movzx eax, ax
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
push edx
call sub.WS2_32.dll_inet_ntoa
push eax
lea ecx, [ebp - 0x58]
call fcn.100168f0
movzx eax, word [ebp - 0x88]
push eax
call sub.WS2_32.dll_htons
movzx ecx, ax
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10027710
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.100160b0
jmp 0x10024368
mov ecx, dword [ebp + 8]
call fcn.10026eb0
mov dword [ebp - 0xa0], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10027010
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.10052989
mov esp, ebp
pop ebp
ret
Function at 0x100244d0
Capabilities:
List udp connections and listeners

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10080060]
xor eax, ebp
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0x4000
lea ecx, [ebp - 0x2c]
call fcn.10026fe0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10027050
mov dword [ebp - 0x20], eax
push 0
push 1
push 2
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call sub.IPHLPAPI.DLL_GetExtendedUdpTable
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x7a
jne 0x10024559
mov dword [ebp - 0x68], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10027010
mov eax, dword [ebp - 0x68]
jmp 0x10024614
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], 0
jmp 0x10024578
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx]
jae 0x100245f7
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0xc
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x60], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x54]
call fcn.10024630
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push edx
call sub.WS2_32.dll_inet_ntoa
push eax
lea ecx, [ebp - 0x50]
call fcn.100168f0
movzx eax, word [ebp - 0x60]
push eax
call sub.WS2_32.dll_htons
movzx ecx, ax
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x54], edx
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp + 8]
call fcn.100277f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.10024650
jmp 0x1002456f
mov ecx, dword [ebp + 8]
call fcn.10026eb0
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10027010
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.10052989
mov esp, ebp
pop ebp
ret
Function at 0x1003e3d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10080060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x48]
push eax
call fcn.1003e260
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.1003e330
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.10002760
push eax
lea ecx, [ebp - 0x48]
call fcn.10002760
mov ecx, eax
call fcn.1003f5a1
test eax, eax
je 0x1003e453
mov byte [ebp - 0x49], 0
lea ecx, [ebp - 0x2c]
call fcn.10002740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.10002740
mov al, byte [ebp - 0x49]
jmp 0x1003e494
push 0
lea ecx, [ebp - 0x2c]
call fcn.10002760
push eax
lea ecx, [ebp - 0x48]
call fcn.10002760
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x4a], al
lea ecx, [ebp - 0x2c]
call fcn.10002740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.10002740
mov al, byte [ebp - 0x4a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10052989
mov esp, ebp
pop ebp
ret
Function at 0x1003ef3b
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa94
mov eax, dword [0x10080060]
xor eax, esp
mov dword [esp + 0xa90], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
test esi, esi
je 0x1003f13c
test eax, eax
jne 0x1003ef8b
test ecx, ecx
je 0x1003f13c
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ax, 0x3a
je 0x1003efe6
cmp ax, 0x5c
je 0x1003efe6
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x690], ax
lea eax, [esp + 0x692]
push eax
call fcn.100552a0
add esp, 0xc
lea eax, [esp + 0x688]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [esp + 0x68c]
push eax
call edi
lea esi, [esp + 0x688]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003f13c
test al, 0x10
je 0x1003f13c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [esp + 0x484]
push eax
call ebx
push 0x10074f10
lea eax, [esp + 0x484]
push eax
call edi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x1003f13c
mov dword [esp + 0x10], 1
push 0x10074f14
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1003f10b
push 0x10074f18
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1003f10b
cmp dword [esp + 0x28], 0xffffffff
je 0x1003f10b
push esi
lea eax, [esp + 0x27c]
push eax
call ebx
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x27c]
push eax
call edi
test byte [esp + 0x28], 0x10
je 0x1003f0f0
cmp dword [esp + 0x14], 0
je 0x1003f0bd
push dword [esp + 0x24]
lea eax, [esp + 0x27c]
push eax
call dword [esp + 0x1c]
test eax, eax
je 0x1003f124
cmp dword [ebp + 0xc], 0
je 0x1003f10b
push dword [esp + 0x24]
lea eax, [esp + 0x27c]
push dword [esp + 0x18]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [ebp + 0xc]
push eax
call fcn.1003ef3b
push 2
pop ecx
cmp eax, ecx
jne 0x1003f10b
mov dword [esp + 0x10], ecx
jmp 0x1003f12c
cmp dword [esp + 0x18], 0
je 0x1003f10b
push dword [esp + 0x1c]
lea eax, [esp + 0x27c]
push eax
call dword [esp + 0x20]
test eax, eax
je 0x1003f124
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1003f046
jmp 0x1003f12c
mov dword [esp + 0x10], 2
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
jmp 0x1003f13e
xor eax, eax
mov ecx, dword [esp + 0xa9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10052989
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1003f5a1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1fa8]
mov eax, 0x2028
call fcn.1005e830
mov eax, dword [0x10080060]
xor eax, ebp
mov dword [ebp + 0x1fa4], eax
mov eax, dword [ebp + 0x1fb0]
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], ebx
cmp esi, ebx
je 0x1003f736
cmp eax, ebx
je 0x1003f736
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1003f5fa
mov dword [ebp - 0x70], 1
jmp 0x1003f736
push edi
push ebx
push ebx
push 3
push ebx
push ebx
mov edi, 0x80000000
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call esi
push eax
lea ecx, [ebp - 0x60]
call fcn.10015340
push ebx
push ebx
push 3
push ebx
push ebx
push edi
push dword [ebp - 0x6c]
call esi
push eax
lea ecx, [ebp - 0x64]
call fcn.10015340
cmp dword [ebp - 0x60], ebx
je 0x1003f725
cmp dword [ebp - 0x60], 0xffffffff
je 0x1003f725
cmp dword [ebp - 0x64], ebx
je 0x1003f725
cmp dword [ebp - 0x64], 0xffffffff
je 0x1003f725
xor eax, eax
mov dword [ebp - 0x80], ebx
lea edi, [ebp - 0x7c]
stosd dword es:[edi], eax
mov dword [ebp - 0x78], ebx
lea edi, [ebp - 0x74]
stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x60]
call fcn.10015380
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push eax
call esi
test eax, eax
je 0x1003f725
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x64]
call fcn.10015380
push eax
call esi
test eax, eax
je 0x1003f725
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x78]
jne 0x1003f725
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x74]
jne 0x1003f725
mov dword [ebp - 0x68], ebx
jmp 0x1003f6f8
cmp dword [ebp - 0x68], ebx
je 0x1003f71e
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x68]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x6c], ebx
call fcn.10015380
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003f725
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp - 0x6c]
jne 0x1003f725
lea edi, [ebp - 0x5c]
lea esi, [ebp + 0xfa4]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1003f6f4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x1003f725
push ebx
lea eax, [ebp - 0x68]
push eax
push 0x1000
lea eax, [ebp + 0xfa4]
push eax
lea ecx, [ebp - 0x60]
call fcn.10015380
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1003f6b1
jmp 0x1003f725
mov dword [ebp - 0x70], 1
lea ecx, [ebp - 0x64]
call fcn.10015360
lea ecx, [ebp - 0x60]
call fcn.10015360
pop edi
mov ecx, dword [ebp + 0x1fa4]
mov eax, dword [ebp - 0x70]
pop esi
xor ecx, ebp
pop ebx
call fcn.10052989
add ebp, 0x1fa8
leave
ret 4
Function at 0x1003f9ab
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x10080060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
test esi, esi
je 0x1003fa2e
test ebx, ebx
je 0x1003fa2e
cmp dword [ebp + 8], 0
je 0x1003fa2e
cmp word [esi + 2], 0x3a
jne 0x1003fa2e
mov ax, word [esi]
mov word [ebp - 0xc], ax
push 0x3a
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov edi, 0x208
push edi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x1003fa2e
push edi
add esi, 4
push esi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrNCatW]
push dword [ebp + 8]
lea eax, [ebp - 0x41c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
inc eax
jmp 0x1003fa30
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10052989
leave
ret 4

Function at 0x1003fa40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10080060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], ebx
test edi, edi
je 0x1003fb30
test ebx, ebx
je 0x1003fb30
cmp dword [ebp + 8], 0
je 0x1003fb30
mov esi, str.deviceMup_
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, edi
jne 0x1003faaa
push ebx
push 0x10074fa4
push esi
mov ecx, edi
mov eax, dword [ebp + 8]
call fcn.100405c8
xor eax, eax
inc eax
jmp 0x1003fb32
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x220], eax
xor ebx, ebx
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x220]
test ecx, eax
je 0x1003fb2a
push 0x3a
lea eax, [ebx + 0x61]
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
push 0x206
lea edi, [ebp - 8]
push eax
stosd dword es:[edi], eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.100552a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x1003fb2a
push 0
push dword [ebp - 0x218]
lea esi, [ebp - 0x214]
call fcn.100406c6
test eax, eax
jne 0x1003fb43
inc ebx
cmp ebx, 0x1a
jl 0x1003fab8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10052989
leave
ret 4
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
jmp 0x1003fa9a
Function at 0x1003fe75
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x438
mov eax, dword [0x10080060]
xor eax, esp
mov dword [esp + 0x434], eax
mov eax, fcn.1004023c
test eax, eax
je 0x1003ff20
push 0x424
lea eax, [esp + 0x10]
push 0
push eax
call fcn.100552a0
add esp, 0xc
push dword [ebp + 8]
mov dword [esp + 0xc], 0x428
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push eax
lea ecx, [esp + 8]
call fcn.10015340
cmp dword [esp + 4], 0
je 0x1003ff17
cmp dword [esp + 4], 0xffffffff
je 0x1003ff17
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
call fcn.10015380
push eax
call sub.KERNEL32.dll_Module32FirstW
jmp 0x1003ff13
push esi
lea eax, [esp + 0xc]
push eax
call fcn.1004023c
test eax, eax
je 0x1003ff17
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
call fcn.10015380
push eax
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x1003fef0
lea ecx, [esp + 4]
call fcn.10015360
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.10052989
mov esp, ebp
pop ebp
ret 4

Function at 0x1003ff34
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x10080060]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 4
mov eax, 0x1006812f
call fcn.10054081
test esi, esi
je 0x1003ffd5
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push eax
lea ecx, [ebp - 0x10]
call fcn.10015340
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x1003ffcd
cmp dword [ebp - 0x10], 0xffffffff
je 0x1003ffcd
push 0x228
lea eax, [ebp + 4]
push 0
push eax
mov dword [ebp], 0x22c
call fcn.100552a0
add esp, 0xc
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.10015380
push eax
call sub.KERNEL32.dll_Process32FirstW
jmp 0x1003ffc9
push ebx
lea eax, [ebp]
push eax
call esi
test eax, eax
je 0x1003ffcd
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.10015380
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1003ffac
lea ecx, [ebp - 0x10]
call fcn.10015360
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.10052989
add ebp, 0x230
leave
ret
Function at 0x1003fff8
Capabilities:
Get process image filename

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x10080060]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
mov esi, ecx
test esi, esi
jne 0x10040034
xor eax, eax
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.10052989
add ebp, 0x190
leave
ret 8
push dword [ebp + 0x198]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
lea ecx, [ebp - 0x80]
call fcn.10015340
cmp dword [ebp - 0x80], 0
je 0x1004005c
cmp dword [ebp - 0x80], 0xffffffff
jne 0x1004006a
xor esi, esi
lea ecx, [ebp - 0x80]
call fcn.10015360
mov eax, esi
jmp 0x1004001c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.100552a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x80]
call fcn.10015380
push eax
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jbe 0x1004005c
push dword [ebp + 0x19c]
mov edx, esi
lea ecx, [ebp - 0x7c]
call fcn.1003fa40
xor esi, esi
inc esi
jmp 0x1004005e

Function at 0x10040883
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x10080060]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x20
mov eax, 0x1006a307
call fcn.10054081
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x810]
mov esi, edx
xor edi, edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], edi
call fcn.1000be70
xor ebx, ebx
inc ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], edi
cmp esi, edi
je 0x10040991
xor eax, eax
push 0x7fe
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.100552a0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
push esi
push dword [ebp - 0x18]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x1c], edi
call esi
cmp dword [ebp - 0x1c], ebx
je 0x10040920
cmp dword [ebp - 0x1c], 2
jne 0x10040991
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x10040991
cmp eax, 0x800
jbe 0x1004095d
add eax, 2
push eax
call fcn.1005368c
mov ebx, eax
mov eax, dword [ebp - 0x10]
add eax, 2
push eax
push edi
push ebx
call fcn.100552a0
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call esi
jmp 0x10040974
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call esi
mov ebx, dword [ebp - 0x28]
mov eax, ebx
cmp ebx, edi
jne 0x1004097d
lea eax, [ebp]
mov ecx, dword [ebp - 0x24]
push eax
call fcn.100264f0
cmp ebx, edi
je 0x10040991
push ebx
call fcn.100535af
pop ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.10052989
add ebp, 0x804
leave
ret
Function at 0x10040b51
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x10040bc9
push 0xf003f
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10040bc1
push esi
push 0xf01ff
push dword [ebp + 8]
lea esi, [ebp - 8]
call fcn.100409b7
pop esi
cmp dword [ebp - 8], ebx
je 0x10040bc1
push edi
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
pop edi
test eax, eax
je 0x10040bc1
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10040bc1
inc ebx
lea eax, [ebp - 8]
call fcn.100409e5
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x10040c88
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 8], edi
je 0x10040cee
push 4
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x10040ce6
push esi
push 4
push dword [ebp + 8]
lea esi, [ebp - 8]
call fcn.100409b7
pop esi
cmp dword [ebp - 8], edi
je 0x10040ce6
push 6
mov dword [ebp - 0x24], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10040ce6
cmp dword [ebp - 0x20], 4
jne 0x10040ce6
inc ebx
lea eax, [ebp - 8]
call fcn.100409e5
pop edi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x10050946
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x10080060]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.100552a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Logsignored
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x7c]
push eax
mov ecx, esi
call fcn.100082b0
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
mov eax, esi
call fcn.10052989
add ebp, 0x190
leave
ret