Function at 0x140002ba0
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x1400c77d8]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov rdi, r9
mov rsi, r8
mov r12, rdx
mov r13, rcx
test rdx, rdx
jne 0x140002be0
xor eax, eax
jmp 0x140002f5c
mov qword [rsp + 0x4c0], rbx
lea r9, str.winspool
mov qword [rsp + 0x478], r14
lea r8, [0x1400aaad0]
mov r14d, 0x208
mov qword [rsp + 0x470], r15
mov edx, r14d
lea rcx, [rsp + 0x50]
call fcn.140003054
mov rbx, 0xffffffffffffffff
lea rax, [rsp + 0x50]
mov rcx, rbx
nop dword [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140002c30
mov eax, ecx
lea r15, [rsp + 0x50]
mov edx, r14d
sub edx, ecx
lea r15, [r15 + rax*2]
mov rcx, r15
test rsi, rsi
jne 0x14000301e
mov eax, dword [rdi]
lea r9, [0x1400aaa38]
lea r8, str._s_.2d:
mov dword [rsp + 0x20], eax
call fcn.140003054
inc dword [rdi]
cmp dword [rdi], 0x63
jbe 0x140002c78
mov dword [rdi], esi
xor edi, edi
lea r9, [rsp + 0x30]
mov r8b, 1
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x30], rdi
lea edx, [rdi + 4]
lea rcx, [rdi - 2]
call qword [sym.imp.ntdll.dll_NtOpenThreadToken]
nop dword [rax + rax]
lea rsi, [0x1400c72a8]
test eax, eax
js 0x140002cc8
lea r9d, [rdi + 8]
lea r8, [rsp + 0x40]
lea edx, [rdi + 5]
lea rcx, [rdi - 2]
call qword [sym.imp.ntdll.dll_NtSetInformationThread]
nop dword [rax + rax]
jmp 0x140002ce8
cmp eax, 0xc000007c
jne 0x140002cf3
lea r8, [rsp + 0x30]
mov edx, 8
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
nop dword [rax + rax]
test eax, eax
js 0x140002cf3
mov rsi, qword [rsp + 0x30]
jmp 0x140002d65
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rax, qword [0x1400c72a8]
cmp rax, rsi
je 0x140002d4c
test byte [rax + 0x44], 0x20
je 0x140002d4c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c72a8]
lea r8, [0x1400aa820]
mov edx, 0x13
mov r9d, eax
mov rcx, qword [rcx + 0x38]
call fcn.14001c1f8
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140002d62
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rsi, rdi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionPorts
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140002dcf
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 2
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r15
mov word [rsp + 0x38], di
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140002de5
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test rsi, rsi
je 0x140002e59
mov qword [rsp + 0x40], rsi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r9d, 4
lea r8, [rsp + 0x38]
mov edi, eax
mov rcx, rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 4]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
nop dword [rax + rax]
mov ecx, edi
test eax, eax
je 0x140002f7b
cmp dword [rsp + 0x38], 2
je 0x140002f7b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
xor edi, edi
mov r15, qword [rsp + 0x470]
lea rcx, [rsp + 0x50]
mov rax, rbx
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140002e70
mov rcx, qword [r13 + 0x10]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rsp + 0x50]
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, r14
lea rax, [rsp + 0x50]
cmp word [rax], 0
je 0x140002ec5
add rax, 2
sub rcx, 1
jne 0x140002eb5
test rcx, rcx
je 0x140002ef9
lea rdx, [rcx - 0x208]
cmove rdx, rdi
lea r9, str._15_45
add rdx, r14
sub r14, rcx
add r14, r14
test rcx, rcx
lea rcx, [rsp + 0x50]
cmove r14, rdi
add rcx, r14
call fcn.1400109d0
mov r14, qword [rsp + 0x478]
lea rdx, [rsp + 0x50]
nop word [rax + rax]
cmp word [rdx + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x140002f10
mov rcx, qword [r13 + 0x18]
lea r8d, [rbx*2 + 2]
mov dword [rsp + 0x28], r8d
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov rdx, r12
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x4c0]
mov eax, 1
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.14000f060
add rsp, 0x480
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov r9d, 8
lea r8, [rsp + 0x40]
mov rcx, 0xfffffffffffffffe
lea edx, [r9 - 3]
call qword [sym.imp.ntdll.dll_NtSetInformationThread]
nop dword [rax + rax]
test eax, eax
jns 0x140002e46
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rax, qword [0x1400c72a8]
lea rcx, [0x1400c72a8]
cmp rax, rcx
je 0x140002e57
test byte [rax + 0x44], 0x20
je 0x140002e57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c72a8]
lea r8, [0x1400aa820]
mov edx, 0x14
mov r9d, eax
mov rcx, qword [rcx + 0x38]
call fcn.14001c1f8
jmp 0x140002e57
mov r8, rsi
call fcn.14001a894
mov edx, 0x2c
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
test rax, rax
je 0x140002e57
xor edi, edi
mov word [rax], di
jmp 0x140002e59