Function at 0x180007a70
Capabilities:
Create process on windows
Get common file path
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xd50
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rbp + 0xd40], rbx
mov rax, qword [0x1800f30e0]
xor rax, rbp
mov qword [rbp + 0xd00], rax
mov rdi, r8
mov rbx, rdx
mov r14d, 0x80004001
call fcn.180046cf0
test al, al
je 0x18000869d
xor r15d, r15d
mov qword [rbp + 0x140], r15
mov rax, qword [rbx]
lea r9, [rbp + 0x140]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [rax + LoadRegTypeLib]
test eax, eax
jne 0x18000869d
call fcn.1800512c0
test al, al
je 0x180007d5d
lea rcx, str.sgephook.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x180007b2b
lea rcx, str.sgephook_signed.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x180007b2b
lea rcx, str.not_insert_load_url
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x180007d4b
mov r8, qword [rbp + 0x140]
or rdi, 0xffffffffffffffff
test r8, r8
je 0x180007bb5
mov rcx, rdi
nop
inc rcx
cmp word [r8 + rcx*2], r15w
jne 0x180007b40
inc ecx
cmp ecx, 0x3fffffff
jg 0x180007bb5
movsxd rax, ecx
add rax, rax
lea rsi, [rax + 0xf]
cmp rsi, rax
ja 0x180007b6d
movabs rsi, 0xffffffffffffff0
and rsi, 0xfffffffffffffff0
mov rax, rsi
call fcn.180059ae0
sub rsp, rsi
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x180007bb5
mov byte [rbx], r15b
lea eax, [rcx + rcx]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, edi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, r15
jmp 0x180007bb8
mov rbx, r15
mov qword [rbp + 0x168], SafeArrayGetLBound
mov qword [rbp + 0x160], r15
mov byte [rbp + 0x150], r15b
cmp byte [rbx], r15b
jne 0x180007bdb
mov r8, r15
jmp 0x180007be9
mov r8, rdi
nop
inc r8
cmp byte [rbx + r8], r15b
jne 0x180007be0
mov rdx, rbx
lea rcx, [rbp + 0x150]
call fcn.1800025d0
nop
lea rax, [rbp + 0x1b8]
mov qword [rbp + 0x148], rax
mov rcx, qword [rbp + 0x160]
test rcx, rcx
je 0x180007c8c
lea rax, [rbp + 0x150]
cmp qword [rbp + 0x168], 0x10
cmovae rax, qword [rbp + 0x150]
lea rbx, [rcx - 1]
add rbx, rax
nop dword [rax]
nop word [rax + rax]
movsx edx, byte [rbx]
mov r8d, 1
lea rcx, [0x1800b4128]
call fcn.18007aa1c
test rax, rax
jne 0x180007c70
lea rcx, [rbp + 0x150]
call fcn.180022ae0
cmp rbx, rax
je 0x180007c8c
dec rbx
jmp 0x180007c40
lea rax, [rbp + 0x150]
cmp qword [rbp + 0x168], 0x10
cmovae rax, qword [rbp + 0x150]
sub rbx, rax
jmp 0x180007c8f
mov rbx, rdi
lea r8, [rbx + 1]
mov r9, rdi
lea rdx, [rbp + 0x1b8]
lea rcx, [rbp + 0x150]
call fcn.18002eeb0
mov rbx, rax
mov qword [rbp + 0x188], SafeArrayGetLBound
mov qword [rbp + 0x180], r15
mov byte [rbp + 0x170], 0
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 0x170]
call fcn.1800024a0
nop
mov rdx, rbx
lea rcx, [rbp + 0x170]
call fcn.1800567c0
nop
mov rax, qword [rbp + 0x168]
cmp rax, 0x10
jb 0x180007d4b
inc rax
mov rcx, qword [rbp + 0x150]
cmp rax, 0x1000
jb 0x180007d46
test cl, 0x1f
je 0x180007d19
call fcn.1800837e4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180007d28
call fcn.1800837e4
int3
sub rcx, rax
cmp rcx, 8
jae 0x180007d37
call fcn.1800837e4
int3
cmp rcx, 0x27
jbe 0x180007d43
call fcn.1800837e4
int3
mov rcx, rax
call fcn.1800591c4
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x18000869d
mov r8, qword [rbp + 0x140]
or rdi, 0xffffffffffffffff
movabs rsi, 0xffffffffffffff0
test r8, r8
je 0x180007dee
mov rcx, rdi
nop word [rax + rax]
inc rcx
cmp word [r8 + rcx*2], r15w
jne 0x180007d80
inc ecx
cmp ecx, 0x3fffffff
jg 0x180007dee
movsxd rax, ecx
add rax, rax
lea rdx, [rax + 0xf]
cmp rdx, rax
ja 0x180007da6
mov rdx, rsi
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.180059ae0
sub rsp, rdx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x180007dee
mov byte [rbx], r15b
lea eax, [rcx + rcx]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, edi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, r15
jmp 0x180007df1
mov rbx, r15
mov rdx, rbx
lea rcx, [rbp + 0x198]
call fcn.18001cde0
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x1e0]
call fcn.180078610
lea rdx, str.Download_Cookie_is__s
lea rcx, [rbp + 0x1e0]
call fcn.180012550
nop
lea rax, [rbp + 0x198]
cmp qword [rbp + 0x1b0], 0x10
cmovae rax, qword [rbp + 0x198]
mov qword [rbp], rax
lea rax, [rbp]
mov qword [rbp + 8], rax
lea rax, [fcn.180046ce0]
mov qword [rbp + 0x10], rax
lea rax, [0x18000b0e0]
mov qword [rbp + 0x18], rax
cmp byte [rbp + 0x224], 0
je 0x180007e77
lea rcx, [rbp + 0x1e0]
call fcn.180024c60
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x1e0]
call fcn.18000b4a0
mov r8d, dword [rbp + 0x21c]
inc r8d
mov dword [rbp + 0x21c], r8d
cmp qword [rbp + 0x210], 0
je 0x180007eeb
mov r9d, dword [rbp + 0x220]
cmp r8d, r9d
jge 0x180007eeb
mov r10, qword [rbp + 0x1f8]
nop word [rax + rax]
movsxd rcx, r8d
mov rax, rcx
shr rax, 5
lea rdx, [r10 + rax*4]
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [rdx], eax
je 0x180007eeb
inc r8d
mov dword [rbp + 0x21c], r8d
cmp r8d, r9d
jl 0x180007ec0
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x1e0]
call fcn.18002e760
cmp qword [rax + 0x18], 0x10
jb 0x180007f08
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rax, qword [rbp + 0x188]
cmp rax, 0x10
jb 0x180007f6d
inc rax
mov rcx, qword [rbp + 0x170]
cmp rax, 0x1000
jb 0x180007f68
test cl, 0x1f
je 0x180007f3b
call fcn.1800837e4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180007f4a
call fcn.1800837e4
int3
sub rcx, rax
cmp rcx, 8
jae 0x180007f59
call fcn.1800837e4
int3
cmp rcx, 0x27
jbe 0x180007f65
call fcn.1800837e4
int3
mov rcx, rax
call fcn.1800591c4
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x500]
call fcn.180078610
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x2f0]
call fcn.180078610
mov r9d, 1
lea r8d, [r9 + 0xf]
lea rdx, [rbp + 0x2f0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1800080b8
lea rdx, str._sDownloader.exe
lea rcx, [rbp + 0x30]
call fcn.1800126d0
mov rbx, rax
lea rax, [rbp + 0x2f0]
mov qword [rbp + 8], rax
lea rax, [fcn.180046ce0]
mov qword [rbp + 0x10], rax
lea rax, [0x18000b0f0]
mov qword [rbp + 0x18], rax
cmp byte [rbx + 0x44], 0
je 0x180007ff8
mov rcx, rbx
call fcn.180024d80
lea rdx, [rbp + 8]
mov rcx, rbx
call fcn.18000b5c0
mov eax, dword [rbx + 0x3c]
inc eax
mov dword [rbx + 0x3c], eax
cmp qword [rbx + 0x30], 0
je 0x180008051
mov r10d, dword [rbx + 0x40]
cmp eax, r10d
jge 0x180008051
nop dword [rax]
movsxd r9, dword [rbx + 0x3c]
mov rcx, r9
mov rdx, qword [rbx + 0x18]
mov rax, r9
shr rax, 5
lea r8, [rdx + rax*4]
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [r8], eax
je 0x180008051
lea eax, [r9 + 1]
mov dword [rbx + 0x3c], eax
cmp eax, r10d
jl 0x180008020
mov rdx, rbx
lea rcx, [rbp + 0x170]
call fcn.180010fe0
nop
lea rcx, [rbp + 0x30]
call fcn.1800179d0
lea r8, [rbp + 0x170]
cmp qword [rbp + 0x188], 8
cmovae r8, qword [rbp + 0x170]
mov edx, 0x400
lea rcx, [rbp + 0x500]
call fcn.180056160
nop
mov r8, qword [rbp + 0x188]
cmp r8, 8
jb 0x1800080d0
inc r8
mov rdx, qword [rbp + 0x170]
lea rcx, [rbp + 0x170]
call fcn.180025d70
jmp 0x1800080d0
lea r8, str.C:UserschenhaoDesktopDownloader.exe
mov edx, 0x400
lea rcx, [rbp + 0x500]
call fcn.180056160
mov edx, 0x400
lea rcx, [rbp + 0x500]
call fcn.18004f420
mov qword [rbp + 0x168], 7
mov qword [rbp + 0x160], r15
mov word [rbp + 0x150], r15w
cmp qword [rbp + 0x1a8], 0
jne 0x18000824e
lea rdx, [0x1800b41f0]
lea rcx, [rbp + 0x30]
call fcn.1800126d0
mov rbx, rax
lea rax, [rbp + 0x140]
mov qword [rbp + 8], rax
lea rax, [fcn.180046ce0]
mov qword [rbp + 0x10], rax
lea rax, [0x18000b110]
mov qword [rbp + 0x18], rax
cmp byte [rbx + 0x44], 0
je 0x18000814b
mov rcx, rbx
call fcn.180024d80
lea rdx, [rbp + 8]
mov rcx, rbx
call fcn.18000b5c0
mov eax, dword [rbx + 0x3c]
inc eax
mov dword [rbx + 0x3c], eax
cmp qword [rbx + 0x30], 0
je 0x1800081a1
mov r10d, dword [rbx + 0x40]
cmp eax, r10d
jge 0x1800081a1
nop
movsxd r9, dword [rbx + 0x3c]
mov rcx, r9
mov rdx, qword [rbx + 0x18]
mov rax, r9
shr rax, 5
lea r8, [rdx + rax*4]
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [r8], eax
je 0x1800081a1
lea eax, [r9 + 1]
mov dword [rbx + 0x3c], eax
cmp eax, r10d
jl 0x180008170
mov rdx, rbx
lea rcx, [rbp + 0x170]
call fcn.180010fe0
mov rbx, rax
lea rax, [rbp + 0x150]
cmp rax, rbx
je 0x18000820c
mov r8, qword [rbp + 0x168]
cmp r8, 8
jb 0x1800081e2
inc r8
mov rdx, qword [rbp + 0x150]
lea rcx, [rbp + 0x150]
call fcn.180025d70
mov qword [rbp + 0x168], 7
mov qword [rbp + 0x160], r15
mov word [rbp + 0x150], r15w
mov rdx, rbx
lea rcx, [rbp + 0x150]
call fcn.18001f670
nop
mov r8, qword [rbp + 0x188]
cmp r8, 8
jb 0x18000822f
inc r8
mov rdx, qword [rbp + 0x170]
lea rcx, [rbp + 0x170]
call fcn.180025d70
mov qword [rbp + 0x188], 7
mov qword [rbp + 0x180], r15
mov word [rbp + 0x170], r15w
jmp 0x18000839b
lea rbx, [rbp + 0x198]
cmp qword [rbp + 0x1b0], 0x10
cmovae rbx, qword [rbp + 0x198]
test rbx, rbx
jne 0x180008270
mov qword [rbp], r15
jmp 0x1800082c7
mov rdx, rdi
inc rdx
cmp byte [rbx + rdx], 0
jne 0x180008273
inc edx
cmp edx, 0x3fffffff
jle 0x18000828c
mov qword [rbp], r15
jmp 0x1800082c7
movsxd rax, edx
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x18000829e
mov rcx, rsi
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.180059ae0
sub rsp, rcx
lea rcx, [rsp + 0x40]
mov r9d, 3
mov r8d, edx
mov rdx, rbx
call fcn.18001c3a0
mov qword [rbp], rax
lea rdx, str._s__s
lea rcx, [rbp + 0x30]
call fcn.1800126d0
nop
lea rdx, [rbp + 0x140]
mov rcx, rax
call fcn.18000bd40
lea rdx, [rbp]
mov rcx, rax
call fcn.18000bd40
mov rdx, rax
lea rcx, [rbp + 0x170]
call fcn.180010fe0
mov rbx, rax
lea rax, [rbp + 0x150]
cmp rax, rbx
je 0x18000835e
mov r8, qword [rbp + 0x168]
cmp r8, 8
jb 0x180008334
inc r8
mov rdx, qword [rbp + 0x150]
lea rcx, [rbp + 0x150]
call fcn.180025d70
mov qword [rbp + 0x168], 7
mov qword [rbp + 0x160], r15
mov word [rbp + 0x150], r15w
mov rdx, rbx
lea rcx, [rbp + 0x150]
call fcn.18001f670
nop
mov r8, qword [rbp + 0x188]
cmp r8, 8
jb 0x180008381
inc r8
mov rdx, qword [rbp + 0x170]
lea rcx, [rbp + 0x170]
call fcn.180025d70
mov qword [rbp + 0x188], 7
mov qword [rbp + 0x180], r15
mov word [rbp + 0x170], r15w
lea rcx, [rbp + 0x30]
call fcn.1800179d0
lea rdx, [rbp + 0x150]
cmp qword [rbp + 0x168], 8
cmovae rdx, qword [rbp + 0x150]
test rdx, rdx
jne 0x1800083c5
mov rax, r15
jmp 0x18000841c
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1800083d0
inc eax
cmp eax, 0x3fffffff
jle 0x1800083e8
mov rax, r15
jmp 0x18000841c
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1800083fd
mov rcx, rsi
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.180059ae0
sub rsp, rcx
lea rcx, [rsp + 0x40]
mov r9d, 3
call fcn.18001ca70
mov qword [rbp + 0x20], SafeArrayGetLBound
mov qword [rbp + 0x18], r15
mov byte [rbp + 8], 0
cmp byte [rax], 0
jne 0x180008436
mov r8, r15
jmp 0x18000844a
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180008440
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.1800025d0
nop
lea r8, [rbp + 8]
lea rdx, [rbp + 0x1b8]
lea rcx, [rbp + 0x190]
call fcn.180002db0
nop
lea rcx, [rbp + 8]
call fcn.180002870
lea rdx, [rbp + 0x1b8]
cmp qword [rbp + 0x1d0], 0x10
cmovae rdx, qword [rbp + 0x1b8]
test rdx, rdx
jne 0x1800084a0
mov rax, r15
jmp 0x1800084ec
inc rdi
cmp byte [rdx + rdi], 0
jne 0x1800084a0
inc edi
cmp edi, 0x3fffffff
jle 0x1800084b8
mov rax, r15
jmp 0x1800084ec
movsxd rax, edi
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1800084ca
mov rcx, rsi
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.180059ae0
sub rsp, rcx
lea rcx, [rsp + 0x40]
mov r9d, 3
mov r8d, edi
call fcn.18001c3a0
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r15
mov r9, rax
lea r8, [rbp + 0x500]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov qword [rbp + 0x148], rax
cmp eax, 0x20
cmovg r14d, r15d
lea rdx, str.Download_notify:_DownloadPath_is__s__url_is__s__ShellExecute_HINSTANCE_is_0x_x
lea rcx, [rbp + 0x30]
call fcn.1800126d0
nop
lea rdx, [rbp + 0x500]
mov rcx, rax
call fcn.18000bc00
lea rdx, [rbp + 0x140]
mov rcx, rax
call fcn.18000bd40
lea rdx, [rbp + 0x148]
mov rcx, rax
call fcn.18000bca0
mov rdx, rax
lea rcx, [rbp + 0x170]
call fcn.180010fe0
mov rbx, rax
lea rax, [rbp + 0x150]
cmp rax, rbx
je 0x1800085c9
mov r8, qword [rbp + 0x168]
cmp r8, 8
jb 0x18000859f
inc r8
mov rdx, qword [rbp + 0x150]
lea rcx, [rbp + 0x150]
call fcn.180025d70
mov qword [rbp + 0x168], 7
mov qword [rbp + 0x160], r15
mov word [rbp + 0x150], r15w
mov rdx, rbx
lea rcx, [rbp + 0x150]
call fcn.18001f670
nop
mov r8, qword [rbp + 0x188]
cmp r8, 8
jb 0x1800085ec
inc r8
mov rdx, qword [rbp + 0x170]
lea rcx, [rbp + 0x170]
call fcn.180025d70
mov qword [rbp + 0x188], 7
mov qword [rbp + 0x180], r15
mov word [rbp + 0x170], r15w
lea rcx, [rbp + 0x30]
call fcn.1800179d0
lea rcx, [rbp + 0x150]
cmp qword [rbp + 0x168], 8
cmovae rcx, qword [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rcx, [rbp + 0x1b8]
call fcn.180002870
nop
mov r8, qword [rbp + 0x168]
cmp r8, 8
jb 0x18000866a
inc r8
mov rdx, qword [rbp + 0x150]
lea rcx, [rbp + 0x150]
call fcn.180025d70
mov qword [rbp + 0x168], 7
mov qword [rbp + 0x160], r15
mov word [rbp + 0x150], r15w
lea rcx, [rbp + 0x1e0]
call fcn.180017930
nop
lea rcx, [rbp + 0x198]
call fcn.180002870
mov eax, r14d
mov rcx, qword [rbp + 0xd00]
xor rcx, rbp
call fcn.180059260
mov rbx, qword [rbp + 0xd40]
lea rsp, [rbp + 0xd10]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret