Function at 0x100004364
Capabilities:
Set registry value

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x70
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rsi
mov qword [rbp + 0x80], rdi
mov rax, qword [0x10000b170]
xor rax, rbp
mov qword [rbp + 0x38], rax
mov r13, rcx
mov qword [rbp + 0x30], rcx
xor r14d, r14d
mov ecx, 0x2000
mov qword [rbp], r9
mov qword [rbp + 0x10], r8
mov rbx, r14
mov qword [rbp + 0x18], rdx
call qword [sym.imp.msvcrt.dll_malloc]
mov r15, rax
mov qword [rbp + 8], rax
cmp rax, r14
jne 0x1000043ce
mov eax, 0x8007000e
jmp 0x100004972
mov rdx, rax
mov rcx, r13
call fcn.100004f1c
cmp eax, r14d
mov edi, eax
jl 0x100004736
mov eax, dword [0x10000ba00]
mov ecx, 8
lea edx, [rcx + 0xb]
lea r8d, [rcx + 9]
test al, 1
jne 0x100004443
or eax, 1
mov word [0x10000ba10], cx
mov word [0x10000ba20], dx
mov dword [0x10000ba00], eax
lea rax, [0x100001560]
mov word [0x10000ba30], r8w
mov qword [0x10000ba08], rax
lea rax, [0x10000155c]
mov qword [0x10000ba18], rax
lea rax, [0x100001558]
mov qword [0x10000ba28], rax
lea r12, [0x10000ba08]
mov edi, r14d
mov rsi, r12
mov rdx, qword [rsi]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, r14d
je 0x100004476
inc edi
add rsi, 0x10
cmp edi, 3
jb 0x100004450
mov edi, 0x80020009
jmp 0x100004736
movsxd rax, edi
mov ecx, 0x2000
add rax, rax
movzx r12d, word [r12 + rax*8 + 8]
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
cmp rax, r14
je 0x100004731
mov rcx, qword [r13]
movzx eax, word [rcx]
cmp eax, 9
jl 0x1000044c0
cmp eax, 0xa
jle 0x1000044b4
cmp eax, 0xd
je 0x1000044b4
cmp eax, 0x20
jne 0x1000044c0
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r13], rax
jmp 0x100004499
mov rdx, rdi
mov rcx, r13
call fcn.100004f1c
cmp eax, r14d
mov esi, eax
jge 0x1000044e2
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov edi, esi
jmp 0x100004736
movzx eax, r12w
cmp eax, 8
je 0x1000046d9
cmp eax, 0x11
je 0x10000456a
cmp eax, 0x13
jne 0x10000453e
lea r9, [rbp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov r11d, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x18]
mov rcx, qword [rcx]
mov rdx, qword [rbp + 0x10]
lea rax, [rbp + 8]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rbp + 8], r11d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r12, qword [rbp]
mov rcx, qword [rbp + 0x30]
mov rdx, r12
call fcn.100004f1c
mov rcx, rdi
cmp eax, r14d
mov esi, eax
jge 0x100004954
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r15
jmp 0x100004945
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r13, eax
test r13b, 1
je 0x10000458f
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x80004005
jmp 0x100004736
mov eax, r13d
cdq
sub eax, edx
sar eax, 1
movsxd r14, eax
cmp r14d, 0x400
ja 0x1000045d8
mov rcx, r14
mov rsi, r14
call fcn.100004b58
test al, al
je 0x1000045d8
lea rax, [r14 + 0xf]
cmp rax, r14
ja 0x1000045c5
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1000082f0
sub rsp, rax
lea r12, [rsp + 0x30]
jmp 0x1000045fe
lea rcx, [r14 + 0x10]
mov rsi, r14
cmp rcx, r14
jae 0x1000045e9
xor r12d, r12d
jmp 0x1000045fe
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x1000045e4
and qword [rax], rbx
lea r12, [rax + 0x10]
mov rbx, rax
test r12, r12
jne 0x10000462c
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r15
jmp 0x100004617
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x100004611
mov eax, 0x80004005
jmp 0x100004972
mov r8, rsi
xor edx, edx
mov rcx, r12
call sub.msvcrt.dll_memset
xor r11d, r11d
xor r9d, r9d
test r13d, r13d
jle 0x1000046ad
movzx r8d, word [rdi + r9*2]
cmp r8d, 0x30
mov eax, r8d
jl 0x10000467b
cmp eax, 0x39
jle 0x100004675
cmp eax, 0x40
jle 0x10000467b
cmp eax, 0x46
jle 0x10000466f
add eax, 0xffffff9f
cmp eax, 5
ja 0x10000467b
sub r8b, 0x57
jmp 0x10000467e
sub r8b, 0x37
jmp 0x10000467e
sub r8b, 0x30
jmp 0x10000467e
xor r8b, r8b
mov eax, r11d
mov ecx, r11d
inc r9
cdq
and ecx, 1
inc r11d
sub eax, edx
shl ecx, 2
sar eax, 1
movsxd rdx, eax
mov eax, 4
sub eax, ecx
mov cl, al
shl r8b, cl
or byte [rdx + r12], r8b
cmp r9, r13
jl 0x100004644
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
mov r9d, 3
mov rcx, qword [rcx]
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor r14d, r14d
jmp 0x10000453e
mov r15, r14
cmp byte [rbp + 0x90], r14b
je 0x1000048f1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xffe
jle 0x10000470d
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov r15, qword [rbp + 8]
mov edi, 0x80004005
jmp 0x100004736
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
mov r15, rax
mov qword [rbp + 0x28], rax
cmp rax, r14
jne 0x100004746
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov r15, qword [rbp + 8]
mov edi, 0x8007000e
mov rcx, r15
call qword [sym.imp.msvcrt.dll_free]
mov eax, edi
jmp 0x100004972
mov r12, qword [r13 + 8]
mov esi, r14d
cmp dword [r12 + 8], r14d
jle 0x100004793
mov r13, r14
mov rax, qword [r12]
lea rdx, [0x100001ae0]
mov rcx, qword [r13 + rax]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, r14d
je 0x100004784
inc esi
add r13, 8
cmp esi, dword [r12 + 8]
jl 0x100004757
jmp 0x100004793
mov rax, qword [r12]
movsxd rcx, esi
mov rcx, qword [rax + rcx*8]
mov r14, qword [rcx + 8]
xor edx, edx
mov rsi, rdi
cmp r14, rdx
je 0x1000048eb
cmp word [r14], dx
je 0x100004822
cmp word [rdi], dx
je 0x10000481f
mov r12, rsi
mov r13, r14
cmp word [rsi], dx
je 0x1000047fd
cmp word [r13], dx
je 0x1000048dd
mov cx, word [r12]
cmp cx, word [r13]
jne 0x1000047fd
mov rcx, r12
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, r13
mov r15, rax
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, r15
sub rax, r13
sub rcx, r12
xor rax, rcx
test rax, 0xfffffffffffffffe
je 0x1000048c6
xor edx, edx
cmp word [r13], dx
je 0x1000048dd
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
xor edx, edx
mov rsi, rax
cmp word [rax], dx
jne 0x1000047ac
mov r15, qword [rbp + 0x28]
mov rsi, rdx
mov r12, qword [rbp]
cmp rsi, rdx
je 0x1000048e6
cmp rsi, r12
je 0x10000484c
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharPrevW]
cmp word [rax], 0x22
je 0x1000048e6
xor edx, edx
mov word [r15], dx
mov r8, rsi
mov rcx, r15
sub r8, rdi
mov rdx, rdi
sar r8, 1
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rdx, [0x100001af0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x100001af0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rdx, [rsi + rcx*2]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rsi, r15
xor r14d, r14d
jmp 0x1000048f8
add r12, 2
add r13, 2
mov cx, word [r12]
cmp cx, word [r13]
je 0x1000048cb
cmp r12, r15
jb 0x1000048b2
xor edx, edx
cmp word [r12], dx
jne 0x1000047b7
jmp 0x1000047fd
mov r15, qword [rbp + 0x28]
jmp 0x100004822
xor r14d, r14d
jmp 0x1000048f5
mov r12, qword [rbp]
jmp 0x1000048ad
mov r12, qword [rbp]
mov rsi, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rcx]
lea eax, [rax + rax + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp r15, r14
je 0x100004936
mov rcx, r15
call qword [sym.imp.msvcrt.dll_free]
mov r15, qword [rbp + 8]
jmp 0x100004542
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
cmp rbx, r14
jne 0x10000493f
mov eax, esi
jmp 0x100004972
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r15
jmp 0x100004965
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
cmp rbx, r14
jne 0x10000495f
xor eax, eax
mov rcx, qword [rbp + 0x38]
xor rcx, rbp
call fcn.100007a20
mov rbx, qword [rbp + 0x70]
mov rsi, qword [rbp + 0x78]
mov rdi, qword [rbp + 0x80]
lea rsp, [rbp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret