Function at 0x1400036a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x140044080]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov rbx, rdx
mov rsi, rcx
xor r12d, r12d
mov rdx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x1400036dc
mov rdx, qword [rcx]
lea rcx, str.____File:__s_n
call fcn.140001090
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x1400036f5
mov rcx, qword [rsi]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140003d92
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x100], xmm1
mov qword [rsp + 0x110], r12
mov ecx, 0x500
call fcn.14000a840
mov qword [rsp + 0x100], rax
lea rdi, [rax + 0x500]
mov qword [rsp + 0x110], rdi
xor edx, edx
mov r8d, 0x500
mov rcx, rax
call fcn.140030520
mov qword [rsp + 0x108], rdi
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xe8], xmm1
mov qword [rsp + 0xf8], r12
mov ecx, pe_nt_image_headers64
call fcn.14000a840
mov qword [rsp + 0xe8], rax
lea rdi, [rax + 0x100]
mov qword [rsp + 0xf8], rdi
xor edx, edx
mov r8d, pe_nt_image_headers64
mov rcx, rax
call fcn.140030520
mov qword [rsp + 0xf0], rdi
xorps xmm0, xmm0
mov rax, qword [rsp + 0x108]
sub rax, qword [rsp + 0x100]
sub rdi, qword [rsp + 0xe8]
add rax, 0x14
movdqu xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe0], r12
add rdi, rax
je 0x140003872
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
ja 0x140003dbc
cmp rdi, 0x1000
jb 0x14000383f
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x140003dc2
call fcn.14000a840
mov rcx, rax
test rax, rax
je 0x140003dec
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140003847
mov rcx, rdi
call fcn.14000a840
mov qword [rsp + 0xd0], rax
lea r14, [rax + rdi]
mov qword [rsp + 0xe0], r14
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.140030520
mov qword [rsp + 0xd8], r14
jmp 0x14000387a
mov r14, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xd0]
sub r14, rdx
sub rbx, r14
mov qword [rsp + 0x138], r12
mov qword [rsp + 0x140], r12
mov qword [rsp + 0x150], r12
mov dword [rsp + 0x148], ebx
shr rbx, 0x20
mov dword [rsp + 0x14c], ebx
mov dword [rsp + 0xc8], r12d
lea rax, [rsp + 0x138]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc8]
mov r8d, r14d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003c9d
mov rcx, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xd0]
sub rcx, rdx
mov eax, dword [rsp + 0xc8]
cmp rax, rcx
jne 0x140003c9d
mov r8, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
sub r8, rcx
call fcn.14002fe80
mov rdx, qword [rsp + 0x108]
sub rdx, qword [rsp + 0x100]
mov r8, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xe8]
sub r8, rcx
add rdx, qword [rsp + 0xd0]
call fcn.14002fe80
xorps xmm0, xmm0
movups xmmword [rsp + 0x118], xmm0
mov qword [rsp + 0x128], r12
mov qword [rsp + 0x130], 7
mov word [rsp + 0x118], r12w
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0xe8]
call fcn.140003510
test eax, eax
je 0x140003c55
mov rcx, qword [rsi + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 6
jb 0x140003dc8
cmp qword [rsi + 0x18], 7
jbe 0x1400039b8
mov rsi, qword [rsi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 6
lea r9, str.File:
lea rcx, [rsp + 0xa8]
call fcn.1400080b0
nop
mov r8d, 0xc
lea rdx, str._r_nPassword:
lea rcx, [rsp + 0xa8]
call fcn.140008430
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x90], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x90], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
lea rdx, [rsp + 0x118]
cmp qword [rsp + 0x130], 7
cmova rdx, qword [rsp + 0x118]
mov r8, qword [rsp + 0x128]
lea rcx, [rsp + 0x80]
call fcn.140008430
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov r8d, 2
lea rdx, [0x14003d244]
lea rcx, [rsp + 0x60]
call fcn.140008430
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
call fcn.1400087a0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140003b40
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003b3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003dce
call fcn.14000aac4
movdqa xmm0, xmmword [0x14003d630]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r12w
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140003b96
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003b91
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003dd4
call fcn.14000aac4
movdqa xmm0, xmmword [0x14003d630]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r12w
mov rdx, qword [rsp + 0x98]
cmp rdx, 7
jbe 0x140003bf2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003bed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003dda
call fcn.14000aac4
movdqa xmm0, xmmword [0x14003d630]
movdqu xmmword [rsp + 0x90], xmm0
mov word [rsp + 0x80], r12w
mov rdx, qword [rsp + 0xc0]
cmp rdx, 7
jbe 0x140003c55
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c4f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003de0
call fcn.14000aac4
nop
mov rdx, qword [rsp + 0x130]
cmp rdx, 7
jbe 0x140003c9d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x118]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c98
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003de6
call fcn.14000aac4
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
je 0x140003cfd
mov rdx, qword [rsp + 0xe0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ce4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003dec
call fcn.14000aac4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xd0], xmm0
mov qword [rsp + 0xe0], r12
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x140003d53
mov rdx, qword [rsp + 0xf8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d3a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003df2
call fcn.14000aac4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xe8], xmm0
mov qword [rsp + 0xf8], r12
mov rcx, qword [rsp + 0x100]
test rcx, rcx
je 0x140003d92
mov rdx, qword [rsp + 0x110]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003df8
call fcn.14000aac4
nop
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.14000a820
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x160
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.140006ff0
nop
call fcn.1400012d0
nop
call fcn.140001370
nop
call fcn.140017a64
nop
call fcn.140017a64
nop
call fcn.140017a64
nop
call fcn.140017a64
nop
call fcn.140017a64
nop
call fcn.140017a64
nop
call fcn.140017a64
nop
call fcn.140017a64
int3