Function at 0x140046140
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x328
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x14018f080]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
lea rcx, [rbp + 0x230]
call fcn.14003be80
nop
lea rax, [rbp]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 1]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 2]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp]
movzx r8d, byte [rbp + 1]
movzx edx, byte [rbp + 2]
lea rcx, [rbp + 0x140]
call fcn.140045720
mov rcx, rax
call fcn.1400470d0
lea r8, [rbp + 0x230]
mov rdx, rax
lea rcx, [rbp + 0x270]
call fcn.140045c30
nop
lea rax, [rbp + 3]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 5]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 3]
movzx r8d, byte [rbp + 4]
movzx edx, byte [rbp + 5]
lea rcx, [rbp + 0xc0]
call fcn.140045880
mov rcx, rax
call fcn.140046b40
mov r8, qword [rsp + 0x340]
mov rdx, rax
lea rcx, [rbp + 0x250]
call fcn.140045c30
nop
lea rcx, [rbp + 0x270]
call fcn.14003f1d0
lea r8, [rbp + 0x220]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x1400462a7
mov byte [rbp + 6], 0
lea rcx, [rbp + 0x250]
call fcn.1400393f0
nop
lea rcx, [rbp + 0x270]
call fcn.1400393f0
nop
lea rcx, [rbp + 0x230]
call fcn.1400393f0
movzx eax, byte [rbp + 6]
jmp 0x1400467bd
lea rcx, [rbp + 0x250]
call fcn.14003fda0
shl rax, 1
mov dword [rbp + 0x2c], eax
lea rcx, [rbp + 0x250]
call fcn.14003f1d0
mov qword [rbp + 0x50], rax
lea rax, [rbp + 7]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 9]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 7]
movzx r8d, byte [rbp + 8]
movzx edx, byte [rbp + 9]
lea rcx, [rbp + 0x100]
call fcn.140045a40
mov rcx, rax
call fcn.140046ec0
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x220]
mov qword [rbp + 0x60], rax
mov eax, dword [rbp + 0x2c]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 2
mov r8, qword [rbp + 0x58]
xor edx, edx
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x1400463a7
call fcn.140046100
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x220]
mov qword [rbp + 0x68], rax
mov rcx, qword [rbp + 0x68]
call qword [rbp + 0x70]
mov byte [rbp + 0xa], 0
lea rcx, [rbp + 0x250]
call fcn.1400393f0
nop
lea rcx, [rbp + 0x270]
call fcn.1400393f0
nop
lea rcx, [rbp + 0x230]
call fcn.1400393f0
movzx eax, byte [rbp + 0xa]
jmp 0x1400467bd
lea rax, [rbp + 0xb]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0xc]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0xd]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0xb]
movzx r8d, byte [rbp + 0xc]
movzx edx, byte [rbp + 0xd]
lea rcx, [rbp + 0xd0]
call fcn.140045ac0
mov rcx, rax
call fcn.140046b40
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x220]
mov qword [rbp + 0x80], rax
mov dword [rsp + 0x28], 4
lea rax, [0x140171498]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8, qword [rbp + 0x78]
xor edx, edx
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x14004649b
call fcn.140046120
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x220]
mov qword [rbp + 0x88], rax
mov rcx, qword [rbp + 0x88]
call qword [rbp + 0x90]
mov byte [rbp + 0xe], 0
lea rcx, [rbp + 0x250]
call fcn.1400393f0
nop
lea rcx, [rbp + 0x270]
call fcn.1400393f0
nop
lea rcx, [rbp + 0x230]
call fcn.1400393f0
movzx eax, byte [rbp + 0xe]
jmp 0x1400467bd
call fcn.140046110
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0x220]
mov qword [rbp + 0x98], rax
mov rcx, qword [rbp + 0x98]
call qword [rbp + 0xa0]
lea rax, [rbp + 0xf]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x11]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0xf]
movzx r8d, byte [rbp + 0x10]
movzx edx, byte [rbp + 0x11]
lea rcx, [rbp + 0xe0]
call fcn.140045830
mov rcx, rax
call fcn.140046b40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0
jne 0x14004655b
mov byte [rbp + 0x12], 0
lea rcx, [rbp + 0x250]
call fcn.1400393f0
nop
lea rcx, [rbp + 0x270]
call fcn.1400393f0
nop
lea rcx, [rbp + 0x230]
call fcn.1400393f0
movzx eax, byte [rbp + 0x12]
jmp 0x1400467bd
lea rax, [rbp + 0x13]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x14]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x15]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x13]
movzx r8d, byte [rbp + 0x14]
movzx edx, byte [rbp + 0x15]
lea rcx, [rbp + 0x120]
call fcn.140045b60
mov rcx, rax
call fcn.140046cb0
mov rdx, rax
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x40], rax
lea rax, [rbp + 0x16]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x17]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x18]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x16]
movzx r8d, byte [rbp + 0x17]
movzx edx, byte [rbp + 0x18]
lea rcx, [rbp + 0xf0]
call fcn.140045be0
mov rcx, rax
call fcn.140046b40
mov rdx, rax
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0xa8], rax
mov dword [rbp + 0x30], 0xa
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x48], rax
lea r9, [rbp + 0x228]
xor r8d, r8d
mov dl, 1
mov ecx, dword [rbp + 0x30]
call qword [rbp + 0x48]
mov dword [rbp + 0x20], eax
cmp dword [rbp + 0x20], 0
jge 0x140046681
mov byte [rbp + 0x19], 0
lea rcx, [rbp + 0x250]
call fcn.1400393f0
nop
lea rcx, [rbp + 0x270]
call fcn.1400393f0
nop
lea rcx, [rbp + 0x230]
call fcn.1400393f0
movzx eax, byte [rbp + 0x19]
jmp 0x1400467bd
lea rax, [rbp + 0x1a]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x1b]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x1c]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x1a]
movzx r8d, byte [rbp + 0x1b]
movzx edx, byte [rbp + 0x1c]
lea rcx, [rbp + 0x1a0]
call fcn.1400458d0
mov rcx, rax
call fcn.140047630
lea r8, [rbp + 0x230]
mov rdx, rax
lea rcx, [rbp + 0x290]
call fcn.140045c30
nop
lea rcx, [rbp + 0x290]
call fcn.14003f1d0
mov rdx, rax
lea rcx, [rbp + 0x2b0]
call sub.ntdll.dll_RtlInitUnicodeString
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0xb0], rax
lea rcx, [rbp + 0x2b0]
call qword [rbp + 0xb0]
mov dword [rbp + 0x20], eax
cmp dword [rbp + 0x20], 0xc000010e
jne 0x140046769
mov byte [rbp + 0x1d], 1
lea rcx, [rbp + 0x290]
call fcn.1400393f0
nop
lea rcx, [rbp + 0x250]
call fcn.1400393f0
nop
lea rcx, [rbp + 0x270]
call fcn.1400393f0
nop
lea rcx, [rbp + 0x230]
call fcn.1400393f0
movzx eax, byte [rbp + 0x1d]
jmp 0x1400467bd
cmp dword [rbp + 0x20], 0
jl 0x140046778
mov dword [rbp + 0x28], 1
jmp 0x14004677f
mov dword [rbp + 0x28], 0
movzx eax, byte [rbp + 0x28]
mov byte [rbp + 0x1e], al
lea rcx, [rbp + 0x290]
call fcn.1400393f0
nop
lea rcx, [rbp + 0x250]
call fcn.1400393f0
nop
lea rcx, [rbp + 0x270]
call fcn.1400393f0
nop
lea rcx, [rbp + 0x230]
call fcn.1400393f0
movzx eax, byte [rbp + 0x1e]
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.140160680
add rsp, 0x328
pop rdi
pop rbp
ret