joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c3cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x14002c434
call fcn.14002972c
mov r8d, 0xf0
mov rdx, rsi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14002c434
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14002c456
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, r14
call fcn.140024800
mov esi, eax
test rdi, rdi
je 0x14002c454
test rbx, rbx
je 0x14002c454
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14002da50
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.140038b80
mov rdi, rax
test rax, rax
je 0x14002dacc
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x14002dac7
cmp dword [rbx], 0x40
jb 0x14002dac7
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14002dac7
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x14002dad0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400311d0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x70
mov edi, r9d
mov rsi, r8
mov r14, rdx
mov r15d, ecx
and qword [rax - 0x10], 0
and qword [rax - 0x18], 0
xor ebx, ebx
mov eax, dword [0x1400ef170]
test eax, eax
je 0x140031222
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400ef170]
test eax, eax
jne 0x14003122b
call fcn.14002494c
test eax, eax
je 0x140031247
lea rdx, [rsp + 0x60]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x140031252
xor eax, eax
jmp 0x140031300
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8, rsi
mov rdx, r14
mov ecx, r15d
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rsi, rax
mov qword [rsp + 0x68], rax
xor ebx, ebx
test rax, rax
sete bl
test ebx, ebx
je 0x1400312e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1400312e4
xor edi, edi
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1400312fd
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
Function at 0x14003131c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov r14, rcx
and dword [rax - 0x18], 0
and qword [rax + 0x20], 0
xor ebx, ebx
mov eax, dword [0x1400ef170]
test eax, eax
je 0x140031366
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400ef170]
test eax, eax
jne 0x14003136f
call fcn.14002494c
test eax, eax
je 0x14003138b
lea rdx, [rsp + 0x58]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x140031393
xor eax, eax
jmp 0x1400313da
mov r8, rdi
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.USER32.dll_GetClassInfoExW]
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test eax, eax
sete bl
test ebx, ebx
je 0x1400313bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400313bf
xor esi, esi
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1400313d8
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x1400313f0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1400f2568]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1400ef170]
test eax, eax
je 0x14003143b
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400ef170]
test eax, eax
jne 0x140031444
call fcn.14002494c
test eax, eax
je 0x140031460
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140031468
xor eax, eax
jmp 0x1400314c5
test rbx, rbx
jne 0x140031488
lea rcx, [0x1400a6978]
call fcn.140031120
mov rbx, rax
test rax, rax
je 0x140031493
mov qword [0x1400f2568], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1400314a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400314aa
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1400314c3
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1400315a0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rdi, rcx
xor r14d, r14d
mov word [rax - 0x18], r14w
mov qword [rax + 0x10], r14
mov ebx, r14d
mov eax, dword [0x1400ef170]
test eax, eax
je 0x1400315e8
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400ef170]
test eax, eax
jne 0x1400315f1
call fcn.14002494c
test eax, eax
je 0x14003160d
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x140031617
movzx eax, r14w
jmp 0x14003165f
mov rcx, rdi
call qword [sym.imp.USER32.dll_RegisterClassW]
movzx ebx, ax
mov word [rsp + 0x20], ax
mov edi, r14d
test bx, bx
sete dil
test edi, edi
je 0x140031640
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140031643
mov esi, r14d
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x14003165c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, bx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140031ce0
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 0xc8], 0
jne 0x140031d1e
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140031dd6
call fcn.140028030
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140031d3d
mov ecx, 0x80004005
call fcn.140002f40
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rdi + 0xc8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rdi, 0xffffffffffffffff
mov r9, rdi
mov r8, qword [rsp + 0x40]
mov rcx, rbx
call fcn.140059940
test eax, eax
je 0x140031da5
cmp eax, 0xc
je 0x140031d9f
cmp eax, 0x16
je 0x140031d99
cmp eax, 0x22
je 0x140031d99
cmp eax, 0x50
je 0x140031da5
call fcn.140028110
int3
call fcn.140028110
int3
call fcn.140028134
int3
test rbx, rbx
je 0x140031db5
mov rcx, rbx
call fcn.140055618
mov rbx, rax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x140031dd4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140033f60
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x140033fda
xor r8d, r8d
call fcn.140034224
mov rsi, rax
test rax, rax
jne 0x140033f96
mov eax, edi
jmp 0x140033ff0
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x140033f92
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140034f88
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140034feb
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140034fff
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140034fff
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x140035004
cmp dword [rcx + 8], 0
je 0x140034fff
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140035004
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140035ce8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov r14, r9
mov rsi, r8
mov rbp, rdx
mov r12, rcx
test r8, r8
je 0x140035d5a
call fcn.14002972c
mov r8d, 0xf0
mov rdx, rsi
mov r15, qword [rax + 0x18]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140035d5a
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140035da3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov esi, 1
test rdi, rdi
je 0x140035d88
mov r10, qword [r12]
mov r9, r14
mov r8, rdi
mov rdx, rbp
mov rcx, r12
call qword [r10 + 0x40]
mov esi, eax
test rbx, rbx
je 0x140035d88
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rcx, qword [rbp + 0xc0]
test rcx, rcx
je 0x140035da1
mov r8, qword [rcx]
mov rdx, r14
call qword [r8 + 0x140]
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140038388
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
and dword [rax - 0x18], 0
and qword [rax + 0x18], 0
xor ebx, ebx
mov eax, dword [0x1400ef170]
test eax, eax
je 0x1400383ca
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400ef170]
test eax, eax
jne 0x1400383d3
call fcn.14002494c
test eax, eax
je 0x1400383ef
lea rdx, [rsp + 0x50]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x1400383f7
xor eax, eax
jmp 0x14003843b
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test eax, eax
sete bl
test ebx, ebx
je 0x14003841e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140038420
xor esi, esi
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140038439
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14003eeb0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rdx]
mov rbx, rdx
cmp dword [rcx - 0x10], 0
je 0x14003eee2
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003eee2
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.140050218
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14003eef4
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14003ef1a
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140034f88
jmp 0x14003ef81
cmp byte [0x1400f2d38], 0
jne 0x14003ef5e
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003ef4e
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400f2d30], rax
jmp 0x14003ef55
mov rax, qword [0x1400f2d30]
mov byte [0x1400f2d38], 1
jmp 0x14003ef65
mov rax, qword [0x1400f2d30]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14003ef7b
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x14003ef81
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140042ae4
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movzx r14d, r8w
mov r15, rdx
mov r12, rcx
or r13d, 0xffffffff
movzx edi, r13w
mov word [rax - 0x38], r13w
mov rbx, qword [0x1400f2d40]
and qword [rax + 0x20], 0
xor esi, esi
mov eax, dword [0x1400ef170]
test eax, eax
je 0x140042b42
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400ef170]
test eax, eax
jne 0x140042b4b
call fcn.14002494c
test eax, eax
je 0x140042b67
lea rdx, [rsp + 0x78]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140042b71
movzx eax, r13w
jmp 0x140042bda
test rbx, rbx
jne 0x140042b91
lea rcx, str.GetFileTitleW
call fcn.14002796c
mov rbx, rax
test rax, rax
je 0x140042ba5
mov qword [0x1400f2d40], rax
movzx r8d, r14w
mov rdx, r15
mov rcx, r12
call rbx
movzx edi, ax
mov word [rsp + 0x20], ax
xor ebx, ebx
cmp di, r13w
sete bl
test ebx, ebx
je 0x140042bbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140042bbe
xor esi, esi
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140042bd7
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, di
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14008bc50
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2a8
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1400eab80]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rdx, [0x1400b94a4]
lea rcx, [rsp + 0x20]
call fcn.140015540
nop
mov rcx, qword [rsp + 0x2b8]
call fcn.140015990
movzx eax, al
test eax, eax
jne 0x14008bccf
mov rax, qword [rsp + 0x2b8]
mov r8, qword [rax]
lea rdx, [0x1400c1900]
lea rcx, [rsp + 0x20]
call fcn.140004f00
lea rdx, [0x1400c1910]
lea rcx, [rsp + 0x20]
call fcn.140003790
lea rcx, [rsp + 0x20]
call fcn.140003850
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14008bd03
lea rcx, [rsp + 0x20]
call fcn.140003680
jmp 0x14008bd92
mov rcx, qword [rsp + 0x2b8]
call fcn.140015990
movzx eax, al
test eax, eax
jne 0x14008bd44
mov rax, qword [rsp + 0x2b8]
mov r8, qword [rax]
lea rdx, [0x1400c1908]
lea rcx, [rsp + 0x20]
call fcn.140004f00
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140003790
jmp 0x14008bd53
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.1400155a0
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x2b0]
call fcn.14008e600
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008bd03
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rsp + 0x20]
call fcn.140003680
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140054f80
add rsp, 0x2a8
ret
Function at 0x14008c9a0
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.14008ca40
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14008c9c4
mov eax, dword [rsp + 0x20]
jmp 0x14008c9e1
mov edx, 0x80010000
mov ecx, 6
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x14008c9df
mov eax, 0x74
jmp 0x14008c9e1
xor eax, eax
add rsp, 0x38
ret

Function at 0x14008c9f0
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.14008ca40
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14008ca14
mov eax, dword [rsp + 0x20]
jmp 0x14008ca31
mov edx, 0x80010000
mov ecx, 5
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x14008ca2f
mov eax, 0x73
jmp 0x14008ca31
xor eax, eax
add rsp, 0x38
ret
Function at 0x140094aa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [rsp + 0x30], 0
lea rax, str.CSynapticsReflashApp::LoadResourceCfg
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 8
lea r9, [0x1400c96c8]
mov r8d, 0x4f9
mov edx, dword [0x1400ec2f8]
lea rcx, [rsp + 0x80]
call fcn.14008f230
nop
mov rax, qword [rsp + 0xb8]
movzx eax, word [rax]
mov r8d, 0xa
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140094b48
mov qword [rsp + 0x78], 0
lea rcx, [rsp + 0x80]
call fcn.14008f210
mov rax, qword [rsp + 0x78]
jmp 0x140094c2b
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140094bab
lea rax, str.Load_cfg_resource_fail_n
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x1400c9688]
mov edx, 0x506
mov ecx, dword [0x1400ec2f8]
call fcn.14008e0f0
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x80]
call fcn.14008f210
mov rax, qword [rsp + 0x58]
jmp 0x140094c2b
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jle 0x140094c10
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xb0]
call fcn.1400960e0
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x338], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x80]
call fcn.14008f210
mov rax, qword [rsp + 0x60]
jmp 0x140094c2b
mov qword [rsp + 0x68], 0
lea rcx, [rsp + 0x80]
call fcn.14008f210
mov rax, qword [rsp + 0x68]
add rsp, 0xa8
ret
Function at 0x140096f30
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2d0
mov rax, qword [0x1400eab80]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov r8d, 0x104
lea rdx, [rsp + 0xb0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400970ab
mov dword [rsp + 0x40], 0x70
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 0x6c
rep stosb byte [rdi], al
lea rax, str.runas
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x2e8]
call fcn.1400087d0
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x70], 1
mov dword [rsp + 0x44], 0x40
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
lea rax, str.ShellExecuteEx:_ls_n
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, [0x1400c9158]
mov edx, 0x116
mov ecx, dword [0x1400ec2f8]
call fcn.14008e0f0
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x14009705d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0x4c7
jne 0x14009702a
jmp 0x14009705b
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
lea rax, str.ShellExecuteEx_error:_d_n
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, [0x1400c91c8]
mov edx, 0x120
mov ecx, dword [0x1400ec2f8]
call fcn.14008e0f0
jmp 0x1400970ab
cmp qword [rsp + 0xa8], 0
je 0x1400970a7
xor ecx, ecx
call fcn.140097420
test eax, eax
je 0x1400970a7
mov dword [rsp + 0x30], 0
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x30]
jmp 0x1400970b0
xor eax, eax
jmp 0x1400970b0
mov eax, 0x72
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140054f80
add rsp, 0x2d0
pop rdi
ret
Function at 0x1400972e0
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x98
mov rax, qword [0x1400eab80]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov byte [rsp + 0x74], 0
mov byte [rsp + 0x75], 0
mov byte [rsp + 0x76], 0
mov byte [rsp + 0x77], 0
mov byte [rsp + 0x78], 0
mov byte [rsp + 0x79], 5
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x74]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140097395
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
jmp 0x1400973b5
lea r8, [rsp + 0x64]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1400973b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
cmp qword [rsp + 0x68], 0
je 0x1400973d1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rsp + 0x68], 0
cmp dword [rsp + 0x60], 0
je 0x1400973f1
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x70], eax
lea rdx, [0x1400e6b70]
lea rcx, [rsp + 0x70]
call fcn.14005a1e0
mov eax, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140054f80
add rsp, 0x98
ret