Function at 0x140039c40
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x120
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x40], r8
mov qword [rbp - 0x38], rdx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rcx
mov rax, qword [rbp + 0xd8]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov qword [rbp - 0x18], rcx
mov rcx, r9
mov qword [rbp - 0x10], rcx
mov qword [rbp - 8], r8
mov qword [rbp + 8], rax
mov qword [rbp], r9
mov rcx, qword [rbp - 0x18]
mov eax, 0xffffffff
mov rdx, rcx
sub rdx, rax
cmovb rax, rcx
mov dword [rbp - 0x44], eax
mov dword [rbp + 0x10], eax
lea rcx, [rbp + 0x14]
mov edx, 0xaa
mov r8d, 4
call fcn.140076a90
lea rax, [rbp + 0x14]
mov qword [rbp + 0x18], 0x4d430001
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 4
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
lea rax, [rbp + 0x18]
xor ecx, ecx
mov edx, ecx
rol rdi, 3
rol rdi, 0xd
rol rdi, 0x3d
rol rdi, 0x33
xchg rbx, rbx
lea rcx, [rbp + 0x48]
mov edx, 0xaa
mov r8d, 0x20
call fcn.140076a90
lea rax, [rbp + 0x48]
mov qword [rbp + 0x18], 0x4d430001
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 0x20
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
lea rax, [rbp + 0x18]
xor ecx, ecx
mov edx, ecx
rol rdi, 3
rol rdi, 0xd
rol rdi, 0x3d
rol rdi, 0x33
xchg rbx, rbx
mov rax, qword [rbp - 0x20]
cmp byte [rax + 8], 0
jne 0x140039da0
jmp 0x140039dd9
jmp 0x140039c8c
mov r8d, dword [rbp - 0x44]
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x70], rax
lea r9, [rbp + 0x14]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.dll_ReadFile
cmp eax, 0
je 0x140039e1a
jmp 0x140039e72
mov rax, qword [rbp - 0x20]
mov rax, qword [rax]
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov ecx, eax
mov dword [rbp + 0x58], ecx
shr rax, 0x20
mov dword [rbp + 0x5c], eax
mov qword [rbp + 0x60], 0
lea rax, [rbp + 0x48]
mov qword [rbp - 0x50], rax
jmp 0x140039d74
xor eax, eax
mov qword [rbp - 0x50], rax
jmp 0x140039d74
mov rax, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
mov edx, dword [rbp + 0x14]
mov word [rbp + 0x98], 0
mov qword [rbp + 0x90], rdx
mov rdx, qword [rbp + 0x90]
mov qword [rcx], rdx
mov rdx, qword [rbp + 0x98]
mov qword [rcx + 8], rdx
add rsp, 0x120
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
mov cx, ax
mov word [rbp - 0x52], cx
sub ax, 0x26
je 0x140039f06
jmp 0x140039e32
mov ax, word [rbp - 0x52]
sub ax, 0x40
je 0x140039f2c
jmp 0x140039e42
mov ax, word [rbp - 0x52]
sub ax, 0x6d
je 0x140039ee0
jmp 0x140039e52
mov ax, word [rbp - 0x52]
movzx eax, ax
sub eax, 0x3e3
je 0x140039edb
jmp 0x140039e62
mov ax, word [rbp - 0x52]
movzx eax, ax
sub eax, 0x3e5
je 0x140039ebe
jmp 0x140039e77
jmp 0x140039de1
mov rcx, qword [rbp - 0x38]
mov dx, word [rbp - 0x52]
mov word [rbp + 0x7e], dx
call fcn.140003900
mov rcx, qword [rbp - 0x38]
mov word [rbp + 0x88], ax
call fcn.1400012e0
mov rcx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x28]
mov rdx, qword [rbp + 0x80]
mov qword [rcx], rdx
mov rdx, qword [rbp + 0x88]
mov qword [rcx + 8], rdx
add rsp, 0x120
pop rbp
ret
lea rcx, str.reached_unreachable_code
mov edx, 0x18
xor eax, eax
mov r8d, eax
lea r9, [0x14009db38]
call fcn.1400014d0
jmp 0x140039d6f
mov rax, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
mov rdx, qword [0x14009db48]
mov qword [rcx], rdx
mov rdx, qword [0x14009db50]
mov qword [rcx + 8], rdx
add rsp, 0x120
pop rbp
ret
mov rax, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
mov rdx, qword [0x14009db48]
mov qword [rcx], rdx
mov rdx, qword [0x14009db50]
mov qword [rcx + 8], rdx
add rsp, 0x120
pop rbp
ret
mov rcx, qword [rbp - 0x38]
call fcn.1400012e0
mov rcx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x28]
mov rdx, qword [0x14009db58]
mov qword [rcx], rdx
mov rdx, qword [0x14009db60]
mov qword [rcx + 8], rdx
add rsp, 0x120
pop rbp
ret