Function at 0x1400039d0
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x12b8
call fcn.1400b81e0
sub rsp, rax
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401567f8]
xor rax, rbp
mov qword [rbp + 0x1270], 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 + 0x270]
call fcn.140003860
xor edi, edi
test eax, eax
js 0x140004074
lea rdx, str.SMDB
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140003a50
lea ebx, [rdi + 8]
jmp 0x140003aab
lea rdx, [0x14013b46c]
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140003a6f
mov ebx, 0x4008
jmp 0x140003aab
lea rdx, [0x14013b470]
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140003a8c
lea ebx, [rax + 0x13]
jmp 0x140003aab
lea rdx, [0x14013b474]
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14000406f
lea ebx, [rax + 0x11]
mov rdx, qword [r12]
movsx ecx, byte [rdx]
sub ecx, 9
je 0x14000405d
sub ecx, 1
je 0x14000405d
sub ecx, 3
je 0x14000405d
cmp ecx, 0x13
je 0x14000405d
lea rdx, [rbp + 0x270]
mov rcx, r12
call fcn.140003860
test eax, eax
js 0x140004074
cmp ebx, 8
je 0x140003ffd
cmp ebx, 0x11
je 0x140003e13
cmp ebx, 0x13
je 0x140003c9a
cmp ebx, 0x4008
jne 0x140004048
lea rax, [rbp + 0x270]
or rsi, 0xffffffffffffffff
mov rbx, rsi
inc rbx
cmp byte [rax + rbx], dil
jne 0x140003b22
add ebx, 2
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x160]
call fcn.1400ba120
mov qword [rbp + 0x160], rdi
movsxd rcx, ebx
test ebx, ebx
je 0x140003b83
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 1
jb 0x140004097
cmp rcx, 0x100
jbe 0x140003b83
mov rdx, rcx
lea rcx, [rbp + 0x160]
call fcn.1400264c0
mov rbx, qword [rbp + 0x160]
jmp 0x140003b91
lea rbx, [rbp + 0x168]
mov qword [rbp + 0x160], rbx
jmp 0x140003bac
test rbx, rbx
je 0x140003c74
lea r14, [rbp + 0x270]
cmp byte [rbp + 0x270], dil
je 0x140003c15
mov rcx, r14
call qword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [r14]
cmp cl, 0x5c
jne 0x140003bec
cmp byte [rax], 0x30
jne 0x140003bec
mov byte [rbx], dil
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov r14, rax
jmp 0x140003c0d
mov byte [rbx], cl
mov cl, byte [r14]
call qword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x140003c0a
inc rbx
inc r14
mov al, byte [r14]
test al, al
je 0x140003c15
mov byte [rbx], al
inc r14
inc rbx
cmp byte [r14], dil
jne 0x140003bc5
and word [rbx], 0
mov rbx, qword [rbp + 0x160]
test rbx, rbx
jne 0x140003c2a
lea esi, [rbx + 0xd]
jmp 0x140003c79
mov r9d, edi
mov r8, rbx
mov rcx, rsi
inc rcx
cmp byte [r8 + rcx], dil
jne 0x140003c33
inc ecx
mov eax, ecx
add r8, rax
add r9d, ecx
cmp ecx, 1
jne 0x140003c30
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 + 0x160]
jmp 0x140003c79
mov esi, recv
lea rax, [rbp + 0x168]
cmp rbx, rax
je 0x14000403b
lea rcx, [rbp + 0x160]
call fcn.1400253a0
jmp 0x14000403b
mov rbx, rdi
mov qword [rbp + 0x48], rbx
lea rcx, [rbp + 0x270]
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rcx + rax], dil
jne 0x140003caf
inc eax
movsxd rcx, eax
add rcx, rcx
mov eax, 0x80000000
add rax, rcx
mov edx, 0xffffffff
cmp rax, rdx
ja 0x140003d7b
movsxd r14, ecx
mov r15, r14
shr r15, 1
cmp ecx, 0x400
jg 0x140003d19
mov rcx, r14
call fcn.140002044
test al, al
je 0x140003d19
lea rax, [r14 + 0xf]
cmp rax, r14
ja 0x140003d06
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400b81e0
sub rsp, rax
lea r14, [rsp + 0x30]
jmp 0x140003d41
mov rax, r14
not rax
cmp rax, 0x10
jb 0x1400040a2
lea rcx, [r14 + 0x10]
call fcn.1400cb070
test rax, rax
je 0x140003d77
mov qword [rax], rdi
mov rbx, rax
lea r14, [rax + 0x10]
test r14, r14
je 0x140003d77
mov word [r14], di
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r14
mov r9d, esi
lea r8, [rbp + 0x270]
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 0x140003d7e
mov r15, qword [rbp]
mov rcx, rdi
test rcx, rcx
jne 0x140003d9f
jmp 0x140003d90
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1400ca5d8
test rbx, rbx
jne 0x140003d85
mov eax, 0x8007000e
jmp 0x140004074
lea r9, [rbp + 0x38]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test eax, eax
jns 0x140003dcd
jmp 0x140003dc1
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1400ca5d8
test rbx, rbx
jne 0x140003db6
mov eax, esi
jmp 0x140004074
mov eax, dword [rbp + 0x38]
mov dword [rbp + 0x40], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x40]
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 0x140003e09
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1400ca5d8
test rbx, rbx
jne 0x140003dfe
jmp 0x14000403b
lea rax, [rbp + 0x270]
or rsi, 0xffffffffffffffff
mov rbx, rsi
inc rbx
cmp byte [rax + rbx], dil
jne 0x140003e21
mov dword [rbp + 0x40], ebx
test bl, 1
jne 0x140003ecb
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
movsxd r15, eax
mov dword [rbp + 0x38], r15d
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x50]
call fcn.1400ba120
mov qword [rbp + 0x50], rdi
mov r14, r15
mov qword [rbp + 0x48], r15
test r15d, r15d
je 0x140003e92
xor edx, edx
mov rax, rsi
div r14
cmp rax, 1
jb 0x1400040ad
cmp r14, 0x100
jbe 0x140003e92
mov rdx, r14
lea rcx, [rbp + 0x50]
call fcn.1400264c0
mov rcx, qword [rbp + 0x50]
jmp 0x140003e9a
lea rcx, [rbp + 0x58]
mov qword [rbp + 0x50], rcx
mov rsi, qword [rbp]
jmp 0x140003ebd
test rcx, rcx
jne 0x140003ed5
lea rcx, [rbp + 0x50]
call fcn.1400253a0
mov eax, 0x80004005
jmp 0x140004074
mov r8, r14
xor edx, edx
call fcn.1400ba120
mov r10d, edi
movsxd rbx, ebx
test rbx, rbx
jle 0x140003fc2
mov r11, rdi
movsx r9d, byte [rbp + r11 + 0x270]
mov ecx, r9d
cmp r9d, 0x61
jg 0x140003f63
je 0x140003f81
cmp ecx, 0x38
jg 0x140003f3a
je 0x140003f34
sub ecx, 0x30
je 0x140003f34
sub ecx, 1
je 0x140003f34
sub ecx, 1
je 0x140003f34
sub ecx, 1
je 0x140003f34
sub ecx, 1
je 0x140003f34
sub ecx, 1
je 0x140003f34
sub ecx, 1
je 0x140003f34
cmp ecx, 1
jne 0x140003f7c
sub r9b, 0x30
jmp 0x140003f85
sub ecx, 0x39
je 0x140003f34
sub ecx, 8
je 0x140003f5d
sub ecx, 1
je 0x140003f5d
sub ecx, 1
je 0x140003f5d
sub ecx, 1
je 0x140003f5d
sub ecx, 1
je 0x140003f5d
cmp ecx, 1
jne 0x140003f7c
sub r9b, 0x37
jmp 0x140003f85
sub ecx, 0x62
je 0x140003f81
sub ecx, 1
je 0x140003f81
sub ecx, 1
je 0x140003f81
sub ecx, 1
je 0x140003f81
cmp ecx, 1
je 0x140003f81
mov r9b, dil
jmp 0x140003f85
sub r9b, 0x57
mov eax, r10d
test r10d, r10d
jns 0x140003f91
lea eax, [r10 + 1]
sar eax, 1
movsxd r8, eax
mov rdx, qword [rbp + 0x50]
mov ecx, r10d
and ecx, 1
shl ecx, 2
mov eax, 4
sub eax, ecx
mov cl, al
shl r9b, cl
or byte [r8 + rdx], r9b
inc r10d
inc r11
cmp r11, rbx
jl 0x140003ef1
mov dword [rsp + 0x28], r15d
mov rax, qword [rbp + 0x50]
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 + 0x58]
cmp qword [rbp + 0x50], rax
je 0x14000403b
lea rcx, [rbp + 0x50]
call fcn.1400253a0
jmp 0x14000403b
lea rax, [rbp + 0x270]
or rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], dil
jne 0x140004008
inc esi
mov dword [rsp + 0x28], esi
lea rax, [rbp + 0x270]
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 0x140004048
mov ecx, esi
call fcn.140002288
jmp 0x140004074
mov rdx, qword [rbp + 0x30]
mov rcx, r12
call fcn.140003860
test eax, eax
cmovs edi, eax
mov eax, edi
jmp 0x140004074
mov rcx, rdx
call qword [sym.imp.USER32.dll_CharNextA]
mov qword [r12], rax
jmp 0x140003aab
mov eax, 0x80020009
mov rcx, qword [rbp + 0x1270]
xor rcx, rbp
call fcn.1400b7620
lea rsp, [rbp + 0x1288]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070216
call fcn.1400020e0
nop
mov ecx, 0x80070216
call fcn.1400020e0
nop
mov ecx, 0x80070216
call fcn.1400020e0
int3