Function at 0x140011406
Capabilities:
Get file size
Read file on windows
Terminate process

Disassembly:
jmp 0x14003b440
push rbp
push rsi
push rdi
sub rsp, 0x450
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0xa4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001cf80]
xor rax, rbp
mov qword [rbp + 0x400], rax
lea rcx, [0x14004b1bc]
call fcn.140011541
nop
lea rax, [rbp + 0x10]
lea rcx, [0x14001f410]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x41
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x78]
lea rcx, [0x14001f460]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x11
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x104
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0xa8], rax
mov r8d, 0x104
mov rdx, qword [rbp + 0xa8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 1
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0xffffffffffffffff
jne 0x14003b534
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rdx, [rbp + 0xe8]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14003b555
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [rbp + 0xe8]
mov dword [rbp + 0x104], eax
mov eax, dword [rbp + 0x104]
mov qword [rbp + 0x3f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x3f8]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x128], rax
cmp qword [rbp + 0x128], 0
jne 0x14003b5a6
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [rbp + 0x144], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x144]
mov r8d, dword [rbp + 0x104]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003b5ed
mov eax, dword [rbp + 0x104]
cmp dword [rbp + 0x144], eax
je 0x14003b60e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0x128]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0x78]
call fcn.140011249
mov dword [rsp + 0x20], 1
mov r9d, eax
lea r8, [rbp + 0x78]
mov edx, dword [rbp + 0x104]
mov rcx, qword [rbp + 0x128]
call fcn.1400111ae
mov eax, eax
mov qword [rbp + 0x3f8], rax
lea rcx, [rbp + 0x78]
call fcn.140011249
mov rcx, qword [rbp + 0x3f8]
add rcx, rax
mov rax, rcx
mov dword [rbp + 0x164], eax
mov eax, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x104]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 0x184], eax
mov eax, dword [rbp + 0x184]
mov qword [rbp + 0x3f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x3f8]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x1a8], rax
mov eax, dword [rbp + 0x164]
mov dword [rbp + 0x1c4], eax
jmp 0x14003b6cf
mov eax, dword [rbp + 0x1c4]
inc eax
mov dword [rbp + 0x1c4], eax
mov eax, dword [rbp + 0x104]
cmp dword [rbp + 0x1c4], eax
jae 0x14003b70d
movsxd rax, dword [rbp + 0x1c4]
mov ecx, dword [rbp + 0x164]
mov edx, dword [rbp + 0x1c4]
sub edx, ecx
mov ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x1a8]
mov rdi, qword [rbp + 0x128]
movzx eax, byte [rdi + rax]
mov byte [rdx + rcx], al
jmp 0x14003b6c1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0x128]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
lea rcx, [rbp + 0x10]
call fcn.140011249
mov r9d, eax
lea r8, [rbp + 0x10]
mov edx, dword [rbp + 0x184]
mov rcx, qword [rbp + 0x1a8]
call fcn.1400113bb
nop
mov rcx, qword [rbp + 0x1a8]
call fcn.1400110f5
mov dword [rbp + 0x1e4], eax
movsxd rax, dword [rbp + 0x1e4]
mov qword [rbp + 0x3f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x3f8]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x208], rax
mov rax, qword [rbp + 0x1a8]
add rax, 4
mov qword [rbp + 0x228], rax
movsxd rax, dword [rbp + 0x184]
sub rax, 4
mov r9d, dword [rbp + 0x1e4]
mov r8d, eax
mov rdx, qword [rbp + 0x208]
mov rcx, qword [rbp + 0x228]
call fcn.1400111cc
mov dword [rbp + 0x244], eax
mov eax, dword [rbp + 0x1e4]
cmp dword [rbp + 0x244], eax
je 0x14003b7e5
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0x1a8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rax, qword [rbp + 0x208]
mov qword [rbp + 0x1a8], rax
mov qword [rbp + 0x268], 0xffffffffffffffff
lea r8, [rbp + 0x268]
mov rdx, qword [rbp + 0x1a8]
mov rcx, qword [rbp + 0xa8]
call fcn.140011082
test eax, eax
jne 0x14003b83e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0xa8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0x1a8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]