joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445a30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4725e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00465faf
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046b645
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046cb61
test eax, eax
je 0x445b4c
mov ecx, dword [esp + 0x3c]
call fcn.0046b672
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x445b10
push edi
mov ecx, esi
call fcn.00468cd6
mov ecx, esi
call fcn.00445cb0
cmp dword [esp + 0x38], 1
jne 0x445b45
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00468e11
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x448570
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4485a3
push esi
call fcn.0044b660
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44859c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x448629
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x448612
mov eax, dword [esi + 8]
test eax, eax
je 0x4485c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44860e
cmp eax, 2
je 0x448612
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4485ba
cmp eax, 3
je 0x4485ed
cmp eax, 1
jne 0x4485ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4485ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4485ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00448650
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x448638
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00448650
add esp, 4
pop esi
ret

Function at 0x466da5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x466ddd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00464e59
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00464e31
jmp 0x466de9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x468493
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4684d5
call fcn.0046df4c
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4684d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4684cc
xor eax, eax
jmp 0x4684dd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004684e3
pop edi
pop esi
pop ebx
ret 4

Function at 0x46e47c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46e4aa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46e4c8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046e3e2
jmp 0x46e4c8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46e4c8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046e3e2
test edi, edi
mov eax, edi
jne 0x46e4b2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10002200
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xff8]
mov eax, 0x1078
call fcn.1003c230
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0xff4], eax
mov eax, dword [ebp + 0x1004]
push ebx
push esi
mov esi, dword [ebp + 0x1000]
push edi
push esi
mov dword [ebp - 0x78], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push esi
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
push 0x5a
push esi
fstp dword [ebp - 0x70]
call edi
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fstp dword [ebp - 0x6c]
fld dword [ebp - 0x70]
fmul qword [0x10072e40]
fld qword [0x10072e38]
fdiv st(1), st(0)
fxch st(1)
call fcn.1003ca30
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1008]
imul eax, eax, 0xa
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul dword [ebp - 0x6c]
fdivrp st(1)
call fcn.1003ca30
mov dword [ebp - 0x7c], eax
push 1
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.GDI32.dll_DPtoLP]
fild dword [ebp - 0x7c]
fabs
fdiv qword [0x10072e30]
fadd qword [0x10072e28]
call fcn.1003ca30
neg eax
mov dword [ebp - 0x68], eax
mov eax, 0x800
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x1002
push eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
push 5
lea eax, [ebp - 0xc]
push 0x10072dd0
push eax
call fcn.1005e425
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x4c]
jne 0x1000232e
push 0x10072ddc
jmp 0x10002331
push dword [ebp - 0x78]
push 0x20
push eax
call fcn.1005e425
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push dword [ebp - 0x74]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [ebp + 0xff4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c09c
add ebp, 0xff8
leave
ret 0xc
Function at 0x1000a420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x790], eax
push esi
lea eax, [ebp - 0x74]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10073e80
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000a494
push edi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push esi
push str.Allow_Unsigned_Installers
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x74]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x1000a494
xor eax, eax
inc eax
jmp 0x1000a4bf
push str.TOOLKIT_ALLOW_UNSIGNED
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.1003dcfa
add esp, 0xc
test eax, eax
jne 0x1000a4bd
cmp dword [ebp - 0x78], esi
je 0x1000a4bd
push dword [ebp - 0x78]
call fcn.1005e425
pop ecx
jmp 0x1000a48f
xor eax, eax
mov ecx, dword [ebp + 0x790]
xor ecx, ebp
pop esi
call fcn.1003c09c
add ebp, 0x794
leave
ret

Function at 0x1000aaed
Capabilities:
Hash data using fnv

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x811c9dc5
jmp 0x1000ab06
movzx edx, word [ecx]
imul eax, eax, 0x1000193
xor eax, edx
add ecx, 2
cmp ecx, dword [esp + 8]
jne 0x1000aaf8
ret
Function at 0x1000bab6
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x37c4]
mov eax, 0x3844
call fcn.1003c230
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x37c0], eax
push ebx
xor ebx, ebx
cmp dword [0x100973a4], ebx
je 0x1000bca9
push esi
push edi
xor eax, eax
mov esi, 0xffe
push esi
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push ebx
push eax
call fcn.1003c260
xor eax, eax
push esi
mov word [ebp + 0xfc0], ax
lea eax, [ebp + 0xfc2]
push ebx
push eax
call fcn.1003c260
push 0x7ff
lea eax, [ebp + 0x2fc1]
push ebx
push eax
mov byte [ebp + 0x2fc0], bl
call fcn.1003c260
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x24
lea eax, [ebp - 0x78]
push eax
push 0x20019
push ebx
push 0x100739d8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 0x800
call edi
test eax, eax
jne 0x1000bca7
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
push 0x10073a30
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x40]
push eax
push 0x10073a50
push 0x10073aa8
lea eax, [ebp + 0xfc0]
push 0x1000
push eax
call fcn.1000b9fb
add esp, 0x14
cmp dword [ebp - 0x74], ebx
jne 0x1000bc9e
lea eax, [ebp - 0x80]
push eax
push 0x20019
push ebx
lea eax, [ebp + 0xfc0]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x1000bc9e
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x2fc0]
push eax
push ebx
push ebx
push 0x10073ab4
push dword [ebp - 0x80]
mov edi, 0x800
mov dword [ebp - 0x7c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000bc9e
push esi
mov word [ebp + 0x1fc0], ax
lea eax, [ebp + 0x1fc2]
push ebx
push eax
call fcn.1003c260
lea eax, [ebp + 0x2fc0]
push eax
push str._slib_bundles
lea eax, [ebp + 0x1fc0]
push 0x1000
push eax
call fcn.1000b9fb
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x1fc0]
push eax
call fcn.1005e425
add esp, 0x24
test eax, eax
jne 0x1000bc95
push str._requested.list
lea eax, [ebp + 0x1fc0]
push edi
push eax
mov dword [ebp - 0x74], ebx
call fcn.1005e425
push 0x10073b08
lea eax, [ebp + 0x1fc0]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.1005e425
add esp, 0x18
test eax, eax
jne 0x1000bc95
mov ecx, dword [0x100973a4]
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x1000bc6f
push dword [ebp - 0x74]
sub eax, esi
sar eax, 1
push eax
push 2
push ecx
call fcn.1003e7a9
push dword [ebp - 0x74]
call fcn.1003e5de
add esp, 0x14
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp + 0x37c0]
xor ecx, ebp
pop ebx
call fcn.1003c09c
add ebp, 0x37c4
leave
ret
Function at 0x1000e262
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x138
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x70], eax
movzx eax, word [ebp + 0x7c]
push esi
mov esi, dword [0x1009857c]
push 0xf0
push eax
push esi
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], 1
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x1000e3e6
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x1000e3e6
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000e3e6
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x1000e3e4
mov ecx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0xa0], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x1000e359
push 3
lea eax, [ebp - 0x90]
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], eax
call fcn.1005e425
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x9c]
push 0
push 0x143
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x1000e339
and dword [ebp - 0x98], 0
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], eax
je 0x1000e3d1
push dword [ebp - 0x94]
call fcn.1005e425
pop ecx
jmp 0x1000e3d1
mov ecx, 0x1234
cmp cx, ax
jne 0x1000e3d1
or dword [ebp - 0xc0], 0xffffffff
push 3
lea eax, [ebp - 0x90]
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xc4], 1
mov dword [ebp - 0x94], eax
call fcn.1005e425
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0xbc], eax
cmp eax, ecx
je 0x1000e3ab
push eax
call fcn.1005e425
pop ecx
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0x9c]
push 0
push 0x40b
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x1000e3d1
and dword [ebp - 0x98], 0
add esi, dword [ebp - 0xa0]
cmp dword [ebp - 0x98], 0
jne 0x1000e2d0
pop edi
pop ebx
mov ecx, dword [ebp + 0x70]
mov eax, dword [ebp - 0x98]
xor ecx, ebp
pop esi
call fcn.1003c09c
add ebp, 0x74
leave
ret 4
Function at 0x1000f1c2
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1fac]
mov eax, 0x202c
call fcn.1003c230
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x1fa8], eax
push ebx
mov ebx, dword [ebp + 0x1fb4]
push esi
push edi
xor eax, eax
mov esi, 0xffe
push esi
mov word [ebp + 0xfa0], ax
xor edi, edi
lea eax, [ebp + 0xfa2]
push edi
push eax
call fcn.1003c260
xor eax, eax
push esi
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x5e]
push edi
push eax
call fcn.1003c260
add esp, 0x18
lea eax, [ebp + 0xfa0]
push eax
push 0x800
call dword [sym.imp.kernel32.dll_GetTempPathW]
push 3
lea eax, [ebp + 0xfa0]
push eax
lea eax, [ebp + 0x1fa0]
push 4
push eax
call fcn.1005e425
lea eax, [ebp + 0x1fa0]
push eax
call fcn.1005e425
add esp, 0x14
cmp eax, 0x64
jae 0x1000f28f
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x80], vtable.ATL::CSimpleDialog_110__1_.0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x80]
call fcn.1000e968
cmp dword [ebp - 0x6c], edi
je 0x1000f288
push dword [ebp - 0x6c]
call fcn.1005e425
mov eax, 0x80004005
jmp 0x1000f2eb
lea eax, [ebp - 0x60]
push eax
push edi
push 0x10073f80
lea eax, [ebp + 0xfa0]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test eax, eax
je 0x1000f303
lea eax, [ebp - 0x60]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000f2b0
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x68], cx
lea eax, [ebp - 0x60]
push eax
push str._s.exe
push 0x1000
push ebx
call fcn.1000b9fb
push edi
push ebx
call fcn.1005e425
add esp, 0x18
cmp eax, 0xffffffff
jne 0x1000f28f
xor eax, eax
mov ecx, dword [ebp + 0x1fa8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c09c
add ebp, 0x1fac
leave
ret
call fcn.1005e425
jmp 0x1000f288
Function at 0x100100c8
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x42c]
sub esp, 0x4ac
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x428], eax
mov eax, dword [ebp + 0x434]
push ebx
mov ebx, dword [ebp + 0x438]
push esi
push edi
mov dword [ebp + 0x14], eax
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0x18], ax
xor esi, esi
lea eax, [ebp + 0x1a]
push esi
push eax
call fcn.1003c260
xor eax, eax
push edi
mov word [ebp + 0x220], ax
lea eax, [ebp + 0x222]
push esi
push eax
call fcn.1003c260
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.1003c260
push dword [ebp + 0x14]
mov dword [ebp - 0x80], edi
mov edi, 0x208
lea eax, [ebp + 0x18]
push edi
push eax
call fcn.1000b9fb
push ebx
push dword [ebp + 0x14]
lea eax, [ebp + 0x220]
push str._s__s
push edi
push eax
call fcn.1000b9fb
add esp, 0x44
lea eax, [ebp]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp + 0x220]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.1005e425
add esp, 0x28
cmp eax, esi
jne 0x100101f0
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
mov ebx, 0x2e4
cmp edi, ebx
jne 0x10010246
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.1003c260
lea eax, [ebp + 0x220]
mov dword [ebp - 0x2c], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], 0x10073f7c
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, esi
je 0x1001020e
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x1001020e
mov dword [ebp], eax
push dword [ebp]
call fcn.10001994
lea eax, [ebp + 0x10]
push eax
push dword [ebp]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
test eax, eax
je 0x10010233
mov edi, dword [ebp + 0x10]
jmp 0x1001023b
mov edi, ebx
push dword [ebp + 0x14]
call fcn.1005e425
pop ecx
mov ecx, dword [ebp + 0x428]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c09c
add ebp, 0x42c
leave
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
push dword [ebp]
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x10010210
call fcn.1005e425
jmp 0x10010210
Function at 0x10015ab8
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x10016196
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.1005e425
mov ebx, eax
cmp ebx, esi
je 0x10016209
lea ecx, [ebp - 0x74]
call fcn.100159e6
mov eax, ebx
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c09c
add ebp, 0x1a0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10016221
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.10016196
cmp eax, esi
jne 0x10016253
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], pe_nt_image_headers32
call ebx
test eax, eax
je 0x10016211
lea ecx, [ebp - 0x74]
call fcn.100159e6
push dword [ebp - 0x78]
mov ecx, edi
call fcn.10015968
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.100159e6
mov eax, esi
jmp 0x100161ef
Function at 0x1001b3e3
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xa8
push ebx
or eax, 0xffffffff
xor ebx, ebx
mov dword [ebp + 0x6c], eax
cmp dword [ebp + 0x78], ebx
je 0x1001b53b
call fcn.100329aa
push 0x10
mov dword [ebp + 0x68], eax
pop ecx
lea eax, [ebp + 0x54]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1001b40e
push edi
mov dword [ebp + 0x64], ebx
call fcn.10030b79
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
je 0x1001b4b1
push 0x100773b0
call fcn.1005e425
mov dword [esp], str.AdvAPI32.dll
call fcn.1005e425
pop ecx
mov dword [ebp + 0x64], eax
cmp eax, ebx
jne 0x1001b453
push str.RunAsDesktopUser___CreateProcessWithTokenW_could_not_load_advapi32.dll
jmp 0x1001b4ff
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp + 0x50], eax
cmp eax, ebx
jne 0x1001b470
push str.RunAsDesktopUser___CreateProcessWithTokenW_could_not_GetProcAddress
jmp 0x1001b4ff
push str.RunAsDesktopUser___calling__CreateProcessWithTokenW
call fcn.1005e425
pop ecx
push 0x44
pop ecx
lea eax, [ebp - 0x38]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1001b481
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x7c]
mov dword [ebp - 0x38], 0x44
push dword [ebp + 0x78]
push ebx
push dword [ebp + 0x68]
call dword [ebp + 0x50]
test eax, eax
jne 0x1001b507
push str.RunAsDesktopUser:_CreateProcessWithTokenW_failed.
jmp 0x1001b4ff
push 0x10077618
call fcn.1005e425
push 0x44
lea eax, [ebp + 0xc]
push ebx
push eax
call fcn.1003c260
add esp, 0x10
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x30
push ebx
push ebx
push ebx
push dword [ebp + 0x7c]
mov dword [ebp + 0xc], 0x44
push dword [ebp + 0x78]
mov dword [ebp + 0x14], str.winsta0default
push dword [ebp + 0x68]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x1001b507
push str.RunAsDesktopUser:_CreateProcessAsUser_failed.
call fcn.1005e425
pop ecx
jmp 0x1001b529
cmp dword [ebp + 0x54], ebx
je 0x1001b529
push 0xffffffffffffffff
push dword [ebp + 0x54]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp + 0x6c]
push eax
push dword [ebp + 0x54]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push dword [ebp + 0x54]
call edi
push dword [ebp + 0x64]
call dword [sym.imp.kernel32.dll_FreeLibrary]
push dword [ebp + 0x68]
call edi
mov eax, dword [ebp + 0x6c]
pop edi
pop ebx
add ebp, 0x70
leave
ret
Function at 0x1001b64e
Capabilities:
Enumerate process modules
Get process image filename
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x108c]
mov eax, 0x110c
call fcn.1003c230
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x1088], eax
lea eax, [ebp - 0x80]
push eax
push 0x1000
lea eax, [ebp - 0x7c]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x1001b6e4
shr dword [ebp - 0x80], 2
push esi
xor esi, esi
cmp dword [ebp - 0x80], esi
jbe 0x1001b6e3
push edi
push dword [ebp + esi*4 - 0x7c]
push 0
push 0x1f0fff
call dword [sym.imp.kernel32.dll_OpenProcess]
mov edi, eax
push 0x104
lea eax, [ebp + 0xf84]
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameA
lea eax, [ebp + 0xf84]
push 0x1007a7fc
push eax
call fcn.10040ab0
pop ecx
pop ecx
test eax, eax
je 0x1001b6d5
push 0
push edi
call dword [sym.imp.kernel32.dll_TerminateProcess]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 0x80]
jb 0x1001b690
pop edi
pop esi
mov ecx, dword [ebp + 0x1088]
xor ecx, ebp
call fcn.1003c09c
add ebp, 0x108c
leave
ret

Function at 0x1001b9f7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x790], eax
push ebx
push esi
mov esi, dword [ebp + 0x79c]
push edi
mov edi, dword [ebp + 0x7a0]
xor ebx, ebx
xor eax, eax
push 0x7fe
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push ebx
push eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call fcn.1003c260
mov eax, dword [esi]
add esp, 0xc
push 0x2001f
push edi
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x74], ebx
call fcn.1005e425
cmp eax, ebx
jne 0x1001ba87
push 0x400
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1001ba93
lea ecx, [ebp - 0x80]
call fcn.100159e6
push edi
mov ecx, esi
call fcn.10015968
test eax, eax
jmp 0x1001ba8a
cmp eax, 2
jne 0x1001ba93
mov dword [ebp - 0x74], 1
lea ecx, [ebp - 0x80]
call fcn.100159e6
mov ecx, dword [ebp + 0x790]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c09c
add ebp, 0x794
leave
ret