Function at 0x10001a4f8
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x100027110]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor r15d, r15d
mov r12, rcx
mov r13d, edx
xor eax, eax
lea rcx, [r11 - 0x5c]
lea r8d, [r15 + 0x10]
xor edx, edx
mov esi, r15d
mov dword [r11 - 0x70], r15d
mov dword [r11 - 0x74], r15d
mov dword [r11 - 0x68], r15d
mov word [r11 - 0x48], r15w
mov qword [r11 - 0x46], rax
mov dword [r11 - 0x60], r15d
call sub.msvcrt.dll_memset
mov ebp, r15d
cmp r12, r15
jne 0x10001a582
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, r15d
jne 0x10001a832
lea ecx, [r15 + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10001a832
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
cmp rax, r15
je 0x10001a832
cmp rax, 0xf
je 0x10001a5b4
cmp rax, 3
je 0x10001a5b4
cmp rax, 0xffffffffffffffff
je 0x10001a5b4
mov edi, 1
mov ebp, edi
jmp 0x10001a5db
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edi, 1
mov rcx, rbx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp eax, r15d
je 0x10001a832
xor eax, eax
movsxd r14, ebp
mov rbp, r12
mov qword [rsp + 0x60], rax
mov word [rsp + 0x68], ax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x38]
mov r8d, edi
mov rcx, rbx
cmp r14, rdi
jne 0x10001a661
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, r15d
je 0x10001a832
cmp dword [rsp + 0x38], r15d
je 0x10001a7c8
mov al, byte [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x38], 0xa
mov byte [rsp + 0x60], al
call fcn.10001a2cc
movzx r11d, word [rsp + 0x48]
mov word [rsp + 0x3c], r11w
jmp 0x10001a67b
lea rdx, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadConsoleW]
cmp eax, r15d
je 0x10001a825
mov r11w, word [rsp + 0x3c]
cmp r11w, 0xd
je 0x10001a7c8
mov eax, 8
cmp r11w, ax
jne 0x10001a765
cmp esi, r15d
je 0x10001a5fb
lea r8, [0x100003404]
lea edx, [rax + 2]
lea rcx, [rsp + 0x48]
mov r9d, eax
call fcn.10000eae0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x48]
mov r8d, edi
mov rcx, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
xor r9d, r9d
lea r8, [0x100003404]
lea edx, [r9 + 0xa]
lea rcx, [rsp + 0x48]
call fcn.10000eae0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x48]
mov r8d, edi
mov rcx, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov r9d, 8
lea r8, [0x100003404]
lea edx, [r9 + 2]
lea rcx, [rsp + 0x48]
call fcn.10000eae0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x48]
mov r8d, edi
mov rcx, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
dec esi
sub rbp, 2
jmp 0x10001a5fb
lea eax, [r13 - 1]
cmp esi, eax
jne 0x10001a781
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [0x10000340c]
jmp 0x10001a7ad
mov eax, 0xa
cmp r11w, ax
je 0x10001a5fb
mov word [rbp], r11w
mov ecx, 0xfffffff5
add esi, edi
add rbp, 2
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [0x1000016f4]
lea r9, [rsp + 0x34]
mov r8d, edi
mov rcx, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x10001a5fb
cmp esi, r13d
jae 0x10001a832
mov edx, dword [rsp + 0x40]
mov eax, esi
mov rcx, rbx
mov word [r12 + rax*2], r15w
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea rdx, [0x100003410]
lea rcx, [rsp + 0x48]
mov r8d, 0xa
call fcn.100019abc
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x48]
mov r8d, 2
mov rcx, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, edi
jmp 0x10001a834
mov edx, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.10001d950
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret