Function at 0x140003e50
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.14004bd60
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1400991b0]
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.140003cc8
xor edi, edi
test eax, eax
js 0x14000446d
lea rdx, str.SMDB
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140003ed8
lea ebx, [rdi + 8]
jmp 0x140003f33
lea rdx, [0x140082b2c]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140003ef7
mov ebx, 0x4008
jmp 0x140003f33
lea rdx, [0x140082b30]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140003f14
lea ebx, [rax + 0x13]
jmp 0x140003f33
lea rdx, [0x140082b34]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140004468
lea ebx, [rax + 0x11]
mov rcx, qword [r12]
cmp byte [rcx], 0x20
ja 0x140003f5c
movsx rax, byte [rcx]
movabs rdx, 0x100002600
bt rdx, rax
jae 0x140003f5c
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [r12], rax
jmp 0x140003f33
lea rdx, [rbp + 0x170]
mov rcx, r12
call fcn.140003cc8
test eax, eax
js 0x14000446d
cmp ebx, 8
je 0x140004408
cmp ebx, 0x11
je 0x140004278
cmp ebx, 0x13
je 0x1400040ff
cmp ebx, 0x4008
jne 0x140004453
lea rax, [rbp + 0x170]
or rsi, 0xffffffffffffffff
mov rbx, rsi
inc rbx
cmp byte [rax + rbx], dil
jne 0x140003fa8
add ebx, 2
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x60]
call fcn.14004d380
mov qword [rbp + 0x60], rdi
movsxd rcx, ebx
test ebx, ebx
je 0x140003ffd
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 1
jb 0x140004490
cmp rcx, 0x100
jbe 0x140003ffd
mov rdx, rcx
lea rcx, [rbp + 0x60]
call fcn.1400192d4
mov rbx, qword [rbp + 0x60]
jmp 0x140004005
lea rbx, [rbp + 0x68]
mov qword [rbp + 0x60], rbx
jmp 0x14000401d
test rbx, rbx
je 0x1400040df
lea r14, [rbp + 0x170]
cmp byte [rbp + 0x170], dil
je 0x140004086
mov rcx, r14
call qword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [r14]
cmp cl, 0x5c
jne 0x14000405d
cmp byte [rax], 0x30
jne 0x14000405d
mov byte [rbx], dil
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov r14, rax
jmp 0x14000407e
mov byte [rbx], cl
mov cl, byte [r14]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x14000407b
inc rbx
inc r14
mov al, byte [r14]
test al, al
je 0x140004086
mov byte [rbx], al
inc r14
inc rbx
cmp byte [r14], dil
jne 0x140004036
and word [rbx], 0
mov rbx, qword [rbp + 0x60]
test rbx, rbx
jne 0x140004098
lea esi, [rbx + 0xd]
jmp 0x1400040e4
mov r9d, edi
mov r8, rbx
mov rcx, rsi
inc rcx
cmp byte [r8 + rcx], dil
jne 0x1400040a1
inc ecx
mov eax, ecx
add r8, rax
add r9d, ecx
cmp ecx, 1
jne 0x14000409e
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 0x1400040e4
mov esi, 0xe
lea rax, [rbp + 0x68]
cmp rbx, rax
je 0x140004446
lea rcx, [rbp + 0x60]
call fcn.140018154
jmp 0x140004446
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 0x140004114
inc eax
movsxd rcx, eax
add rcx, rcx
mov eax, 0x80000000
add rax, rcx
mov edx, 0xffffffff
cmp rax, rdx
ja 0x1400041e0
movsxd r14, ecx
mov r15, r14
shr r15, 1
cmp ecx, 0x400
jg 0x14000417e
mov rcx, r14
call fcn.140002404
test al, al
je 0x14000417e
lea rax, [r14 + 0xf]
cmp rax, r14
ja 0x14000416b
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14004bd60
sub rsp, rax
lea r14, [rsp + 0x30]
jmp 0x1400041a6
mov rax, r14
not rax
cmp rax, 0x10
jb 0x14000449b
lea rcx, [r14 + 0x10]
call fcn.1400563ac
test rax, rax
je 0x1400041dc
mov qword [rax], rdi
mov rbx, rax
lea r14, [rax + 0x10]
test r14, r14
je 0x1400041dc
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 0x1400041e3
mov r15, qword [rbp]
mov rcx, rdi
test rcx, rcx
jne 0x140004204
jmp 0x1400041f5
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.140056194
test rbx, rbx
jne 0x1400041ea
mov eax, 0x8007000e
jmp 0x14000446d
lea r9, [rbp + 0x40]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test eax, eax
jns 0x140004232
jmp 0x140004226
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.140056194
test rbx, rbx
jne 0x14000421b
mov eax, esi
jmp 0x14000446d
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 0x14000426e
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.140056194
test rbx, rbx
jne 0x140004263
jmp 0x140004446
lea rax, [rbp + 0x170]
or rsi, 0xffffffffffffffff
mov rbx, rsi
inc rbx
cmp byte [rax + rbx], dil
jne 0x140004286
mov dword [rbp + 0x48], ebx
test bl, 1
je 0x1400042a1
mov eax, 0x80004005
jmp 0x14000446d
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.14004d380
mov qword [rbp + 0x60], rdi
mov r14, r15
mov qword [rbp + 0x50], r15
test r15d, r15d
je 0x1400042fd
xor edx, edx
mov rax, rsi
div r14
cmp rax, 1
jb 0x1400044a6
cmp r14, 0x100
jbe 0x1400042fd
mov rdx, r14
lea rcx, [rbp + 0x60]
call fcn.1400192d4
mov rcx, qword [rbp + 0x60]
jmp 0x140004305
lea rcx, [rbp + 0x68]
mov qword [rbp + 0x60], rcx
mov rsi, qword [rbp]
jmp 0x140004328
test rcx, rcx
jne 0x14000433b
lea rcx, [rbp + 0x60]
call fcn.140018154
jmp 0x140004297
mov r8, r14
xor edx, edx
call fcn.14004d380
mov r10d, edi
movsxd rbx, ebx
test rbx, rbx
jle 0x1400043cd
mov r11, rdi
mov r9b, byte [rbp + r11 + 0x170]
cmp r9b, 0x30
jl 0x14000438d
cmp r9b, 0x39
jle 0x140004387
cmp r9b, 0x40
jle 0x14000438d
cmp r9b, 0x46
jle 0x140004381
lea eax, [r9 - 0x61]
cmp al, 5
ja 0x14000438d
sub r9b, 0x57
jmp 0x140004390
sub r9b, 0x37
jmp 0x140004390
sub r9b, 0x30
jmp 0x140004390
mov r9b, dil
mov eax, r10d
test r10d, r10d
jns 0x14000439c
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 0x140004353
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 0x140004446
lea rcx, [rbp + 0x60]
call fcn.140018154
jmp 0x140004446
lea rax, [rbp + 0x170]
or rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], dil
jne 0x140004413
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 0x140004453
mov ecx, esi
call fcn.140002654
jmp 0x14000446d
mov rdx, qword [rbp + 0x30]
mov rcx, r12
call fcn.140003cc8
test eax, eax
cmovs edi, eax
mov eax, edi
jmp 0x14000446d
mov eax, 0x80020009
mov rcx, qword [rbp + 0x1170]
xor rcx, rbp
call fcn.14004b000
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.1400024a0
nop
mov ecx, 0x80070216
call fcn.1400024a0
nop
mov ecx, 0x80070216
call fcn.1400024a0
int3