joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002cc04
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x1060
call fcn.180043900
sub rsp, rax
mov rax, qword [0x1800d4ad8]
xor rax, rsp
mov qword [rsp + 0x1050], rax
xor ebx, ebx
mov rbp, r9
mov rsi, r8
mov r14, rdx
mov rdi, rcx
test rdx, rdx
je 0x18002cc3f
mov byte [rdx], bl
test rsi, rsi
je 0x18002cc47
mov byte [r8], bl
test rbp, rbp
je 0x18002cc5a
xor edx, edx
mov rcx, rbp
lea r8d, [rdx + 0x14]
call fcn.180046390
and qword [rsp + 0x30], rbx
xor r9d, r9d
and dword [rsp + 0x28], ebx
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call fcn.180025f58
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18002cc95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18002cd6d
and qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18002ccc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18002cd64
cmp dword [rsp + 0x40], 0x40
jb 0x18002cd64
mov r8d, 2
lea rdx, [0x1800af2d0]
lea rcx, [rsp + 0x50]
call fcn.180046770
test eax, eax
jne 0x18002cd64
lea r8d, [rax + 4]
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x44]
call fcn.180045f30
mov edx, dword [rsp + 0x44]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x18002cd24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x18002cd64
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002ccb7
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov r9, rsi
mov qword [rsp + 0x20], rbp
mov r8, r14
call fcn.18002cb10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.180043830
add rsp, 0x1060
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x18002cf4c
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r8
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18002cf93
mov rcx, qword [rsp + 0x58]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebx, eax
test eax, eax
jne 0x18002cf86
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x18002cf9c
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r8
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18002cfe3
mov rcx, qword [rsp + 0x58]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test eax, eax
jne 0x18002cfd6
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x18002cfec
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov ebx, r9d
lea rax, [rsp + 0x48]
mov rdi, r8
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ecx, ecx
test eax, eax
jne 0x18002d05e
mov eax, dword [rsp + 0x80]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rcx
mov r8, rdi
mov qword [rsp + 0x30], rcx
mov edx, ebx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x40], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x18002d06c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov ebx, r9d
lea rax, [rsp + 0x48]
mov rdi, r8
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
test eax, eax
jne 0x18002d0de
mov eax, dword [rsp + 0x80]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rcx
mov r8, rdi
mov qword [rsp + 0x30], rcx
mov edx, ebx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x40], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x18002d274
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov ebx, r9d
lea rax, [rsp + 0x30]
mov rdi, r8
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18002d2c5
mov r9d, dword [rsp + 0x70]
mov r8, rdi
mov rcx, qword [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18002d35c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov ebx, r9d
lea rax, [rsp + 0x30]
mov rdi, r8
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18002d3ad
mov r9d, dword [rsp + 0x70]
mov r8, rdi
mov rcx, qword [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x18002d8f8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, r9
lea rax, [rsp + 0x30]
mov rdi, r8
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18002d95b
mov rax, qword [rsp + 0x70]
xor r9d, r9d
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test eax, eax
jne 0x18002d94e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18002d9d8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, r9
lea rax, [rsp + 0x30]
mov rdi, r8
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18002da3b
mov rax, qword [rsp + 0x70]
xor r9d, r9d
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x18002da2e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18002da48
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x370
mov rax, qword [0x1800d4ad8]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rsi, rdx
mov rdi, rcx
mov ebp, 0x105
lea rcx, [rsp + 0x140]
mov r8d, ebp
xor edx, edx
call fcn.180046390
mov r8d, ebp
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.180046390
mov r8d, ebp
lea rcx, [rsp + 0x250]
xor edx, edx
call fcn.180046390
xor ebx, ebx
mov r9d, ebx
mov dword [rsp + 0x20], ebp
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
call fcn.18002cfec
test eax, eax
jne 0x18002dadc
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
call fcn.18002cf4c
test eax, eax
je 0x18002daa9
inc ebx
jmp 0x18002daa9
xor ebx, ebx
mov r9d, ebx
mov dword [rsp + 0x20], ebp
lea r8, [rsp + 0x140]
mov rdx, rsi
mov rcx, rdi
call fcn.18002d274
test eax, eax
jne 0x18002db3b
lea rax, [rsp + 0x140]
mov r9, rsi
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov rdx, rbp
lea rcx, [rsp + 0x250]
call fcn.180024980
lea rdx, [rsp + 0x250]
mov rcx, rdi
call fcn.18002da48
test eax, eax
je 0x18002dade
inc ebx
jmp 0x18002dade
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.180043830
mov rbx, qword [rsp + 0x3a0]
add rsp, 0x370
pop rdi
pop rsi
pop rbp
ret

Function at 0x18002dc9c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.18002db6c
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
Function at 0x18002dd20
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
mov rdi, r8
and dword [rax + 0x20], 0
lea rax, [rax - 0x18]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18002dd87
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x18002dd85
cmp eax, 0xea
jne 0x18002dd87
mov bl, 1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18002dd97
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18002e228
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
mov rsi, r9
and dword [rax + 0x20], 0
lea rax, [rax - 0x18]
mov rbp, r8
mov qword [rsp + 0x20], rax
xor edi, edi
xor r8d, r8d
lea r9d, [rdi + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
jne 0x18002e2d8
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r9d, r9d
and qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x18002e2d8
lea ecx, [rax + 0x10]
mov eax, 0xfffffff0
and rcx, rax
call fcn.180053730
mov rdi, rax
test rax, rax
jne 0x18002e2b3
lea ebx, [rax + 8]
jmp 0x18002e2d8
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18002e2e8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x18002e2f4
mov dword [rax], ebx
test rsi, rsi
je 0x18002e2ff
mov eax, dword [rsp + 0x68]
mov dword [rsi], eax
mov rbx, qword [rsp + 0x50]
mov rax, rdi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18002e318
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
mov rsi, r9
and dword [rax + 0x20], 0
lea rax, [rax - 0x18]
mov rbp, r8
mov qword [rsp + 0x20], rax
xor edi, edi
xor r8d, r8d
lea r9d, [rdi + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x18002e3c8
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r9d, r9d
and qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x18002e3c8
lea ecx, [rax + 0x10]
mov eax, 0xfffffff0
and rcx, rax
call fcn.180053730
mov rdi, rax
test rax, rax
jne 0x18002e3a3
lea ebx, [rax + 8]
jmp 0x18002e3c8
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18002e3d8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x18002e3e4
mov dword [rax], ebx
test rsi, rsi
je 0x18002e3ef
mov eax, dword [rsp + 0x68]
mov dword [rsi], eax
mov rbx, qword [rsp + 0x50]
mov rax, rdi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x18002e408
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x60
and qword [r11 - 0x28], 0
lea rax, [r11 - 0x18]
and qword [r11 - 0x18], 0
mov edi, r9d
mov qword [r11 - 0x30], rax
mov rsi, r8
and qword [r11 - 0x38], 0
xor r9d, r9d
mov eax, dword [rsp + 0xa0]
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, eax
test eax, eax
jne 0x18002e488
mov eax, dword [rsp + 0x98]
mov r9d, edi
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rsi
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18002e498
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x18002e4b4
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x60
and qword [r11 - 0x28], 0
lea rax, [r11 - 0x18]
and qword [r11 - 0x18], 0
mov edi, r9d
mov qword [r11 - 0x30], rax
mov rsi, r8
and qword [r11 - 0x38], 0
xor r9d, r9d
mov eax, dword [rsp + 0xa0]
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x18002e534
mov eax, dword [rsp + 0x98]
mov r9d, edi
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rsi
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18002e544
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x18002e610
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1800d4ad8]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x20], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rbp - 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x18002e69b
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x20], ecx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, byte [rbp - 0x20]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180043830
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
Function at 0x18002e6b8
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r13
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0x90
mov r15, r8
mov r12, rdx
mov r13, rcx
xor esi, esi
xor edx, edx
lea rcx, [rbp - 0x39]
mov rbx, r9
lea edi, [rsi + 0x70]
mov r8d, edi
call fcn.180046390
mov dword [rbp - 0x39], edi
mov rdi, qword [rbp + 0x7f]
cmp byte [rbp + 0x77], sil
jne 0x18002e711
test rdi, rdi
jne 0x18002e711
and dword [rbp - 0x35], esi
jmp 0x18002e718
mov dword [rbp - 0x35], 0x40
lea rax, str.runas
mov qword [rbp - 0x31], r13
lea rcx, [rbp - 0x39]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], rbx
mov dword [rbp - 9], 1
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
test eax, eax
jne 0x18002e752
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp byte [rbp + 0x77], 0
je 0x18002e769
test ebx, ebx
je 0x18002e769
mov rcx, qword [rbp + 0x2f]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test rdi, rdi
je 0x18002e777
mov rax, qword [rbp + 0x2f]
mov qword [rdi], rax
jmp 0x18002e786
mov rcx, qword [rbp + 0x2f]
test rcx, rcx
je 0x18002e786
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop rbp
ret
Function at 0x18002e944
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x1800d4ad8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rcx
xor ebx, ebx
call fcn.18002e870
cmp eax, 3
jne 0x18002eae3
lea rax, [rbp - 0x11]
mov r15d, 0xf003f
mov r9d, r15d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlags
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rbp - 0x11]
mov esi, eax
test rcx, rcx
je 0x18002e9b9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x18002eae3
and qword [rsp + 0x40], rbx
lea rax, [rbp - 0x11]
and qword [rbp - 0x11], rbx
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], r15d
mov rcx, 0xffffffff80000001
and dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x18002ead4
lea r8, [0x1800abcc4]
mov dword [rbp - 0x19], 0x40
lea edx, [rsi + 0x20]
lea rcx, [rbp - 9]
call fcn.1800537a4
mov rcx, qword [rbp - 0x11]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp - 9]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rsi, str.RUNASADMIN
mov rdx, rsi
lea rcx, [rbp - 9]
call fcn.18006bbf8
test eax, eax
je 0x18002ead4
mov rcx, qword [rbp - 0x11]
mov r15d, 1
mov r9d, r15d
mov dword [rsp + 0x28], 0x18
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x18002ead4
lea r8, [0x1800abcc4]
mov dword [rbp - 0x19], 0x40
lea edx, [rax + 0x20]
lea rcx, [rbp - 9]
call fcn.1800537a4
mov rcx, qword [rbp - 0x11]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp - 9]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rdx, rsi
lea rcx, [rbp - 9]
call fcn.18006bbf8
test eax, eax
cmove ebx, r15d
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x18002eae3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.180043830
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret

Function at 0x18002f1b4
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x248
mov rax, qword [0x1800d4ad8]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, [0x1800dcc80]
call fcn.18005380c
test rax, rax
jne 0x18002f206
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x20]
lea rdx, str._smsiexec.exe
lea rcx, [0x1800dcc80]
call fcn.18002ecd8
lea rax, [0x1800dcc80]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180043830
add rsp, 0x248
ret
Function at 0x18003310c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1800d4ad8]
xor rax, rsp
mov qword [rbp + 0x170], rax
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x60]
and qword [rsp + 0x50], 0
mov rdi, rcx
mov rcx, qword [rcx]
mov r9d, 0x2001f
and qword [rsp + 0x58], 0
xor r8d, r8d
and qword [rsp + 0x60], 0
mov rsi, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x180033211
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18003318a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x180033211
jmp 0x1800331b4
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.18003310c
mov ebx, eax
test eax, eax
jne 0x180033211
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x18003319a
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180033204
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.180032a24
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180033221
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.180043830
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800333b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1800d4ad8]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r14, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180033424
call fcn.180031dc0
mov ebx, eax
jmp 0x18003354b
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x180033445
call fcn.180031dc0
jmp 0x18003353f
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18003343b
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x180033497
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18003348d
lea rcx, [rsp + 0x70]
call fcn.180032ae0
nop
mov eax, 0x8007000e
jmp 0x180033564
mov ecx, eax
test eax, eax
je 0x1800334ce
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180033588
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1800334ce
lea rcx, [rsp + 0x70]
call fcn.1800319b8
mov rax, qword [rsp + 0x70]
jmp 0x1800334d8
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1800334ef
test rax, rax
jne 0x1800334fb
mov ebx, 0x8007000e
jmp 0x180033541
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x18003343b
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180033248
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180033562
lea rcx, [rsp + 0x70]
call fcn.180032ae0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180043830
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80070057
call fcn.18001756c
int3