Function at 0x1400b0870
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0x70]
sar eax, 6
cdqe
lea rcx, [0x140125a00]
mov edx, dword [rsp + 0x70]
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 + 0x58], rax
cmp qword [rsp + 0x80], 0
je 0x1400b091c
mov rax, qword [rsp + 0x78]
movsx eax, byte [rax]
cmp eax, 0xa
jne 0x1400b091c
mov eax, dword [rsp + 0x70]
sar eax, 6
cdqe
lea rcx, [0x140125a00]
mov edx, dword [rsp + 0x70]
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 + 0x70]
sar ecx, 6
movsxd rcx, ecx
lea rdx, [0x140125a00]
mov r8d, dword [rsp + 0x70]
and r8d, 0x3f
movsxd r8, r8d
imul r8, r8, 0x48
mov rcx, qword [rdx + rcx*8]
mov byte [rcx + r8 + 0x38], al
jmp 0x1400b0970
mov eax, dword [rsp + 0x70]
sar eax, 6
cdqe
lea rcx, [0x140125a00]
mov edx, dword [rsp + 0x70]
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 + 0x70]
sar ecx, 6
movsxd rcx, ecx
lea rdx, [0x140125a00]
mov r8d, dword [rsp + 0x70]
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 + 0x80]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x40], rax
jae 0x1400b0c66
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
cmp eax, 0x1a
jne 0x1400b0a78
mov eax, dword [rsp + 0x70]
sar eax, 6
cdqe
lea rcx, [0x140125a00]
mov edx, dword [rsp + 0x70]
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 0x1400b0a41
mov eax, dword [rsp + 0x70]
sar eax, 6
cdqe
lea rcx, [0x140125a00]
mov edx, dword [rsp + 0x70]
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 + 0x70]
sar ecx, 6
movsxd rcx, ecx
lea rdx, [0x140125a00]
mov r8d, dword [rsp + 0x70]
and r8d, 0x3f
movsxd r8, r8d
imul r8, r8, 0x48
mov rcx, qword [rdx + rcx*8]
mov byte [rcx + r8 + 0x38], al
jmp 0x1400b0a73
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax]
mov byte [rsp + 0x48], al
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x48]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1400b0c66
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
cmp eax, 0xd
je 0x1400b0abc
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax]
mov byte [rsp + 0x49], al
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x49]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1400b099c
mov rax, qword [rsp + 0x40]
inc rax
cmp rax, qword [rsp + 0x50]
jae 0x1400b0b35
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax + 1]
cmp eax, 0xa
jne 0x1400b0afe
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xa
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1400b0b30
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax]
mov byte [rsp + 0x4a], al
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x4a]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1400b099c
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b0b71
cmp dword [rsp + 0x4c], 0
jne 0x1400b0b8b
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1400b099c
mov eax, dword [rsp + 0x70]
sar eax, 6
cdqe
lea rcx, [0x140125a00]
mov edx, dword [rsp + 0x70]
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 0x1400b0bff
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1400b0bda
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xa
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1400b0bfd
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
movzx edx, byte [rsp + 0x30]
mov ecx, dword [rsp + 0x70]
call fcn.1400b1110
jmp 0x1400b0c61
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1400b0c2c
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x38], rax
jne 0x1400b0c2c
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xa
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1400b0c61
mov r8d, 1
mov rdx, 0xffffffffffffffff
mov ecx, dword [rsp + 0x70]
call fcn.1400b2e20
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
je 0x1400b0c61
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1400b099c
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
add rsp, 0x68
ret