Function at 0x180242e60
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x708], rbx
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov qword [rsp + 0x38], r9
mov r12, r8
movzx r13d, dl
mov rsi, rcx
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x80], xmm0
movdqa xmm1, xmmword [0x1803f7240]
movdqu xmmword [rbp + 0x80], xmm1
xor ebx, ebx
mov word [rbp + 0x70], bx
lea r8d, [rbx + 0xb]
lea rdx, str.upgrade.hzt
lea rcx, [rbp + 0x70]
call fcn.180005cd0
nop
lea rdx, [rsi + 8]
lea r8, [rbp + 0x70]
lea rcx, [rbp + 0x130]
call fcn.180160610
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 8
jb 0x180242f3d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180242f38
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180242f38
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], bx
lea rcx, [rbp + 0x130]
call fcn.18015af70
test al, al
jne 0x180242f70
mov rcx, rsi
call fcn.180242700
xor bl, bl
jmp 0x1802436dd
lea r8, [rbp + 0x130]
lea rdx, [rbp + 0x10]
call fcn.180242040
nop
cmp qword [rbp + 0x20], 0
jne 0x180242f97
mov rcx, rsi
call fcn.180242700
xor bl, bl
jmp 0x1802436d3
mov qword [rsp + 0x20], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov edx, 0x3b
lea r8, [rsp + 0x20]
lea rcx, [rbp + 0x10]
call fcn.180164b60
mov r8, qword [rsp + 0x20]
mov r15, qword [rsp + 0x28]
cmp r8, r15
je 0x1802436be
mov r11, r8
mov rbx, qword [r8 + 0x18]
cmp rbx, 8
jb 0x180242fdb
mov r11, qword [r8]
mov rdi, qword [r8 + 0x10]
mov r10d, 0xd
lea rcx, str.AUTOUPDATERUN
lea rax, [0x1803e51a0]
cmp rdi, 3
jne 0x180243018
mov r9, rdi
mov rdx, rax
sub r11, rax
movzx eax, word [rdx]
cmp word [r11 + rdx], ax
jne 0x180243018
add rdx, 2
sub r9, 1
jne 0x180243002
jmp 0x180243058
mov r11, r8
cmp rbx, 8
jb 0x180243024
mov r11, qword [r8]
cmp rdi, r10
jne 0x1802436be
mov r9, r10
mov rdx, rcx
sub r11, rcx
nop word [rax + rax]
movzx eax, word [rdx]
cmp word [r11 + rdx], ax
jne 0x1802436be
add rdx, 2
sub r9, 1
jne 0x180243040
mov rdx, r8
cmp rbx, 8
jb 0x180243064
mov rdx, qword [r8]
cmp rdi, r10
jne 0x180243088
sub rdx, rcx
nop dword [rax]
movzx eax, word [rcx]
cmp word [rdx + rcx], ax
jne 0x180243088
add rcx, 2
sub r10, 1
jne 0x180243070
mov r14b, 1
jmp 0x18024308b
xor r14b, r14b
test r13b, r13b
je 0x18024309b
test r14b, r14b
jne 0x1802436c6
jmp 0x1802430a4
test r14b, r14b
je 0x1802436c6
lea rcx, [r8 + 0x20]
mov rdx, r15
call fcn.180066dd0
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffffffe0
call fcn.180005c50
mov rax, qword [rsp + 0x28]
sub rax, 0x20
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x20]
sub rax, rdx
sar rax, 5
sub rax, 3
cmp rax, 1
ja 0x1802436be
lea rcx, [rbp + 0x50]
call fcn.180005900
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0x20
lea rcx, [rbp + 0x110]
call fcn.180005900
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xa0], xmm0
movdqa xmm1, xmmword [0x1803f7240]
movdqu xmmword [rbp + 0xa0], xmm1
xor r13d, r13d
mov word [rbp + 0x90], r13w
lea r8d, [r13 + 8]
lea rdx, str._upgrade
lea rcx, [rbp + 0x90]
call fcn.180005cd0
nop
lea rcx, [rsp + 0x48]
call fcn.18015a920
nop
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x48]
call fcn.180162570
lea rdx, [rbp + 0xf0]
lea rcx, [rsp + 0x48]
call fcn.18015ab00
nop
lea rcx, [rbp + 0x110]
cmp qword [rbp + 0x128], 8
cmovae rcx, qword [rbp + 0x110]
lea r8, [rbp + 0xf0]
cmp qword [rbp + 0x108], 8
cmovae r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0x100]
cmp rdx, qword [rbp + 0x120]
jne 0x180243666
test rdx, rdx
je 0x1802431d8
sub r8, rcx
nop dword [rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x180243666
add rcx, 2
sub rdx, 1
jne 0x1802431c0
test r14b, r14b
je 0x180243236
mov rax, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub rax, rdx
sar rax, 5
cmp rax, 4
jb 0x180243666
add rdx, 0x60
lea rcx, [rbp + 0x150]
call fcn.180005900
nop
mov r9, qword [rsp + 0x38]
lea r8, [rbp + 0x150]
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.180243c40
nop
lea rcx, [rbp + 0x150]
test al, al
je 0x18024363a
call fcn.180005c50
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x10]
call fcn.180005900
mov rdi, rax
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0x50]
call fcn.18015af70
test al, al
je 0x18024332c
call fcn.180371ef0
lea rbx, [rbp + 0x50]
cmp qword [rbp + 0x68], 8
cmovae rbx, qword [rbp + 0x50]
call fcn.180166590
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.1801666c0
test al, al
je 0x18024332c
cmp qword [rdi + 0x10], 0
jne 0x18024329d
mov rdx, rdi
lea rcx, [rbp + 0x50]
call fcn.18015ddf0
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x80], 0x70
mov rax, qword [rsi + 0x28]
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x7c], 0x540
call fcn.180372370
lea rcx, str.runas
test al, al
cmove rcx, qword [rbp - 0x70]
mov qword [rbp - 0x70], rcx
lea rax, [rbp + 0x50]
cmp qword [rbp + 0x68], 8
cmovae rax, qword [rbp + 0x50]
mov qword [rbp - 0x68], rax
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x1802432f8
mov rax, qword [rdi]
mov qword [rbp - 0x58], rax
lea rax, [rbp + 0x90]
cmp qword [rbp + 0xa8], 8
cmovae rax, qword [rbp + 0x90]
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x50], 1
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x18024334d
mov rcx, rdi
call fcn.180005c50
mov rcx, rsi
call fcn.180242700
lea rcx, [rbp + 0x130]
call fcn.18017a3d0
jmp 0x18024366e
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x18024335d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call fcn.180005c50
mov bl, 1
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xe0], xmm0
movdqa xmm1, xmmword [0x1803f7240]
movdqu xmmword [rbp + 0xe0], xmm1
mov word [rbp + 0xd0], r13w
mov r8d, 0xb
lea rdx, str.restart.hzt
lea rcx, [rbp + 0xd0]
call fcn.180005cd0
nop
lea r8, [rbp + 0xd0]
lea rdx, [rsi + 8]
lea rcx, [rbp + 0x170]
call fcn.180160610
nop
lea rcx, [rbp + 0xd0]
call fcn.180005c50
xor edx, edx
lea rcx, [rbp + 0xb0]
call fcn.180163240
nop
lea rcx, [rbp + 0x10]
test r14b, r14b
je 0x18024341e
mov r8d, 4
lea rdx, str.EXIT
call fcn.180005cd0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
mov edi, 0x3b
cmp rcx, rdx
jae 0x18024345c
lea rax, [rcx + 1]
mov qword [rbp + 0x20], rax
lea rax, [rbp + 0x10]
cmp rdx, 8
cmovae rax, qword [rbp + 0x10]
mov dword [rax + rcx*2], edi
jmp 0x180243468
mov r8d, 3
lea rdx, [0x1803e51a0]
call fcn.180005cd0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
mov edi, 0x3b
cmp rcx, rdx
jae 0x18024345c
lea rax, [rcx + 1]
mov qword [rbp + 0x20], rax
lea rax, [rbp + 0x10]
cmp rdx, 8
cmovae rax, qword [rbp + 0x10]
mov dword [rax + rcx*2], edi
jmp 0x180243468
mov r9d, edi
lea rcx, [rbp + 0x10]
call fcn.1800345a0
lea rdx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 8
cmovae rdx, qword [rbp + 0xb0]
mov r8, qword [rbp + 0xc0]
lea rcx, [rbp + 0x10]
call fcn.18000ad20
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
cmp rcx, rdx
jae 0x1802434ba
lea rax, [rcx + 1]
mov qword [rbp + 0x20], rax
lea rax, [rbp + 0x10]
cmp rdx, 8
cmovae rax, qword [rbp + 0x10]
mov dword [rax + rcx*2], 0x3b
jmp 0x1802434c6
mov r9d, edi
lea rcx, [rbp + 0x10]
call fcn.1800345a0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x40], xmm0
movdqa xmm1, xmmword [0x1803f7240]
movdqu xmmword [rbp + 0x40], xmm1
mov word [rbp + 0x30], r13w
mov qword [rbp + 0x40], r13
mov word [rbp + 0x30], r13w
xor edx, edx
mov r8d, 0x412
lea rcx, [rbp + 0x190]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x190]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x206
ja 0x180243551
mov word [rbp + 0x5a0], r13w
lea rax, [rbp + 0x190]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180243530
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x30]
call fcn.180005cd0
mov r8, qword [rbp + 0x40]
jmp 0x18024355d
mov r8, r13
mov qword [rbp + 0x40], r13
mov word [rbp + 0x30], r13w
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rdx, qword [rbp + 0x30]
lea rcx, [rbp + 0x10]
call fcn.18000ad20
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
cmp rcx, rdx
jae 0x18024359f
lea rax, [rcx + 1]
mov qword [rbp + 0x20], rax
lea rax, [rbp + 0x10]
cmp rdx, 8
cmovae rax, qword [rbp + 0x10]
mov dword [rax + rcx*2], 0x3b
jmp 0x1802435ab
mov r9d, edi
lea rcx, [rbp + 0x10]
call fcn.1800345a0
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x1802435ba
mov rdx, qword [r12]
mov r8, qword [r12 + 0x10]
lea rcx, [rbp + 0x10]
call fcn.18000ad20
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
cmp rcx, rdx
jae 0x1802435f3
lea rax, [rcx + 1]
mov qword [rbp + 0x20], rax
lea rax, [rbp + 0x10]
cmp rdx, 8
cmovae rax, qword [rbp + 0x10]
mov dword [rax + rcx*2], 0x3b
jmp 0x1802435ff
mov r9d, edi
lea rcx, [rbp + 0x10]
call fcn.1800345a0
lea r8, [rbp + 0x170]
lea rdx, [rbp + 0x10]
call fcn.180241c60
test al, al
jne 0x180243641
mov rcx, rsi
call fcn.180242700
nop
lea rcx, [rbp + 0x30]
call fcn.180005c50
nop
lea rcx, [rbp + 0xb0]
call fcn.180005c50
nop
lea rcx, [rbp + 0x170]
call fcn.180005c50
jmp 0x18024366e
lea rcx, [rbp + 0x30]
call fcn.180005c50
nop
lea rcx, [rbp + 0xb0]
call fcn.180005c50
nop
lea rcx, [rbp + 0x170]
call fcn.180005c50
jmp 0x180243670
mov rcx, rsi
call fcn.180242700
xor bl, bl
lea rcx, [rbp + 0xf0]
call fcn.180005c50
nop
lea rcx, [rsp + 0x60]
call fcn.180005af0
nop
lea rax, vtable.RC::RCFileHash.0
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x58], 1
lea rcx, [rbp + 0x90]
call fcn.180005c50
nop
lea rcx, [rbp + 0x110]
call fcn.180005c50
nop
lea rcx, [rbp + 0x50]
call fcn.180005c50
jmp 0x1802436c8
mov rcx, rsi
call fcn.180242700
xor bl, bl
lea rcx, [rsp + 0x20]
call fcn.180005b60
nop
lea rcx, [rbp + 0x10]
call fcn.180005c50
nop
lea rcx, [rbp + 0x130]
call fcn.180005c50
movzx eax, bl
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.180393f50
mov rbx, qword [rsp + 0x708]
add rsp, 0x6c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret