Function at 0x180245820
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 [0x1804cc010]
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 [0x1803e7600]
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.180004ea0
nop
lea rdx, [rsi + 8]
lea r8, [rbp + 0x70]
lea rcx, [rbp + 0x130]
call fcn.18015a940
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 8
jb 0x1802458fd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802458f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802458f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], bx
lea rcx, [rbp + 0x130]
call fcn.180155880
test al, al
jne 0x180245930
mov rcx, rsi
call fcn.1802450c0
xor bl, bl
jmp 0x18024609d
lea r8, [rbp + 0x130]
lea rdx, [rbp + 0x10]
call fcn.180244a00
nop
cmp qword [rbp + 0x20], 0
jne 0x180245957
mov rcx, rsi
call fcn.1802450c0
xor bl, bl
jmp 0x180246093
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.18015ee90
mov r8, qword [rsp + 0x20]
mov r15, qword [rsp + 0x28]
cmp r8, r15
je 0x18024607e
mov r11, r8
mov rbx, qword [r8 + 0x18]
cmp rbx, 8
jb 0x18024599b
mov r11, qword [r8]
mov rdi, qword [r8 + 0x10]
mov r10d, 0xd
lea rcx, str.AUTOUPDATERUN
lea rax, [0x1803d63a0]
cmp rdi, 3
jne 0x1802459d8
mov r9, rdi
mov rdx, rax
sub r11, rax
movzx eax, word [rdx]
cmp word [r11 + rdx], ax
jne 0x1802459d8
add rdx, 2
sub r9, 1
jne 0x1802459c2
jmp 0x180245a18
mov r11, r8
cmp rbx, 8
jb 0x1802459e4
mov r11, qword [r8]
cmp rdi, r10
jne 0x18024607e
mov r9, r10
mov rdx, rcx
sub r11, rcx
nop word [rax + rax]
movzx eax, word [rdx]
cmp word [r11 + rdx], ax
jne 0x18024607e
add rdx, 2
sub r9, 1
jne 0x180245a00
mov rdx, r8
cmp rbx, 8
jb 0x180245a24
mov rdx, qword [r8]
cmp rdi, r10
jne 0x180245a48
sub rdx, rcx
nop dword [rax]
movzx eax, word [rcx]
cmp word [rdx + rcx], ax
jne 0x180245a48
add rcx, 2
sub r10, 1
jne 0x180245a30
mov r14b, 1
jmp 0x180245a4b
xor r14b, r14b
test r13b, r13b
je 0x180245a5b
test r14b, r14b
jne 0x180246086
jmp 0x180245a64
test r14b, r14b
je 0x180246086
lea rcx, [r8 + 0x20]
mov rdx, r15
call fcn.1800644f0
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffffffe0
call fcn.180004e20
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 0x18024607e
lea rcx, [rbp + 0x50]
call fcn.180004ad0
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0x20
lea rcx, [rbp + 0x110]
call fcn.180004ad0
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xa0], xmm0
movdqa xmm1, xmmword [0x1803e7600]
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.180004ea0
nop
lea rcx, [rsp + 0x48]
call fcn.180155230
nop
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x48]
call fcn.18015c8a0
lea rdx, [rbp + 0xf0]
lea rcx, [rsp + 0x48]
call fcn.180155410
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 0x180246026
test rdx, rdx
je 0x180245b98
sub r8, rcx
nop dword [rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x180246026
add rcx, 2
sub rdx, 1
jne 0x180245b80
test r14b, r14b
je 0x180245bf6
mov rax, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub rax, rdx
sar rax, 5
cmp rax, 4
jb 0x180246026
add rdx, 0x60
lea rcx, [rbp + 0x150]
call fcn.180004ad0
nop
mov r9, qword [rsp + 0x38]
lea r8, [rbp + 0x150]
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.180246600
nop
lea rcx, [rbp + 0x150]
test al, al
je 0x180245ffa
call fcn.180004e20
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x10]
call fcn.180004ad0
mov rdi, rax
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0x50]
call fcn.180155880
test al, al
je 0x180245cec
call fcn.1801ffe60
lea rbx, [rbp + 0x50]
cmp qword [rbp + 0x68], 8
cmovae rbx, qword [rbp + 0x50]
call fcn.1801608c0
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.1801609f0
test al, al
je 0x180245cec
cmp qword [rdi + 0x10], 0
jne 0x180245c5d
mov rdx, rdi
lea rcx, [rbp + 0x50]
call fcn.180158700
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.1802025f0
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 0x180245cb8
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 0x180245d0d
mov rcx, rdi
call fcn.180004e20
mov rcx, rsi
call fcn.1802450c0
lea rcx, [rbp + 0x130]
call fcn.180174f50
jmp 0x18024602e
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x180245d1d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call fcn.180004e20
mov bl, 1
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xe0], xmm0
movdqa xmm1, xmmword [0x1803e7600]
movdqu xmmword [rbp + 0xe0], xmm1
mov word [rbp + 0xd0], r13w
mov r8d, 0xb
lea rdx, str.restart.hzt
lea rcx, [rbp + 0xd0]
call fcn.180004ea0
nop
lea r8, [rbp + 0xd0]
lea rdx, [rsi + 8]
lea rcx, [rbp + 0x170]
call fcn.18015a940
nop
lea rcx, [rbp + 0xd0]
call fcn.180004e20
xor edx, edx
lea rcx, [rbp + 0xb0]
call fcn.18015d570
nop
lea rcx, [rbp + 0x10]
test r14b, r14b
je 0x180245dde
mov r8d, 4
lea rdx, str.EXIT
call fcn.180004ea0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
mov edi, 0x3b
cmp rcx, rdx
jae 0x180245e1c
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 0x180245e28
mov r8d, 3
lea rdx, [0x1803d63a0]
call fcn.180004ea0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
mov edi, 0x3b
cmp rcx, rdx
jae 0x180245e1c
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 0x180245e28
mov r9d, edi
lea rcx, [rbp + 0x10]
call fcn.180032180
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.180009db0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
cmp rcx, rdx
jae 0x180245e7a
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 0x180245e86
mov r9d, edi
lea rcx, [rbp + 0x10]
call fcn.180032180
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x40], xmm0
movdqa xmm1, xmmword [0x1803e7600]
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 0x180245f11
mov word [rbp + 0x5a0], r13w
lea rax, [rbp + 0x190]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180245ef0
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x30]
call fcn.180004ea0
mov r8, qword [rbp + 0x40]
jmp 0x180245f1d
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.180009db0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
cmp rcx, rdx
jae 0x180245f5f
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 0x180245f6b
mov r9d, edi
lea rcx, [rbp + 0x10]
call fcn.180032180
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x180245f7a
mov rdx, qword [r12]
mov r8, qword [r12 + 0x10]
lea rcx, [rbp + 0x10]
call fcn.180009db0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
cmp rcx, rdx
jae 0x180245fb3
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 0x180245fbf
mov r9d, edi
lea rcx, [rbp + 0x10]
call fcn.180032180
lea r8, [rbp + 0x170]
lea rdx, [rbp + 0x10]
call fcn.180244620
test al, al
jne 0x180246001
mov rcx, rsi
call fcn.1802450c0
nop
lea rcx, [rbp + 0x30]
call fcn.180004e20
nop
lea rcx, [rbp + 0xb0]
call fcn.180004e20
nop
lea rcx, [rbp + 0x170]
call fcn.180004e20
jmp 0x18024602e
lea rcx, [rbp + 0x30]
call fcn.180004e20
nop
lea rcx, [rbp + 0xb0]
call fcn.180004e20
nop
lea rcx, [rbp + 0x170]
call fcn.180004e20
jmp 0x180246030
mov rcx, rsi
call fcn.1802450c0
xor bl, bl
lea rcx, [rbp + 0xf0]
call fcn.180004e20
nop
lea rcx, [rsp + 0x60]
call fcn.180004cc0
nop
lea rax, vtable.RC::RCFileHash.0
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x58], 1
lea rcx, [rbp + 0x90]
call fcn.180004e20
nop
lea rcx, [rbp + 0x110]
call fcn.180004e20
nop
lea rcx, [rbp + 0x50]
call fcn.180004e20
jmp 0x180246088
mov rcx, rsi
call fcn.1802450c0
xor bl, bl
lea rcx, [rsp + 0x20]
call fcn.180004d30
nop
lea rcx, [rbp + 0x10]
call fcn.180004e20
nop
lea rcx, [rbp + 0x130]
call fcn.180004e20
movzx eax, bl
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0x708]
add rsp, 0x6c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret