Function at 0x14004db30
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x2348
call fcn.140082e00
sub rsp, rax
mov rax, qword [0x1400ced18]
xor rax, rsp
mov qword [rsp + 0x2330], rax
xor eax, eax
mov word [rsp + 0x50], ax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x98], 0
lea rdx, [rsp + 0x330]
mov rcx, qword [rsp + 0x2350]
call fcn.1400506e0
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x14004dba6
mov eax, dword [rsp + 0x34]
jmp 0x14004e215
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x330]
call fcn.140053ee0
test eax, eax
jne 0x14004dbc6
mov eax, 0x80020009
jmp 0x14004e215
mov rcx, qword [rsp + 0x2350]
call fcn.140053280
lea rdx, [rsp + 0x330]
mov rcx, qword [rsp + 0x2350]
call fcn.1400506e0
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x14004dbfc
mov eax, dword [rsp + 0x34]
jmp 0x14004e215
movzx eax, word [rsp + 0x50]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 8
je 0x14004dc31
cmp dword [rsp + 0x60], 0x11
je 0x14004df4c
cmp dword [rsp + 0x60], 0x13
je 0x14004de01
cmp dword [rsp + 0x60], 0x4008
je 0x14004dc5d
jmp 0x14004e1d0
mov r9d, 1
lea r8, [rsp + 0x330]
mov rdx, qword [rsp + 0x2360]
mov rcx, qword [rsp + 0x2358]
call fcn.140052d70
mov dword [rsp + 0x40], eax
jmp 0x14004e1d0
lea rcx, [rsp + 0x330]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add rax, 2
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x220], 0
movsxd rax, dword [rsp + 0x64]
mov rdx, rax
lea rcx, [rsp + 0x220]
call fcn.14004e2f0
nop
jmp 0x14004dc97
mov rax, qword [rsp + 0x220]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x14004ddd5
mov rax, qword [rsp + 0x220]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x330]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x64], 0
mov rax, qword [rsp + 0x78]
movzx eax, word [rax]
test eax, eax
je 0x14004dd80
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x78]
movzx eax, word [rax]
cmp eax, 0x5c
jne 0x14004dd45
mov rax, qword [rsp + 0xa0]
movzx eax, word [rax]
cmp eax, 0x30
jne 0x14004dd45
xor eax, eax
mov rcx, qword [rsp + 0x58]
mov word [rcx], ax
mov rax, qword [rsp + 0x58]
add rax, 2
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [rsp + 0x78], rax
jmp 0x14004dd71
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x78]
movzx ecx, word [rcx]
mov word [rax], cx
mov rax, qword [rsp + 0x58]
add rax, 2
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x78]
add rax, 2
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
jmp 0x14004dcd8
xor eax, eax
mov rcx, qword [rsp + 0x58]
mov word [rcx], ax
mov rax, qword [rsp + 0x58]
add rax, 2
mov qword [rsp + 0x58], rax
xor eax, eax
mov rcx, qword [rsp + 0x58]
mov word [rcx], ax
mov rax, qword [rsp + 0x220]
mov qword [rsp + 0xc0], rax
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0x2360]
mov rcx, qword [rsp + 0x2358]
call fcn.140052c90
mov dword [rsp + 0x40], eax
jmp 0x14004dddd
mov dword [rsp + 0x40], 0xe
lea rax, [rsp + 0x228]
cmp qword [rsp + 0x220], rax
je 0x14004ddfc
lea rcx, [rsp + 0x220]
call fcn.14004ee60
jmp 0x14004e1d0
mov dword [rsp + 0xb0], 3
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x330]
mov qword [rsp + 0xc8], rax
lea r9, [rsp + 0x84]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x14004de94
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x80], eax
cmp qword [rsp + 0x48], 0
je 0x14004de88
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14004de56
mov eax, dword [rsp + 0x80]
jmp 0x14004e215
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x88], eax
xor eax, eax
test eax, eax
jne 0x14004dea2
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x2360]
mov rax, qword [rsp + 0x2358]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x40], eax
cmp qword [rsp + 0x48], 0
je 0x14004df15
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14004dee3
jmp 0x14004e1d0
lea rcx, [rsp + 0x330]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x6c]
and eax, 1
test eax, eax
je 0x14004df73
mov eax, 0x80004005
jmp 0x14004e215
mov eax, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x110], 0
movsxd rax, dword [rsp + 0x70]
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.14004e280
nop
jmp 0x14004dfa4
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xe8], 0
jne 0x14004dff5
mov dword [rsp + 0x90], 0x80004005
lea rax, [rsp + 0x118]
cmp qword [rsp + 0x110], rax
je 0x14004dfe9
lea rcx, [rsp + 0x110]
call fcn.14004ee30
mov eax, dword [rsp + 0x90]
jmp 0x14004e215
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0xf0], rax
movsxd rax, dword [rsp + 0x70]
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x44], 0
jmp 0x14004e030
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x6c]
cmp dword [rsp + 0x44], eax
jge 0x14004e134
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0xf8], rax
mov eax, dword [rsp + 0x44]
cdq
sub eax, edx
sar eax, 1
cdqe
mov rcx, qword [rsp + 0xf8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa8], rax
movsxd rax, dword [rsp + 0x44]
movzx eax, word [rsp + rax*2 + 0x330]
mov word [rsp + 0x38], ax
movzx eax, word [rsp + 0x38]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
sub eax, 0x30
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0x36
ja case.0x14004e0ba.58
movsxd rax, dword [rsp + 0x68]
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x4e240]
mov eax, dword [rcx + rax*4 + 0x4e230]
add rax, rcx
jmp rax
movzx eax, word [rsp + 0x38]
sub eax, 0x30
mov byte [rsp + 0x30], al
jmp 0x14004e0eb
movzx eax, word [rsp + 0x38]
sub eax, 0x37
mov byte [rsp + 0x30], al
jmp 0x14004e0eb
movzx eax, word [rsp + 0x38]
sub eax, 0x57
mov byte [rsp + 0x30], al
jmp 0x14004e0eb
mov byte [rsp + 0x30], 0
mov eax, dword [rsp + 0x44]
and eax, 1
mov ecx, 1
sub ecx, eax
mov eax, ecx
shl eax, 2
movzx ecx, byte [rsp + 0x30]
mov dword [rsp + 0x94], ecx
movzx ecx, al
mov eax, dword [rsp + 0x94]
shl eax, cl
mov rcx, qword [rsp + 0xa8]
movzx ecx, byte [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xa8]
mov byte [rcx], al
jmp 0x14004e026
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x2358]
mov rax, qword [rax]
mov qword [rsp + 0x108], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x2360]
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x118]
cmp qword [rsp + 0x110], rax
je 0x14004e1ae
lea rcx, [rsp + 0x110]
call fcn.14004ee30
jmp 0x14004e1d0
cmp dword [rsp + 0x40], 0
je 0x14004e1ed
mov dword [rsp + 0x98], 0x204
mov ecx, dword [rsp + 0x40]
call fcn.14004e7e0
jmp 0x14004e215
mov rdx, qword [rsp + 0x2368]
mov rcx, qword [rsp + 0x2350]
call fcn.1400506e0
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x14004e213
mov eax, dword [rsp + 0x34]
jmp 0x14004e215
xor eax, eax
mov rcx, qword [rsp + 0x2330]
xor rcx, rsp
call fcn.140082550
add rsp, 0x2348
ret