Function at 0x140185400
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, [0x1401d3a60]
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 0x1401854c1
mov rax, qword [rsp + 0x88]
movzx eax, word [rax]
cmp eax, 0xa
jne 0x1401854c1
mov eax, dword [rsp + 0x80]
sar eax, 6
cdqe
lea rcx, [0x1401d3a60]
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, [0x1401d3a60]
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 0x140185521
mov eax, dword [rsp + 0x80]
sar eax, 6
cdqe
lea rcx, [0x1401d3a60]
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, [0x1401d3a60]
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 0x140185871
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x1a
jne 0x140185646
mov eax, dword [rsp + 0x80]
sar eax, 6
cdqe
lea rcx, [0x1401d3a60]
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 0x14018560b
mov eax, dword [rsp + 0x80]
sar eax, 6
cdqe
lea rcx, [0x1401d3a60]
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, [0x1401d3a60]
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 0x140185641
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 0x140185871
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0xd
je 0x14018568e
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 0x140185554
mov rax, qword [rsp + 0x40]
add rax, 2
cmp rax, qword [rsp + 0x58]
jae 0x140185712
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 2]
cmp eax, 0xa
jne 0x1401856d7
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 0x14018570d
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 0x140185554
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 0x14018574f
cmp dword [rsp + 0x50], 0
jne 0x14018576f
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 0x140185554
mov eax, dword [rsp + 0x80]
sar eax, 6
cdqe
lea rcx, [0x1401d3a60]
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 0x1401857f8
movzx eax, word [rsp + 0x38]
cmp eax, 0xa
jne 0x1401857ca
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 0x1401857f6
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.140185a10
jmp 0x14018586c
movzx eax, word [rsp + 0x38]
cmp eax, 0xa
jne 0x14018582e
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x30], rax
jne 0x14018582e
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 0x14018586c
mov r8d, 1
mov rdx, 0xfffffffffffffffe
mov ecx, dword [rsp + 0x80]
call fcn.140084951
movzx eax, word [rsp + 0x38]
cmp eax, 0xa
je 0x14018586c
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 0x140185554
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