Function at 0x1400575d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xe0
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rbp - 1], rax
mov r13, r9
mov qword [rbp - 0x69], r9
mov rdi, r8
mov qword [rbp - 0x49], r8
mov qword [rbp - 0x11], rdx
mov qword [rbp - 0x41], r8
mov qword [rbp - 0x39], r9
mov rcx, qword [rbp + 0x67]
mov qword [rbp - 0x61], rcx
mov qword [rbp - 0x31], rcx
mov rcx, qword [rbp + 0x6f]
mov qword [rbp - 0x59], rcx
mov qword [rbp - 0x29], rcx
mov rcx, qword [rbp + 0x77]
mov qword [rbp - 0x51], rcx
mov qword [rbp - 0x21], rcx
xor esi, esi
mov dword [rsp + 0x50], esi
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x19], rsi
mov rbx, qword [rdx]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140057658
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x19], rsi
lea rax, [rbp - 9]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DefaultIcon
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rbx, qword [rdi]
cmp qword [rbp - 0x19], 0
je 0x1400576d3
test rbx, rbx
je 0x1400576d3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140267540]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov qword [rbp - 0x79], rsi
mov rax, qword [r13]
mov rcx, qword [rax - 0x18]
test rcx, rcx
je 0x1400576f9
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140038ca6.0]
mov rcx, rax
test rax, rax
jne 0x14005771a
call fcn.140019590
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
call qword [case.0x140038ca6.0]
mov rcx, rax
test rax, rax
je 0x140057d6f
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x79], rbx
mov dword [rsp + 0x50], 1
mov r15, qword [r13]
movsxd r12, dword [r15 - 0x10]
lea rdx, str.Shell_
mov r14, 0xffffffffffffffff
mov rdi, r14
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x140057750
lea esi, [rdi + r12]
test esi, esi
js 0x140057d64
mov ecx, 1
sub ecx, dword [rax + 0x10]
mov eax, dword [rax + 0xc]
sub eax, esi
or eax, ecx
jge 0x14005778d
mov edx, esi
lea rcx, [rbp - 0x79]
call fcn.140018ea0
mov rbx, qword [rbp - 0x79]
lea rdx, str.Shell_
movsxd rax, edi
lea rdi, [rax + rax]
test rdi, rdi
je 0x1400577bb
test rbx, rbx
jne 0x1400577b0
call fcn.1401fed34
mov dword [rax], 0x16
call fcn.1401feb94
jmp 0x1400577bb
mov r8, rdi
mov rcx, rbx
call fcn.14022e460
mov r8, r12
add r8, r8
lea rcx, [rdi + rbx]
je 0x1400577f2
test rcx, rcx
je 0x1400577e2
test r15, r15
je 0x1400577db
mov rdx, r15
call fcn.14022e460
jmp 0x1400577f2
xor edx, edx
call fcn.14022eb00
call fcn.1401fed34
mov dword [rax], 0x16
call fcn.1401feb94
cmp esi, dword [rbx - 0xc]
jg 0x140057d64
mov dword [rbx - 0x10], esi
movsxd rax, esi
xor esi, esi
mov word [rbx + rax*2], si
mov rdi, qword [rbp - 0x11]
mov rdi, qword [rdi]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14005781d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x19], rsi
lea rax, [rbp - 5]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, 1
and eax, 0xfffffffe
mov dword [rsp + 0x50], eax
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140057883
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
mov rbx, qword [rbp - 0x61]
mov rbx, qword [rbx]
cmp dword [rbx - 0x10], 0
je 0x1400578ca
cmp qword [rbp - 0x19], 0
je 0x1400578ca
test rbx, rbx
je 0x1400578ca
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140267540]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rbp - 0x59]
mov rbx, qword [rbx]
cmp dword [rbx - 0x10], 0
je 0x140057912
cmp qword [rbp - 0x19], 0
je 0x140057912
test rbx, rbx
je 0x140057912
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.FriendlyAppName
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov qword [rsp + 0x58], rsi
mov rax, qword [r13]
mov rcx, qword [rax - 0x18]
test rcx, rcx
je 0x140057939
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140038ca6.0]
mov rcx, rax
test rax, rax
jne 0x14005795a
call fcn.140019590
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
call qword [case.0x140038ca6.0]
mov rcx, rax
test rax, rax
je 0x140057d7a
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x58], rdi
mov r13d, dword [rsp + 0x50]
or r13d, 2
mov dword [rsp + 0x50], r13d
mov r15, qword [rbp - 0x69]
mov r15, qword [r15]
movsxd r12, dword [r15 - 0x10]
mov rbx, r14
lea rdx, str.Shell_
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140057993
lea esi, [rbx + r12]
test esi, esi
js 0x140057d59
mov ecx, 1
sub ecx, dword [rax + 0x10]
mov eax, dword [rax + 0xc]
sub eax, esi
or eax, ecx
jge 0x1400579d2
mov edx, esi
lea rcx, [rsp + 0x58]
call fcn.140018ea0
mov rdi, qword [rsp + 0x58]
lea rdx, str.Shell_
movsxd rax, ebx
lea rbx, [rax + rax]
test rbx, rbx
je 0x140057a00
test rdi, rdi
jne 0x1400579f5
call fcn.1401fed34
mov dword [rax], 0x16
call fcn.1401feb94
jmp 0x140057a00
mov r8, rbx
mov rcx, rdi
call fcn.14022e460
mov r8, r12
add r8, r8
lea rcx, [rbx + rdi]
je 0x140057a37
test rcx, rcx
je 0x140057a27
test r15, r15
je 0x140057a20
mov rdx, r15
call fcn.14022e460
jmp 0x140057a37
xor edx, edx
call fcn.14022eb00
call fcn.1401fed34
mov dword [rax], 0x16
call fcn.1401feb94
cmp esi, dword [rdi - 0xc]
jg 0x140057d59
mov dword [rdi - 0x10], esi
movsxd rax, esi
xor ecx, ecx
mov word [rdi + rax*2], cx
mov qword [rbp - 0x71], rcx
mov rcx, qword [rdi - 0x18]
test rcx, rcx
je 0x140057a6e
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140038ca6.0]
mov rcx, rax
test rax, rax
jne 0x140057a8f
call fcn.140019590
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
call qword [case.0x140038ca6.0]
mov rcx, rax
test rax, rax
je 0x140057d85
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x71], rbx
or r13d, 4
mov dword [rsp + 0x50], r13d
lea rcx, [0x140299ab8]
mov rsi, r14
nop word [rax + rax]
inc rsi
cmp word [rcx + rsi*2], 0
jne 0x140057ac0
movsxd r12, dword [rdi - 0x10]
lea r15d, [r12 + rsi]
test r15d, r15d
js 0x140057d90
mov ecx, 1
sub ecx, dword [rax + 0x10]
mov eax, dword [rax + 0xc]
sub eax, r15d
or eax, ecx
jge 0x140057afd
mov edx, r15d
lea rcx, [rbp - 0x71]
call fcn.140018ea0
mov rbx, qword [rbp - 0x71]
add r12, r12
je 0x140057b27
test rbx, rbx
jne 0x140057b19
call fcn.1401fed34
mov dword [rax], 0x16
call fcn.1401feb94
jmp 0x140057b27
mov r8, r12
mov rdx, rdi
mov rcx, rbx
call fcn.14022e460
movsxd r8, esi
add r8, r8
lea rcx, [r12 + rbx]
je 0x140057b56
test rcx, rcx
jne 0x140057b4a
call fcn.1401fed34
mov dword [rax], 0x16
call fcn.1401feb94
jmp 0x140057b56
lea rdx, [0x140299ab8]
call fcn.14022e460
cmp r15d, dword [rbx - 0xc]
jg 0x140057d90
mov dword [rbx - 0x10], r15d
movsxd rax, r15d
xor esi, esi
mov word [rbx + rax*2], si
mov rax, qword [rbp - 0x11]
mov rdi, qword [rax]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140057b83
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x19], rsi
lea rax, [rbp - 0x11]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
and r13d, 0xfffffffb
mov dword [rsp + 0x50], r13d
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140057be6
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
and dword [rsp + 0x50], 0xfffffffd
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140057c11
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
mov rdi, qword [rbp - 0x51]
mov rbx, qword [rdi]
cmp qword [rbp - 0x19], 0
je 0x140057c53
test rbx, rbx
je 0x140057c53
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140267540]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140057c62
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x19], rsi
mov rdx, qword [rbp - 0x49]
mov rdx, qword [rdx]
sub rdx, 0x18
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140057c8f
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rax, qword [rbp - 0x69]
mov rdx, qword [rax]
sub rdx, 0x18
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140057cb8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rax, qword [rbp - 0x61]
mov rdx, qword [rax]
sub rdx, 0x18
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140057ce1
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rax, qword [rbp - 0x59]
mov rdx, qword [rax]
sub rdx, 0x18
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140057d0a
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x140057d2d
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140038ca6.0]
mov eax, 1
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.1401f74b0
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140019300
nop
mov ecx, 0x80070057
call fcn.140019300
int3
mov ecx, 0x80004005
call fcn.140019300
nop
mov ecx, 0x80004005
call fcn.140019300
nop
mov ecx, 0x80004005
call fcn.140019300
int3
mov ecx, 0x80070057
call fcn.140019300
int3