Function at 0x100002548
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 [0x100007110]
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 0x1000025b2
mov eax, 0x8007000e
jmp 0x100002b56
mov rdx, rax
mov rcx, r13
call fcn.1000023c0
cmp eax, r14d
mov edi, eax
jl 0x10000291a
mov eax, dword [0x1000078d8]
mov ecx, 8
lea edx, [rcx + 0xb]
lea r8d, [rcx + 9]
test al, 1
jne 0x100002627
or eax, 1
mov word [0x1000078b0], cx
mov word [0x1000078c0], dx
mov dword [0x1000078d8], eax
lea rax, [0x100001430]
mov word [0x1000078d0], r8w
mov qword [0x1000078a8], rax
lea rax, [0x10000142c]
mov qword [0x1000078b8], rax
lea rax, [0x100001428]
mov qword [0x1000078c8], rax
lea r12, [0x1000078a8]
mov edi, r14d
mov rsi, r12
mov rdx, qword [rsi]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, r14d
je 0x10000265a
inc edi
add rsi, 0x10
cmp edi, 3
jb 0x100002634
mov edi, 0x80020009
jmp 0x10000291a
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 0x100002915
mov rcx, qword [r13]
movzx eax, word [rcx]
cmp eax, 9
jl 0x1000026a4
cmp eax, 0xa
jle 0x100002698
cmp eax, 0xd
je 0x100002698
cmp eax, 0x20
jne 0x1000026a4
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r13], rax
jmp 0x10000267d
mov rdx, rdi
mov rcx, r13
call fcn.1000023c0
cmp eax, r14d
mov esi, eax
jge 0x1000026c6
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov edi, esi
jmp 0x10000291a
movzx eax, r12w
cmp eax, 8
je 0x1000028bd
cmp eax, 0x11
je 0x10000274e
cmp eax, 0x13
jne 0x100002722
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.1000023c0
mov rcx, rdi
cmp eax, r14d
mov esi, eax
jge 0x100002b38
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r15
jmp 0x100002b29
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r13, eax
test r13b, 1
je 0x100002773
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x80004005
jmp 0x10000291a
mov eax, r13d
cdq
sub eax, edx
sar eax, 1
movsxd r14, eax
cmp r14d, 0x400
ja 0x1000027bc
mov rcx, r14
mov rsi, r14
call fcn.100001c38
test al, al
je 0x1000027bc
lea rax, [r14 + 0xf]
cmp rax, r14
ja 0x1000027a9
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.100005700
sub rsp, rax
lea r12, [rsp + 0x30]
jmp 0x1000027e2
lea rcx, [r14 + 0x10]
mov rsi, r14
cmp rcx, r14
jae 0x1000027cd
xor r12d, r12d
jmp 0x1000027e2
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x1000027c8
and qword [rax], rbx
lea r12, [rax + 0x10]
mov rbx, rax
test r12, r12
jne 0x100002810
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r15
jmp 0x1000027fb
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x1000027f5
mov eax, 0x80004005
jmp 0x100002b56
mov r8, rsi
xor edx, edx
mov rcx, r12
call sub.msvcrt.dll_memset
xor r11d, r11d
xor r9d, r9d
test r13d, r13d
jle 0x100002891
movzx r8d, word [rdi + r9*2]
cmp r8d, 0x30
mov eax, r8d
jl 0x10000285f
cmp eax, 0x39
jle 0x100002859
cmp eax, 0x40
jle 0x10000285f
cmp eax, 0x46
jle 0x100002853
add eax, 0xffffff9f
cmp eax, 5
ja 0x10000285f
sub r8b, 0x57
jmp 0x100002862
sub r8b, 0x37
jmp 0x100002862
sub r8b, 0x30
jmp 0x100002862
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 0x100002828
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 0x100002722
mov r15, r14
cmp byte [rbp + 0x90], r14b
je 0x100002ad5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xffe
jle 0x1000028f1
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov r15, qword [rbp + 8]
mov edi, 0x80004005
jmp 0x10000291a
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
mov r15, rax
mov qword [rbp + 0x28], rax
cmp rax, r14
jne 0x10000292a
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 0x100002b56
mov r12, qword [r13 + 8]
mov esi, r14d
cmp dword [r12 + 8], r14d
jle 0x100002977
mov r13, r14
mov rax, qword [r12]
lea rdx, [0x1000017c0]
mov rcx, qword [r13 + rax]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, r14d
je 0x100002968
inc esi
add r13, 8
cmp esi, dword [r12 + 8]
jl 0x10000293b
jmp 0x100002977
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 0x100002acf
cmp word [r14], dx
je 0x100002a06
cmp word [rdi], dx
je 0x100002a03
mov r12, rsi
mov r13, r14
cmp word [rsi], dx
je 0x1000029e1
cmp word [r13], dx
je 0x100002ac1
mov cx, word [r12]
cmp cx, word [r13]
jne 0x1000029e1
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 0x100002aaa
xor edx, edx
cmp word [r13], dx
je 0x100002ac1
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharNextW]
xor edx, edx
mov rsi, rax
cmp word [rax], dx
jne 0x100002990
mov r15, qword [rbp + 0x28]
mov rsi, rdx
mov r12, qword [rbp]
cmp rsi, rdx
je 0x100002aca
cmp rsi, r12
je 0x100002a30
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharPrevW]
cmp word [rax], 0x22
je 0x100002aca
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, [0x1000017d0]
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, [0x1000017d0]
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 0x100002adc
add r12, 2
add r13, 2
mov cx, word [r12]
cmp cx, word [r13]
je 0x100002aaf
cmp r12, r15
jb 0x100002a96
xor edx, edx
cmp word [r12], dx
jne 0x10000299b
jmp 0x1000029e1
mov r15, qword [rbp + 0x28]
jmp 0x100002a06
xor r14d, r14d
jmp 0x100002ad9
mov r12, qword [rbp]
jmp 0x100002a91
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 0x100002b1a
mov rcx, r15
call qword [sym.imp.msvcrt.dll_free]
mov r15, qword [rbp + 8]
jmp 0x100002726
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
cmp rbx, r14
jne 0x100002b23
mov eax, esi
jmp 0x100002b56
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r15
jmp 0x100002b49
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
cmp rbx, r14
jne 0x100002b43
xor eax, eax
mov rcx, qword [rbp + 0x38]
xor rcx, rbp
call fcn.100005150
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