Function at 0x1400097a0
Capabilities:
Create directory
Parse pe header

Disassembly:
mov r11, rsp
push r14
push r15
sub rsp, 0x178
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r9, qword [rdx]
mov qword [r11 + 8], rbx
mov qword [r11 - 0x30], r12
mov qword [r11 - 0x38], r13
mov r13, r8
mov rbx, rdx
lea rcx, [rsp + 0x30]
lea r8, [0x140022bfc]
xor r12d, r12d
mov edx, 0x104
mov r15d, 1
mov qword [rsp + 0x28], r12
call fcn.14000d244
lea rdx, [rsp + 0x30]
lea rcx, [0x140022bfc]
call fcn.1400058b0
test eax, eax
jne 0x140009873
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x30]
lea rcx, str.File__s_NOT_exist__now_try__s.exe
call fcn.140005180
mov r9, qword [rbx]
lea r8, str._s.exe
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.14000d244
lea rdx, [rsp + 0x30]
lea rcx, [0x140022bfc]
call fcn.1400058b0
lea rcx, [0x1400247cc]
lea r8, [0x1400247d0]
test eax, eax
lea rdx, [rsp + 0x30]
cmovne r8, rcx
lea rcx, str.File__s_exist____s
call fcn.140005180
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140005560
mov r14, qword [rsp + 0x28]
test eax, eax
jne 0x140009a0e
lea edx, [rax + 0x40]
lea rcx, str.VentoyJump__dbit
call fcn.140005180
mov rcx, qword [0x14002a9c0]
test rcx, rcx
je 0x1400098bb
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r12d, eax
lea rcx, str.ventoy
call fcn.140005780
test eax, eax
je 0x140009a52
lea rcx, str.ventoy_directory_already_exist
call fcn.140005180
xor ebx, ebx
mov rcx, qword [0x14002a9c0]
test rcx, rcx
je 0x1400098f4
test r12d, r12d
jne 0x1400098f4
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test ebx, ebx
jne 0x140009a0e
mov qword [rsp + 0x170], rbp
mov ebp, dword [rsp + 0x20]
mov qword [rsp + 0x168], rsi
xor esi, esi
mov qword [rsp + 0x160], rdi
test ebp, ebp
je 0x1400099ea
mov rbx, qword [0x1400296c8]
mov rdi, qword [str.__www.ventoy.net]
mov r11d, esi
xor dl, dl
add r11, r14
cmp qword [r11], rdi
jne 0x1400099df
cmp qword [r11 + 8], rbx
jne 0x1400099df
xor r8b, r8b
xor r9b, r9b
lea rax, [r11 + 1]
xor cl, cl
mov r10d, 0x80
nop dword [rax]
add dl, byte [rax - 1]
add cl, byte [rax]
add r9b, byte [rax + 1]
add r8b, byte [rax + 2]
lea rax, [rax + 4]
dec r10
jne 0x140009960
add cl, r9b
add cl, r8b
add dl, cl
jne 0x1400099df
mov eax, dword [r11 + 0x1b5]
test rax, 0xfff
jne 0x1400099df
lea r8d, [rsi + 0x200]
mov ecx, r8d
add rcx, r14
mov rax, rcx
add rcx, 0x400
cmp byte [rax], dl
je 0x1400099c4
mov edx, dword [rax + 0x301]
test edx, edx
je 0x1400099c4
lea eax, [r8 + 0x43c]
add eax, edx
cmp eax, ebp
jae 0x1400099c4
add rcx, rdx
cmp byte [rcx], 0x4d
jne 0x1400099df
cmp byte [rcx + 1], 0x5a
jne 0x1400099df
mov eax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
je 0x140009a91
add esi, 0x10
cmp esi, ebp
jb 0x140009930
lea rcx, str.OS_param_not_found
call fcn.140005180
mov rsi, qword [rsp + 0x168]
mov rbp, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x160]
mov r13, qword [rsp + 0x150]
mov r12, qword [rsp + 0x158]
mov rbx, qword [rsp + 0x190]
test r14, r14
je 0x140009a33
mov rcx, r14
call fcn.14000d268
mov eax, r15d
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14000d130
add rsp, 0x178
pop r15
pop r14
ret
lea rcx, str.ventoy_directory_not_exist__now_create_it.
call fcn.140005180
lea rcx, str.ventoy
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1400098db
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_create_ventoy_directory_err:_u
mov edx, eax
call fcn.140005180
mov ebx, r15d
jmp 0x1400098dd
lea rcx, str.Find_os_pararm_at__u
mov edx, esi
call fcn.140005180
mov ebx, esi
lea rcx, [0x14002be80]
add rbx, r14
mov edx, 4
mov rax, rbx
movups xmm0, xmmword [rax]
lea rcx, [rcx + 0x80]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm1
dec rdx
jne 0x140009ab3
add rbx, 0x200
lea rcx, [0x14002b730]
mov edx, 8
mov rax, rbx
nop dword [rax + rax]
movups xmm0, xmmword [rax]
lea rcx, [rcx + 0x80]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm1
dec rdx
jne 0x140009b20
mov r8d, dword [rbx + 0x301]
lea rcx, str.ExtractWindowsDataFile:_auto_install___s:_d_
mov rdx, rbx
xor edi, edi
call fcn.140005180
cmp byte [rbx], dil
je 0x140009bb4
mov r8d, dword [rbx + 0x301]
test r8d, r8d
je 0x140009bb4
lea rdx, [rbx + 0x400]
lea rcx, str.X:_vtoy_auto_install
call fcn.1400056c0
mov edi, dword [rbx + 0x301]
movups xmm1, xmmword [0x14002c041]
movups xmm0, xmmword [0x14002c051]
movd eax, xmm1
movups xmmword [0x14002bc38], xmm1
movups xmmword [0x14002bc48], xmm0
cmp al, r15b
jne 0x140009be5
lea rcx, str.break_here_for_debug_.....
jmp 0x1400099f1
xor edx, edx
lea rax, [0x14002bead]
nop
movzx ecx, byte [rax]
test cl, cl
je 0x140009c0c
cmp cl, 0x2f
jne 0x140009bff
mov byte [rax], 0x5c
inc edx
inc rax
cmp edx, 0x180
jb 0x140009bf0
lea ebx, [rdi + 0x600]
lea rdx, [0x140022b68]
lea rcx, [rsp + 0x30]
add ebx, esi
call fcn.14000d720
test rax, rax
je 0x140009c74
lea rax, [rsp + 0x30]
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], 0
jne 0x140009c33
movsxd rax, ecx
test ecx, ecx
jle 0x140009c74
lea rdx, [rsp + rax + 0x2f]
lea rax, [rsp + 0x30]
mov r8, r15
sub r8, rax
movzx eax, byte [rdx]
cmp al, 0x2f
je 0x140009ceb
cmp al, 0x5c
je 0x140009ceb
dec rdx
dec ecx
lea rax, [r8 + rdx]
test rax, rax
jg 0x140009c53
lea r9, [rsp + 0x30]
lea r8, str.ventoy_s
mov edx, 0x104
mov rcx, r13
call fcn.14000d244
mov rcx, qword [0x14002a9c0]
test rcx, rcx
je 0x140009ca5
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r12d, eax
lea rcx, [0x140022bfc]
mov rdx, r13
call fcn.1400058b0
test eax, eax
je 0x140009cf8
lea rcx, str.vtoyjump_multiple_call_...
call fcn.140005180
mov rcx, qword [0x14002a9c0]
xor r15d, r15d
test rcx, rcx
je 0x1400099f6
test r12d, r12d
jne 0x1400099f6
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1400099f6
lea r9, [rsp + 0x30]
movsxd rax, ecx
add r9, rax
jmp 0x140009c79
mov r8d, ebp
mov edx, ebx
mov rcx, r13
sub r8d, ebx
add rdx, r14
call fcn.1400056c0
mov rcx, qword [0x14002a9c0]
test rcx, rcx
je 0x140009d22
test r12d, r12d
jne 0x140009d22
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp ebx, ebp
jae 0x1400099ea
cmp byte [0x14002bc38], 2
jne 0x140009d47
lea rcx, str.skip_hook_for_debug_.....
call fcn.140005180
xor r15d, r15d
jmp 0x1400099f6
lea rcx, [0x14002be80]
call fcn.140009070
mov r15d, eax
jmp 0x1400099f6