joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ed28
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 [0x1400b77a8]
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
jne 0x14000ed6b
xor eax, eax
jmp 0x14000ef02
mov edi, 0x208
lea r9, str.winspool
mov edx, edi
lea r8, [0x14009cd10]
lea rcx, [rsp + 0x30]
call fcn.14000ef34
or rbx, 0xffffffffffffffff
lea rax, [rsp + 0x30]
mov rcx, rbx
inc rcx
cmp word [rax + rcx*2], bp
jne 0x14000ed96
mov r15d, ecx
lea rbp, [rsp + 0x30]
mov edx, edi
sub edx, ecx
lea rbp, [rbp + r15*2]
mov rcx, rbp
test r14, r14
jne 0x14000ee64
mov eax, dword [rsi]
lea r9, [0x14009ccf4]
lea r8, str._s_.2d:
mov dword [rsp + 0x20], eax
call fcn.14000ef34
inc dword [rsi]
cmp dword [rsi], 0x63
jbe 0x14000eddf
and dword [rsi], r14d
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov rcx, rbp
mov rsi, rax
call fcn.14000f018
test rsi, rsi
je 0x14000edfc
mov rcx, rsi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
xor esi, esi
lea rcx, [rsp + 0x30]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], si
jne 0x14000ee06
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 rcx, rdi
lea rax, [rsp + 0x30]
cmp word [rax], si
je 0x14000ee57
add rax, 2
sub rcx, 1
jne 0x14000ee48
test rcx, rcx
je 0x14000ee99
mov rax, rdi
sub rax, rcx
jmp 0x14000ee9c
mov r8, r14
call fcn.14000c210
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 0x14000edfe
mov word [rax], si
jmp 0x14000edfe
mov rax, rsi
test rcx, rcx
je 0x14000eebc
sub rdi, rax
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rax*2]
mov rdx, rdi
lea r9, str._15_45
call fcn.140016958
lea rax, [rsp + 0x30]
inc rbx
cmp word [rax + rbx*2], si
jne 0x14000eec1
lea r8d, [rbx*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.140013430
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000f018
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 0x14000f094
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 0x14000f0aa
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 0x14000f578
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 - 0x190]
sub rsp, 0x290
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.140010ba0
lea rdx, str.Local_SettingsPrintersPropertyBags
lea rcx, [rsp + 0x58]
call fcn.140010aa0
test eax, eax
js 0x14000f608
mov rdx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
and qword [rsp + 0x40], 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 0x14002b714
lea rcx, [rsp + 0x40]
call fcn.140012d98
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.140010ca0
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140013430
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
xor edx, edx
lea rcx, [0x1400abdd8]
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x50]
mov rbx, rax
call fcn.14006b85c
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x14002b7dd
lea rdx, str.SplIsValidUserPropertyBag
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 0x14002b7dd
xor ebx, ebx
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x48]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
mov edx, ebx
mov rcx, qword [rsp + 0x40]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002b7dd
lea rcx, [rsp + 0x70]
mov rax, rdi
call qword [0x140098d58]
test al, al
jne 0x14002b7d9
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
nop dword [rax + rax]
inc ebx
jmp 0x14002b770
lea rcx, [rsp + 0x50]
call fcn.14006b85c
nop
jmp 0x14000f5fe
Function at 0x14003006c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor r15d, r15d
mov r14, r8
mov qword [r8], r15
mov ebx, 0x104
mov r8, rcx
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14000c210
mov ecx, ebx
lea rax, [rsp + 0x50]
cmp word [rax], r15w
je 0x1400300d2
add rax, 2
sub rcx, 1
jne 0x1400300c2
test rcx, rcx
je 0x1400300df
mov rax, rbx
sub rax, rcx
jmp 0x1400300e2
mov rax, r15
test rcx, rcx
je 0x140030102
mov rdx, rbx
lea rcx, [rsp + 0x50]
sub rdx, rax
lea rcx, [rcx + rax*2]
lea r9, [0x1400a9d20]
call fcn.140016958
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
lea r12, [fcn.14002ddc0]
mov rdi, rax
test rax, rax
jne 0x140030156
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14003025b
mov edx, 0xc9
mov rcx, qword [rbp + 0x198]
call fcn.14002f5ec
mov esi, eax
jmp 0x14003025e
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov rcx, rdi
mov dword [rsp + 0x38], r15d
call fcn.14002eb74
mov esi, eax
test eax, eax
jns 0x14003018c
mov rcx, qword [rbp + 0x198]
mov r9d, eax
mov edx, 0xcf
call fcn.14002f60c
jmp 0x14003025e
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140016a18
test eax, eax
js 0x1400301c2
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
sub rbx, rax
lea r9, [0x1400a9d28]
mov rdx, rbx
lea rcx, [rcx + rax*2]
call fcn.140016958
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x1400301ec
mov edx, 0xd5
jmp 0x140030143
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14002eb74
mov esi, eax
test eax, eax
jns 0x14003022e
mov rcx, qword [rbp + 0x198]
mov r9d, eax
mov edx, 0xd7
call fcn.14002f60c
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], r12
call fcn.1400147dc
jmp 0x14003025e
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], r12
call fcn.1400147dc
movsxd rcx, dword [rsp + 0x38]
movsxd rax, dword [rsp + 0x40]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x14003027c
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r12
call fcn.1400147dc
mov eax, esi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140013430
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140052f80
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 0x140052fa5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
jmp 0x140052fa7
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, [0x1400a9ac8]
mov qword [rsp + 0x38], 4
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x50], 4
call fcn.1400531c8
mov rcx, qword [0x1400b72f8]
lea rbp, [0x1400b72f8]
cmp rcx, rbp
je 0x140053019
test byte [rcx + 0x1c], 4
je 0x140053019
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009c878]
mov edx, 0x1f
mov dword [rsp + 0x20], ebx
mov r9d, edi
call fcn.1400377f4
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 0x1400530a9
mov rcx, qword [0x1400b72f8]
cmp rcx, rbp
je 0x14005309e
test byte [rcx + 0x1c], 4
je 0x14005307e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400b72f8]
lea r8, [0x14009c878]
mov r9d, eax
mov edx, 0x20
mov rcx, qword [rcx + 0x10]
call fcn.1400307d8
mov rcx, qword [0x1400b72f8]
cmp rcx, rbp
je 0x14005309e
test byte [rcx + 0x1c], 4
je 0x14005309e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009c878]
mov edx, 0x21
call fcn.1400307ac
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 0x140053e10
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x1400b77a8]
xor rax, rsp
mov qword [rbp + 0x280], rax
xor r12d, r12d
mov r15, r8
cmp qword [0x1400b9948], r12
mov rbx, rcx
jne 0x140053e5e
mov eax, 0x80004005
jmp 0x14005403e
mov qword [rsp + 0x28], r12
mov byte [rsp + 0x30], r12b
test rbx, rbx
je 0x140053ec3
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140053b24
mov rcx, rbx
call fcn.140053b88
test al, al
je 0x140053ec3
mov rcx, qword [0x1400b72f8]
lea rsi, [0x1400b72f8]
cmp rcx, rsi
je 0x140053eb9
mov r14d, 2
test byte [rcx + 0x1c], r14b
je 0x140053eb9
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 8]
lea r8, [0x1400ab9f8]
call fcn.1400307ac
mov edi, 1
jmp 0x140054024
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x29c
call sub.msvcrt.dll_memset
mov dword [rsp + 0x40], 0x2b0
mov edi, 1
lea rsi, [0x1400b72f8]
movups xmm0, xmmword [0x1400ab9e8]
lea r14d, [rdi + 1]
movdqu xmmword [rsp + 0x44], xmm0
test r15, r15
je 0x140053f12
mov r8, r15
lea rcx, [rbp - 0x18]
mov edx, 0x104
call fcn.14000c210
jmp 0x140053f78
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea rdx, [rbp - 0x18]
mov ecx, r14d
call qword [sym.imp.SspiCli.dll_GetUserNameExW]
nop dword [rax + rax]
test al, al
jne 0x140053f78
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140053f4e
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x1400b72f8]
cmp rcx, rsi
je 0x140053f78
test byte [rcx + 0x1c], dil
je 0x140053f78
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ab9f8]
mov edx, 0xb
mov r9d, eax
call fcn.1400307d8
lea rdx, [rbp + 0x1f0]
mov rcx, rbx
call fcn.140053920
mov ebx, eax
test eax, eax
js 0x140053fa4
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x1f0]
call fcn.140053a94
mov ebx, eax
test eax, eax
jns 0x140053fe0
mov rcx, qword [0x1400b72f8]
cmp rcx, rsi
je 0x140053fce
test byte [rcx + 0x1c], r14b
je 0x140053fce
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ab9f8]
mov edx, 0xc
mov r9d, ebx
call fcn.1400307d8
mov word [rsp + 0x68], r14w
mov dword [rsp + 0x6c], r12d
cmp word [rbp - 0x18], r12w
je 0x140054022
mov rax, qword [0x1400b9948]
lea rcx, [rsp + 0x40]
call qword [0x140098d58]
mov ebx, eax
test eax, eax
jns 0x140054022
mov rcx, qword [0x1400b72f8]
cmp rcx, rsi
je 0x140054022
test byte [rcx + 0x1c], dil
je 0x140054022
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ab9f8]
mov edx, 0xd
mov r9d, eax
call fcn.1400307d8
mov edi, ebx
cmp byte [rsp + 0x30], r12b
je 0x14005403c
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelfEx]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.140013430
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400546a0
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 0x1400546dd
mov edi, 0xc0000017
jmp 0x14005471c
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.140054610
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 0x1400547f8
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 0x1400548c0
test rdx, rdx
je 0x1400548c0
test r8, r8
je 0x1400548c0
lea rax, [r11 - 0x28]
mov r9d, 0x20019
xor r8d, r8d
mov qword [r11 - 0x38], rax
lea rdx, [0x1400abad0]
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.14001a12c
mov ebx, eax
test eax, eax
js 0x1400548c5
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.14001a12c
mov ebx, eax
test eax, eax
js 0x1400548ad
test rdi, rdi
je 0x1400548ad
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 0x1400548c5
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 0x14005622c
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.140057090
mov edi, eax
test eax, eax
jne 0x1400562e2
mov ecx, dword [rbp + 0x40]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rbx, rax
test rax, rax
je 0x1400562dd
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 0x1400562e2
mov rcx, qword [0x1400b9518]
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 0x140056277
mov edi, 8
test edi, edi
mov r8, r15
cmovne r8, rbx
cmovne rbx, r15
test r8, r8
je 0x140056309
mov rcx, qword [0x1400b9518]
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 0x14005631e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test edi, edi
je 0x14005637d
mov edi, 0x709
mov r8, qword [rbp + 0x48]
test r8, r8
je 0x140056349
mov rcx, qword [0x1400b9518]
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 0x140056366
mov rcx, qword [0x1400b9518]
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, [0x1400abc30]
mov rdx, rsi
lea rcx, [rbp + 0x48]
call fcn.14001108c
mov edi, eax
test eax, eax
jne 0x140056327
mov rcx, qword [rbp + 0x48]
mov r8, r15
mov qword [r14], rcx
mov qword [rbp + 0x48], r15
jmp 0x14005632b
Function at 0x140056544
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, rdx
xor ebp, ebp
mov dword [r8], ebp
mov rdi, r8
mov rsi, rcx
mov qword [r11 + 0x18], rbp
lea r8, [r11 + 0x18]
mov edx, 0x20019
mov rcx, rax
call fcn.140057090
mov ebx, eax
test eax, eax
jne 0x1400565bf
mov rcx, qword [rsp + 0x60]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionDevices
mov qword [rsp + 0x30], rbp
mov r9d, 0xffff
mov qword [rsp + 0x28], rbp
mov r8, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1400565bf
mov dword [rdi], 1
jmp 0x1400565c5
cmp ebx, 2
cmove ebx, ebp
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400565db
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x1400565fc
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
xor ebx, ebx
mov rdi, rdx
and qword [rbp + 0x38], rbx
mov rsi, rcx
and qword [rbp + 0x30], rbx
and qword [rbp + 0x28], rbx
test rdx, rdx
jne 0x14005663b
lea rdx, [rbp + 0x30]
xor ecx, ecx
call fcn.14001186c
lea ecx, [rdi + 2]
test eax, eax
mov rdi, qword [rbp + 0x30]
cmove ebx, ecx
test ebx, ebx
jne 0x1400566a7
lea r8, [rbp + 0x38]
mov edx, 0x20006
mov rcx, rsi
call fcn.140057090
mov ebx, eax
test eax, eax
jne 0x1400566a7
and qword [rsp + 0x30], 0
lea r8, [0x1400a9a30]
mov qword [rsp + 0x28], rdi
lea r9, str.SessionDefaultDevices
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov qword [rsp + 0x20], r8
lea rcx, [rbp + 0x28]
call fcn.14001108c
mov ebx, eax
test eax, eax
jne 0x1400566a7
mov rdx, qword [rbp + 0x28]
lea r8, str.Device
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegDeleteKeyValueW]
nop dword [rax + rax]
mov ebx, eax
mov r8, qword [rbp + 0x28]
test r8, r8
je 0x1400566ca
mov rcx, qword [0x1400b9518]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
and qword [rbp + 0x28], 0
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x1400566e4
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
and qword [rbp + 0x30], 0
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400566f9
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140056d40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r12d, r12d
mov rsi, r8
mov qword [rbp - 0x10], r12
mov r14, rcx
mov qword [rbp + 0x50], r12
mov ebx, r12d
mov qword [r8], r12
lea r13d, [r12 + 2]
test rdx, rdx
jne 0x140056d8d
lea rdx, [rbp - 0x10]
xor ecx, ecx
call fcn.14001186c
mov rdx, qword [rbp - 0x10]
test eax, eax
cmove ebx, r13d
test ebx, ebx
jne 0x140056ece
mov qword [rsp + 0x30], r12
lea r8, [0x1400a9a30]
mov qword [rsp + 0x28], rdx
lea r9, str.SessionDefaultDevices
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov qword [rsp + 0x20], r8
lea rcx, [rbp + 0x50]
call fcn.14001108c
mov ebx, eax
test eax, eax
jne 0x140056ece
mov r15, qword [rbp + 0x50]
lea r8, [rbp + 0x58]
mov edx, 0x20019
mov dword [rbp + 0x48], 0x410
mov rcx, r14
mov qword [rbp + 0x58], r12
mov rdi, r12
call fcn.140057090
mov ebx, eax
test eax, eax
jne 0x140056e5d
mov ecx, dword [rbp + 0x48]
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
test rax, rax
je 0x140056e58
mov rcx, qword [rbp + 0x58]
lea rax, [rbp + 0x48]
mov qword [rsp + 0x30], rax
lea r8, str.Device
mov qword [rsp + 0x28], rdi
mov r9d, r13d
mov rdx, r15
mov qword [rsp + 0x20], r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xea
jne 0x140056e5d
mov rcx, qword [0x1400b9518]
mov r8, rdi
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x140056df5
mov ebx, 8
test ebx, ebx
mov r8, r12
cmovne r8, rdi
cmovne rdi, r12
test r8, r8
je 0x140056e84
mov rcx, qword [0x1400b9518]
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 + 0x58]
test rcx, rcx
je 0x140056e99
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x140056eb1
mov rcx, rdi
call fcn.1400570e0
mov ebx, eax
test eax, eax
jne 0x140056eb1
mov qword [rsi], rdi
mov rdi, r12
test rdi, rdi
je 0x140056ece
mov rcx, qword [0x1400b9518]
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 r8, qword [rbp + 0x50]
test r8, r8
je 0x140056ef0
mov rcx, qword [0x1400b9518]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov qword [rbp + 0x50], r12
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140056f05
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret