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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45f22c]
cmp byte [eax + 0xc], 0
je 0x43dbf1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43dbea
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x460b94], 0
jne 0x43dad8
push 0x43dbf8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43dc00
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460b94], eax
cmp dword [0x45eb78], 0
jne 0x43dbd3
push 0x43dc10
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45eb78], eax
cmp dword [0x45eb78], 0
je 0x43dbd3
push 0x43dc1c
mov eax, dword [0x45eb78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460b98], eax
push 0x43dc2c
mov eax, dword [0x45eb78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460b9c], eax
push 0x43dc40
mov eax, dword [0x45eb78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460ba0], eax
push 0x43dc58
mov eax, dword [0x45eb78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460ba4], eax
push 0x43dc70
mov eax, dword [0x45eb78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460ba8], eax
push 0x43dc84
mov eax, dword [0x45eb78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460bac], eax
push 0x43dc9c
mov eax, dword [0x45eb78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460bb0], eax
push 0x43dcb4
mov eax, dword [0x45eb78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460bb4], eax
push 0x43dcd0
mov eax, dword [0x45eb78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460bb8], eax
push 0x43dcdc
mov eax, dword [0x45eb78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460bbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43dbf1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x441a7c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004040c0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x441acb
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404330
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4491fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44924c]
test si, 4
je 0x449210
or bl, 1
test si, 8
je 0x44921a
or bl, 4
test si, 1
je 0x449224
or bl, 8
test si, 2
je 0x44922e
or bl, 0x10
test si, 0x10
je 0x449238
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449247
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x449250
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449288]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449269
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449278
or bl, 4
test esi, 0x20000000
je 0x449283
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44f930
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44f942
add esp, 0xfffffff0
call fcn.00403610
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419f68
mov eax, dword [0x45eee0]
mov dword [eax + 4], ebx
mov dword [eax], 0x44fcd4
mov eax, dword [0x45eeec]
mov dword [eax + 4], ebx
mov dword [eax], 0x44fce0
mov eax, ebx
call fcn.0044fcec
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411bc0]
call fcn.004032bc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411bc0]
call fcn.004032bc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411bc0]
call fcn.004032bc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411bc0]
call fcn.004032bc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411bc0]
call fcn.004032bc
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44c108
push eax
push 0
push 0
mov eax, dword [0x45f044]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b9bc]
call fcn.0041d130
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b9bc]
call fcn.0041d130
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b9bc]
call fcn.0041d130
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045019c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450030
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450030
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450030
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44fa7f
call fcn.00403668
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44fe14
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44ffbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44ffa0
mov dl, 1
mov eax, dword [0x411fdc]
call fcn.004032bc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004040c0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44ff8f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043dde4
test al, al
je 0x44ff82
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44ffd0
lea eax, [ebp - 0x254]
call fcn.00408e54
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44ff82
xor eax, eax
push ebp
push 0x44ff7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x450008
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44ff64
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404330
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44ff64
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404330
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ff82
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44fe85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415bb8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ffc6
lea eax, [ebp - 0x260]
call fcn.004040c0
ret

Function at 0x45093c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x460be0]
cmp byte [eax + 0xa5], 0
jne 0x4509ad
cmp dword [0x460bf8], 0
jne 0x45096e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4508f8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x460bf8], eax
cmp dword [0x460bf4], 0
jne 0x450989
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x460bf4], eax
cmp dword [0x460bfc], 0
jne 0x4509ad
push esp
push 0
push 0
push 0x45089c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x460bfc], eax
pop edx
ret
Function at 0x450aec
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x450b03
add esp, 0xfffffff0
call fcn.00403610
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419f68
mov eax, dword [0x45f030]
cmp word [eax + 2], 0
jne 0x450b2b
mov eax, dword [0x45f030]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004521c4
mov eax, dword [0x45f0e0]
cmp word [eax + 2], 0
jne 0x450b45
mov eax, dword [0x45f0e0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004523bc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411bc0]
call fcn.004032bc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411bc0]
call fcn.004032bc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41c49c]
call fcn.004239e8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x450ccc
mov eax, dword [0x45ef40]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423db8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45295c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45ef40]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c608
test eax, eax
je 0x450c3a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408834
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c630
test eax, eax
je 0x450c4e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404330
mov eax, dword [0x45ee34]
cmp byte [eax], 0
jne 0x450c82
mov eax, ebx
call fcn.00450df4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00452b38
mov eax, ebx
call fcn.004534fc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450cc2
call fcn.00403668
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451074
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x460be0]
cmp dword [eax + 0x30], 0
je 0x45111e
cmp dword [ebx + 0x94], 0
jne 0x451118
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451004
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451118
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4510de
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451118
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414028
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4510ed
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451c80
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x451cb5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004041b0
jmp 0x451cc2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404114
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452d14
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452d55
mov eax, esi
call fcn.004394a4
test al, al
je 0x452d55
mov eax, dword [ebx + 0x84]
call fcn.004391cc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452d55
push 0
mov eax, dword [ebx + 0x84]
call fcn.004391cc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4547b4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, ecx
mov dword [ebp - 8], eax
dec edx
mov eax, edx
shl eax, 2
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x454821
xor eax, eax
push ebp
push 0x45481a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454821
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_VirtualProtect
ret
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d494
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x45d619
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi + 0x310]
cmp byte [eax + 0x38], 0
je 0x45d4ba
xor ebx, ebx
mov eax, dword [edi + 0x314]
cmp byte [eax + 0x38], 0
je 0x45d4c8
mov bl, 1
mov eax, dword [edi + 0x318]
cmp byte [eax + 0x38], 0
je 0x45d4d6
mov bl, 2
mov eax, dword [edi + 0x31c]
cmp byte [eax + 0x38], 0
je 0x45d4e4
mov bl, 3
mov eax, dword [edi + 0x320]
cmp byte [eax + 0x38], 0
je 0x45d4f2
mov bl, 4
mov eax, dword [edi + 0x324]
cmp byte [eax + 0x38], 0
je 0x45d500
mov bl, 5
mov eax, dword [edi + 0x328]
cmp byte [eax + 0x38], 0
je 0x45d50e
mov bl, 6
mov eax, dword [edi + 0x32c]
cmp byte [eax + 0x38], 0
je 0x45d51c
mov bl, 7
mov eax, dword [edi + 0x330]
cmp byte [eax + 0x38], 0
je 0x45d52a
mov bl, 8
mov eax, dword [edi + 0x334]
cmp byte [eax + 0x38], 0
je 0x45d538
mov bl, 9
mov dl, 1
mov eax, dword [0x429884]
call fcn.00429984
mov esi, eax
mov edx, 0x80000001
mov eax, esi
call fcn.00429a24
mov cl, 1
mov edx, 0x45d630
mov eax, esi
call fcn.00429a88
mov eax, dword [edi + 0x304]
mov cl, byte [eax + 0x38]
mov edx, 0x45d654
mov eax, esi
call fcn.00429e44
xor ecx, ecx
mov cl, bl
mov edx, 0x45d664
mov eax, esi
call fcn.00429e00
mov eax, dword [0x461044]
mov ecx, dword [eax + 0x44]
mov edx, 0x45d674
mov eax, esi
call fcn.00429e00
mov eax, dword [0x461044]
mov ecx, dword [eax + 0x40]
mov edx, 0x45d680
mov eax, esi
call fcn.00429e00
mov eax, esi
call fcn.004299f4
mov cl, 1
mov edx, 0x45d690
mov eax, esi
call fcn.00429a88
mov eax, dword [edi + 0x33c]
cmp byte [eax + 0x38], 0
je 0x45d5e9
lea edx, [ebp - 4]
xor eax, eax
call fcn.00402a04
mov ecx, dword [ebp - 4]
mov edx, 0x45d6c8
mov eax, esi
call fcn.00429dd4
jmp 0x45d5f5
mov edx, 0x45d6c8
mov eax, esi
call fcn.00429d64
mov eax, esi
call fcn.004299f4
mov eax, esi
call fcn.004032ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d620
lea eax, [ebp - 4]
call fcn.004040c0
ret
Function at 0x10023c9
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push 8
mov dword [ebp - 4], ebx
pop ecx
lea eax, [ebp - 0xc]
mov byte [eax], bl
inc eax
dec ecx
jne 0x10023dd
push 0x10
pop ecx
lea eax, [ebp - 0x1c]
mov byte [eax], bl
inc eax
dec ecx
jne 0x10023e9
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100240f
call fcn.010097db
xor eax, eax
jmp 0x1002476
lea eax, [ebp - 0xc]
push eax
push 0x1001364
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1002433
call fcn.010097db
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100240b
mov eax, dword [ebp - 0xc]
push esi
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push ebx
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 4]
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x100246a
call fcn.010097db
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100571e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
je 0x100575d
mov ebx, dword [ebp + 0x10]
cmp ebx, esi
je 0x100575d
cmp dword [ebx], esi
jne 0x100575d
mov eax, 0x8000
push eax
mov dword [ebp + 0x10], eax
call fcn.01009c0b
mov dword [ebx], eax
cmp eax, esi
jne 0x1005766
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.010097db
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
lea ecx, [ebp + 0x10]
push ecx
push eax
push esi
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call esi
mov edi, 0xea
jmp 0x10057b1
add dword [ebp + 0x10], 0x2000
push ebx
call fcn.01009fa7
push dword [ebp + 0x10]
and dword [ebx], 0
call fcn.01009c0b
mov dword [ebx], eax
test eax, eax
je 0x100574d
lea ecx, [ebp + 0x10]
push ecx
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
cmp eax, edi
je 0x1005782
xor esi, esi
xor edi, edi
inc esi
cmp eax, edi
je 0x10057dd
cmp dword [ebx], edi
je 0x10057cd
push ebx
call fcn.01009fa7
mov dword [ebx], edi
push dword [ebp - 4]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.010097db
mov eax, esi
jmp 0x100575f

Function at 0x1005db6
Capabilities:
Enumerate services

Disassembly:
push 0x1c
mov eax, 0x1010341
call fcn.010087c2
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], esi
mov dword [ebx + 0x94], esi
mov dword [ebx + 0x98], esi
xor eax, eax
cmp dword [ebx + 0x40], esi
jne 0x1005de8
inc eax
jmp 0x1005e0e
cmp dword [ebx + 0xc4], esi
jne 0x1005df3
mov eax, dword [ebx + 0x78]
mov dword [ebp - 4], esi
push 5
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0x1005e14
call fcn.010097db
xor eax, eax
call fcn.0100883b
ret
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov edi, 0x1000
mov dword [ebp - 0x28], edi
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 2
ja 0x1005e9e
add edi, dword [ebp - 0x24]
mov dword [ebp - 0x28], edi
push edi
call fcn.01009c0b
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x1005e4b
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1005e07
mov dword [ebp - 0x20], esi
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebx + 0x94]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp - 0x14]
push 1
push 0x30
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
cmp eax, 1
je 0x1005e9e
lea eax, [ebp - 0x14]
push eax
call fcn.01009fa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x1005e22
call fcn.010097db
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1005e0c
or dword [ebp - 4], 0xffffffff
cmp dword [ebx + 0x94], esi
jne 0x1005eb5
lea eax, [ebp - 0x14]
push eax
call fcn.01009fa7
jmp 0x1005ebe
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x98], eax
xor eax, eax
jmp 0x1005de5
Function at 0x1006216
Capabilities:
Enumerate gui resources

Disassembly:
push 0x20
mov eax, 0x1010391
call fcn.010087c2
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
jne 0x1006246
push 0x800300fd
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.010097db
xor eax, eax
call fcn.0100883b
ret
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1006256
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 8], ebx
push dword [esi + 0x5c]
lea ecx, [ebp - 0x1c]
call fcn.01004748
mov edi, eax
mov byte [ebp - 4], 1
push 0x100173c
lea ecx, [ebp - 0x18]
call fcn.01004748
mov byte [ebp - 4], 2
cmp dword [edi], ebx
je 0x1006282
mov edi, dword [edi]
mov ecx, dword [edi]
jmp 0x1006284
xor ecx, ecx
cmp dword [eax], ebx
je 0x1006291
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x1006294
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + 4]
mov edx, dword [eax]
lea edi, [esi + 8]
push edi
push ebx
push 0x30
push ecx
push dword [ebp - 0x14]
push eax
call dword [edx + 0x50]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x10062be
call fcn.010047c0
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x10062d0
call fcn.010047c0
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x14], ebx
jge 0x10062e2
push dword [ebp - 0x14]
call fcn.01006f72
jmp 0x100623e
push dword [esi + 0xc]
push dword [edi]
call fcn.0100688a
cmp eax, ebx
jge 0x10062f3
push eax
jmp 0x10062d8
push dword [esi + 0x54]
call fcn.0100b7d3
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0xc4]
xor edi, edi
inc edi
cmp eax, edi
jne 0x1006364
cmp dword [esi + 0x48], edi
jne 0x1006364
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
push 0x1006150
call dword [sym.imp.USER32.dll_EnumWindowStationsW]
cmp dword [ebp - 0x2c], ebx
je 0x1006340
push dword [ebp - 0x2c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [ebp - 0x2c], ebx
cmp dword [ebp - 0x28], ebx
je 0x1006352
push dword [ebp - 0x28]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [ebp - 0x28], ebx
mov ecx, esi
call fcn.01005fe3
or dword [ebp - 4], 0xffffffff
mov eax, edi
jmp 0x1006240
cmp eax, ebx
jne 0x1006352
cmp dword [esi + 0x48], edi
jne 0x1006352
push ebx
push edi
push 0xd2
call fcn.0100b775
push eax
push edi
push dword [esi + 0x50]
call fcn.0100c813
cmp eax, 0xffffffff
je 0x1006396
mov dword [esi + 0x38], edi
push eax
push dword [esi + 0x50]
call fcn.0100bf29
jmp 0x100636d
push ebx
push edi
push 0xca
call fcn.0100b775
push eax
push edi
push dword [esi + 0x50]
call fcn.0100c813
cmp eax, 0xffffffff
je 0x1006352
mov dword [esi + 0x38], edi
push eax
push dword [esi + 0x50]
call fcn.0100bf29
jmp 0x1006396