joyce8/EMBER2024-capa huggingface dataset:
Function at 0x66a00
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x66a1c
cmp dword [esi + 4], 0
je 0x66a49
test byte [ebx + 0x45], 1
jne 0x66a3b
mov eax, ebx
call fcn.00065938
test eax, eax
jne 0x66a3b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x66b59
mov edx, esi
mov eax, ebx
call fcn.00066678
jmp 0x66b59
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x66b52
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.000689d0
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0006389c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00066a00
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.000689d0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66b59
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x702f8
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.00013d18
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x70347
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.00013f58
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x77e40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x254ff0
cmp dword [edi], 0
jne 0x77ebc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x254fec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x16c4fc
mov ecx, 2
call fcn.0001291c
mov edx, 0x77e18
lea eax, [esi + 5]
call fcn.00077e38
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00077e38
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x77e91
mov dword [0x254fec], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x77fd8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x78028]
test si, 4
je 0x77fec
or bl, 1
test si, 8
je 0x77ff6
or bl, 4
test si, 1
je 0x78000
or bl, 8
test si, 2
je 0x7800a
or bl, 0x10
test si, 0x10
je 0x78014
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x78023
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x7802c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x78064]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x78045
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x78054
or bl, 4
test esi, 0x20000000
je 0x7805f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x7e86c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x7e87e
add esp, 0xfffffff0
call fcn.000132f0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0003c4dc
mov eax, ebx
call fcn.0007ebd0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x353b4]
call fcn.00012fc0
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x353b4]
call fcn.00012fc0
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x353b4]
call fcn.00012fc0
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x353b4]
call fcn.00012fc0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x353b4]
call fcn.00012fc0
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x7ad84
push eax
push 0
push 0
mov eax, dword [0x2517f4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x51920]
call fcn.00052e58
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x51920]
call fcn.00052e58
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x51920]
call fcn.00052e58
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0007efb0
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x7eecc
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x7eecc
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x7eecc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x7e98d
call fcn.00013348
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x7ecb0
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 0x7ee5b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x7ee3c
mov dl, 1
mov eax, dword [0x35908]
call fcn.00012fc0
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00013d18
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x7ee2b
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.0006cf14
test al, al
je 0x7ee1e
lea eax, [ebp - 0xc]
push eax
push case.0x1ffea.3
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, 0x7ee6c
lea eax, [ebp - 0x254]
call fcn.000311fc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x7ee1e
xor eax, eax
push ebp
push 0x7ee17
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 0x7eea4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x7ee00
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00013f58
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x7ee00
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00013f58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7ee1e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x7ed21
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00038fe4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7ee62
lea eax, [ebp - 0x260]
call fcn.00013d18
ret

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

Disassembly:
push ecx
mov eax, dword [0x254fe0]
cmp byte [eax + 0x95], 0
jne 0x7f719
cmp dword [0x254ffc], 0
jne 0x7f6da
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x7f664
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x254ffc], eax
cmp dword [0x254ff8], 0
jne 0x7f6f5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x254ff8], eax
cmp dword [0x255000], 0
jne 0x7f719
push esp
push 0
push 0
push 0x7f608
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x255000], eax
pop edx
ret
Function at 0x7f810
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x7f827
add esp, 0xfffffff0
call fcn.000132f0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0003c4dc
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x353b4]
call fcn.00012fc0
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x353b4]
call fcn.00012fc0
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x522b0]
call fcn.000596cc
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x7f99c
mov eax, dword [0x251650]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00059a9c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x81274
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x251650]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
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.00032ca8
test eax, eax
je 0x7f91a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00030b9c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00032cd0
test eax, eax
je 0x7f92e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00013f58
mov eax, dword [0x251408]
cmp byte [eax], 0
jne 0x7f95f
mov eax, ebx
call fcn.0007fa88
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x7f991
call fcn.00013348
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x7fcf8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x254fe0]
cmp dword [eax + 0x24], 0
je 0x7fd9b
cmp dword [ebx + 0x84], 0
jne 0x7fd95
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x7fc88
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x7fd95
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 0x7fd5e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x7fd95
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.00036e0c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x7fd6d
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x807a8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x807dd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00013e00
jmp 0x807e7
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00013d6c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x815e8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x81620
mov eax, esi
call fcn.00068ccc
test al, al
je 0x81620
mov eax, dword [ebx + 0x74]
call fcn.000689d0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x81620
push 0
mov eax, dword [ebx + 0x74]
call fcn.000689d0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x85910
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x8593e
mov eax, ebx
call fcn.000863b4
cmp dword [ebx + 0x3c], 0
je 0x85937
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x859af
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x859a1
cmp dword [ebx + 8], 0
je 0x85960
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x85972
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x859a1
cmp dword [ebx + 8], 0
je 0x85953
cmp eax, 3
je 0x85985
dec eax
jne 0x85953
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x85953
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x85953
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x859cd
cmp dword [ebx + 0x10], 0xcc
je 0x859cd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.000859d8
pop ebx
ret
Function at 0x996a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x99798
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
call fcn.00026f34
mov eax, dword [ebp - 0x1c]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x9976e
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x997a8
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
jne 0x9976e
cmp dword [ebp - 0xc], 4
jne 0x9976e
mov ax, word [ebp - 0x14]
call fcn.000180e8
and eax, 0xff
mov word [edi], ax
mov eax, dword [ebp - 0x14]
call fcn.000180e4
mov word [esi], ax
xor eax, eax
mov al, byte [ebp - 0x14]
mov edx, dword [ebp - 4]
mov word [edx], ax
cmp dword [ebp - 0x18], 0
je 0x9977d
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9979f
lea eax, [ebp - 0x1c]
call fcn.00013d18
ret

Function at 0x997bc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov word [ebp - 2], cx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x9986e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
call fcn.00026f34
mov eax, dword [ebp - 0x14]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x99858
movzx eax, si
mov dword [ebp - 8], eax
shl dword [ebp - 8], 0x10
movzx eax, di
shl eax, 8
movzx edx, word [ebp - 2]
or eax, edx
or dword [ebp - 8], eax
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x99880
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x99875
lea eax, [ebp - 0x14]
call fcn.00013d18
ret
Function at 0x9a498
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x9a5db
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x9a588
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
neg eax
sbb eax, eax
neg eax
test al, al
je 0x9a534
lea eax, [ebp - 0x28]
push eax
push 0x9a5ec
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 2
mov edx, 0x10
xor ecx, ecx
mov dword [ebp - 8], ecx
test al, al
je 0x9a534
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push edx
lea eax, [ebp - 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
test bl, bl
je 0x9a56a
test esi, 2
je 0x9a556
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x80020004
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0009a414
jmp 0x9a56a
push 0xffffffffffffffff
push 0
push 0x80020004
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0009a414
push 0x80020004
push esi
call sub.user32.dll_ExitWindowsEx
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x9a5b1
cmp dword [ebp - 0xc], 0
je 0x9a5c0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9a5e2
lea eax, [ebp - 0x30]
call fcn.00013d18
ret

Function at 0x9a620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffff4
or ebx, 0xffffffff
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
push 0x9a6ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x9a68d
mov dword [esp + 8], 1
lea eax, [esp + 8]
push eax
push 0
lea eax, [esp + 8]
push eax
push 0
push 0x9a6e0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x9a689
cmp eax, 0xea
je 0x9a689
cmp eax, 8
jne 0x9a68d
mov ebx, dword [esp + 8]
cmp dword [esp + 4], 0
je 0x9a69e
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [esp + 4], eax
mov eax, ebx
add esp, 0xc
pop ebx
ret
Function at 0x9a6fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x9a7ae
push dword fs:[eax]
mov dword fs:[eax], esp
or ebx, 0xffffffff
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
lea eax, [ebp - 0x10]
call fcn.00026f34
mov eax, dword [ebp - 0x10]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x9a784
mov dword [ebp - 4], 1
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x9a7bc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x9a781
cmp eax, 0xea
je 0x9a781
cmp eax, 8
jne 0x9a784
mov ebx, dword [ebp - 4]
cmp dword [ebp - 8], 0
je 0x9a793
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9a7b5
lea eax, [ebp - 0x10]
call fcn.00013d18
ret

Function at 0x9a7d8
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x9a865
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
lea eax, [ebp - 8]
call fcn.00026f34
mov eax, dword [ebp - 8]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x9a83b
push 0x9a874
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x9a84a
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9a86c
lea eax, [ebp - 8]
call fcn.00013d18
ret
Function at 0x9a890
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x9a9f9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
lea eax, [ebp - 0x18]
call fcn.00026f34
mov eax, dword [ebp - 0x18]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x9a9bb
mov dword [ebp - 4], 1
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0x9aa08
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
je 0x9a924
cmp ebx, 0xea
je 0x9a924
cmp ebx, 8
jne 0x9a9bb
cmp dword [ebp - 4], 1
jbe 0x9a9bb
cmp dword [ebp - 4], 0x19000
jae 0x9a9bb
mov edx, dword [ebp - 4]
inc edx
lea eax, [ebp - 0xc]
call fcn.000271f0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x9aa08
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
jne 0x9a9af
lea eax, [ebp - 8]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0x9aa24
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x9a9af
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0x9aa08
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov edx, dword [ebp - 4]
inc edx
lea eax, [ebp - 0xc]
call fcn.00027218
cmp dword [ebp - 0x10], 0
je 0x9a9ca
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0
je 0x9a9de
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9aa00
lea eax, [ebp - 0x18]
call fcn.00013d18
ret