Function at 0x180001af0
Capabilities:
Check if file exists
Resume thread

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18002d008]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, rdx
xor r15d, r15d
mov qword [rbp - 0x59], r15
xor eax, eax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x49], rax
mov qword [rbp + 7], 0xf
mov qword [rbp - 1], r15
mov byte [rbp - 0x11], al
xor r8d, r8d
lea rdx, [0x180029cc0]
lea rcx, [rbp - 0x11]
call fcn.1800013c0
nop
test rbx, rbx
jne 0x180001b7e
mov r15d, 0x190
lea rdx, str.CWow64Shell::prebootex
lea rcx, [0x18000e818]
call fcn.1800028c0
jmp 0x180001f97
mov qword [rbp - 0x19], 0xf
mov qword [rbp - 0x21], r15
mov byte [rbp - 0x31], 0
cmp byte [rbx], 0
jne 0x180001b98
mov r8, r15
jmp 0x180001baa
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x180001ba0
mov rdx, rbx
lea rcx, [rbp - 0x31]
call fcn.1800013c0
nop
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 0x10
cmovae rcx, qword [rbp - 0x31]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x180001c55
mov r15d, 0x194
lea r8, [rbp - 0x31]
cmp qword [rbp - 0x19], 0x10
cmovae r8, qword [rbp - 0x31]
lea rdx, str.CWow64Shell::prebootex
lea rcx, [0x18000e830]
call fcn.1800028c0
nop
mov rax, qword [rbp - 0x19]
cmp rax, 0x10
jb 0x180001f97
inc rax
mov rcx, qword [rbp - 0x31]
cmp rax, 0x1000
jb 0x180001f90
test cl, 0x1f
je 0x180001c27
call fcn.180005570
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180001c36
call fcn.180005570
int3
sub rcx, rax
cmp rcx, 8
jae 0x180001c45
call fcn.180005570
int3
cmp rcx, 0x27
jbe 0x180001f8d
call fcn.180005570
nop
lea rdx, [rbp - 0x31]
lea rcx, [rbp + 0xf]
call fcn.180004140
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x180001c6f
mov rbx, qword [rax]
mov rax, qword [0x18002e258]
test rax, rax
jne 0x180001cb7
mov rax, qword [0x18002e258]
test rax, rax
jne 0x180001cb0
lea ecx, [rax + 0x18]
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov qword [rbp - 0x39], rax
test rax, rax
je 0x180001ca6
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
jmp 0x180001ca9
mov rax, r15
mov qword [0x18002e258], rax
mov rax, qword [0x18002e258]
mov rax, qword [0x18002e258]
lea r9, [rbp - 0x59]
mov rdx, rbx
call fcn.180004170
mov ebx, eax
mov rax, qword [rbp + 0x27]
cmp rax, 8
jb 0x180001d3b
inc rax
mov rcx, qword [rbp + 0xf]
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
jbe 0x180001cf2
call fcn.180005570
int3
add rax, rax
cmp rax, 0x1000
jb 0x180001d35
test cl, 0x1f
je 0x180001d08
call fcn.180005570
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180001d17
call fcn.180005570
int3
sub rcx, rax
cmp rcx, 8
jae 0x180001d26
call fcn.180005570
int3
cmp rcx, 0x27
jbe 0x180001d32
call fcn.180005570
int3
mov rcx, rax
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
test ebx, ebx
jne 0x180001dd1
mov r15d, 0x1f4
lea rbx, [rbp - 0x31]
cmp qword [rbp - 0x19], 0x10
cmovae rbx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov r9, rbx
lea rdx, str.CWow64Shell::prebootex
lea rcx, [0x18000e850]
call fcn.1800028c0
nop
mov rax, qword [rbp - 0x19]
cmp rax, 0x10
jb 0x180001f97
inc rax
mov rcx, qword [rbp - 0x31]
cmp rax, 0x1000
jb 0x180001f90
test cl, 0x1f
je 0x180001da3
call fcn.180005570
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180001db2
call fcn.180005570
int3
sub rcx, rax
cmp rcx, 8
jae 0x180001dc1
call fcn.180005570
int3
cmp rcx, 0x27
jbe 0x180001f8d
call fcn.180005570
nop
lea rcx, [rbp - 0x11]
call fcn.180003770
lea r14, [rbp - 0x11]
cmp qword [rbp + 7], 0x10
cmovae r14, qword [rbp - 0x11]
mov edi, dword [rbp - 1]
inc edi
lea rcx, [rdi + 4]
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__]
mov r12, rax
lea r8, [rdi + 4]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [r12], edi
lea rcx, [r12 + 4]
mov r8d, edi
mov rdx, r14
call sub.msvcrt.dll_memcpy
mov rcx, qword [0x18002e260]
test rcx, rcx
jne 0x180001e2d
call fcn.180002020
mov rcx, qword [0x18002e260]
mov eax, dword [r12]
add eax, 4
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov rdi, qword [rbp - 0x59]
mov rdx, rdi
call fcn.180003a20
mov ebx, eax
mov rcx, r12
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
test ebx, ebx
jne 0x180001ef1
mov r15d, 0x1f5
lea rbx, [rbp - 0x31]
cmp qword [rbp - 0x19], 0x10
cmovae rbx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov r9, rbx
lea rdx, str.CWow64Shell::prebootex
lea rcx, str.__s__preboot_
call fcn.1800028c0
nop
mov rax, qword [rbp - 0x19]
cmp rax, 0x10
jb 0x180001f97
inc rax
mov rcx, qword [rbp - 0x31]
cmp rax, 0x1000
jb 0x180001f90
test cl, 0x1f
je 0x180001ec3
call fcn.180005570
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180001ed2
call fcn.180005570
int3
sub rcx, rax
cmp rcx, 8
jae 0x180001ee1
call fcn.180005570
int3
cmp rcx, 0x27
jbe 0x180001f8d
call fcn.180005570
nop
mov r9d, dword [rbp - 0x49]
mov r8d, dword [rbp - 0x45]
lea rdx, str.CWow64Shell::prebootex
lea rcx, str.__s__tid___d__pid___d
call fcn.1800028c0
mov rbx, qword [rbp - 0x51]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test rbx, rbx
je 0x180001f30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x180001f3f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp - 0x19]
cmp rax, 0x10
jb 0x180001f97
inc rax
mov rcx, qword [rbp - 0x31]
cmp rax, 0x1000
jb 0x180001f90
test cl, 0x1f
je 0x180001f63
call fcn.180005570
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180001f72
call fcn.180005570
int3
sub rcx, rax
cmp rcx, 8
jae 0x180001f81
call fcn.180005570
int3
cmp rcx, 0x27
jbe 0x180001f8d
call fcn.180005570
int3
mov rcx, rax
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop
mov rax, qword [rbp + 7]
cmp rax, 0x10
jb 0x180001fee
inc rax
mov rcx, qword [rbp - 0x11]
cmp rax, 0x1000
jb 0x180001fe8
test cl, 0x1f
je 0x180001fbb
call fcn.180005570
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180001fca
call fcn.180005570
int3
sub rcx, rax
cmp rcx, 8
jae 0x180001fd9
call fcn.180005570
int3
cmp rcx, 0x27
jbe 0x180001fe5
call fcn.180005570
int3
mov rcx, rax
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, r15d
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.180005c60
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret