Function at 0x140003e40
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x11b8
call fcn.14004b4b0
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1400971b0]
xor rax, rbp
mov qword [rbp + 0x1170], rax
mov r15, r8
mov qword [rbp], r8
mov r13, rdx
mov r12, rcx
mov qword [rbp + 8], rcx
mov qword [rbp + 0x10], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x30], r9
lea rdx, [rbp + 0x170]
call fcn.140003cb8
xor edi, edi
test eax, eax
js 0x14000445d
lea rdx, str.SMDB
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140003ec8
lea ebx, [rdi + 8]
jmp 0x140003f23
lea rdx, [0x140081b2c]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140003ee7
mov ebx, 0x4008
jmp 0x140003f23
lea rdx, [0x140081b30]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140003f04
lea ebx, [rax + 0x13]
jmp 0x140003f23
lea rdx, [0x140081b34]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140004458
lea ebx, [rax + 0x11]
mov rcx, qword [r12]
cmp byte [rcx], 0x20
ja 0x140003f4c
movsx rax, byte [rcx]
movabs rdx, 0x100002600
bt rdx, rax
jae 0x140003f4c
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [r12], rax
jmp 0x140003f23
lea rdx, [rbp + 0x170]
mov rcx, r12
call fcn.140003cb8
test eax, eax
js 0x14000445d
cmp ebx, 8
je 0x1400043f8
cmp ebx, 0x11
je 0x140004268
cmp ebx, 0x13
je 0x1400040ef
cmp ebx, 0x4008
jne 0x140004443
lea rax, [rbp + 0x170]
or rsi, 0xffffffffffffffff
mov rbx, rsi
inc rbx
cmp byte [rax + rbx], dil
jne 0x140003f98
add ebx, 2
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x60]
call fcn.14004cad0
mov qword [rbp + 0x60], rdi
movsxd rcx, ebx
test ebx, ebx
je 0x140003fed
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 1
jb 0x140004480
cmp rcx, 0x100
jbe 0x140003fed
mov rdx, rcx
lea rcx, [rbp + 0x60]
call fcn.140018b00
mov rbx, qword [rbp + 0x60]
jmp 0x140003ff5
lea rbx, [rbp + 0x68]
mov qword [rbp + 0x60], rbx
jmp 0x14000400d
test rbx, rbx
je 0x1400040cf
lea r14, [rbp + 0x170]
cmp byte [rbp + 0x170], dil
je 0x140004076
mov rcx, r14
call qword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [r14]
cmp cl, 0x5c
jne 0x14000404d
cmp byte [rax], 0x30
jne 0x14000404d
mov byte [rbx], dil
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov r14, rax
jmp 0x14000406e
mov byte [rbx], cl
mov cl, byte [r14]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x14000406b
inc rbx
inc r14
mov al, byte [r14]
test al, al
je 0x140004076
mov byte [rbx], al
inc r14
inc rbx
cmp byte [r14], dil
jne 0x140004026
and word [rbx], 0
mov rbx, qword [rbp + 0x60]
test rbx, rbx
jne 0x140004088
lea esi, [rbx + 0xd]
jmp 0x1400040d4
mov r9d, edi
mov r8, rbx
mov rcx, rsi
inc rcx
cmp byte [r8 + rcx], dil
jne 0x140004091
inc ecx
mov eax, ecx
add r8, rax
add r9d, ecx
cmp ecx, 1
jne 0x14000408e
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rbx
lea r9d, [rcx + 6]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov rbx, qword [rbp + 0x60]
jmp 0x1400040d4
mov esi, 0xe
lea rax, [rbp + 0x68]
cmp rbx, rax
je 0x140004436
lea rcx, [rbp + 0x60]
call fcn.140017980
jmp 0x140004436
mov rbx, rdi
mov qword [rbp + 0x50], rbx
lea rcx, [rbp + 0x170]
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rcx + rax], dil
jne 0x140004104
inc eax
movsxd rcx, eax
add rcx, rcx
mov eax, 0x80000000
add rax, rcx
mov edx, 0xffffffff
cmp rax, rdx
ja 0x1400041d0
movsxd r14, ecx
mov r15, r14
shr r15, 1
cmp ecx, 0x400
jg 0x14000416e
mov rcx, r14
call fcn.1400023f4
test al, al
je 0x14000416e
lea rax, [r14 + 0xf]
cmp rax, r14
ja 0x14000415b
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14004b4b0
sub rsp, rax
lea r14, [rsp + 0x30]
jmp 0x140004196
mov rax, r14
not rax
cmp rax, 0x10
jb 0x14000448b
lea rcx, [r14 + 0x10]
call fcn.140055afc
test rax, rax
je 0x1400041cc
mov qword [rax], rdi
mov rbx, rax
lea r14, [rax + 0x10]
test r14, r14
je 0x1400041cc
mov word [r14], di
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r14
mov r9d, esi
lea r8, [rbp + 0x170]
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb rcx, rcx
and rcx, r14
mov r15, qword [rbp]
jmp 0x1400041d3
mov r15, qword [rbp]
mov rcx, rdi
test rcx, rcx
jne 0x1400041f4
jmp 0x1400041e5
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1400558e4
test rbx, rbx
jne 0x1400041da
mov eax, 0x8007000e
jmp 0x14000445d
lea r9, [rbp + 0x40]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test eax, eax
jns 0x140004222
jmp 0x140004216
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1400558e4
test rbx, rbx
jne 0x14000420b
mov eax, esi
jmp 0x14000445d
mov eax, dword [rbp + 0x40]
mov dword [rbp + 0x48], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x14000425e
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1400558e4
test rbx, rbx
jne 0x140004253
jmp 0x140004436
lea rax, [rbp + 0x170]
or rsi, 0xffffffffffffffff
mov rbx, rsi
inc rbx
cmp byte [rax + rbx], dil
jne 0x140004276
mov dword [rbp + 0x48], ebx
test bl, 1
je 0x140004291
mov eax, 0x80004005
jmp 0x14000445d
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
movsxd r15, eax
mov dword [rbp + 0x40], r15d
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x60]
call fcn.14004cad0
mov qword [rbp + 0x60], rdi
mov r14, r15
mov qword [rbp + 0x50], r15
test r15d, r15d
je 0x1400042ed
xor edx, edx
mov rax, rsi
div r14
cmp rax, 1
jb 0x140004496
cmp r14, 0x100
jbe 0x1400042ed
mov rdx, r14
lea rcx, [rbp + 0x60]
call fcn.140018b00
mov rcx, qword [rbp + 0x60]
jmp 0x1400042f5
lea rcx, [rbp + 0x68]
mov qword [rbp + 0x60], rcx
mov rsi, qword [rbp]
jmp 0x140004318
test rcx, rcx
jne 0x14000432b
lea rcx, [rbp + 0x60]
call fcn.140017980
jmp 0x140004287
mov r8, r14
xor edx, edx
call fcn.14004cad0
mov r10d, edi
movsxd rbx, ebx
test rbx, rbx
jle 0x1400043bd
mov r11, rdi
mov r9b, byte [rbp + r11 + 0x170]
cmp r9b, 0x30
jl 0x14000437d
cmp r9b, 0x39
jle 0x140004377
cmp r9b, 0x40
jle 0x14000437d
cmp r9b, 0x46
jle 0x140004371
lea eax, [r9 - 0x61]
cmp al, 5
ja 0x14000437d
sub r9b, 0x57
jmp 0x140004380
sub r9b, 0x37
jmp 0x140004380
sub r9b, 0x30
jmp 0x140004380
mov r9b, dil
mov eax, r10d
test r10d, r10d
jns 0x14000438c
lea eax, [r10 + 1]
sar eax, 1
movsxd r8, eax
mov rdx, qword [rbp + 0x60]
mov ecx, r10d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl r9b, cl
or r9b, byte [r8 + rdx]
mov byte [r8 + rdx], r9b
inc r10d
inc r11
cmp r11, rbx
jl 0x140004343
mov dword [rsp + 0x28], r15d
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea rax, [rbp + 0x68]
cmp qword [rbp + 0x60], rax
je 0x140004436
lea rcx, [rbp + 0x60]
call fcn.140017980
jmp 0x140004436
lea rax, [rbp + 0x170]
or rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], dil
jne 0x140004403
inc esi
mov dword [rsp + 0x28], esi
lea rax, [rbp + 0x170]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x140004443
mov ecx, esi
call fcn.140002644
jmp 0x14000445d
mov rdx, qword [rbp + 0x30]
mov rcx, r12
call fcn.140003cb8
test eax, eax
cmovs edi, eax
mov eax, edi
jmp 0x14000445d
mov eax, 0x80020009
mov rcx, qword [rbp + 0x1170]
xor rcx, rbp
call fcn.14004a750
lea rsp, [rbp + 0x1188]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070216
call fcn.140002490
nop
mov ecx, 0x80070216
call fcn.140002490
nop
mov ecx, 0x80070216
call fcn.140002490
int3