Function at 0x18003ec60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x78
mov eax, dword [rsp + 0x80]
sar eax, 6
cdqe
lea rcx, [0x18023c6b0]
mov edx, dword [rsp + 0x80]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
je 0x18003ed21
mov rax, qword [rsp + 0x88]
movzx eax, word [rax]
cmp eax, 0xa
jne 0x18003ed21
mov eax, dword [rsp + 0x80]
sar eax, 6
cdqe
lea rcx, [0x18023c6b0]
mov edx, dword [rsp + 0x80]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + rdx + 0x38]
or eax, 4
mov ecx, dword [rsp + 0x80]
sar ecx, 6
movsxd rcx, ecx
lea rdx, [0x18023c6b0]
mov r8d, dword [rsp + 0x80]
and r8d, 0x3f
movsxd r8, r8d
imul r8, r8, 0x48
mov rcx, qword [rdx + rcx*8]
mov byte [rcx + r8 + 0x38], al
jmp 0x18003ed81
mov eax, dword [rsp + 0x80]
sar eax, 6
cdqe
lea rcx, [0x18023c6b0]
mov edx, dword [rsp + 0x80]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + rdx + 0x38]
and eax, 0xfffffffb
mov ecx, dword [rsp + 0x80]
sar ecx, 6
movsxd rcx, ecx
lea rdx, [0x18023c6b0]
mov r8d, dword [rsp + 0x80]
and r8d, 0x3f
movsxd r8, r8d
imul r8, r8, 0x48
mov rcx, qword [rdx + rcx*8]
mov byte [rcx + r8 + 0x38], al
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x40], rax
jae 0x18003f0d1
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x1a
jne 0x18003eea6
mov eax, dword [rsp + 0x80]
sar eax, 6
cdqe
lea rcx, [0x18023c6b0]
mov edx, dword [rsp + 0x80]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + rdx + 0x38]
and eax, 0x40
test eax, eax
jne 0x18003ee6b
mov eax, dword [rsp + 0x80]
sar eax, 6
cdqe
lea rcx, [0x18023c6b0]
mov edx, dword [rsp + 0x80]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + rdx + 0x38]
or eax, 2
mov ecx, dword [rsp + 0x80]
sar ecx, 6
movsxd rcx, ecx
lea rdx, [0x18023c6b0]
mov r8d, dword [rsp + 0x80]
and r8d, 0x3f
movsxd r8, r8d
imul r8, r8, 0x48
mov rcx, qword [rdx + rcx*8]
mov byte [rcx + r8 + 0x38], al
jmp 0x18003eea1
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
mov word [rsp + 0x48], ax
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
movzx ecx, word [rsp + 0x48]
mov word [rax], cx
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x18003f0d1
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0xd
je 0x18003eeee
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
mov word [rsp + 0x4a], ax
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
movzx ecx, word [rsp + 0x4a]
mov word [rax], cx
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x18003edb4
mov rax, qword [rsp + 0x40]
add rax, 2
cmp rax, qword [rsp + 0x58]
jae 0x18003ef72
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 2]
cmp eax, 0xa
jne 0x18003ef37
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x40], rax
mov eax, 0xa
mov rcx, qword [rsp + 0x30]
mov word [rcx], ax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x18003ef6d
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
mov word [rsp + 0x4c], ax
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
movzx ecx, word [rsp + 0x4c]
mov word [rax], cx
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x18003edb4
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 2
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18003efaf
cmp dword [rsp + 0x50], 0
jne 0x18003efcf
mov eax, 0xd
mov rcx, qword [rsp + 0x30]
mov word [rcx], ax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x18003edb4
mov eax, dword [rsp + 0x80]
sar eax, 6
cdqe
lea rcx, [0x18023c6b0]
mov edx, dword [rsp + 0x80]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + rdx + 0x38]
and eax, 0x48
test eax, eax
je 0x18003f058
movzx eax, word [rsp + 0x38]
cmp eax, 0xa
jne 0x18003f02a
mov eax, 0xa
mov rcx, qword [rsp + 0x30]
mov word [rcx], ax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x18003f056
mov eax, 0xd
mov rcx, qword [rsp + 0x30]
mov word [rcx], ax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
movzx edx, word [rsp + 0x38]
mov ecx, dword [rsp + 0x80]
call fcn.18003f130
jmp 0x18003f0cc
movzx eax, word [rsp + 0x38]
cmp eax, 0xa
jne 0x18003f08e
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x30], rax
jne 0x18003f08e
mov eax, 0xa
mov rcx, qword [rsp + 0x30]
mov word [rcx], ax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x18003f0cc
mov r8d, 1
mov rdx, 0xfffffffffffffffe
mov ecx, dword [rsp + 0x80]
call fcn.180040e00
movzx eax, word [rsp + 0x38]
cmp eax, 0xa
je 0x18003f0cc
mov eax, 0xd
mov rcx, qword [rsp + 0x30]
mov word [rcx], ax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
jmp 0x18003edb4
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
sar rax, 1
shl rax, 1
add rsp, 0x78
ret