joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012598
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, qword [0x1400c0308]
xor r13d, r13d
mov r15, r8
mov rbp, rdx
cmp byte [rdi + 0x58], r13b
je 0x1400126f5
mov esi, 0x80070057
test rdx, rdx
je 0x14001268d
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], r13w
jne 0x1400125dd
mov eax, dword [rdi + 0x10]
cmp rcx, rax
ja 0x14001268d
lea rcx, [rdi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
inc dword [rdi + 0x4c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov dword [rdi + 0x48], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
mov r14d, r13d
mov dword [rsp + 0x70], eax
mov ecx, r13d
mov r12d, r13d
cmp dword [rdi + 8], r13d
jbe 0x14001bbf7
mov rdx, qword [rdi + 0x18]
mov eax, r12d
mov r13d, ecx
mov dword [rsp + 0x20], r14d
lea rsi, [rax + rax*2]
lea rax, [rdx + rsi*8]
mov rdx, qword [rax]
test rdx, rdx
jne 0x1400126a5
mov r8, r15
mov rdx, rbp
mov rcx, rax
call fcn.140012700
mov esi, eax
cmp eax, 1
je 0x14001bbf7
add dword [rdi + 0x4c], 0xffffffff
mov eax, dword [rdi + 0x4c]
jne 0x14001267d
and dword [rdi + 0x48], 0
lea rcx, [rdi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, esi
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14001bbdc
mov rdx, qword [rdi + 0x18]
mov ecx, dword [rsp + 0x70]
lea rax, [rdx + rsi*8]
sub ecx, dword [rax + 8]
cmp ecx, dword [rdi + 0xc]
ja 0x140012657
cmp ecx, r13d
mov r14d, r12d
cmovbe r14d, dword [rsp + 0x20]
inc r12d
cmp ecx, r13d
cmovbe ecx, r13d
cmp r12d, dword [rdi + 8]
jb 0x14001263c
jmp 0x14001bbf7
xor eax, eax
jmp 0x14001268f
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x18]
mov dword [rcx + rsi*8 + 8], eax
xor esi, esi
jmp 0x140012670
mov eax, dword [rdi + 8]
mov r8, qword [rdi + 0x18]
cmp eax, dword [rdi + 4]
jae 0x14001bc28
lea rcx, [rax + rax*2]
mov rdx, rbp
lea rcx, [r8 + rcx*8]
mov r8, r15
call fcn.140012700
mov esi, eax
test eax, eax
js 0x140012670
inc dword [rdi + 8]
jmp 0x140012670
mov eax, r14d
lea rdx, [rax + rax*2]
lea rcx, [r8 + rdx*8]
mov r8, r15
mov rdx, rbp
call fcn.140012700
mov esi, eax
jmp 0x140012670
Function at 0x140012e7c
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rbx, rcx
xor edi, edi
lea rcx, [rbp - 0x50]
mov qword [rbp + 0x30], rdi
mov rsi, rdx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rbp - 0x50]
mov dword [rbp - 0x30], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea r9d, [rdi + 8]
mov qword [rbp - 0x28], rbx
lea r8, [rbp - 0x30]
mov dword [rbp - 0x18], 0x140
mov edx, 0x2000000
lea rcx, [rbp + 0x30]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKeyEx]
nop dword [rax + rax]
test eax, eax
js 0x140012f47
lea rdx, str.SymbolicLinkValue
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea r8d, [rdi + 2]
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
cmp eax, 0xc0000034
jne 0x14001beb4
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rbx, qword [rsp + 0xa8]
mov eax, edi
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
cmp dword [rbp + 0x20], edi
jbe 0x140012f37
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
nop dword [rax + rax]
test eax, eax
mov ecx, 1
cmovns edi, ecx
mov rcx, qword [0x1400be2f8]
lea rax, [0x1400be2f8]
cmp rcx, rax
je 0x140012f37
test byte [rcx + 0x44], 0x20
je 0x140012f37
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400b3c30]
mov edx, 0xa
mov r9, rsi
call fcn.14004378c
nop
jmp 0x140012f37

Function at 0x1400147bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140014808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140014800
cmp dword [rcx + 0x3c], edx
jl 0x140014800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140014800
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 0x140014808
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140015920
Capabilities:
Get token privileges

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
xor ebx, ebx
and qword [rbp + 0x38], rbx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
lea edi, [rbx + 1]
mov rcx, rax
mov r8d, edi
lea r9, [rbp + 0x38]
lea edx, [rbx + 8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x140015a61
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x28]
and dword [rbp + 0x28], ebx
lea r9d, [rbx + 4]
lea r8, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0x12]
mov dword [rbp + 0x20], edi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
je 0x140015a17
cmp dword [rbp + 0x20], 2
cmove ebx, edi
cmp dword [rbp + 0x20], edi
jne 0x140015ab1
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x28]
lea r9d, [rdi + 3]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x30]
mov dword [rbp + 0x28], 4
lea edx, [rdi + 0x13]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
je 0x1400159e3
cmp dword [rbp + 0x30], 0
je 0x140015ab1
mov ebx, edi
jmp 0x140015ab1
mov rcx, qword [0x1400be2f8]
lea rax, [0x1400be2f8]
cmp rcx, rax
je 0x140015ab1
test byte [rcx + 0x44], dil
je 0x140015ab1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0xa
jmp 0x140015a45
mov rcx, qword [0x1400be2f8]
lea rax, [0x1400be2f8]
cmp rcx, rax
je 0x140015ab1
test byte [rcx + 0x44], dil
je 0x140015ab1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0xb
mov rcx, qword [0x1400be2f8]
lea r8, [0x1400a3d28]
mov r9d, eax
mov rcx, qword [rcx + 0x38]
call fcn.14002c238
jmp 0x140015ab1
mov rcx, qword [0x1400be2f8]
lea rax, [0x1400be2f8]
cmp rcx, rax
je 0x140015ab1
test byte [rcx + 0x44], dil
je 0x140015ab1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140015a92
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x1400be2f8]
lea r8, [0x1400a3d28]
mov edx, 0xc
mov r9d, eax
mov rcx, qword [rcx + 0x38]
call fcn.14002c27c
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140015ac6
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret
Function at 0x140015ad8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and dword [rsp + 0x50], 0
lea rax, [r11 + 0x10]
mov qword [r11 - 0x18], rax
lea r8, str.NoWarningNoElevationOnInstall
lea rax, [r11 + 8]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x20], rax
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrintersPointAndPrint
and qword [r11 - 0x28], 0
mov ebx, 1
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140015b3a
cmp dword [rsp + 0x50], eax
je 0x140015b74
xor ebx, ebx
jmp 0x140015b74
jle 0x140015b44
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x1400be2f8]
lea rdx, [0x1400be2f8]
cmp rcx, rdx
je 0x140015b74
test byte [rcx + 0x44], bl
je 0x140015b74
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400a3d28]
mov edx, 0xd
mov r9d, eax
call fcn.14002c27c
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x140015f88
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and dword [rsp + 0x50], 0
lea rax, [r11 + 0x10]
mov qword [r11 - 0x18], rax
lea r8, str.RestrictDriverInstallationToAdministrators
lea rax, [r11 + 8]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x20], rax
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrintersPointAndPrint
and qword [r11 - 0x28], 0
mov ebx, 1
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140015feb
xor ebx, ebx
cmp dword [rsp + 0x50], ebx
setne bl
jmp 0x140016027
mov rcx, qword [0x1400be2f8]
lea rdx, [0x1400be2f8]
cmp rcx, rdx
je 0x140016027
test byte [rcx + 0x44], bl
je 0x140016027
test eax, eax
jle 0x14001600f
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400a3d28]
mov edx, 0x17
mov r9d, eax
call fcn.14002c27c
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x140016104
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x58], 4
lea rax, [r11 + 0x10]
mov dword [rsp + 0x50], ebx
mov qword [r11 - 0x18], rax
lea r8, str.RpcNamedPipeAuthentication
lea rax, [r11 + 8]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x20], rax
lea r9d, [rbx + 0x18]
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrintersRPC
mov qword [r11 - 0x28], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
lea rdi, [0x1400be2f8]
test eax, eax
jne 0x140016187
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1400161b1
sub eax, 1
je 0x140016180
mov rcx, qword [0x1400be2f8]
cmp eax, 1
jne 0x1400161b8
lea ebx, [rax + 1]
jmp 0x1400161b8
mov ebx, 1
jmp 0x1400161b1
mov rcx, qword [0x1400be2f8]
cmp rcx, rdi
je 0x1400161dd
test byte [rcx + 0x1c], 1
je 0x1400161b8
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400a3ff8]
mov edx, 0xb
mov r9d, eax
call fcn.14002c27c
mov rcx, qword [0x1400be2f8]
cmp rcx, rdi
je 0x1400161dd
test byte [rcx + 0x1c], 4
je 0x1400161dd
mov r9d, dword [rsp + 0x50]
lea r8, [0x1400a3ff8]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
call fcn.14002c27c
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140016234
Capabilities:
Get domain information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
lea r8, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x30], rbx
lea edi, [rbx + 1]
mov edx, edi
call qword [sym.imp.DSROLE.dll_DsRoleGetPrimaryDomainInformation]
nop dword [rax + rax]
test eax, eax
jne 0x14001627b
mov rcx, qword [rsp + 0x30]
test dword [rcx], 0xfffffffd
cmovne ebx, edi
call qword [sym.imp.DSROLE.dll_DsRoleFreeMemory]
nop dword [rax + rax]
mov rcx, qword [0x1400be2f8]
lea rax, [0x1400be2f8]
cmp rcx, rax
je 0x1400162ac
test byte [rcx + 0x1c], 4
je 0x1400162ac
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400a3ff8]
mov edx, 0xa
mov r9d, ebx
call fcn.14002c27c
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400162c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
sub rsp, 0x40
and dword [rsp + 0x50], 0
lea rax, [r11 + 0x10]
mov qword [r11 - 0x18], rax
lea r8, [0x1400a3fc0]
lea rax, [r11 + 8]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x20], rax
lea rdx, [0x1400a3e50]
and qword [r11 - 0x28], 0
mov ebx, 1
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov rcx, qword [0x1400be2f8]
lea rsi, [0x1400be2f8]
test eax, eax
jne 0x140016335
xor ebx, ebx
cmp dword [rsp + 0x50], ebx
setne bl
jmp 0x14001635e
cmp rcx, rsi
je 0x140016383
test byte [rcx + 0x1c], bl
je 0x14001635e
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400a3ff8]
mov edx, 0xd
mov r9d, eax
call fcn.14002c27c
mov rcx, qword [0x1400be2f8]
cmp rcx, rsi
je 0x140016383
test byte [rcx + 0x1c], 4
je 0x140016383
mov r9d, dword [rsp + 0x50]
lea r8, [0x1400a3ff8]
mov rcx, qword [rcx + 0x10]
mov edx, 0xe
call fcn.14002c27c
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret

Function at 0x1400163b0
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.140059c9c
lea rcx, [rbp - 0x10]
call fcn.140059c9c
lea r8, [rbp - 8]
mov edx, 0x20019
mov rcx, rbx
call fcn.14005c830
test eax, eax
jne 0x14001645b
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 0x14001645b
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 0x14001645b
lea eax, [rdi + 1]
cmp dword [rbp + 0x28], eax
cmove edi, eax
lea rcx, [rbp - 0x10]
call fcn.140013b90
lea rcx, [rbp - 8]
call fcn.140013b90
mov eax, edi
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x140040800
Capabilities:
Create thread

Disassembly:
test rcx, rcx
je 0x14004088a
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor edi, edi
cmp word [rcx], di
je 0x140040880
call sym.spoolsv.exe_PrvDllAllocSplStr
mov rbx, rax
test rax, rax
je 0x140040880
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14003ebc0]
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 0x140040868
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140040880
mov rcx, qword [0x1400c02b8]
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 0x140042b40
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 0x140042b75
cmp qword [r8 + 8], 0
jne 0x140042b75
mov eax, 0x57
jmp 0x140042c36
mov ecx, dword [rsp + 0x60]
call fcn.140007914
test eax, eax
je 0x140042c2a
mov ecx, dword [0x1400c0384]
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 0x140042bab
mov r9, qword [rbx + 8]
mov r8d, dword [rbx]
jmp 0x140042bb1
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 [0x1400c0384]
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.14000787c
test ebx, ebx
je 0x140042be6
xor eax, eax
jmp 0x140042c36
mov rax, qword [0x1400be2f8]
lea rcx, [0x1400be2f8]
cmp rax, rcx
je 0x140042c2a
test byte [rax + 0x44], 1
je 0x140042c2a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400be2f8]
lea r8, [0x1400a3d28]
mov edx, 0x1d
mov r9d, eax
mov rcx, qword [rcx + 0x38]
call fcn.14002c238
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 0x140042c60
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.14003ebf8
xor edi, edi
test eax, eax
jne 0x140042c9d
mov eax, 0x57
jmp 0x140042d6e
cmp dword [r8], 3
je 0x140042cb6
mov ecx, 0x7c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140042c93
mov ecx, esi
call fcn.140007914
test eax, eax
jne 0x140042cd2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x140042d6e
mov ecx, dword [0x1400c0380]
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 [0x1400c0380]
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.14000787c
test ebx, ebx
jne 0x140042d6c
mov rax, qword [0x1400be2f8]
lea rcx, [0x1400be2f8]
cmp rax, rcx
je 0x140042d5e
test byte [rax + 0x44], 1
je 0x140042d5e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400be2f8]
lea edx, [rbx + 0x56]
mov r9d, eax
lea r8, [0x1400a3d28]
mov rcx, qword [rcx + 0x38]
call fcn.14002c238
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 0x140043b1c
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, [0x1400a3e50]
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 0x140043bb0
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 0x140058518
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 0x14005853d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x14005853f
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, [0x1400ae848]
mov qword [rsp + 0x38], 4
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x50], 4
call fcn.140058760
mov rcx, qword [0x1400be2f8]
lea rbp, [0x1400be2f8]
cmp rcx, rbp
je 0x1400585b1
test byte [rcx + 0x1c], 4
je 0x1400585b1
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400a3ef0]
mov edx, 0x1f
mov dword [rsp + 0x20], ebx
mov r9d, edi
call fcn.14003340c
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 0x140058641
mov rcx, qword [0x1400be2f8]
cmp rcx, rbp
je 0x140058636
test byte [rcx + 0x1c], 4
je 0x140058616
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400be2f8]
lea r8, [0x1400a3ef0]
mov edx, 0x20
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.14002c238
mov rcx, qword [0x1400be2f8]
cmp rcx, rbp
je 0x140058636
test byte [rcx + 0x1c], 4
je 0x140058636
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400a3ef0]
mov edx, 0x21
call fcn.14002c20c
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 0x1400590f4
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 [0x1400be7a8]
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 0x1400591f8
cmp dword [rbp + 0x27], edi
je 0x1400591f8
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 0x1400591f8
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 0x1400591e8
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 0x1400591d8
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.140014250
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret