Function at 0x140013810
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x1400c9080]
xor rax, rsp
mov qword [rbp + 0xd8], rax
mov r15, r8
mov r13, rdx
add rdx, 8
cmp qword [r13 + 0x20], 7
jbe 0x14001384f
mov rdx, qword [rdx]
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400138da
lea rdx, str.Failed_to_open_Registry_key:
lea rcx, [0x1400cadc0]
call fcn.14000bd60
mov rbx, rax
mov rdx, r13
lea rcx, [rsp + 0x40]
call fcn.14002bd40
nop
lea rdx, [rax + 8]
cmp qword [rax + 0x20], 0xf
jbe 0x1400138a0
mov rdx, qword [rdx]
mov r8, qword [rax + 0x18]
mov rcx, rbx
call fcn.14000e500
mov rcx, rax
call fcn.14000c010
nop
lea rcx, [rsp + 0x40]
call fcn.14000a300
mov rcx, qword [rsp + 0x40]
xor edi, edi
mov qword [rsp + 0x40], rdi
mov edx, 0x10
call fcn.14000d2e0
jmp 0x140013ddd
xor edi, edi
mov dword [rbp + 0xb0], edi
lea rsi, [r15 + 8]
mov rdx, rsi
cmp qword [r15 + 0x20], 7
jbe 0x1400138f3
mov rdx, qword [rsi]
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013d0e
mov eax, dword [rbp + 0xb0]
test eax, eax
je 0x140013d0e
xorps xmm0, xmm0
mov r14d, eax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xb8], xmm1
movdqu xmmword [rbp + 0xc8], xmm0
lea rax, [rbp + 0xb4]
mov qword [rsp + 0x38], rax
mov ecx, 0x10
call fcn.140034c10
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0xb8]
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0xb8], rax
test r14, r14
je 0x1400139ae
mov ecx, r14d
call fcn.14000c280
mov qword [rbp + 0xc0], rax
lea rbx, [rax + r14]
mov qword [rbp + 0xd0], rbx
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.1400999f0
mov qword [rbp + 0xc8], rbx
mov rdx, rsi
cmp qword [r15 + 0x20], 7
jbe 0x1400139bb
mov rdx, qword [rsi]
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140013aa3
lea rdx, str.Failed_to_read_Registry_value:
lea rcx, [0x1400cadc0]
call fcn.14000bd60
mov rbx, rax
mov rdx, r13
lea rcx, [rbp - 0x70]
call fcn.14002bd40
nop
lea rdx, [rax + 8]
cmp qword [rax + 0x20], 0xf
jbe 0x140013a1f
mov rdx, qword [rdx]
mov r8, qword [rax + 0x18]
mov rcx, rbx
call fcn.14000e500
lea rdx, [0x1400bb890]
mov rcx, rax
call fcn.14000bd60
mov rbx, rax
mov rdx, r15
lea rcx, [rsp + 0x68]
call fcn.14002bd40
nop
lea rdx, [rax + 8]
cmp qword [rax + 0x20], 0xf
jbe 0x140013a59
mov rdx, qword [rdx]
mov r8, qword [rax + 0x18]
mov rcx, rbx
call fcn.14000e500
mov rcx, rax
call fcn.14000c010
nop
lea rcx, [rsp + 0x68]
call fcn.14000a300
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x68], rdi
mov edx, 0x10
call fcn.14000d2e0
nop
lea rcx, [rbp - 0x70]
call fcn.14000a300
mov rcx, qword [rbp - 0x70]
mov qword [rbp - 0x70], rdi
jmp 0x140013bc3
mov r14, qword [rbp + 0xc8]
mov rbx, qword [rbp + 0xc0]
cmp rbx, r14
je 0x140013adc
call fcn.140053720
and eax, 0x800000ff
jge 0x140013acb
dec eax
or eax, 0xffffff00
inc eax
mov byte [rbx], al
inc rbx
cmp rbx, r14
jne 0x140013ab6
mov rbx, qword [rbp + 0xc0]
cmp qword [r15 + 0x20], 7
jbe 0x140013ae7
mov rsi, qword [r15 + 8]
mov eax, dword [rbp + 0xb0]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 3
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140013be1
lea rdx, str.Failed_to_set_Registry_value:
lea rcx, [0x1400cadc0]
call fcn.14000bd60
mov rbx, rax
mov rdx, r13
lea rcx, [rbp - 0x20]
call fcn.14002bd40
nop
lea rdx, [rax + 8]
cmp qword [rax + 0x20], 0xf
jbe 0x140013b48
mov rdx, qword [rdx]
mov r8, qword [rax + 0x18]
mov rcx, rbx
call fcn.14000e500
lea rdx, [0x1400bb890]
mov rcx, rax
call fcn.14000bd60
mov rbx, rax
mov rdx, r15
lea rcx, [rbp - 0x48]
call fcn.14002bd40
nop
lea rdx, [rax + 8]
cmp qword [rax + 0x20], 0xf
jbe 0x140013b81
mov rdx, qword [rdx]
mov r8, qword [rax + 0x18]
mov rcx, rbx
call fcn.14000e500
mov rcx, rax
call fcn.14000c010
nop
lea rcx, [rbp - 0x48]
call fcn.14000a300
mov rcx, qword [rbp - 0x48]
mov qword [rbp - 0x48], rdi
mov edx, 0x10
call fcn.14000d2e0
nop
lea rcx, [rbp - 0x20]
call fcn.14000a300
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x20], rdi
mov edx, 0x10
call fcn.14000d2e0
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x140013cb5
lea rdx, str.Spoofed___
lea rcx, [0x1400cac40]
call fcn.14000bd60
mov rbx, rax
mov rdx, r13
lea rcx, [rbp + 0x30]
call fcn.14002bd40
nop
lea rdx, [rax + 8]
cmp qword [rax + 0x20], 0xf
jbe 0x140013c12
mov rdx, qword [rdx]
mov r8, qword [rax + 0x18]
mov rcx, rbx
call fcn.14000e500
lea rdx, [0x1400bb890]
mov rcx, rax
call fcn.14000bd60
mov rbx, rax
mov rdx, r15
lea rcx, [rbp + 8]
call fcn.14002bd40
nop
lea rdx, [rax + 8]
cmp qword [rax + 0x20], 0xf
jbe 0x140013c4b
mov rdx, qword [rdx]
mov r8, qword [rax + 0x18]
mov rcx, rbx
call fcn.14000e500
lea rdx, str._::__Binary_Data_
mov rcx, rax
call fcn.14000bd60
mov rcx, rax
call fcn.14000c010
nop
lea rcx, [rbp + 8]
call fcn.14000a300
mov rcx, qword [rbp + 8]
mov qword [rbp + 8], rdi
mov edx, 0x10
call fcn.14000d2e0
nop
lea rcx, [rbp + 0x30]
call fcn.14000a300
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x30], rdi
mov edx, 0x10
call fcn.14000d2e0
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
lea rcx, [rbp + 0xb8]
call fcn.140003160
mov rcx, qword [rbp + 0xc0]
test rcx, rcx
je 0x140013cee
mov rdx, qword [rbp + 0xd0]
sub rdx, rcx
call fcn.14000d2e0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd0], rdi
mov rcx, qword [rbp + 0xb8]
mov qword [rbp + 0xb8], rdi
mov edx, 0x10
call fcn.14000d2e0
movzx eax, bl
jmp 0x140013ddf
lea rdx, str.Failed_to_query_Registry_value:
lea rcx, [0x1400cadc0]
call fcn.14000bd60
mov rbx, rax
mov rdx, r13
lea rcx, [rbp + 0x80]
call fcn.14002bd40
nop
lea rdx, [rax + 8]
cmp qword [rax + 0x20], 0xf
jbe 0x140013d42
mov rdx, qword [rdx]
mov r8, qword [rax + 0x18]
mov rcx, rbx
call fcn.14000e500
lea rdx, [0x1400bb890]
mov rcx, rax
call fcn.14000bd60
mov rbx, rax
mov rdx, r15
lea rcx, [rbp + 0x58]
call fcn.14002bd40
nop
lea rdx, [rax + 8]
cmp qword [rax + 0x20], 0xf
jbe 0x140013d7b
mov rdx, qword [rdx]
mov r8, qword [rax + 0x18]
mov rcx, rbx
call fcn.14000e500
mov rcx, rax
call fcn.14000c010
nop
lea rcx, [rbp + 0x58]
call fcn.14000a300
mov rcx, qword [rbp + 0x58]
mov qword [rbp + 0x58], rdi
mov edx, 0x10
call fcn.14000d2e0
nop
lea rcx, [rbp + 0x80]
call fcn.14000a300
mov rcx, qword [rbp + 0x80]
mov qword [rbp + 0x80], rdi
mov edx, 0x10
call fcn.14000d2e0
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rbp + 0xd8]
xor rcx, rsp
call fcn.140034bd0
add rsp, 0x1e0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret