joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011678
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 8], 0
lea rax, [rbp - 8]
mov r12, r8
mov r15d, edx
xor r8d, r8d
mov qword [rsp + 0x20], rax
test r9d, r9d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAccessibilityATConfigosk
mov r14d, r9d
mov rbx, rcx
mov r9d, 0x20019
mov rcx, 0xffffffff80000001
jne 0x1400116ce
lea rdx, [0x140021400]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x1400116f7
xor ecx, ecx
cmp qword [rbx], rcx
je 0x1400116f0
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbx], 0
mov ecx, eax
mov rax, qword [rbp - 8]
mov qword [rbx], rax
test ecx, ecx
jne 0x1400117a4
and dword [rbp + 0x48], ecx
lea rax, [rbp - 0x10]
mov rcx, qword [rbx]
lea rsi, [r15 + r15*2]
mov qword [rsp + 0x28], rax
lea rdi, str.WindowLeft
mov rdx, qword [rdi + rsi*8]
lea rax, [rbp + 0x48]
lea r9, [rbp - 8]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x10], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001178b
cmp dword [rbp - 8], 4
jne 0x14001178b
test eax, eax
jne 0x14001178b
cmp dword [rdi + rsi*8 + 0xc], 0
mov eax, dword [rbp + 0x48]
je 0x140011783
mov edi, dword [rdi + rsi*8 + 0x10]
cmp edi, eax
ja 0x14001176d
lea rcx, str.WindowLeft
mov edi, dword [rcx + rsi*8 + 0x14]
cmp eax, edi
jbe 0x140011783
cmp edi, eax
je 0x140011783
mov r9d, r14d
mov r8d, edi
mov edx, r15d
mov rcx, rbx
call fcn.1400114e0
mov eax, edi
mov dword [rbp + 0x48], eax
mov dword [r12], eax
xor edi, edi
jmp 0x140011790
mov edi, 0x80004005
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400117a9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbx], 0
jmp 0x1400117a9
mov edi, 0x80004005
mov rbx, qword [rsp + 0x70]
mov eax, edi
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400117c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r14
mov rbp, rsp
sub rsp, 0x30
mov rbx, qword [0x14002b6e0]
lea rax, [rbp + 0x30]
and qword [rbp + 0x30], 0
lea rdx, [0x140021400]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140011902
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001182c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbx], 0
mov rcx, qword [rbp + 0x30]
mov qword [rbx], rcx
test eax, eax
jne 0x140011902
lea r12, str.WindowLeft
xor edi, edi
mov r14, r12
mov rdx, qword [r14]
lea rax, [rbp + 0x38]
mov rcx, qword [rbx]
lea r9, [rbp + 0x40]
and dword [rbp + 0x30], 0
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x38], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400118e1
cmp dword [rbp + 0x40], 4
jne 0x1400118e1
test eax, eax
jne 0x1400118e1
mov r8d, dword [rbp + 0x30]
lea rcx, [rdi + rdi*2]
cmp dword [r12 + rcx*8 + 0xc], eax
je 0x1400118c3
mov esi, dword [r12 + rcx*8 + 0x10]
cmp esi, r8d
ja 0x1400118ad
mov esi, dword [r12 + rcx*8 + 0x14]
cmp r8d, esi
jbe 0x1400118c3
cmp esi, r8d
je 0x1400118c3
xor r9d, r9d
mov r8d, esi
mov edx, edi
mov rcx, rbx
call fcn.1400114e0
mov r8d, esi
mov dword [rbp + 0x30], esi
mov r9d, 1
mov edx, edi
mov rcx, rbx
call fcn.1400114e0
mov r8d, dword [rbp + 0x30]
mov edx, edi
mov rcx, rbx
call fcn.140011418
inc edi
add r14, 0x18
cmp edi, 0x14
jb 0x140011847
mov rcx, qword [rbx]
test rcx, rcx
je 0x140011902
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbx], 0
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011b94
Capabilities:
Delete registry value
Query or enumerate registry value

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
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov rax, qword [0x14002a7b8]
xor rax, rsp
mov qword [rbp + 0x180], rax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], 0x1f8
mov qword [rsp + 0x30], rax
lea r8, str.Stepping
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x28], rax
lea rdx, str.SoftwareMicrosoftOsk
and qword [rsp + 0x20], 0
mov r12, 0xffffffff80000001
mov r9d, 0x10
mov rcx, r12
xor dil, dil
xor sil, sil
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140011c72
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftOsk
mov rcx, r12
mov dil, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140011c72
mov rbx, qword [rsp + 0x48]
lea rdx, str.Stepping
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x140011c72
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x44]
mov r9d, 8
mov qword [rsp + 0x30], rax
lea r8, str.Setting
lea rax, [rbp - 0x80]
mov rcx, r12
mov qword [rsp + 0x28], rax
lea rdx, str.SoftwareMicrosoftOsk
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140011cff
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftOsk
mov rcx, r12
mov sil, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140011cff
mov rbx, qword [rsp + 0x48]
lea rdx, str.Setting
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x140011cff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
je 0x140011d83
cmp dword [rsp + 0x40], 4
jne 0x140011d83
cmp dword [rsp + 0x50], 3
jne 0x140011d83
test sil, sil
je 0x140011d83
cmp dword [rsp + 0x44], 0x1f8
jne 0x140011d83
cmp dword [rbp + 0x168], 0
mov eax, dword [rbp - 0x54]
mov dword [rsp + 0x58], eax
mov eax, dword [rbp - 0x44]
mov dword [rsp + 0x5c], eax
mov eax, dword [rbp + 0x80]
mov dword [rsp + 0x60], eax
mov eax, dword [rbp + 0x16c]
mov dword [rsp + 0x64], eax
mov eax, dword [rbp + 0x84]
mov dword [rsp + 0x68], eax
mov eax, dword [rbp + 0x88]
mov dword [rsp + 0x6c], eax
je 0x140011d6a
mov dword [rsp + 0x70], 3
jmp 0x140011d79
mov eax, dword [rbp - 0x48]
neg eax
sbb ecx, ecx
neg ecx
inc ecx
mov dword [rsp + 0x70], ecx
lea rcx, [rsp + 0x58]
call fcn.140011a64
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14001d6c0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400150a0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x98]
sub rsp, 0x190
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rdi
mov ebx, ecx
call fcn.140015230
test al, al
jne 0x14001519a
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 1
lea r8, [0x1400216e0]
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x40]
call fcn.140010e4c
test eax, eax
jne 0x140015160
mov dword [rbp + 0xa8], ebx
lea r9d, [rax + 4]
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x140021608]
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x140015165
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rsp + 0x40], rbx
jmp 0x140015165
mov rbx, qword [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1400169bc
nop
lea rcx, [rsp + 0x60]
call fcn.1400177a4
nop
lea rcx, [rsp + 0x60]
call fcn.140016a04
nop
test rbx, rbx
je 0x140015212
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140015212
lea r8, [0x1400216a8]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov rdi, rax
and bl, 1
test rax, rax
je 0x1400151d2
lea r8, str.SoftwareMicrosoftWindows_NTCurrentVersionAccessibilityOOBE
mov dl, bl
call fcn.140015f84
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140015212
lea rcx, [rbp + 0xb0]
call fcn.140015e5c
nop
mov r8, qword [rax]
mov dl, bl
call fcn.140015f84
nop
mov rdx, qword [rbp + 0xb0]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140015212
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400200f0]
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140015230
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14002a7b8]
xor rax, rsp
mov qword [rbp - 8], rax
and dword [rbp - 0x10], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
and dword [rsp + 0x48], 0
mov ebx, 1
and dword [rsp + 0x40], 0
xor r9d, r9d
and dword [rsp + 0x38], 0
mov dl, bl
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r8d, [rbx + 0x11]
and dword [rsp + 0x20], 0
mov word [rbp - 0xc], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400152bf
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1400152b5
cmp dword [rbp - 0x20], ebx
sete bl
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14001d6c0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
Function at 0x140015328
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and dword [rsp + 0x58], 0
lea rax, [r11 + 0x18]
mov qword [r11 - 0x18], rax
lea r8, str.EnableLUA
lea rax, [r11 + 0x10]
mov dword [rsp + 0x60], 4
mov rbx, rcx
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
mov r9d, 0x10
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140015382
cmp dword [rsp + 0x58], eax
jne 0x140015382
and dword [rbx], eax
add rsp, 0x40
pop rbx
ret

Function at 0x140015f84
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x788]
sub rsp, 0x880
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x14002a7b8]
xor rax, rsp
mov qword [rbp + 0x770], rax
mov bl, dl
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x50]
call fcn.140010e4c
test eax, eax
jne 0x1400160c8
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x48], 0x400
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x70]
lea rdx, [0x1400219b0]
lea rcx, [rsp + 0x50]
call fcn.1400159e0
test eax, eax
jne 0x1400160c8
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140003130
nop
lea rcx, [rsp + 0x40]
test bl, bl
je 0x140016052
call fcn.140015cac
jmp 0x140016057
call fcn.140015a74
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1400160fc
or rbx, 0xffffffffffffffff
mov rcx, rbx
inc rcx
cmp word [rax + rcx*2], di
jne 0x14001606c
lea ecx, [rcx*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1400219b0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400160c8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400200f0]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400160d8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.14001d6c0
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400017a4
int3
Function at 0x140016110
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor r13d, r13d
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jne 0x14001615f
mov eax, 0x80070057
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rsi, [rcx + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r13w
jne 0x140016167
mov r8d, eax
mov rcx, rsi
call fcn.1400034bc
mov rcx, qword [rsi]
mov ebp, 0x13
mov edi, dword [rcx - 0x10]
cmp edi, ebp
jge 0x140016191
mov ebp, edi
test edi, edi
jle 0x14001620b
sub edi, ebp
cmp dword [rcx - 8], 1
lea r12d, [rdi + 1]
jle 0x1400161ab
mov edx, dword [rcx - 0x10]
mov rcx, rsi
call fcn.1400037e4
mov rcx, qword [rsi]
movsxd rax, ebp
movsxd rdx, r12d
add rdx, rdx
mov r9, rdx
lea r8, [rcx + rax*2]
call qword [sym.imp.msvcrt.dll_memmove_s]
test eax, eax
je 0x1400161e9
cmp eax, 0xc
je 0x140016333
cmp eax, 0x16
je 0x14001631d
cmp eax, 0x22
je 0x14001631d
cmp eax, 0x50
jne 0x140016328
test edi, edi
js 0x14001631d
mov rax, qword [rsi]
cmp edi, dword [rax - 0xc]
jg 0x14001631d
mov dword [rax - 0x10], edi
mov rax, qword [rsi]
movsxd rcx, edi
mov word [rax + rcx*2], r13w
mov rcx, qword [rsi]
cmp dword [rcx - 8], 1
jle 0x140016222
mov edx, dword [rcx - 0x10]
mov rcx, rsi
call fcn.1400037e4
mov rcx, qword [rsi]
lea rdx, str.ScreenMagnifier
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140016245
lea r8d, [rax + 0xd]
mov rcx, rsi
lea rdx, str.magnifierpane
call fcn.1400034bc
mov rcx, rbx
call fcn.1400163f0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x20], rax
mov byte [rbx], r13b
mov qword [rbx + 0x30], r15
test rax, rax
je 0x140016303
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], r13
mov r9d, 0x10
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r14
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140016303
mov rcx, qword [rbx + 8]
mov eax, r13d
test rcx, rcx
je 0x1400162b3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbx + 8], r13
mov rcx, qword [rsp + 0x70]
mov qword [rbx + 8], rcx
test eax, eax
jne 0x140016303
mov r9, qword [rbx + 0x20]
lea edx, [rax + 1]
lea r8d, [rax + 5]
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x140016303
lea rax, [rbx + 0x38]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140016880]
xor edx, edx
mov dword [rsp + 0x20], r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x140016142
mov ecx, 0x80070057
call fcn.1400017a4
int3
mov ecx, 0x80004005
call fcn.1400017a4
int3
mov ecx, 0x8007000e
call fcn.1400017a4
int3
Function at 0x140016bf8
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 0x69], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14002a7b8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
xor r12d, r12d
mov edi, r12d
mov qword [rsp + 0x48], r12
mov qword [rbp - 0x79], r12
mov qword [rbp - 0x71], r12
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAccessibilityATs
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140016dc4
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x48], rdi
mov r14d, r12d
xor edx, edx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x40], 0x40
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x59]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x140016dc4
lea rcx, [rbp - 0x59]
call fcn.14001a1fc
mov rsi, rax
test rax, rax
je 0x140016db9
mov r15, qword [rbx + 0x108]
cmp qword [rbx + 0x120], r12
jne 0x140016d77
mov ecx, dword [rbx + 0x128]
test rcx, rcx
jne 0x140016cf7
mov rcx, r12
jmp 0x140016d0e
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 0x18
jb 0x140016d37
lea rcx, [rcx + rcx*2]
shl rcx, 3
add rcx, 8
call qword [sym.imp.msvcrt.dll_malloc]
mov r8, rax
test rax, rax
je 0x140016e06
mov rcx, qword [rbx + 0x118]
mov qword [rax], rcx
mov qword [rbx + 0x118], rax
jmp 0x140016d3a
mov r8, r12
test r8, r8
je 0x140016e06
mov edx, dword [rbx + 0x128]
lea eax, [rdx - 1]
lea rcx, [rax*2 + 1]
add rcx, rax
lea rcx, [r8 + rcx*8]
jmp 0x140016d72
mov rax, qword [rbx + 0x120]
mov qword [rcx], rax
mov qword [rbx + 0x120], rcx
sub rcx, 0x18
sub edx, 1
jns 0x140016d5d
mov rcx, qword [rbx + 0x120]
mov rax, qword [rcx]
mov qword [rcx + 0x10], rsi
mov qword [rbx + 0x120], rax
mov qword [rcx + 8], r15
mov qword [rcx], r12
inc qword [rbx + 0x110]
mov rax, qword [rbx + 0x108]
test rax, rax
je 0x140016dab
mov qword [rax], rcx
jmp 0x140016db2
mov qword [rbx + 0x100], rcx
mov qword [rbx + 0x108], rcx
inc r14d
mov edx, r14d
jmp 0x140016c85
test rdi, rdi
je 0x140016dd7
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r12
lea rax, [rbx + 0x100]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14001d6c0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.1400017a4
int3
Function at 0x140018878
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x260
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14002a7b8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, r8
mov rbp, rdx
xor edi, edi
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rax, str.StartList::CreateATProcess
mov qword [rsp + 0x40], rax
lea r12, [0x14002a0c8]
cmp qword [0x14002a0c8], r12
je 0x1400188e9
lea rcx, [rsp + 0x38]
call fcn.14001d0e4
test rbp, rbp
je 0x140018aa7
cmp word [rbp], di
je 0x140018aa7
mov r15, qword [r14 + 0x20]
mov ecx, 0x7fffffff
mov eax, ecx
mov rdx, rbp
cmp word [rdx], di
je 0x140018919
add rdx, 2
sub rax, 1
jne 0x14001890a
test rax, rax
je 0x140018923
sub rcx, rax
jmp 0x140018926
mov rcx, rdi
test rax, rax
je 0x140018aa0
lea rax, [rcx + 0x104]
or r8, 0xffffffffffffffff
mov rsi, r8
cmp rax, rcx
cmovae rsi, rax
jb 0x140018aa0
mov rbx, rdi
test rsi, rsi
jne 0x140018957
mov rcx, rdi
jmp 0x14001896d
xor edx, edx
mov rax, r8
div rsi
cmp rax, 2
jb 0x140018a8d
lea rcx, [rsi + rsi]
call qword [sym.imp.msvcrt.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140018a8d
mov r8d, esi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
jne 0x1400189ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
jmp 0x140018a92
cmp rbp, rsi
jbe 0x1400189bc
mov ecx, 0x8007007a
jmp 0x140018a92
lea rax, str._launchquickstart
lea r9, [0x140020460]
mov rcx, r9
cmp byte [r14 + 0x51], dil
cmovne rcx, rax
lea rdx, [0x140021b90]
mov rax, r9
cmp byte [r14 + 0x50], dil
cmovne rax, rdx
test r15, r15
cmovne r9, r15
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r8, str._s__s__s
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.140004524
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rsi, rax
cmp rax, 0x20
jg 0x140018a94
mov rcx, qword [0x14002a0c8]
cmp rcx, r12
je 0x140018a64
test byte [rcx + 0x1c], 8
je 0x140018a64
mov edx, 0x19
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x140021f20]
mov rcx, qword [rcx + 0x10]
call fcn.140013b98
lea rax, [rsi - 2]
test rax, 0xfffffffffffffff6
jne 0x140018a86
cmp rsi, 0xa
je 0x140018a86
movzx ecx, bp
or ecx, 0x80070000
test ebp, ebp
cmovle ecx, ebp
jmp 0x140018a92
mov ecx, 0x80004005
jmp 0x140018a92
mov ecx, 0x8007000e
mov edi, ecx
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
nop
jmp 0x140018aae
mov ecx, 0x80004005
jmp 0x140018aac
mov ecx, 0x80070057
mov edi, ecx
lea rcx, [rsp + 0x38]
call fcn.14001d124
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14001d6c0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140018f54
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14002a7b8]
xor rax, rsp
mov qword [rbp - 8], rax
xor esi, esi
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x20], esi
mov qword [r11 - 0x38], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], esi
xor r9d, r9d
mov dword [rsp + 0x40], esi
lea ebx, [rsi + 1]
mov dword [rsp + 0x38], esi
lea r8d, [rsi + 4]
mov dword [rsp + 0x30], esi
mov dl, bl
mov dword [rsp + 0x28], esi
mov edi, esi
mov dword [rsp + 0x20], esi
mov dword [rbp - 0x10], esi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
neg eax
sbb rdx, rdx
and rdx, qword [rbp - 0x18]
mov qword [rbp - 0x18], rdx
je 0x140018fe9
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rbp - 0x18]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [0x14002a0c8]
lea rax, [0x14002a0c8]
cmp rcx, rax
je 0x140019026
test byte [rcx + 0x1c], 0x10
je 0x140019026
test edi, edi
je 0x14001900e
mov r9d, ebx
cmp dword [rbp - 0x20], esi
jne 0x140019011
mov r9d, esi
mov rcx, qword [rcx + 0x10]
lea r8, [0x140021f20]
mov edx, 0x1b
call fcn.140001a0c
test edi, edi
je 0x14001902f
cmp dword [rbp - 0x20], esi
jne 0x140019031
mov ebx, esi
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14001d6c0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret