Function at 0x10002d404
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 [0x10003d110]
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 0x10002d46e
mov eax, 0x8007000e
jmp 0x10002da12
mov rdx, rax
mov rcx, r13
call fcn.10002d27c
cmp eax, r14d
mov edi, eax
jl 0x10002d7d6
mov eax, dword [0x10003e118]
mov ecx, 8
lea edx, [rcx + 0xb]
lea r8d, [rcx + 9]
test al, 1
jne 0x10002d4e3
or eax, 1
mov word [0x10003e6f0], cx
mov word [0x10003e700], dx
mov dword [0x10003e118], eax
lea rax, [0x1000058c0]
mov word [0x10003e710], r8w
mov qword [0x10003e6e8], rax
lea rax, [0x1000058bc]
mov qword [0x10003e6f8], rax
lea rax, [0x1000058b8]
mov qword [0x10003e708], rax
lea r12, [0x10003e6e8]
mov edi, r14d
mov rsi, r12
mov rdx, qword [rsi]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, r14d
je 0x10002d516
inc edi
add rsi, 0x10
cmp edi, 3
jb 0x10002d4f0
mov edi, 0x80020009
jmp 0x10002d7d6
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 0x10002d7d1
mov rcx, qword [r13]
movzx eax, word [rcx]
cmp eax, 9
jl 0x10002d560
cmp eax, 0xa
jle 0x10002d554
cmp eax, 0xd
je 0x10002d554
cmp eax, 0x20
jne 0x10002d560
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r13], rax
jmp 0x10002d539
mov rdx, rdi
mov rcx, r13
call fcn.10002d27c
cmp eax, r14d
mov esi, eax
jge 0x10002d582
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov edi, esi
jmp 0x10002d7d6
movzx eax, r12w
cmp eax, 8
je 0x10002d779
cmp eax, 0x11
je 0x10002d60a
cmp eax, 0x13
jne 0x10002d5de
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.10002d27c
mov rcx, rdi
cmp eax, r14d
mov esi, eax
jge 0x10002d9f4
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r15
jmp 0x10002d9e5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r13, eax
test r13b, 1
je 0x10002d62f
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x80004005
jmp 0x10002d7d6
mov eax, r13d
cdq
sub eax, edx
sar eax, 1
movsxd r14, eax
cmp r14d, 0x400
ja 0x10002d678
mov rcx, r14
mov rsi, r14
call fcn.10002cc3c
test al, al
je 0x10002d678
lea rax, [r14 + 0xf]
cmp rax, r14
ja 0x10002d665
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.10003b0a0
sub rsp, rax
lea r12, [rsp + 0x30]
jmp 0x10002d69e
lea rcx, [r14 + 0x10]
mov rsi, r14
cmp rcx, r14
jae 0x10002d689
xor r12d, r12d
jmp 0x10002d69e
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x10002d684
and qword [rax], rbx
lea r12, [rax + 0x10]
mov rbx, rax
test r12, r12
jne 0x10002d6cc
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r15
jmp 0x10002d6b7
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x10002d6b1
mov eax, 0x80004005
jmp 0x10002da12
mov r8, rsi
xor edx, edx
mov rcx, r12
call sub.msvcrt.dll_memset
xor r11d, r11d
xor r9d, r9d
test r13d, r13d
jle 0x10002d74d
movzx r8d, word [rdi + r9*2]
cmp r8d, 0x30
mov eax, r8d
jl 0x10002d71b
cmp eax, 0x39
jle 0x10002d715
cmp eax, 0x40
jle 0x10002d71b
cmp eax, 0x46
jle 0x10002d70f
add eax, 0xffffff9f
cmp eax, 5
ja 0x10002d71b
sub r8b, 0x57
jmp 0x10002d71e
sub r8b, 0x37
jmp 0x10002d71e
sub r8b, 0x30
jmp 0x10002d71e
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 0x10002d6e4
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 0x10002d5de
mov r15, r14
cmp byte [rbp + 0x90], r14b
je 0x10002d991
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xffe
jle 0x10002d7ad
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov r15, qword [rbp + 8]
mov edi, 0x80004005
jmp 0x10002d7d6
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
mov r15, rax
mov qword [rbp + 0x28], rax
cmp rax, r14
jne 0x10002d7e6
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 0x10002da12
mov r12, qword [r13 + 8]
mov esi, r14d
cmp dword [r12 + 8], r14d
jle 0x10002d833
mov r13, r14
mov rax, qword [r12]
lea rdx, [0x100023b50]
mov rcx, qword [r13 + rax]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, r14d
je 0x10002d824
inc esi
add r13, 8
cmp esi, dword [r12 + 8]
jl 0x10002d7f7
jmp 0x10002d833
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 0x10002d98b
cmp word [r14], dx
je 0x10002d8c2
cmp word [rdi], dx
je 0x10002d8bf
mov r12, rsi
mov r13, r14
cmp word [rsi], dx
je 0x10002d89d
cmp word [r13], dx
je 0x10002d97d
mov cx, word [r12]
cmp cx, word [r13]
jne 0x10002d89d
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 0x10002d966
xor edx, edx
cmp word [r13], dx
je 0x10002d97d
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
xor edx, edx
mov rsi, rax
cmp word [rax], dx
jne 0x10002d84c
mov r15, qword [rbp + 0x28]
mov rsi, rdx
mov r12, qword [rbp]
cmp rsi, rdx
je 0x10002d986
cmp rsi, r12
je 0x10002d8ec
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharPrevW]
cmp word [rax], 0x22
je 0x10002d986
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, [0x100023b60]
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, [0x100023b60]
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 0x10002d998
add r12, 2
add r13, 2
mov cx, word [r12]
cmp cx, word [r13]
je 0x10002d96b
cmp r12, r15
jb 0x10002d952
xor edx, edx
cmp word [r12], dx
jne 0x10002d857
jmp 0x10002d89d
mov r15, qword [rbp + 0x28]
jmp 0x10002d8c2
xor r14d, r14d
jmp 0x10002d995
mov r12, qword [rbp]
jmp 0x10002d94d
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 0x10002d9d6
mov rcx, r15
call qword [sym.imp.msvcrt.dll_free]
mov r15, qword [rbp + 8]
jmp 0x10002d5e2
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
cmp rbx, r14
jne 0x10002d9df
mov eax, esi
jmp 0x10002da12
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r15
jmp 0x10002da05
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
cmp rbx, r14
jne 0x10002d9ff
xor eax, eax
mov rcx, qword [rbp + 0x38]
xor rcx, rbp
call fcn.10003a9b0
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