Function at 0x140225c50
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, [0x1402c3f00]
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 0x140225cfc
mov rax, qword [rsp + 0x78]
movsx eax, byte [rax]
cmp eax, 0xa
jne 0x140225cfc
mov eax, dword [rsp + 0x70]
sar eax, 6
cdqe
lea rcx, [0x1402c3f00]
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, [0x1402c3f00]
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 0x140225d50
mov eax, dword [rsp + 0x70]
sar eax, 6
cdqe
lea rcx, [0x1402c3f00]
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, [0x1402c3f00]
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 0x140226046
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
cmp eax, 0x1a
jne 0x140225e58
mov eax, dword [rsp + 0x70]
sar eax, 6
cdqe
lea rcx, [0x1402c3f00]
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 0x140225e21
mov eax, dword [rsp + 0x70]
sar eax, 6
cdqe
lea rcx, [0x1402c3f00]
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, [0x1402c3f00]
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 0x140225e53
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 0x140226046
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
cmp eax, 0xd
je 0x140225e9c
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 0x140225d7c
mov rax, qword [rsp + 0x40]
inc rax
cmp rax, qword [rsp + 0x50]
jae 0x140225f15
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax + 1]
cmp eax, 0xa
jne 0x140225ede
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 0x140225f10
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 0x140225d7c
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 0x140225f51
cmp dword [rsp + 0x4c], 0
jne 0x140225f6b
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140225d7c
mov eax, dword [rsp + 0x70]
sar eax, 6
cdqe
lea rcx, [0x1402c3f00]
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 0x140225fdf
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x140225fba
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xa
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140225fdd
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.140226720
jmp 0x140226041
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14022600c
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x38], rax
jne 0x14022600c
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xa
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140226041
mov r8d, 1
mov rdx, 0xffffffffffffffff
mov ecx, dword [rsp + 0x70]
call fcn.1400c8e79
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
je 0x140226041
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140225d7c
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
add rsp, 0x68
ret