Function at 0x1400053a8
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3f98]
mov eax, 0x4070
call fcn.14001af70
sub rsp, rax
mov rax, qword [0x14002bed8]
xor rax, rsp
mov qword [rbp + 0x3f60], rax
xor ebx, ebx
mov r15, rcx
test rcx, rcx
je 0x1400056e9
lea rcx, [rbp + 0x1f60]
test edx, edx
je 0x1400055d5
xor edx, edx
mov r8d, 0x2000
call sub.msvcrt.dll_memset
xor r14d, r14d
lea rdi, [r15 + 0x28]
mov esi, 0x1000
mov r13d, 0x80040201
cmp dword [rdi], 0xffffffff
mov r12, r14
je 0x1400056e9
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x2000
call sub.msvcrt.dll_memset
mov r14, qword [rdi - 0x28]
mov rdx, rsi
test r14, r14
je 0x140005480
mov r8, qword [rdi - 0x20]
lea rcx, [rbp + 0x1f60]
call fcn.140005370
test eax, eax
js 0x1400056eb
mov r8, qword [rdi - 0x20]
lea rcx, [rsp + 0x60]
mov rdx, rsi
call fcn.140005370
mov ebx, eax
test eax, eax
js 0x1400056eb
jmp 0x1400054dc
lea r8, [rbp + 0x1f60]
lea rcx, [rsp + 0x60]
call fcn.140005370
test eax, eax
js 0x1400056eb
lea r8, [0x14001fcd8]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140005324
test eax, eax
js 0x1400056eb
mov r8, qword [rdi - 0x20]
lea rcx, [rsp + 0x60]
mov rdx, rsi
call fcn.140005324
mov ebx, eax
test eax, eax
js 0x1400056eb
mov r14, r12
test r12, r12
je 0x1400055c3
test byte [rdi], 6
je 0x1400054f9
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.140005120
test eax, 0xfffffffd
jne 0x1400055c3
test byte [rdi], 8
lea rdx, [rsp + 0x60]
mov rcx, r14
je 0x140005522
mov r8, qword [rdi - 0x18]
call fcn.140005270
test eax, 0xfffffffd
je 0x1400055ba
mov ebx, r13d
jmp 0x1400055ba
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi - 8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400055c3
mov rcx, qword [rdi - 0x10]
test rcx, rcx
je 0x1400055a9
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
mov rdx, qword [rdi - 0x18]
mov r9d, 1
xor r8d, r8d
lea ecx, [rax*2 + 2]
mov rax, qword [rdi - 0x10]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x58]
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, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
add rdi, 0x30
jmp 0x140005421
xor edx, edx
mov rcx, r15
call fcn.1400053a8
mov eax, r13d
jmp 0x1400056eb
mov r12d, 0x2000
xor edx, edx
mov r8d, r12d
call sub.msvcrt.dll_memset
xor r14d, r14d
lea rdi, [r15 + 8]
mov esi, 0x1000
mov r13d, 0x80040201
cmp dword [rdi + 0x20], 0xffffffff
mov r15, r14
je 0x1400056e9
mov r8, r12
lea rcx, [rsp + 0x60]
xor edx, edx
call sub.msvcrt.dll_memset
mov r14, qword [rdi - 8]
mov rdx, rsi
test r14, r14
je 0x140005652
mov r8, qword [rdi]
lea rcx, [rbp + 0x1f60]
call fcn.140005370
test eax, eax
js 0x1400056eb
mov r8, qword [rdi]
lea rcx, [rsp + 0x60]
mov rdx, rsi
call fcn.140005370
mov ebx, eax
test eax, eax
js 0x1400056eb
jmp 0x1400056a1
lea r8, [rbp + 0x1f60]
lea rcx, [rsp + 0x60]
call fcn.140005370
test eax, eax
js 0x1400056eb
lea r8, [0x14001fcd8]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140005324
test eax, eax
js 0x1400056eb
mov r8, qword [rdi]
lea rcx, [rsp + 0x60]
mov rdx, rsi
call fcn.140005324
mov ebx, eax
test eax, eax
js 0x1400056eb
mov r14, r15
test r15, r15
je 0x1400056e0
test byte [rdi + 0x20], 0xb
jne 0x1400056c0
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.140005120
test eax, 0xfffffffd
je 0x1400056e0
mov ebx, r13d
jmp 0x1400056e0
test byte [rdi + 0x20], 8
je 0x1400056e0
mov r8, qword [rdi + 8]
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.140005270
test eax, 0xfffffffd
cmovne ebx, r13d
add rdi, 0x30
jmp 0x1400055f7
mov eax, ebx
mov rcx, qword [rbp + 0x3f60]
xor rcx, rsp
call fcn.140002010
lea r11, [rsp + 0x4070]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret