Function at 0x180246090
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 [0x1804cd010]
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 [0x1803e8770]
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.18015aff0
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 8
jb 0x18024616d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180246168
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180246168
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
movdqu xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], bx
lea rcx, [rbp + 0x130]
call fcn.180155f30
test al, al
jne 0x1802461a0
mov rcx, rsi
call fcn.180245930
xor bl, bl
jmp 0x18024690d
lea r8, [rbp + 0x130]
lea rdx, [rbp + 0x10]
call fcn.180245270
nop
cmp qword [rbp + 0x20], 0
jne 0x1802461c7
mov rcx, rsi
call fcn.180245930
xor bl, bl
jmp 0x180246903
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.18015f540
mov r8, qword [rsp + 0x20]
mov r15, qword [rsp + 0x28]
cmp r8, r15
je 0x1802468ee
mov r11, r8
mov rbx, qword [r8 + 0x18]
cmp rbx, 8
jb 0x18024620b
mov r11, qword [r8]
mov rdi, qword [r8 + 0x10]
mov r10d, 0xd
lea rcx, str.AUTOUPDATERUN
lea rax, [0x1803d7440]
cmp rdi, 3
jne 0x180246248
mov r9, rdi
mov rdx, rax
sub r11, rax
movzx eax, word [rdx]
cmp word [r11 + rdx], ax
jne 0x180246248
add rdx, 2
sub r9, 1
jne 0x180246232
jmp 0x180246288
mov r11, r8
cmp rbx, 8
jb 0x180246254
mov r11, qword [r8]
cmp rdi, r10
jne 0x1802468ee
mov r9, r10
mov rdx, rcx
sub r11, rcx
nop word [rax + rax]
movzx eax, word [rdx]
cmp word [r11 + rdx], ax
jne 0x1802468ee
add rdx, 2
sub r9, 1
jne 0x180246270
mov rdx, r8
cmp rbx, 8
jb 0x180246294
mov rdx, qword [r8]
cmp rdi, r10
jne 0x1802462b8
sub rdx, rcx
nop dword [rax]
movzx eax, word [rcx]
cmp word [rdx + rcx], ax
jne 0x1802462b8
add rcx, 2
sub r10, 1
jne 0x1802462a0
mov r14b, 1
jmp 0x1802462bb
xor r14b, r14b
test r13b, r13b
je 0x1802462cb
test r14b, r14b
jne 0x1802468f6
jmp 0x1802462d4
test r14b, r14b
je 0x1802468f6
lea rcx, [r8 + 0x20]
mov rdx, r15
call fcn.180064c20
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 0x1802468ee
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 [0x1803e8770]
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.1801558e0
nop
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x48]
call fcn.18015cf50
lea rdx, [rbp + 0xf0]
lea rcx, [rsp + 0x48]
call fcn.180155ac0
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 0x180246896
test rdx, rdx
je 0x180246408
sub r8, rcx
nop dword [rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x180246896
add rcx, 2
sub rdx, 1
jne 0x1802463f0
test r14b, r14b
je 0x180246466
mov rax, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub rax, rdx
sar rax, 5
cmp rax, 4
jb 0x180246896
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.180246e70
nop
lea rcx, [rbp + 0x150]
test al, al
je 0x18024686a
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.180155f30
test al, al
je 0x18024655c
call fcn.180200540
lea rbx, [rbp + 0x50]
cmp qword [rbp + 0x68], 8
cmovae rbx, qword [rbp + 0x50]
call fcn.180160f70
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.1801610a0
test al, al
je 0x18024655c
cmp qword [rdi + 0x10], 0
jne 0x1802464cd
mov rdx, rdi
lea rcx, [rbp + 0x50]
call fcn.180158db0
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.180202dc0
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 0x180246528
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 0x18024657d
mov rcx, rdi
call fcn.180004e20
mov rcx, rsi
call fcn.180245930
lea rcx, [rbp + 0x130]
call fcn.180175600
jmp 0x18024689e
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x18024658d
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 [0x1803e8770]
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.18015aff0
nop
lea rcx, [rbp + 0xd0]
call fcn.180004e20
xor edx, edx
lea rcx, [rbp + 0xb0]
call fcn.18015dc20
nop
lea rcx, [rbp + 0x10]
test r14b, r14b
je 0x18024664e
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 0x18024668c
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 0x180246698
mov r8d, 3
lea rdx, [0x1803d7440]
call fcn.180004ea0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
mov edi, 0x3b
cmp rcx, rdx
jae 0x18024668c
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 0x180246698
mov r9d, edi
lea rcx, [rbp + 0x10]
call fcn.1800328a0
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 0x1802466ea
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 0x1802466f6
mov r9d, edi
lea rcx, [rbp + 0x10]
call fcn.1800328a0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x40], xmm0
movdqa xmm1, xmmword [0x1803e8770]
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 0x180246781
mov word [rbp + 0x5a0], r13w
lea rax, [rbp + 0x190]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180246760
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x30]
call fcn.180004ea0
mov r8, qword [rbp + 0x40]
jmp 0x18024678d
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 0x1802467cf
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 0x1802467db
mov r9d, edi
lea rcx, [rbp + 0x10]
call fcn.1800328a0
mov rdx, r12
cmp qword [r12 + 0x18], 8
jb 0x1802467ea
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 0x180246823
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 0x18024682f
mov r9d, edi
lea rcx, [rbp + 0x10]
call fcn.1800328a0
lea r8, [rbp + 0x170]
lea rdx, [rbp + 0x10]
call fcn.180244e90
test al, al
jne 0x180246871
mov rcx, rsi
call fcn.180245930
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 0x18024689e
lea rcx, [rbp + 0x30]
call fcn.180004e20
nop
lea rcx, [rbp + 0xb0]
call fcn.180004e20
nop
lea rcx, [rbp + 0x170]
call fcn.180004e20
jmp 0x1802468a0
mov rcx, rsi
call fcn.180245930
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 0x1802468f8
mov rcx, rsi
call fcn.180245930
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.180388400
mov rbx, qword [rsp + 0x708]
add rsp, 0x6c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret