joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10031ac2
Capabilities:
Get common file path

Disassembly:
push 0x18
mov eax, 0x100a72d0
call fcn.100a4ea8
mov ebx, ecx
mov dword [ebp - 0x14], ebx
and dword [ebp - 4], 0
and dword [ebp - 0x20], 0
call fcn.1008e1f3
push eax
lea ecx, [ebp - 0x10]
call fcn.1008df96
xor edi, edi
inc edi
mov dword [ebp - 4], edi
call fcn.1008e1f3
push eax
mov ecx, ebx
call fcn.1008df96
mov esi, dword [ebp - 0x10]
mov ecx, 0x104
mov dword [ebp - 0x20], edi
mov eax, dword [esi - 8]
sub edi, dword [esi - 4]
sub eax, ecx
or eax, edi
jge 0x10031b1f
push ecx
lea ecx, [ebp - 0x10]
call fcn.1008de52
mov esi, dword [ebp - 0x10]
push esi
xor eax, eax
push eax
push eax
push 0x25
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10031bb7
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.1008db88
call fcn.1008e1f3
push eax
lea ecx, [ebp - 0x18]
call fcn.1008df96
push 0x100085ec
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.1006e7cf
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x104
lea ecx, [ebx - 0x10]
call fcn.1008e35d
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 3
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
call fcn.1008dea9
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
push eax
push edi
call dword [sym.imp.msi.dll_MsiMessageBoxW]
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 2
call fcn.1008e3f5
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffff
call fcn.1008db88
lea ecx, [ebx - 0x10]
call fcn.1008e3f5
mov ebx, dword [ebp - 0x14]
lea ecx, [esi - 0x10]
call fcn.1008e3f5
mov eax, ebx
call fcn.100a4e71
ret
Function at 0x10032166
Capabilities:
Get file version info

Disassembly:
push 0x18
mov eax, 0x100a73db
call fcn.100a4ea8
mov eax, ecx
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x1000893c
mov dword [ebp - 0x1c], ebx
call fcn.1006f372
xor edi, edi
mov dword [ebp - 4], ebx
inc edi
mov dword [ebp - 0x1c], edi
call fcn.1008e1f3
push eax
lea ecx, [ebp - 0x10]
call fcn.1008df96
mov dword [ebp - 4], edi
mov ecx, 0x105
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 8]
sub edi, dword [esi - 4]
sub eax, ecx
or edi, eax
jge 0x100321c3
push ecx
lea ecx, [ebp - 0x10]
call fcn.1008de52
mov esi, dword [ebp - 0x10]
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.1008db88
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x10032257
push ebx
call fcn.10090eed
pop ecx
mov edi, eax
push edi
push ebx
push dword [ebp - 0x18]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1003224b
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x100214ac
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x1003224e
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
push edx
push 0x1000894c
push ebx
call fcn.1008dbf3
add esp, 0x18
jmp 0x1003224e
mov ebx, dword [ebp - 0x14]
push edi
call fcn.10090ef6
pop ecx
jmp 0x1003225a
mov ebx, dword [ebp - 0x14]
lea ecx, [esi - 0x10]
call fcn.1008e3f5
mov eax, ebx
call fcn.100a4e71
ret

Function at 0x1003226a
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100c5014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
xor esi, esi
push eax
push 0x20019
push esi
mov edi, 0x10008968
mov dword [ebp - 0x210], esi
push edi
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1003231a
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1003231a
lea ecx, [ebp - 0x20c]
call fcn.10032337
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 2
push esi
push 0x100089e8
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 7
push eax
push 4
push esi
push 0x10008a0c
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100906e8
mov esp, ebp
pop ebp
ret
Function at 0x10032337
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x100a7406
call fcn.100a4ea8
mov edi, ecx
xor esi, esi
mov ebx, 0x80004005
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
test edi, edi
je 0x10032459
lea eax, [ebp - 0x10]
push eax
push 0x20019
push esi
push 0x10008a30
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100323c1
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x208
push eax
push edi
push esi
push esi
push 0x10008aa0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100323bf
xor eax, eax
push edi
mov word [edi + 0x206], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100323bf
xor ebx, ebx
jmp 0x10032459
xor esi, esi
push edi
push esi
push esi
push 0x2b
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x100323f8
push 0x10008ab0
push 0x104
push edi
call fcn.100978e3
add esp, 0xc
test eax, eax
jne 0x100323f8
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100323f8
mov ebx, esi
jmp 0x10032459
call fcn.1008e1f3
push eax
lea ecx, [ebp - 0x18]
call fcn.1008df96
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], esi
call fcn.10030691
push 0x10008aec
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
push dword [eax]
call fcn.1006e7cf
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov esi, dword [ebp - 0x18]
push esi
push 0x104
push edi
call fcn.10097958
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
lea ecx, [esi - 0x10]
neg eax
sbb eax, eax
not eax
and ebx, eax
call fcn.1008e3f5
mov eax, ebx
call fcn.100a4e71
ret

Function at 0x10032c64
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x100c5014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x418]
mov esi, 0x100
push eax
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x10032c9c
call fcn.1008da58
jmp 0x10032d30
cmp eax, esi
jbe 0x10032caa
mov eax, 0x80020013
jmp 0x10032d30
lea eax, [ebp - 0x210]
push eax
push 0
push 0x10008c24
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10032c92
xor eax, eax
lea esi, [edi + 8]
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push eax
push 0x101
push esi
call fcn.10097a89
add esp, 0x10
mov ecx, eax
call fcn.1008da22
and dword [ebp - 0x420], 0
lea eax, [ebp - 0x424]
mov ecx, 0x40000000
mov dword [ebp - 0x424], 0xc
push ecx
push eax
push 0x2100
push 2
push 0
push ecx
mov dword [edi + 0x20c], ecx
mov ecx, edi
push esi
mov dword [ebp - 0x41c], 1
call fcn.10032b45
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100906e8
mov esp, ebp
pop ebp
ret 8
Function at 0x100373a3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x100a8143
call fcn.100a4ea8
mov edi, ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.1008e35d
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1008e35d
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 4
push ecx
push 1
add eax, 0x10
xor ebx, ebx
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10037415
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10037415
mov bl, 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
lea ecx, [esi - 0x10]
call fcn.1008e3f5
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1008e3f5
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.1008e3f5
mov al, bl
call fcn.100a4e71
ret 8

Function at 0x1003f88b
Capabilities:
Identify system language via api

Disassembly:
push 0x24
mov eax, 0x100a9a4c
call fcn.100a4ea8
mov ebx, edx
mov edi, ecx
push 0x1000c240
lea ecx, [ebp - 0x18]
call fcn.1006f372
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.100353de
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1003f8d8
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x100cf608]
call esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edi + 8]
mov dword [ebp - 0x28], ecx
test eax, eax
je 0x1003f8f8
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100cf608]
call esi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov ecx, dword [ebp - 0x30]
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x100cf608]
call esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.100355cc
mov byte [ebp - 4], 3
cmp dword [ebp - 0x24], 0
setne al
test al, al
je 0x1003f9ae
sub esp, 0xc
lea eax, [ebp - 0x24]
mov esi, esp
mov ecx, esi
push eax
call fcn.1006e371
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 8], eax
call fcn.1003f9c6
mov dword [ebp - 0x10], eax
cmp eax, 0xfffffffd
jne 0x1003f96d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1003f98c
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.1006becb
cmp eax, 0xffffffff
jne 0x1003f98c
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.1006ad37
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.1006e39b
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.100355cc
mov byte [ebp - 4], 3
cmp dword [ebp - 0x24], 0
jne 0x1003f935
lea ecx, [ebp - 0x24]
call fcn.1006e39b
lea ecx, [ebp - 0x30]
call fcn.1006e39b
call fcn.100a4e71
ret 4
Function at 0x1004110d
Capabilities:
Enumerate files on windows

Disassembly:
push 0x260
mov eax, 0x100aa016
call fcn.100a4edc
mov esi, ecx
mov dword [ebp - 0x264], esi
xor ebx, ebx
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x268], ebx
push 0x250
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 1
push ebx
push eax
call fcn.100935b0
add esp, 0xc
lea ecx, [ebp + 8]
push 0x1000c87c
call fcn.1006e80f
lea eax, [ebp - 0x260]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esi], ebx
cmp edi, 0xffffffff
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
setne al
mov dword [ebp - 0x268], 1
test al, al
je 0x1004123e
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10041196
sub ecx, edx
sar ecx, 1
cmp ecx, 4
jne 0x10041228
movzx eax, word [ebp - 0x234]
push eax
call fcn.10097f0a
pop ecx
test eax, eax
je 0x10041228
movzx eax, word [ebp - 0x232]
push eax
call fcn.10097f0a
pop ecx
test eax, eax
je 0x10041228
movzx eax, word [ebp - 0x230]
push eax
call fcn.10097f0a
pop ecx
test eax, eax
je 0x10041228
movzx eax, word [ebp - 0x22e]
push eax
call fcn.10097f0a
pop ecx
test eax, eax
je 0x10041228
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x264]
call fcn.1006f372
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.1006e4ef
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1004118d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1008e3f5
mov eax, esi
call fcn.100a4e86
ret 4
Function at 0x10041381
Capabilities:
Check if file exists

Disassembly:
push 0x38
mov eax, 0x100aa0b6
call fcn.100a4ea8
mov ebx, ecx
cmp byte [ebx + 0x24], 0
je 0x10041453
lea ecx, [ebp - 0x18]
call fcn.10030691
and dword [ebp - 4], 0
push ecx
mov esi, esp
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008e35d
add eax, 0x10
lea ecx, [ebp - 0x38]
mov dword [esi], eax
call fcn.1004110d
xor edi, edi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], edi
jle 0x10041440
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008e35d
add eax, 0x10
mov dword [ebp - 0x10], eax
push edi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.1006ad19
lea ecx, [ebp - 0x10]
push dword [eax]
call fcn.1006e80f
push 0x1000c888
lea ecx, [ebp - 0x10]
call fcn.1006e80f
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100414e4
push edi
lea ecx, [ebp - 0x38]
call fcn.1006ad19
push ecx
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.1004125a
test al, al
je 0x10041459
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 1
call fcn.1008e3f5
inc edi
cmp edi, dword [ebp - 0x34]
jl 0x100413ce
lea ecx, [ebp - 0x38]
call fcn.100793b6
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
call fcn.100a4e71
ret
lea ecx, [ebp - 0x14]
call fcn.1008e2b0
push edi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.1006ad19
push dword [eax]
lea eax, [ebp - 0x14]
push 0x1000c8b0
push eax
call fcn.1008dbf3
mov edi, dword [ebx + 0x20]
lea ecx, [ebp - 0x14]
add esp, 0xc
mov edx, dword [edi]
call fcn.1006e348
mov esi, dword [edx + 4]
mov ecx, esi
push eax
push 0
call dword [0x100cf608]
mov ecx, edi
call esi
push 0x100093a4
lea ecx, [ebp - 0x1c]
call fcn.1006f372
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2c]
call fcn.10032eb6
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.1002dff0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.10035100
push 0x100c4d74
lea eax, [ebp - 0x44]
push eax
call fcn.1009378c
lea ecx, [ebp - 0x14]
call fcn.1008e2b0
push edi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 7
call fcn.1006ad19
push dword [eax]
lea eax, [ebp - 0x14]
push 0x1000c948
push eax
call fcn.1008dbf3
mov edi, dword [ebx + 0x20]
lea ecx, [ebp - 0x14]
add esp, 0xc
mov edx, dword [edi]
call fcn.1006e348
mov esi, dword [edx + 4]
mov ecx, esi
push eax
push 0
call dword [0x100cf608]
mov ecx, edi
call esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.100330f2
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x28]
call fcn.100416c0
push 0x100c4c08
lea eax, [ebp - 0x28]
jmp 0x100414de
Function at 0x10044fc9
Capabilities:
Check if file exists

Disassembly:
push 0x18
mov eax, 0x100aad15
call fcn.100a4ea8
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0xc], edi
jle 0x10045135
lea eax, [ebx + 4]
push edi
mov ecx, eax
call fcn.1006bbf9
push 0
push 0x100c82a0
push 0x100c82c0
push 0
push dword [eax]
call fcn.100a617b
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x10045128
cmp byte [ebp + 0x10], 0
je 0x1004508f
call fcn.1008e1f3
push eax
lea ecx, [ebp - 0x14]
call fcn.1008df96
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.100426e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.1006e7cf
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10045080
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
add ecx, 8
call fcn.1006f1e0
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
jmp 0x10045123
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.1008e3f5
mov esi, dword [ebp - 0x1c]
push edi
lea ecx, [ebx + 4]
call fcn.1006bbf9
push 0
push 0x100c82e0
push 0x100c82c0
push 0
push dword [eax]
call fcn.100a617b
add esp, 0x14
mov byte [ebp - 0xd], 0
test eax, eax
je 0x100450c5
cmp dword [eax + 0x134], 5
jne 0x100450c5
mov byte [ebp - 0xd], 1
call fcn.1008e1f3
push eax
lea ecx, [ebp - 0x18]
call fcn.1008df96
cmp byte [ebp - 0xd], 0
mov dword [ebp - 4], 2
jne 0x10045119
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.100426fc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
push dword [eax]
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.1006e7cf
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 8]
call fcn.1006f1e0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
inc edi
lea eax, [ebx + 4]
cmp edi, dword [ebx + 0xc]
jl 0x10044fe5
call fcn.100a4e71
ret 0xc
Function at 0x100507b4
Capabilities:
Enumerate services

Disassembly:
push 0x34
mov eax, 0x100ad5ae
call fcn.100a4ea8
mov dword [ebp - 0x20], edx
mov eax, ecx
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, ebx
mov dword [ebp - 0x14], ebx
mov edi, ebx
mov dword [ebp - 0x1c], ebx
call fcn.1006b679
push 4
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x34], ebx
test ebx, ebx
jne 0x1005080c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov ecx, dword [ebp - 0x20]
push 0x1000ff04
push 5
pop edx
call fcn.10031f7a
jmp 0x1005097d
xor ecx, ecx
lea eax, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ecx
push 1
push 0x30
push ecx
jmp 0x10050866
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xea
jne 0x10050873
xor edi, edi
test esi, esi
je 0x10050843
push esi
call fcn.10090ef6
pop ecx
push dword [ebp - 0x10]
call fcn.10090eed
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push 1
push 0x30
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
je 0x10050826
jmp 0x1005088d
push edi
push ecx
mov ecx, dword [ebp - 0x20]
push 0x1000ff20
push 5
pop edx
call fcn.10031f7a
test edi, edi
jne 0x10050969
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x14], 0
jbe 0x10050969
mov ebx, esi
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.1006b64c
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x100508fc
push dword [ebx]
lea ecx, [ebp - 0x20]
call fcn.1006f372
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
test eax, eax
js 0x10050983
mov edx, dword [ebp - 0x18]
cmp eax, dword [edx + 8]
jge 0x10050983
imul ecx, eax, 0xc
lea eax, [ebp - 0x20]
push eax
add ecx, dword [edx + 4]
call fcn.1006e4ef
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
jmp 0x10050953
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x24]
push dword [ebx]
call fcn.1006f372
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x40]
call fcn.1006e4ef
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1006b6c3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.100793b6
mov eax, dword [ebp - 0x2c]
add ebx, 0x2c
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x14]
jb 0x1005089d
mov ebx, dword [ebp - 0x34]
test esi, esi
je 0x10050974
push esi
call fcn.10090ef6
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
call fcn.100a4e71
ret
call fcn.1008c560
int3
Function at 0x10050a8d
Capabilities:
Enumerate gui resources

Disassembly:
push 0x30
mov eax, 0x100ad64c
call fcn.100a4ea8
mov dword [ebp - 0x10], edx
mov esi, ecx
push 0x1001000c
lea ecx, [ebp - 0x14]
call fcn.1006f372
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0x10010020
push 0x10010068
xor ebx, ebx
lea ecx, [ebp - 0x2c]
push edi
mov dword [ebp - 4], ebx
call fcn.1002e0ce
mov ecx, dword [ebp - 0x10]
call fcn.1006b52e
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
push eax
push 0x10050cd0
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edi
call dword [sym.imp.USER32.dll_EnumWindows]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x3c]
call fcn.10050c6f
push ecx
push dword [ebp - 0x10]
mov edx, esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.10050bb8
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
jne 0x10050b31
push 0x10010078
push 2
call dword [0x100cf608]
mov ecx, edi
call esi
jmp 0x10050b8b
push 0x100100a4
push 2
call dword [0x100cf608]
mov ecx, edi
call esi
call fcn.10050a21
mov ecx, dword [edi]
push dword [eax]
mov esi, dword [ecx + 4]
mov ecx, esi
push 2
call dword [0x100cf608]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], ebx
jle 0x10050b8b
push ebx
mov ecx, eax
call fcn.1006b510
mov ecx, dword [edi]
push dword [eax + 0x10]
mov esi, dword [ecx + 4]
mov ecx, esi
push 2
call dword [0x100cf608]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x10]
inc ebx
cmp ebx, dword [eax + 4]
jl 0x10050b64
lea ecx, [ebp - 0x20]
call fcn.1006b52e
lea ecx, [ebp - 0x3c]
call fcn.1006b52e
lea ecx, [ebp - 0x2c]
call fcn.1002e118
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
xor eax, eax
call fcn.100a4e71
ret 4