Function at 0x140028610
Capabilities:
Check if file exists
Delete registry key
Get file attributes
Query or enumerate registry value
Set environment variable
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a40]
mov eax, 0x1b40
call fcn.14009c790
sub rsp, rax
mov rax, qword [0x1401198e8]
xor rax, rsp
mov qword [rbp + 0x1a30], rax
mov qword [rbp + 0x180], rdx
mov qword [rsp + 0x58], rcx
xor esi, esi
mov dword [rsp + 0x50], esi
call fcn.140008180
mov rcx, rax
test rax, rax
je 0x140029bd8
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rbx, str.System32_ntdll.dll
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.1400062d0
lea r13, [rsi - 1]
test al, al
jne 0x1400286bb
mov rax, r13
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400286a0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.1400068f0
nop
mov qword [rsp + 0x68], rsi
mov rdi, qword [rsp + 0x60]
lea r15, [rdi - 0x18]
mov rcx, qword [r15]
test rcx, rcx
je 0x1400286df
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
test rax, rax
jne 0x1400286f0
call fcn.140008180
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov rcx, rax
test rcx, rcx
je 0x140029be3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x68], rbx
mov eax, 1
mov dword [rsp + 0x50], eax
movsxd r12, dword [rdi - 0x10]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14002872c
mov rsi, r13
inc rsi
cmp word [rdx + rsi*2], 0
jne 0x140028722
lea r14d, [r12 + rsi]
test r14d, r14d
js 0x140029bcd
mov ecx, eax
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r14d
or eax, ecx
jge 0x14002875f
mov edx, r14d
lea rcx, [rsp + 0x68]
call fcn.140006870
mov rbx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
movsxd rax, esi
lea rsi, [rax + rax]
test rsi, rsi
je 0x140028797
test rbx, rbx
je 0x140028787
mov r8, rsi
mov rcx, rbx
test rdx, rdx
je 0x140028782
call fcn.14009d3c0
jmp 0x140028797
call fcn.14009e880
call fcn.1400a31cc
mov dword [rax], 0x16
call fcn.1400a3060
mov r8, r12
add r8, r8
lea rcx, [rsi + rbx]
je 0x1400287d3
test rcx, rcx
je 0x1400287c3
test rdi, rdi
je 0x1400287b7
mov rdx, rdi
call fcn.14009d3c0
jmp 0x1400287d3
xor edx, edx
call fcn.14009e880
test rdi, rdi
jne 0x1400287d3
call fcn.1400a31cc
mov dword [rax], 0x16
call fcn.1400a3060
lea rdi, [rbx - 0x18]
cmp r14d, dword [rdi + 0xc]
jg 0x140029bcd
mov dword [rdi + 8], r14d
movsxd rax, r14d
xor esi, esi
mov word [rbx + rax*2], si
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete bl
mov dword [rsp + 0x50], esi
mov eax, r13d
lock xadd dword [rdi + 0x10], eax
sub eax, 1
jg 0x14002881b
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + VariantCopy]
nop
mov eax, r13d
lock xadd dword [r15 + 0x10], eax
sub eax, 1
jg 0x140028835
mov rcx, qword [r15]
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + VariantCopy]
test bl, bl
je 0x140028868
mov eax, 0x57
mov rcx, qword [rbp + 0x1a30]
xor rcx, rsp
call fcn.14009c570
mov rbx, qword [rsp + 0x1b90]
add rsp, 0x1b40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dl, 1
lea rcx, str.SeRestorePrivilege
call fcn.14002e730
test al, al
jne 0x140028882
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14002883e
mov dl, 1
lea rcx, str.SeBackupPrivilege
call fcn.14002e730
test al, al
je 0x14002887a
call fcn.140008180
mov rcx, rax
test rax, rax
je 0x140029bd8
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rbx, str._system32config_system
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400062d0
test al, al
jne 0x1400288eb
mov rax, r13
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400288d0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400068f0
nop
mov qword [rsp + 0x78], rsi
mov rdi, qword [rsp + 0x70]
lea r15, [rdi - 0x18]
mov rcx, qword [r15]
test rcx, rcx
je 0x14002890f
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
test rax, rax
jne 0x140028920
call fcn.140008180
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov rcx, rax
test rcx, rcx
je 0x140029bee
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x50], 2
movsxd r12, dword [rdi - 0x10]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14002895b
mov rsi, r13
inc rsi
cmp word [rdx + rsi*2], 0
jne 0x140028951
lea r14d, [r12 + rsi]
test r14d, r14d
js 0x140029c70
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r14d
or eax, ecx
jge 0x140028991
mov edx, r14d
lea rcx, [rsp + 0x78]
call fcn.140006870
mov rbx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x58]
movsxd rax, esi
lea rsi, [rax + rax]
test rsi, rsi
je 0x1400289c9
test rbx, rbx
je 0x1400289b9
mov r8, rsi
mov rcx, rbx
test rdx, rdx
je 0x1400289b4
call fcn.14009d3c0
jmp 0x1400289c9
call fcn.14009e880
call fcn.1400a31cc
mov dword [rax], 0x16
call fcn.1400a3060
mov r8, r12
add r8, r8
lea rcx, [rsi + rbx]
je 0x140028a05
test rcx, rcx
je 0x1400289f5
test rdi, rdi
je 0x1400289e9
mov rdx, rdi
call fcn.14009d3c0
jmp 0x140028a05
xor edx, edx
call fcn.14009e880
test rdi, rdi
jne 0x140028a05
call fcn.1400a31cc
mov dword [rax], 0x16
call fcn.1400a3060
lea rdi, [rbx - 0x18]
cmp r14d, dword [rdi + 0xc]
jg 0x140029c70
mov dword [rdi + 8], r14d
movsxd rax, r14d
xor esi, esi
mov word [rbx + rax*2], si
mov r8, rbx
lea rdx, str.autoruns.system
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov ebx, eax
mov dword [rsp + 0x50], esi
mov ecx, r13d
lock xadd dword [rdi + 0x10], ecx
sub ecx, 1
jg 0x140028a5b
mov rcx, qword [rdi]
mov rdx, qword [rcx]
mov r8, qword [rdx + 8]
mov rdx, rdi
call r8
nop
mov eax, r13d
lock xadd dword [r15 + 0x10], eax
sub eax, 1
jg 0x140028a75
mov rcx, qword [r15]
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + VariantCopy]
test ebx, ebx
je 0x140028a80
mov eax, ebx
jmp 0x14002883e
xorps xmm0, xmm0
movups xmmword [rbp + 0x1e8], xmm0
mov qword [rbp + 0x1e8], rsi
mov dword [rbp + 0x1f0], esi
mov qword [rbp + 0x1f8], rsi
mov r9d, 0xf003f
lea r8, str.autoruns.system
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x1e8]
call fcn.140013900
mov edi, eax
test eax, eax
jne 0x140029bb4
call fcn.140008180
mov rcx, rax
test rax, rax
je 0x140029bf9
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x80], rax
lea rbx, str._system32config_software
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.1400062d0
test al, al
jne 0x140028b1b
mov rax, r13
inc rax
cmp word [rbx + rax*2], 0
jne 0x140028b01
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.1400068f0
nop
mov qword [rbp - 0x78], rsi
mov rdi, qword [rbp - 0x80]
lea r15, [rdi - 0x18]
mov rcx, qword [r15]
test rcx, rcx
je 0x140028b3d
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
test rax, rax
jne 0x140028b4e
call fcn.140008180
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov rcx, rax
test rcx, rcx
je 0x140029c04
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x78], rbx
mov dword [rsp + 0x50], 4
movsxd r12, dword [rdi - 0x10]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140028b8a
mov rsi, r13
nop
inc rsi
cmp word [rdx + rsi*2], 0
jne 0x140028b80
lea r14d, [r12 + rsi]
test r14d, r14d
js 0x140029c65
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r14d
or eax, ecx
jge 0x140028bbe
mov edx, r14d
lea rcx, [rbp - 0x78]
call fcn.140006870
mov rbx, qword [rbp - 0x78]
mov rdx, qword [rsp + 0x58]
movsxd rax, esi
lea rsi, [rax + rax]
test rsi, rsi
je 0x140028bf6
test rbx, rbx
je 0x140028be6
mov r8, rsi
mov rcx, rbx
test rdx, rdx
je 0x140028be1
call fcn.14009d3c0
jmp 0x140028bf6
call fcn.14009e880
call fcn.1400a31cc
mov dword [rax], 0x16
call fcn.1400a3060
mov r8, r12
add r8, r8
lea rcx, [rsi + rbx]
je 0x140028c32
test rcx, rcx
je 0x140028c22
test rdi, rdi
je 0x140028c16
mov rdx, rdi
call fcn.14009d3c0
jmp 0x140028c32
xor edx, edx
call fcn.14009e880
test rdi, rdi
jne 0x140028c32
call fcn.1400a31cc
mov dword [rax], 0x16
call fcn.1400a3060
cmp r14d, dword [rbx - 0xc]
jg 0x140029c65
mov dword [rbx - 0x10], r14d
movsxd rax, r14d
xor r14d, r14d
mov word [rbx + rax*2], r14w
mov r8, rbx
lea rdx, str.autoruns.software
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov edi, eax
mov dword [rsp + 0x50], r14d
mov eax, r13d
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x140028c85
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + VariantCopy]
nop
mov eax, r13d
lock xadd dword [r15 + 0x10], eax
sub eax, 1
jg 0x140028c9f
mov rcx, qword [r15]
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + VariantCopy]
test edi, edi
jne 0x140029bb4
xorps xmm0, xmm0
movups xmmword [rbp + 0x198], xmm0
mov qword [rbp + 0x198], r14
mov dword [rbp + 0x1a0], r14d
mov qword [rbp + 0x1a8], r14
mov r9d, 0xf003f
lea r8, str.autoruns.software
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x198]
call fcn.140013900
mov edi, eax
test eax, eax
jne 0x140029b9e
call fcn.140008180
mov rcx, rax
test rax, rax
je 0x140029c0f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x70], rax
lea rbx, str._ntuser.dat
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.1400062d0
test al, al
jne 0x140028d4a
mov rax, r13
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140028d30
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.1400068f0
nop
mov qword [rbp - 0x68], r14
mov rdi, qword [rbp - 0x70]
lea r15, [rdi - 0x18]
mov rcx, qword [r15]
test rcx, rcx
je 0x140028d6c
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
test rax, rax
jne 0x140028d7d
call fcn.140008180
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov rcx, rax
test rcx, rcx
je 0x140029c1a
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x68], rbx
mov dword [rsp + 0x50], 8
movsxd r12, dword [rdi - 0x10]
mov rdx, qword [rbp + 0x180]
test rdx, rdx
jne 0x140028db1
mov esi, r14d
jmp 0x140028dbe
mov rsi, r13
inc rsi
cmp word [rdx + rsi*2], 0
jne 0x140028db4
lea r14d, [r12 + rsi]
test r14d, r14d
js 0x140029c5a
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r14d
or eax, ecx
jge 0x140028df4
mov edx, r14d
lea rcx, [rbp - 0x68]
call fcn.140006870
mov rbx, qword [rbp - 0x68]
mov rdx, qword [rbp + 0x180]
movsxd rax, esi
lea rsi, [rax + rax]
test rsi, rsi
je 0x140028e2c
test rbx, rbx
je 0x140028e1c
mov r8, rsi
mov rcx, rbx
test rdx, rdx
je 0x140028e17
call fcn.14009d3c0
jmp 0x140028e2c
call fcn.14009e880
call fcn.1400a31cc
mov dword [rax], 0x16
call fcn.1400a3060
mov r8, r12
add r8, r8
lea rcx, [rsi + rbx]
je 0x140028e68
test rcx, rcx
je 0x140028e58
test rdi, rdi
je 0x140028e4c
mov rdx, rdi
call fcn.14009d3c0
jmp 0x140028e68
xor edx, edx
call fcn.14009e880
test rdi, rdi
jne 0x140028e68
call fcn.1400a31cc
mov dword [rax], 0x16
call fcn.1400a3060
cmp r14d, dword [rbx - 0xc]
jg 0x140029c5a
mov dword [rbx - 0x10], r14d
movsxd rax, r14d
xor r12d, r12d
mov word [rbx + rax*2], r12w
mov r8, rbx
lea rdx, str.autoruns.user
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov edi, eax
mov eax, r13d
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x140028eb6
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + VariantCopy]
nop
mov eax, r13d
lock xadd dword [r15 + 0x10], eax
sub eax, 1
jg 0x140028ed0
mov rcx, qword [r15]
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + VariantCopy]
test edi, edi
jne 0x140029b9e
xorps xmm0, xmm0
movups xmmword [rbp + 0x1d0], xmm0
mov qword [rbp + 0x1d0], r12
mov dword [rbp + 0x1d8], r12d
mov qword [rbp + 0x1e0], r12
mov r9d, 0xf003f
lea r8, str.autoruns.user
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x1d0]
call fcn.140013900
mov edi, eax
test eax, eax
je 0x140028f29
mov rsi, qword [rbp + 0x198]
jmp 0x140029b8a
xorps xmm0, xmm0
movups xmmword [rbp + 0x138], xmm0
mov qword [rbp + 0x138], r12
mov dword [rbp + 0x140], r12d
mov qword [rbp + 0x148], r12
mov r9d, 0x2001f
lea r8, str.MicrosoftWindowsCurrentVersion
mov rsi, qword [rbp + 0x198]
mov rdx, rsi
lea rcx, [rbp + 0x138]
call fcn.140013900
mov edi, eax
test eax, eax
jne 0x140029b77
lea r8, str.ProgramFilesDir
lea rdx, [rbp + 0x138]
lea rcx, [rbp + 0x160]
call fcn.1400262f0
nop
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0x80]
call fcn.1400132f0
mov rbx, rax
mov rdx, rax
lea rcx, [0x14011a710]
call fcn.140005f80
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140028ff4
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140028fef
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140029c25
mov rcx, r8
call fcn.14009bfe4
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
lea r8, str.ProgramFilesDir__x86_
lea rdx, [rbp + 0x138]
lea rcx, [rbp + 0x200]
call fcn.1400262f0
nop
cmp qword [rbp + 0x210], 0
jne 0x140029053
lea rdx, [rbp + 0x160]
cmp qword [rbp + 0x178], 8
cmovae rdx, qword [rbp + 0x160]
mov r8, qword [rbp + 0x170]
lea rcx, [rbp + 0x200]
call fcn.140003510
lea rdx, [rbp + 0x200]
lea rcx, [rbp + 0x40]
call fcn.1400132f0
mov rbx, rax
mov rdx, rax
lea rcx, [0x14011a6f0]
call fcn.140005f80
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400290b4
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400290af
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140029c2b
mov rcx, r8
call fcn.14009bfe4
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
call fcn.1400087c0
cmp qword [rax + 0x18], 8
jb 0x1400290d3
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.PROGRAMFILES
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call fcn.1400087c0
cmp qword [rax + 0x18], 8
jb 0x1400290f2
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.ProgramW6432
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call fcn.1400088a0
cmp qword [rax + 0x18], 8
jb 0x140029111
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.PROGRAMFILES_X86_
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
movdqa xmm1, xmmword [0x1400f80d0]
movdqu xmmword [rbp + 0x10], xmm1
mov word [rbp], r12w
mov dword [rsp + 0x50], 0x80
mov dword [rbp + 0x120], 0x800
lea rax, [rbp + 0x120]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x230]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x194]
xor r8d, r8d
lea rdx, str.CommonFilesDir
mov rbx, qword [rbp + 0x138]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140029191
cmp eax, 0xd
jne 0x1400291db
jmp 0x1400291af
mov eax, dword [rbp + 0x194]
dec eax
cmp eax, 1
ja 0x1400291af
cmp dword [rbp + 0x120], 0
jne 0x1400291af
mov word [rbp + 0x230], r12w
lea rax, [rbp + 0x230]
mov r8, r13
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400291c0
lea rdx, [rbp + 0x230]
lea rcx, [rbp]
call fcn.140003510
lea rdx, [rbp]
lea rcx, [rbp + 0x160]
call fcn.140005f80
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x14002922c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029227
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029c31
call fcn.14009bfe4
lea rdx, [rbp + 0x160]
cmp qword [rbp + 0x178], 8
cmovae rdx, qword [rbp + 0x160]
lea rcx, str.CommonProgramFiles
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x1400f80d0]
movdqu xmmword [rbp - 0x10], xmm1
mov word [rbp - 0x20], r12w
mov dword [rsp + 0x50], 0x100
mov dword [rbp + 0x124], 0x800
lea rax, [rbp + 0x124]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xa30]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x190]
xor r8d, r8d
lea rdx, str.CommonFilesDir__x86_
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400292b9
cmp eax, 0xd
jne 0x1400292fc
jmp 0x1400292d7
mov eax, dword [rbp + 0x190]
dec eax
cmp eax, 1
ja 0x1400292d7
cmp dword [rbp + 0x124], 0
jne 0x1400292d7
mov word [rbp + 0xa30], r12w
lea rax, [rbp + 0xa30]
mov r8, r13
inc r8
cmp word [rax + r8*2], 0
jne 0x1400292e1
lea rdx, [rbp + 0xa30]
lea rcx, [rbp - 0x20]
call fcn.140003510
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x160]
call fcn.140005f80
nop
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x14002934d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029348
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029c31
call fcn.14009bfe4
lea rdx, [rbp + 0x160]
cmp qword [rbp + 0x178], 8
cmovae rdx, qword [rbp + 0x160]
lea rcx, str.CommonProgramFiles_x86_
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x1400f80d0]
movdqu xmmword [rbp - 0x30], xmm1
mov word [rbp - 0x40], r12w
mov dword [rsp + 0x50], 0x200
mov dword [rbp + 0x128], 0x800
lea rax, [rbp + 0x128]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1230]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x18c]
xor r8d, r8d
lea rdx, str.Common6432Dir
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400293da
cmp eax, 0xd
jne 0x14002941d
jmp 0x1400293f8
mov eax, dword [rbp + 0x18c]
dec eax
cmp eax, 1
ja 0x1400293f8
cmp dword [rbp + 0x128], 0
jne 0x1400293f8
mov word [rbp + 0x1230], r12w
lea rax, [rbp + 0x1230]
mov r8, r13
inc r8
cmp word [rax + r8*2], 0
jne 0x140029402
lea rdx, [rbp + 0x1230]
lea rcx, [rbp - 0x40]
call fcn.140003510
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x160]
call fcn.140005f80
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x14002946e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029469
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029c31
call fcn.14009bfe4
lea rdx, [rbp + 0x160]
cmp qword [rbp + 0x178], 8
cmovae rdx, qword [rbp + 0x160]
lea rcx, str.CommonProgramW6432
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test rbx, rbx
je 0x1400294a7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x138], r12
mov dword [rbp + 0x140], r12d
mov r9d, 0x2001f
lea r8, str.MicrosoftWindows_NTCurrentVersion
mov rdx, rsi
lea rcx, [rbp + 0x138]
call fcn.140013900
lea r8, str.SystemRoot
lea rdx, [rbp + 0x138]
lea rcx, [rbp + 0xa0]
call fcn.1400262f0
mov rbx, rax
mov rdx, rax
lea rcx, [0x14011a770]
call fcn.140005f80
mov rcx, rbx
call fcn.140003960
call fcn.1400082e0
cmp qword [rax + 0x18], 8
jb 0x14002950d
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.SystemRoot
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call fcn.1400082e0
cmp qword [rax + 0x18], 8
jb 0x14002952c
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.WinDir
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rbp + 0x138]
test rcx, rcx
je 0x140029555
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x138], r12
mov dword [rbp + 0x140], r12d
call fcn.1400082e0
mov rdx, rax
lea r8, str.System32
lea rcx, [rbp + 0xc0]
call fcn.1400089f0
mov rbx, rax
mov rdx, rax
lea rcx, [0x14011a750]
call fcn.140005f80
mov rcx, rbx
call fcn.140003960
call fcn.1400082e0
mov rdx, rax
lea r8, str.Syswow64
lea rcx, [rbp + 0x60]
call fcn.1400089f0
mov rcx, rax
call fcn.140008980
call fcn.140008570
cmp qword [rax + 0x18], 8
jb 0x1400295c0
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400295ea
call fcn.140008370
mov rdx, rax
lea rcx, [rbp + 0xe0]
call fcn.1400132f0
mov rcx, rax
call fcn.140008980
mov dword [rbp + 0x158], 0xffffffff
mov r9d, 0x2001f
lea r8, str.Select
mov rdi, qword [rbp + 0x1e8]
mov rdx, rdi
lea rcx, [rbp + 0x138]
call fcn.140013900
mov dword [rbp + 0x188], 4
lea rax, [rbp + 0x188]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x158]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x220]
xor r8d, r8d
lea rdx, str.Default
mov rsi, qword [rbp + 0x138]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop
call fcn.140008180
mov rcx, rax
test rax, rax
je 0x140029c37
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x150], rax
mov r8d, dword [rbp + 0x158]
lea rdx, str.RegistryMachine_autoruns.systemControlSet_03d
lea rcx, [rbp + 0x150]
call fcn.14002af10
lea rax, [rbp + 0x180]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x130]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, str.CurrentControlSet
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rbx, qword [rbp + 0x150]
test eax, eax
jne 0x140029743
mov rax, r13
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400296f0
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 6
xor r8d, r8d
lea rdx, str.SymbolicLinkValue
mov rcx, qword [rbp + 0x130]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140029736
lea rdx, str.CurrentControlSet
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rbp + 0x130]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
je 0x140029758
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x138], r12
mov dword [rbp + 0x140], r12d
mov r9d, 0x2001f
lea r8, str.CurrentControlSetControlSession_ManagerEnvironment
mov rdx, rdi
lea rcx, [rbp + 0x138]
call fcn.140013900
cmp qword [rbp + 0x138], 0
je 0x14002990c
xorps xmm0, xmm0
movups xmmword [rbp + 0x1b0], xmm0
movdqa xmm1, xmmword [0x1400f80d0]
movdqu xmmword [rbp + 0x1c0], xmm1
mov word [rbp + 0x1b0], r12w
mov dword [rsp + 0x50], 0x800
lea r8, [rbp + 0x1b0]
lea rdx, str.Path
lea rcx, [rbp + 0x138]
call fcn.140026340
mov rcx, qword [rbp + 0x138]
test rcx, rcx
je 0x1400297e6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x138], r12
mov dword [rbp + 0x140], r12d
mov r9d, 0x2001f
lea r8, str.Environment
mov rdx, qword [rbp + 0x1d0]
lea rcx, [rbp + 0x138]
call fcn.140013900
cmp qword [rbp + 0x138], 0
je 0x1400298a6
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
movdqa xmm1, xmmword [0x1400f80d0]
movdqu xmmword [rbp + 0x30], xmm1
mov word [rbp + 0x20], r12w
mov dword [rsp + 0x50], 0x1800
lea r8, [rbp + 0x20]
lea rdx, str.Path
lea rcx, [rbp + 0x138]
call fcn.140026340
lea r8, [rbp + 0x20]
lea rdx, [0x1400f008c]
lea rcx, [rbp + 0x100]
call fcn.140006c80
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140029879
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0x1b0]
call fcn.140006fe0
nop
lea rcx, [rbp + 0x100]
call fcn.140003960
mov dword [rsp + 0x50], 0x800
lea rcx, [rbp + 0x20]
call fcn.140003960
lea rcx, [rbp + 0x1b0]
call fcn.14002e1f0
lea rcx, [rbp + 0x1b0]
cmp rcx, rax
je 0x1400298db
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400298cc
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0x1b0]
call fcn.140003510
lea rdx, [rbp + 0x1b0]
cmp qword [rbp + 0x1c8], 8
cmovae rdx, qword [rbp + 0x1b0]
lea rcx, str.Path
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
lea rcx, [rbp + 0x1b0]
call fcn.140003960
mov byte [0x140135880], 1
mov r8, r13
mov rcx, qword [rsp + 0x58]
nop dword [rax + rax]
inc r8
cmp word [rcx + r8*2], 0
jne 0x140029920
mov rdx, rcx
lea rcx, [0x14011a6d0]
call fcn.140003510
mov r9, qword [reloc.OLEAUT32.dll_VariantInit]
lea rdx, [0x14011a6d0]
mov r10, qword [0x14011a6d0]
cmp r9, 8
cmovae rdx, r10
mov r8, qword [0x14011a6e0]
test r8, r8
je 0x140029997
lea rcx, [r8 - 1]
mov rax, r13
cmp rcx, r13
cmovb rax, rcx
lea rdi, [rdx + rax*2]
cmp word [rdi], 0x5c
je 0x14002998f
nop dword [rax + rax]
cmp rdi, rdx
je 0x140029997
sub rdi, 2
cmp word [rdi], 0x5c
jne 0x140029980
sub rdi, rdx
sar rdi, 1
jmp 0x14002999a
mov rdi, r13
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
cmp r8, rdi
cmovb rdi, r8
lea r15, [0x14011a6d0]
cmp r9, 8
cmovae r15, r10
movabs r14, 0x7ffffffffffffffe
cmp rdi, r14
ja 0x140029c42
cmp rdi, 8
jae 0x1400299f6
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], 7
add rdi, rdi
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x60]
call fcn.14009d3c0
mov word [rbp + rdi - 0x60], r12w
jmp 0x140029a43
mov rax, rdi
or rax, 7
cmp rax, r14
ja 0x140029a11
mov r14, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r14, rcx
lea rdx, [r14 + 1]
lea rcx, [rbp - 0x60]
call fcn.1400037f0
mov rsi, rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], r14
add rdi, rdi
mov r8, rdi
mov rdx, r15
mov rcx, rax
call fcn.14009d3c0
mov word [rsi + rdi], r12w
lea rdx, [rbp - 0x60]
lea rcx, [0x14011a6d0]
call fcn.140005f80
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140029a93
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029a8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029c48
call fcn.14009bfe4
mov edi, r12d
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r13d
sub r13d, 1
jg 0x140029ab0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp + 0x218]
cmp rdx, 8
jb 0x140029af6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x200]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029af1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029c4e
call fcn.14009bfe4
mov qword [rbp + 0x210], r12
mov qword [rbp + 0x218], 7
mov word [rbp + 0x200], r12w
mov rdx, qword [rbp + 0x178]
cmp rdx, 8
jb 0x140029b56
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029b51
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029c54
call fcn.14009bfe4
mov qword [rbp + 0x170], r12
mov qword [rbp + 0x178], 7
mov word [rbp + 0x160], r12w
mov rsi, qword [rbp + 0x198]
mov rcx, qword [rbp + 0x138]
test rcx, rcx
je 0x140029b8a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp + 0x1d0]
test rcx, rcx
je 0x140029ba5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140029ba5
mov rsi, qword [rbp + 0x198]
test rsi, rsi
je 0x140029bb4
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp + 0x1e8]
test rcx, rcx
je 0x140029bc6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x14002883e
mov ecx, 0x80070057
call fcn.140007f00
nop
mov ecx, 0x80004005
call fcn.140007f00
nop
mov ecx, 0x80004005
call fcn.140007f00
nop
mov ecx, 0x80004005
call fcn.140007f00
nop
mov ecx, 0x80004005
call fcn.140007f00
nop
mov ecx, 0x80004005
call fcn.140007f00
nop
mov ecx, 0x80004005
call fcn.140007f00
nop
mov ecx, 0x80004005
call fcn.140007f00
nop
call fcn.1400a3080
nop
call fcn.1400a3080
int3
call fcn.1400a3080
nop
mov ecx, 0x80004005
call fcn.140007f00
nop
call fcn.140003690
int3
call fcn.1400a3080
nop
call fcn.1400a3080
nop
call fcn.1400a3080
nop
mov ecx, 0x80070057
call fcn.140007f00
nop
mov ecx, 0x80070057
call fcn.140007f00
nop
mov ecx, 0x80070057
call fcn.140007f00
int3