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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x80
mov rdi, rcx
xor ebx, ebx
lea rcx, [rax - 0x58]
mov qword [rax + 0x18], rbx
mov rsi, rdx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x50], 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
lea r9d, [rbx + 8]
mov qword [rsp + 0x58], rdi
lea r8, [rsp + 0x50]
mov dword [rsp + 0x68], 0x140
mov edx, 0x2000000
lea rcx, [rsp + 0xa0]
movdqu xmmword [rsp + 0x70], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKeyEx]
nop dword [rax + rax]
test eax, eax
js 0x14000425e
lea rdx, str.SymbolicLinkValue
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rsp + 0xa0]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea r8d, [rbx + 2]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
cmp dword [rsp + 0x90], ebx
jbe 0x14000424a
cmp eax, 0xc0000034
jne 0x140012efe
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
nop dword [rax + rax]
test eax, eax
mov ecx, 1
cmovns ebx, ecx
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x14000424a
test byte [rcx + 0x44], 0x20
je 0x14000424a
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aab00]
mov edx, 0xa
mov r9, rsi
call fcn.14003249c
nop
jmp 0x14000424a
Function at 0x140005e10
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1400c912c], 0
je 0x140013b54
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call sym.spoolsv.exe_PrvRevertToPrinterSelf
xor edx, edx
lea r8, str.RouterPreInitEvent
mov rdi, rax
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140013bea
mov rax, qword [0x1400c72a8]
lea rcx, [0x1400c72a8]
cmp rax, rcx
je 0x140013bbe
test byte [rax + 0x44], 0x20
je 0x140013bbe
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c72a8]
lea edx, [rbx + 0x15]
mov r9d, eax
lea r8, [0x1400aa7d0]
mov rcx, qword [rcx + 0x38]
call fcn.14001c1f8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x1400aa258]
mov edx, eax
call fcn.1400498e8
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test rdi, rdi
je 0x140013c31
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
jne 0x140013c31
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
mov ecx, 0x69
call fcn.1400494e8
or edx, 0xffffffff
call fcn.140050064
nop
jmp 0x140005e27
Function at 0x140009b7c
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
mov eax, dword [rcx + 0x14]
lea r9, [r11 + 8]
mov r8, qword [rcx + 8]
mov rbx, rcx
mov dword [rsp + 0x50], eax
xor edx, edx
xor eax, eax
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rax
mov dword [rcx + 0x10], eax
mov rcx, qword [rcx]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ecx, eax
call fcn.1400083f0
mov dword [rbx + 0x18], eax
add rsp, 0x40
pop rbx
ret
Function at 0x14000ca10
Capabilities:
Get thread local storage value
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400c77d8]
xor rax, rsp
mov qword [rsp + 0x80], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x1400c84ec]
xor esi, esi
mov edi, eax
cmp ecx, 0xffffffff
je 0x140015408
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
nop dword [rax + rax]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.RPCRT4.dll_I_RpcBindingInqTransportType]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14000ca99
cmp eax, 0x6bd
jne 0x140015410
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, esi
jmp 0x14000cb8d
cmp dword [rsp + 0x60], 4
jne 0x140015426
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
mov ebx, 1
lea r9, [rsp + 0x70]
mov rcx, rax
mov r8d, ebx
lea edx, [rbx + 7]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x14001544b
lea rax, [rsp + 0x68]
mov dword [rsp + 0x78], esi
mov qword [rsp + 0x50], rax
lea r8d, [rbx + 1]
mov dword [rsp + 0x48], esi
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x40], esi
xor r9d, r9d
mov dword [rsp + 0x38], esi
movzx edx, bl
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov word [rsp + 0x7c], 0x500
mov qword [rsp + 0x68], rsi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x14001543f
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x64]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x14000cbb3
cmp dword [rsp + 0x64], esi
jne 0x14000cb53
mov ebx, esi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
test ebx, ebx
js 0x140015462
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000f060
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.14000b290
mov ebx, eax
jmp 0x14000cb53
mov rax, rsi
jmp 0x14000ca5f
test eax, eax
jle 0x14000cb75
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000cb75
mov ecx, edi
mov ebx, 1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
nop
jmp 0x14000cb8b
call fcn.14000b290
mov ebx, eax
jmp 0x14000cb64
call fcn.14000b290
mov ebx, eax
cmp eax, 0x800703f0
jne 0x14000cb75
jmp 0x14000ca84
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x14000cb8b
test byte [rcx + 0x44], 0x20
je 0x14000cb8b
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aa820]
mov edx, 0x12
mov r9d, ebx
call fcn.14001c23c
nop
jmp 0x14000cb8b
Function at 0x14000f5cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000f618
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f610
cmp dword [rcx + 0x3c], edx
jl 0x14000f610
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000f610
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000f618
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14000f740
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f768
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000f768
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140010fac
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rbx, rcx
mov dword [rbp + 0x30], 4
xor edi, edi
lea rcx, [rbp - 8]
mov dword [rbp + 0x28], edi
call fcn.14004acb0
lea rcx, [rbp - 0x10]
call fcn.14004acb0
lea r8, [rbp - 8]
mov edx, 0x20019
mov rcx, rbx
call fcn.14004e7f8
test eax, eax
jne 0x140011057
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140011057
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x28]
xor r8d, r8d
lea rdx, str.MaintainDefaultPrinter
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140011057
lea eax, [rdi + 1]
cmp dword [rbp + 0x28], eax
cmove edi, eax
lea rcx, [rbp - 0x10]
call fcn.14004ace4
lea rcx, [rbp - 8]
call fcn.14004ace4
mov eax, edi
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x14002da20
Capabilities:
Create thread

Disassembly:
test rcx, rcx
je 0x14002daaa
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor edi, edi
cmp word [rcx], di
je 0x14002daa0
call sym.spoolsv.exe_PrvDllAllocSplStr
mov rbx, rax
test rax, rax
je 0x14002daa0
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14002b950]
mov edx, 0x10000
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
test rax, rax
je 0x14002da88
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x14002daa0
mov rcx, qword [0x1400c9130]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400313f0
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov edi, r9d
mov rbx, r8
mov esi, edx
mov rbp, rcx
test r8, r8
je 0x140031425
cmp qword [r8 + 8], 0
jne 0x140031425
mov eax, 0x57
jmp 0x1400314e6
mov ecx, dword [rsp + 0x60]
call fcn.14002fffc
test eax, eax
je 0x1400314da
mov ecx, dword [0x1400c84f0]
mov edx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
test rbx, rbx
je 0x14003145b
mov r9, qword [rbx + 8]
mov r8d, dword [rbx]
jmp 0x140031461
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov dword [rsp + 0x20], edi
mov rcx, rbp
call sym.spoolsv.exe_PrvSetJobW
mov ecx, dword [0x1400c84f0]
xor edx, edx
mov ebx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x60]
call fcn.140031080
test ebx, ebx
je 0x140031496
xor eax, eax
jmp 0x1400314e6
mov rax, qword [0x1400c72a8]
lea rcx, [0x1400c72a8]
cmp rax, rcx
je 0x1400314da
test byte [rax + 0x44], 1
je 0x1400314da
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c72a8]
lea r8, [0x1400aa5b8]
mov edx, 0x1d
mov r9d, eax
mov rcx, qword [rcx + 0x38]
call fcn.14001c1f8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140031510
Capabilities:
Set thread local storage value

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
mov r14, rcx
mov esi, r9d
mov rcx, r8
mov rbx, r8
mov rbp, rdx
call fcn.14002b988
xor edi, edi
test eax, eax
jne 0x14003154d
mov eax, 0x57
jmp 0x14003161e
cmp dword [r8], 3
je 0x140031566
mov ecx, 0x7c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140031543
mov ecx, esi
call fcn.14002fffc
test eax, eax
jne 0x140031582
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x14003161e
mov ecx, dword [0x1400c84e8]
mov edx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
mov r9, qword [rbx + 8]
mov rdx, rbp
mov r8d, dword [rbx]
mov rcx, r14
call sym.spoolsv.exe_PrvSetPortW
mov ecx, dword [0x1400c84e8]
xor edx, edx
mov ebx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
nop dword [rax + rax]
mov ecx, esi
call fcn.140031080
test ebx, ebx
jne 0x14003161c
mov rax, qword [0x1400c72a8]
lea rcx, [0x1400c72a8]
cmp rax, rcx
je 0x14003160e
test byte [rax + 0x44], 1
je 0x14003160e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c72a8]
lea edx, [rbx + 0x56]
mov r9d, eax
lea r8, [0x1400aa5b8]
mov rcx, qword [rcx + 0x38]
call fcn.14001c1f8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov eax, edi
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 0x14003291c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1400b8680]
mov rcx, 0xffffffff80000002
mov ebx, 0x3200000
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400329b0
and dword [rsp + 0x40], eax
lea r9, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.MaxRpcSize
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmove ebx, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1400494e8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x60
mov ebx, edx
mov edi, ecx
test edx, edx
jne 0x14004950d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x14004950f
mov eax, ebx
and dword [rsp + 0x40], 0
lea r8, [rsp + 0x30]
and dword [rsp + 0x58], 0
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov dword [rsp + 0x30], eax
lea rcx, [0x1400b57d8]
mov qword [rsp + 0x38], 4
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x50], 4
call fcn.140049730
mov rcx, qword [0x1400c72a8]
lea rbp, [0x1400c72a8]
cmp rcx, rbp
je 0x140049581
test byte [rcx + 0x1c], 4
je 0x140049581
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aa680]
mov edx, 0x1f
mov dword [rsp + 0x20], ebx
mov r9d, edi
call fcn.1400245dc
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
nop dword [rax + rax]
test eax, eax
jne 0x140049611
mov rcx, qword [0x1400c72a8]
cmp rcx, rbp
je 0x140049606
test byte [rcx + 0x1c], 4
je 0x1400495e6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c72a8]
lea r8, [0x1400aa680]
mov edx, 0x20
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.14001c1f8
mov rcx, qword [0x1400c72a8]
cmp rcx, rbp
je 0x140049606
test byte [rcx + 0x1c], 4
je 0x140049606
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400aa680]
mov edx, 0x21
call fcn.14001c1cc
xor eax, eax
movabs byte [0], al
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14004a0e4
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x1400c77d8]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
lea rdx, [rbp + 0x27]
mov bl, dil
call qword [sym.imp.RPCRT4.dll_I_RpcBindingIsClientLocal]
nop dword [rax + rax]
test eax, eax
jne 0x14004a1e8
cmp dword [rbp + 0x27], edi
je 0x14004a1e8
lea ebx, [rdi + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
lea r9, [rbp + 0x37]
mov r8d, ebx
mov rcx, rax
lea edx, [rdi + 8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x14004a1e8
lea rax, [rbp + 0x2f]
mov dword [rbp + 0x3f], edi
mov qword [rsp + 0x50], rax
lea r8d, [rdi + 2]
mov dword [rsp + 0x48], edi
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov dword [rsp + 0x38], edi
mov dl, bl
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov word [rbp + 0x43], 0x500
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x14004a1d8
mov rdx, qword [rbp + 0x2f]
lea r8, [rbp + 0x2b]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x14004a1c8
cmp dword [rbp + 0x2b], edi
cmovne ebx, edi
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14000f060
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14004ac20
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor edx, edx
mov rcx, qword gs:[0x60]
lea r8d, [rdx + 0x20]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
xor ecx, ecx
mov rbx, rax
test rax, rax
jne 0x14004ac5d
mov edi, 0xc0000017
jmp 0x14004ac9c
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov eax, 1
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov rdx, rbx
mov rcx, rdi
call fcn.14004ab90
mov edi, eax
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x14004adb4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
and qword [r11 - 0x28], 0
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov r14, rcx
test rcx, rcx
je 0x14004ae7c
test rdx, rdx
je 0x14004ae7c
test r8, r8
je 0x14004ae7c
lea rax, [r11 - 0x28]
mov r9d, 0x20019
xor r8d, r8d
mov qword [r11 - 0x38], rax
lea rdx, [0x1400bb7b0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ecx, eax
call fcn.1400083f0
mov ebx, eax
test eax, eax
js 0x14004ae81
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rsi
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, eax
call fcn.1400083f0
mov ebx, eax
test eax, eax
js 0x14004ae69
test rdi, rdi
je 0x14004ae69
mov eax, dword [rsp + 0x60]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14004ae81
mov ebx, 0x80004003
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14004d994
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r15d, r15d
mov dword [rbp + 0x40], 0x410
mov rax, rdx
mov qword [r8], r15
mov r14, r8
mov qword [rbp + 0x48], r15
mov rsi, rcx
mov qword [rbp - 0x10], r15
lea r8, [rbp - 0x10]
mov edx, 0x20019
mov rcx, rax
mov ebx, r15d
call fcn.14004e7f8
mov edi, eax
test eax, eax
jne 0x14004da4a
mov ecx, dword [rbp + 0x40]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
test rax, rax
je 0x14004da45
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x30], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionDevices
mov qword [rsp + 0x28], rbx
mov r9d, 2
mov r8, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xea
jne 0x14004da4a
mov rcx, qword [0x1400c9130]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14004d9df
mov edi, 8
test edi, edi
mov r8, r15
cmovne r8, rbx
cmovne rbx, r15
test r8, r8
je 0x14004da71
mov rcx, qword [0x1400c9130]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14004da86
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test edi, edi
je 0x14004dae5
mov edi, 0x709
mov r8, qword [rbp + 0x48]
test r8, r8
je 0x14004dab1
mov rcx, qword [0x1400c9130]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov qword [rbp + 0x48], r15
test rbx, rbx
je 0x14004dace
mov rcx, qword [0x1400c9130]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x80]
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov r9, rbx
mov qword [rsp + 0x20], r15
lea r8, [0x1400bbda0]
mov rdx, rsi
lea rcx, [rbp + 0x48]
call fcn.14000b810
mov edi, eax
test eax, eax
jne 0x14004da8f
mov rcx, qword [rbp + 0x48]
mov r8, r15
mov qword [r14], rcx
mov qword [rbp + 0x48], r15
jmp 0x14004da93