Function at 0x1802438a0
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 [0x1804ca010]
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 [0x1803e6740]
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.180004e70
nop
lea rdx, [rsi + 8]
lea r8, [rbp + 0x70]
lea rcx, [rbp + 0x130]
call fcn.18015aa30
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 8
jb 0x18024397d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180243978
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180243978
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], bx
lea rcx, [rbp + 0x130]
call fcn.180155970
test al, al
jne 0x1802439b0
mov rcx, rsi
call fcn.180243140
xor bl, bl
jmp 0x18024411d
lea r8, [rbp + 0x130]
lea rdx, [rbp + 0x10]
call fcn.180242a80
nop
cmp qword [rbp + 0x20], 0
jne 0x1802439d7
mov rcx, rsi
call fcn.180243140
xor bl, bl
jmp 0x180244113
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.18015ef80
mov r8, qword [rsp + 0x20]
mov r15, qword [rsp + 0x28]
cmp r8, r15
je 0x1802440fe
mov r11, r8
mov rbx, qword [r8 + 0x18]
cmp rbx, 8
jb 0x180243a1b
mov r11, qword [r8]
mov rdi, qword [r8 + 0x10]
mov r10d, 0xd
lea rcx, str.AUTOUPDATERUN
lea rax, [0x1803d53a8]
cmp rdi, 3
jne 0x180243a58
mov r9, rdi
mov rdx, rax
sub r11, rax
movzx eax, word [rdx]
cmp word [r11 + rdx], ax
jne 0x180243a58
add rdx, 2
sub r9, 1
jne 0x180243a42
jmp 0x180243a98
mov r11, r8
cmp rbx, 8
jb 0x180243a64
mov r11, qword [r8]
cmp rdi, r10
jne 0x1802440fe
mov r9, r10
mov rdx, rcx
sub r11, rcx
nop word [rax + rax]
movzx eax, word [rdx]
cmp word [r11 + rdx], ax
jne 0x1802440fe
add rdx, 2
sub r9, 1
jne 0x180243a80
mov rdx, r8
cmp rbx, 8
jb 0x180243aa4
mov rdx, qword [r8]
cmp rdi, r10
jne 0x180243ac8
sub rdx, rcx
nop dword [rax]
movzx eax, word [rcx]
cmp word [rdx + rcx], ax
jne 0x180243ac8
add rcx, 2
sub r10, 1
jne 0x180243ab0
mov r14b, 1
jmp 0x180243acb
xor r14b, r14b
test r13b, r13b
je 0x180243adb
test r14b, r14b
jne 0x180244106
jmp 0x180243ae4
test r14b, r14b
je 0x180244106
lea rcx, [r8 + 0x20]
mov rdx, r15
call fcn.180064b90
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffffffe0
call fcn.180004df0
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 0x1802440fe
lea rcx, [rbp + 0x50]
call fcn.180004aa0
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0x20
lea rcx, [rbp + 0x110]
call fcn.180004aa0
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xa0], xmm0
movdqa xmm1, xmmword [0x1803e6740]
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.180004e70
nop
lea rcx, [rsp + 0x48]
call fcn.180155320
nop
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x48]
call fcn.18015c990
lea rdx, [rbp + 0xf0]
lea rcx, [rsp + 0x48]
call fcn.180155500
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 0x1802440a6
test rdx, rdx
je 0x180243c18
sub r8, rcx
nop dword [rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x1802440a6
add rcx, 2
sub rdx, 1
jne 0x180243c00
test r14b, r14b
je 0x180243c76
mov rax, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub rax, rdx
sar rax, 5
cmp rax, 4
jb 0x1802440a6
add rdx, 0x60
lea rcx, [rbp + 0x150]
call fcn.180004aa0
nop
mov r9, qword [rsp + 0x38]
lea r8, [rbp + 0x150]
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.180244680
nop
lea rcx, [rbp + 0x150]
test al, al
je 0x18024407a
call fcn.180004df0
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x10]
call fcn.180004aa0
mov rdi, rax
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0x50]
call fcn.180155970
test al, al
je 0x180243d6c
call fcn.1801fff80
lea rbx, [rbp + 0x50]
cmp qword [rbp + 0x68], 8
cmovae rbx, qword [rbp + 0x50]
call fcn.1801609b0
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.180160ae0
test al, al
je 0x180243d6c
cmp qword [rdi + 0x10], 0
jne 0x180243cdd
mov rdx, rdi
lea rcx, [rbp + 0x50]
call fcn.1801587f0
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.180202800
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 0x180243d38
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 0x180243d8d
mov rcx, rdi
call fcn.180004df0
mov rcx, rsi
call fcn.180243140
lea rcx, [rbp + 0x130]
call fcn.180175040
jmp 0x1802440ae
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x180243d9d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call fcn.180004df0
mov bl, 1
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xe0], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rbp + 0xe0], xmm1
mov word [rbp + 0xd0], r13w
mov r8d, 0xb
lea rdx, str.restart.hzt
lea rcx, [rbp + 0xd0]
call fcn.180004e70
nop
lea r8, [rbp + 0xd0]
lea rdx, [rsi + 8]
lea rcx, [rbp + 0x170]
call fcn.18015aa30
nop
lea rcx, [rbp + 0xd0]
call fcn.180004df0
xor edx, edx
lea rcx, [rbp + 0xb0]
call fcn.18015d660
nop
lea rcx, [rbp + 0x10]
test r14b, r14b
je 0x180243e5e
mov r8d, 4
lea rdx, str.EXIT
call fcn.180004e70
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
mov edi, 0x3b
cmp rcx, rdx
jae 0x180243e9c
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 0x180243ea8
mov r8d, 3
lea rdx, [0x1803d53a8]
call fcn.180004e70
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
mov edi, 0x3b
cmp rcx, rdx
jae 0x180243e9c
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 0x180243ea8
mov r9d, edi
lea rcx, [rbp + 0x10]
call fcn.180032810
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.180009d80
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
cmp rcx, rdx
jae 0x180243efa
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 0x180243f06
mov r9d, edi
lea rcx, [rbp + 0x10]
call fcn.180032810
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x40], xmm0
movdqa xmm1, xmmword [0x1803e6740]
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 0x180243f91
mov word [rbp + 0x5a0], r13w
lea rax, [rbp + 0x190]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180243f70
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x30]
call fcn.180004e70
mov r8, qword [rbp + 0x40]
jmp 0x180243f9d
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.180009d80
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
cmp rcx, rdx
jae 0x180243fdf
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 0x180243feb
mov r9d, edi
lea rcx, [rbp + 0x10]
call fcn.180032810
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x180243ffa
mov rdx, qword [r12]
mov r8, qword [r12 + 0x10]
lea rcx, [rbp + 0x10]
call fcn.180009d80
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
cmp rcx, rdx
jae 0x180244033
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 0x18024403f
mov r9d, edi
lea rcx, [rbp + 0x10]
call fcn.180032810
lea r8, [rbp + 0x170]
lea rdx, [rbp + 0x10]
call fcn.1802426a0
test al, al
jne 0x180244081
mov rcx, rsi
call fcn.180243140
nop
lea rcx, [rbp + 0x30]
call fcn.180004df0
nop
lea rcx, [rbp + 0xb0]
call fcn.180004df0
nop
lea rcx, [rbp + 0x170]
call fcn.180004df0
jmp 0x1802440ae
lea rcx, [rbp + 0x30]
call fcn.180004df0
nop
lea rcx, [rbp + 0xb0]
call fcn.180004df0
nop
lea rcx, [rbp + 0x170]
call fcn.180004df0
jmp 0x1802440b0
mov rcx, rsi
call fcn.180243140
xor bl, bl
lea rcx, [rbp + 0xf0]
call fcn.180004df0
nop
lea rcx, [rsp + 0x60]
call fcn.180004c90
nop
lea rax, vtable.RC::RCFileHash.0
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x58], 1
lea rcx, [rbp + 0x90]
call fcn.180004df0
nop
lea rcx, [rbp + 0x110]
call fcn.180004df0
nop
lea rcx, [rbp + 0x50]
call fcn.180004df0
jmp 0x180244108
mov rcx, rsi
call fcn.180243140
xor bl, bl
lea rcx, [rsp + 0x20]
call fcn.180004d00
nop
lea rcx, [rbp + 0x10]
call fcn.180004df0
nop
lea rcx, [rbp + 0x130]
call fcn.180004df0
movzx eax, bl
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.180385c10
mov rbx, qword [rsp + 0x708]
add rsp, 0x6c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret