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

Disassembly:
jmp 0x140001cf0
push rdi
sub rsp, 0x310
mov rdi, rsp
mov ecx, 0xc4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14000b028]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov dword [rsp + 0x44], 0xffffffff
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [section..data]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x140001f87
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x74], 0x104
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x2b8], rax
mov byte [rsp + 0x2c0], 0
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
mov rdx, qword [str.Configuration]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xea
jne 0x140001e54
cmp dword [rsp + 0x74], 0
jbe 0x140001e54
cmp dword [rsp + 0x74], 0x40000
jae 0x140001e54
mov eax, dword [rsp + 0x74]
mov qword [rsp + 0x2e8], rax
mov eax, 2
mov rcx, qword [rsp + 0x2e8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call sub.MSVCR100.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsp + 0x2d8], rax
mov rax, qword [rsp + 0x2d8]
mov qword [rsp + 0x2b8], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
mov rdx, qword [str.Configuration]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x140001f7c
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCR100.dll__wcslwr_s]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x140001e87
mov eax, 0xffffffff
jmp 0x140001f8b
mov rdx, qword [0x14000b018]
lea rcx, [rsp + 0xa0]
call fcn.140001037
test rax, rax
je 0x140001eac
xor eax, eax
jmp 0x140001f8b
mov eax, dword [rsp + 0x74]
mov qword [rsp + 0x2f0], rax
mov rcx, qword [0x14000b018]
call qword [sym.imp.MSVCR100.dll_wcslen]
mov rcx, qword [rsp + 0x2f0]
lea rax, [rcx + rax*2 + 2]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x74]
mov qword [rsp + 0x2f8], rax
mov eax, 2
mov rcx, qword [rsp + 0x2f8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call sub.MSVCR100.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsp + 0x2e0], rax
mov rax, qword [rsp + 0x2e0]
mov qword [rsp + 0x2c8], rax
cmp qword [rsp + 0x2c8], 0
je 0x140001f7c
mov r9, qword [0x14000b018]
lea r8, [rsp + 0xa0]
lea rdx, str._s__s
mov rcx, qword [rsp + 0x2c8]
call qword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x2c8]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [str.Configuration]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x48]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140008890]
call fcn.140002fb0
mov rax, rdi
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140002f90
add rsp, 0x310
pop rdi
ret