joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ad80
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 [0x1400be7a8]
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 [0x1400c0290]
xor esi, esi
mov edi, eax
cmp ecx, 0xffffffff
je 0x14001b8a2
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
jne 0x14000af0b
cmp dword [rsp + 0x60], 4
jne 0x14001b8c0
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 0x14000af28
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 0x14001b8e5
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 0x14001b8d9
cmp dword [rsp + 0x64], esi
jne 0x14000aeab
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 0x14001b8f1
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140014250
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp eax, 0x6bd
jne 0x14001b8aa
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 0x14000aee5
call fcn.14000b09c
mov ebx, eax
cmp eax, 0x800703f0
je 0x14000af16
jmp 0x14000aecd
mov rax, rsi
jmp 0x14000adcf
test eax, eax
jle 0x14000aecd
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14000aecd
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 0x14000aee3
call fcn.14000b09c
mov ebx, eax
jmp 0x14000aeab
call fcn.14000b09c
mov ebx, eax
jmp 0x14000aebc
mov rcx, qword [0x1400be2f8]
lea rax, [0x1400be2f8]
cmp rcx, rax
je 0x14000aee3
test byte [rcx + 0x44], 0x20
je 0x14000aee3
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400a41e0]
mov edx, 0x12
mov r9d, ebx
call fcn.14002c27c
nop
jmp 0x14000aee3
Function at 0x14000b070
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1400c02d0], 0
je 0x14001b954
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 0x14001b9ea
mov rax, qword [0x1400be2f8]
lea rcx, [0x1400be2f8]
cmp rax, rcx
je 0x14001b9be
test byte [rax + 0x44], 0x20
je 0x14001b9be
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 + 0x15]
mov r9d, eax
lea r8, [0x1400a4120]
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]
xor r8d, r8d
lea rcx, [0x1400a2c98]
mov edx, eax
call fcn.140058918
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 0x14001ba31
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
jne 0x14001ba31
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.140058518
or edx, 0xffffffff
call fcn.14005dd50
nop
jmp 0x14000b087
Function at 0x14000b318
Capabilities:
Delete file
Move file

Disassembly:
test rcx, rcx
je 0x14000b3db
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1400bff68]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rax, qword [rbx + 0x20]
test rax, rax
jne 0x14001c2d2
and dword [rbx + 0x30], eax
and dword [rbx + 0x50], eax
mov rax, qword [0x1400bfdf0]
cmp rax, rbx
je 0x14001c2e0
test rax, rax
jne 0x14001c2f0
lea rcx, [rbx + 0x18]
cmp qword [rcx], 0
jne 0x14000b3dd
lea rcx, [0x1400bff68]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x38]
cmp rcx, 0xffffffffffffffff
jne 0x14001c30c
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x14001c31e
mov r8, qword [rbx + 0x48]
test r8, r8
je 0x14000b3be
mov rcx, qword [0x1400c02b8]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
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]
add rsp, 0x20
pop rbx
ret
call fcn.140008970
jmp 0x14000b372
and qword [rax + 8], 0
mov rax, qword [rax + 0x10]
jmp 0x14000b340
mov rax, qword [rbx + 0x28]
mov qword [0x1400bfdf0], rax
jmp 0x14000b368
lea rcx, [rax + 0x28]
mov rax, qword [rcx]
cmp rax, rbx
jne 0x14000b35f
mov rax, qword [rbx + 0x28]
mov qword [rcx], rax
jmp 0x14000b368
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
jmp 0x14000b393
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14001c344
mov rcx, qword [rbx + 0x40]
lea r8d, [rax + 4]
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
nop dword [rax + rax]
mov r8, qword [rbx + 0x40]
xor edx, edx
mov rcx, qword [0x1400c02b8]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
and qword [rbx + 0x40], 0
jmp 0x14000b3a0
Function at 0x14000b438
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400be7a8]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebp, ebp
mov rsi, rcx
mov qword [rsp + 0x38], rbp
mov ebx, ebp
test rcx, rcx
je 0x14000b5d3
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bp
jne 0x14000b47a
inc rax
cmp rax, 0x207
jae 0x14000b5d3
mov ecx, 0x438
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
test rax, rax
je 0x14000b5d3
lea rcx, [rsp + 0x40]
call fcn.14000b750
lea r9, str.PrintersConnections
mov edx, 0x21c
sub r9, rdi
mov rcx, rdi
lea rax, [rdx + 0x7ffffde2]
test rax, rax
je 0x14000b4e7
movzx eax, word [r9 + rcx]
test ax, ax
je 0x14000b4e7
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14000b4c4
test rdx, rdx
lea rax, [rcx - 2]
lea rdx, [rdi + 0x2a]
mov r8d, 0x207
cmovne rax, rcx
mov rcx, rsi
mov word [rax], bp
mov eax, 0x5c
mov word [rdi + 0x28], ax
call sym.spoolsv.exe_PrvFormatPrinterForRegistryKey
mov ecx, 0x20019
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov rsi, rax
test rax, rax
je 0x14000b5b1
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000b5a2
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400a1ef8]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14001c3b2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [0x1400c02b8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.14000b608
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140014250
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rbx, qword [0x1400c02d8]
jmp 0x14001c3db
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14000b591
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14001c3bb
jmp 0x14000b591

Function at 0x14000b608
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx]
mov rbx, rcx
cmp rdx, 0xffffffffffffffff
je 0x14000b635
test rdx, rdx
je 0x14000b635
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x14001c3e6
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14000a3cc
mov ecx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
Function at 0x14000d9b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ecx, 0x440
xor edi, edi
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
test rax, rax
je 0x14000da43
mov ecx, 0x2001f
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov qword [rbx + 8], rax
test rax, rax
je 0x140019efc
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
nop dword [rax + rax]
mov r9, rbx
lea edx, [rdi + 0xe]
mov rcx, rax
lea r8d, [rdi + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x140019e74
test rbx, rbx
je 0x14000da30
cmp dword [0x1400c02d0], edi
je 0x140019e9d
mov rcx, rbx
call fcn.14000dc90
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
jmp 0x14000da32
lea rcx, [rbx + 8]
call fcn.14000de40
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, rdi
jmp 0x14000da17
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [fcn.14000dc90]
xor edx, edx
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 0x140019edf
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
jmp 0x14000da30
mov rcx, qword [rbx]
mov edi, 1
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
lea rcx, [rbx + 8]
call fcn.14000de40
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]
nop
jmp 0x14000da30
Function at 0x14000dc90
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
and dword [rbp + 0x28], 0
lea rsi, [rcx + 8]
and qword [rbp + 0x30], 0
lea rdx, str.Printers
mov rdi, rcx
mov rcx, qword [rsi]
call fcn.140012e7c
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x30]
mov rcx, qword [rsi]
lea rdx, str.Printers
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov dword [rbp + 0x20], eax
test eax, eax
jne 0x14001a024
mov rcx, qword [rbp + 0x30]
call fcn.14000da4c
mov dword [rbp + 0x20], eax
test eax, eax
jne 0x14001a024
lea rcx, [rbp + 0x30]
call fcn.140013b90
cmp dword [0x1400c02d0], 0
je 0x14001a063
mov rcx, qword [rdi]
call fcn.14000f1a4
test eax, eax
jne 0x14000ddfa
mov rdx, rsi
xor ecx, ecx
call fcn.140010fdc
test eax, eax
je 0x14000dda7
mov edx, 1
mov rcx, rsi
call fcn.14000debc
mov rcx, qword [rdi]
lea rax, [0x1400bff64]
lea rdx, [rbp + 0x30]
mov qword [rbp + 0x30], rax
call fcn.140010008
test eax, eax
js 0x14001a080
lea rdx, str._Classes
lea rcx, [rbp + 0x30]
call fcn.1400104b8
test eax, eax
js 0x14001a080
mov rbx, qword [rbp + 0x30]
mov rcx, rbx
call fcn.14000e9d4
mov rdx, rbx
call fcn.1400105ac
and qword [rsp + 0x20], 0
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 3]
call sym.spoolsv.exe_PrvRouterBroadcastMessage
mov rcx, qword [rdi]
lea rax, [rbp + 0x20]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x28]
lea edx, [r9 + 8]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
je 0x14000ddfa
mov r8d, dword [rbp + 0x28]
mov edx, 1
mov ecx, edx
mov r9, rdi
call fcn.14000b80c
mov rcx, qword [rdi]
test rcx, rcx
jne 0x14001a089
mov rcx, rsi
call fcn.14000de40
mov rcx, qword [0x1400c02b8]
mov r8, rdi
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 + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [0x1400be2f8]
lea rdx, [0x1400be2f8]
cmp rcx, rdx
je 0x14000dd1b
test byte [rcx + 0x44], 0x20
je 0x14000dd1b
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400b3c30]
mov edx, 0xd
mov r9d, eax
call fcn.14002c238
nop
jmp 0x14000dd1b
mov edx, 0x1d4c0
call fcn.14005dd50
test eax, eax
jns 0x14000dd31
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
nop
jmp 0x14000dd31
mov rbx, qword [rbp + 0x30]
jmp 0x14000dd9f
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
jmp 0x14000de06
Function at 0x14000dfec
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x1400be7a8]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor ebp, ebp
mov rsi, r9
mov r14, r8
mov r12, rdx
mov r13, rcx
test rdx, rdx
je 0x14000e1ee
mov ebx, 0x208
lea r9, str.winspool
mov edx, ebx
lea r8, [0x1400a1a30]
lea rcx, [rsp + 0x30]
call fcn.14000e1f8
or rdi, 0xffffffffffffffff
lea rax, [rsp + 0x30]
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], bp
jne 0x14000e057
mov r15d, ecx
lea rbp, [rsp + 0x30]
mov edx, ebx
sub edx, ecx
lea rbp, [rbp + r15*2]
mov rcx, rbp
test r14, r14
jne 0x14001a0d8
mov eax, dword [rsi]
lea r9, [0x1400a1a28]
lea r8, str._s_.2d:
mov dword [rsp + 0x20], eax
call fcn.14000e1f8
inc dword [rsi]
cmp dword [rsi], 0x63
ja 0x14001a0d0
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov rcx, rbp
mov rsi, rax
call fcn.14000e370
test rsi, rsi
je 0x14000e0be
mov rcx, rsi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
xor esi, esi
lea rcx, [rsp + 0x30]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], si
jne 0x14000e0c8
mov rcx, qword [r13 + 0x10]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rdx, rbx
lea rax, [rsp + 0x30]
cmp word [rax], si
je 0x14000e119
add rax, 2
sub rdx, 1
jne 0x14000e10a
mov rcx, rbx
mov rax, rdx
sub rcx, rdx
neg rax
sbb r8, r8
and r8, rcx
test rdx, rdx
je 0x14000e17c
lea rcx, [rsp + 0x30]
lea rcx, [rcx + r8*2]
sub rbx, r8
je 0x14000e16e
lea rdx, str._15_45
mov eax, 0x7ffffffe
sub rdx, rcx
test rax, rax
je 0x14000e16e
movzx r8d, word [rdx + rcx]
test r8w, r8w
je 0x14000e16e
mov word [rcx], r8w
dec rax
add rcx, 2
sub rbx, 1
jne 0x14000e14d
test rbx, rbx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], si
lea rax, [rsp + 0x30]
inc rdi
cmp word [rax + rdi*2], si
jne 0x14000e181
lea r8d, [rdi*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], r8d
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [r13 + 0x18]
mov rdx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov eax, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140014250
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
jmp 0x14000e1c2
and dword [rsi], 0
jmp 0x14000e0a1
mov r8, r14
call fcn.14000b6f0
lea rcx, [rsp + 0x30]
mov edx, 0x2c
lea rcx, [rcx + r15*2]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
xor esi, esi
test rax, rax
je 0x14000e0c0
mov word [rax], si
jmp 0x14000e0c0
Function at 0x14000e370
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea rax, [r11 + 0x18]
mov rsi, rcx
mov qword [r11 + 0x18], rbx
xor r8d, r8d
mov qword [r11 - 0x18], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionPorts
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 2]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14000e3ec
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 2
lea r9d, [rbx + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov word [rsp + 0x48], bx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000e402
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x58]
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000e9d4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400be7a8]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.14001182c
lea rdx, str.Local_SettingsPrintersPropertyBags
lea rcx, [rsp + 0x58]
call fcn.1400104b8
test eax, eax
js 0x14000ea64
mov rdx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
and qword [rsp + 0x48], 0
mov r9d, 0x1000b
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14001a476
lea rcx, [rsp + 0x48]
call fcn.140013b90
mov rdx, qword [rsp + 0x58]
call fcn.1400105ac
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140014250
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
xor edx, edx
lea rcx, [0x1400b3430]
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
and qword [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
mov rbx, rax
call fcn.140071b7c
test rbx, rbx
je 0x14001a549
lea rdx, str.SplIsValidUserPropertyBag
mov qword [rsp + 0x40], rbx
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14001a54f
xor ebx, ebx
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x50]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x60]
and qword [rsp + 0x28], 0
mov edx, ebx
mov rcx, qword [rsp + 0x48]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001a54f
movabs r10, 0xaaed3f023adb1270
lea rcx, [rsp + 0x60]
mov rax, rdi
call qword [case.0x140007f48.0]
test al, al
jne 0x14001a545
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
nop dword [rax + rax]
inc ebx
jmp 0x14001a4d2
and qword [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
call fcn.140071b7c
nop
jmp 0x14000ea5a
Function at 0x14000fbcc
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, qword [0x1400c0298]
xor esi, esi
and qword [rax + 8], rsi
mov r13, r9
mov r12, r8
mov ebp, edx
mov rbx, qword [r15 + 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
inc dword [rbx + 0x2c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov dword [rbx + 0x28], eax
mov rax, r12
neg rax
mov eax, 0x80070057
sbb edi, edi
not edi
and edi, eax
test r12, r12
je 0x14000fc7a
and dword [r12], esi
lea rcx, [r15 + 0x38]
test rcx, rcx
je 0x14001ac61
xor eax, eax
lea edi, [rsi + 1]
add rcx, 8
je 0x14000fc5c
mov rax, qword [rcx + 0x10]
test rcx, rcx
je 0x14000fc7a
cmp rax, rcx
je 0x14000fc7a
mov edx, ebp
sub edx, dword [rax + 0x24]
js 0x14000fc7a
test edx, edx
jne 0x14001ac58
mov rsi, rax
xor edi, edi
test edi, edi
jne 0x14000fddb
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14000fb90
mov edi, eax
test eax, eax
js 0x14000fd5a
mov r14, qword [rsp + 0x70]
mov rcx, r13
mov rbp, qword [r14 + 0x28]
mov rdx, rbp
call fcn.1400122c0
xor r13d, r13d
mov edi, eax
test eax, eax
js 0x14000fd2e
mov qword [rsp + 0x70], r13
lea r8, [0x1400a1c7c]
mov rax, qword [rsi + 0x30]
lea r9, [0x1400a1c80]
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], r8
call fcn.1400105dc
mov ecx, eax
call fcn.14000be80
mov edi, eax
test eax, eax
js 0x14000fd2e
mov rdx, qword [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, qword [0x1400c02b8]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp dword [r14 + 0x24], r13d
jne 0x14000fd5a
dec dword [r15 + 0x30]
mov edx, 1
mov rax, qword [r14]
mov dword [r12], edx
movabs r10, 0xda74867c1459e070
mov rax, qword [rax]
mov rcx, r14
call qword [case.0x140007f48.0]
test rsi, rsi
je 0x14000fd7d
mov rax, qword [rsi]
movabs r10, 0xda74867c1459e070
mov rax, qword [rax]
mov edx, 1
mov rcx, rsi
call qword [case.0x140007f48.0]
test edi, edi
jns 0x14000fd9e
mov rcx, qword [0x1400be2f8]
lea rax, [0x1400be2f8]
cmp rcx, rax
je 0x14000fd9e
test byte [rcx + 0x44], 0x20
jne 0x14001ac68
add dword [rbx + 0x2c], 0xffffffff
mov eax, dword [rbx + 0x2c]
jne 0x14000fdab
and dword [rbx + 0x28], 0
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test edi, edi
mov eax, 0x80004005
cmovns edi, eax
jmp 0x14000fd5a
mov rax, qword [rax + 0x10]
jmp 0x14000fc5c
mov edi, eax
jmp 0x14000fc7a
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400b3c88]
mov edx, 0xd
mov r9d, edi
call fcn.14002c27c
nop
jmp 0x14000fd9e
Function at 0x14001147c
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.14000be80
mov dword [rbx + 0x18], eax
add rsp, 0x40
pop rbx
ret