Function at 0x14008cd20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov r15, rcx
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov qword [rsp + 0x48], 0
call fcn.1400ac7f0
mov rbp, rax
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.1400a9c60
mov rsi, rax
xor r12d, r12d
cmp rax, 0xffffffffffffffff
je 0x14008cde0
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rdi
mov r13, rbx
mov rcx, r15
call fcn.1400437a0
lea rdi, [rsp + 0x60]
mov rbp, qword [sym.imp.KERNEL32.DLL_WriteFile]
xor ecx, ecx
nop
mov ebx, ecx
mov r8, qword [r15 + 0x10]
cmp r8, rbx
jbe 0x14008cf11
sub r8d, ebx
mov rdx, rbx
add rdx, qword [r15]
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov r9, rdi
call rbp
mov ecx, dword [rsp + 0x60]
add ecx, ebx
test eax, eax
jne 0x14008cda0
mov rbx, r13
mov rdi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov qword [rdi], 0
mov dword [rbx], 0
xor r13d, r13d
mov rcx, qword [rsp + 0x48]
call fcn.140042f50
mov rcx, rbp
call fcn.140042f50
cmp rsi, 0xffffffffffffffff
je 0x14008ce11
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test r12, r12
je 0x14008ce1e
mov rcx, r12
call fcn.140043680
test r13, r13
jne 0x14008d170
cmp qword [rdi], 0
jne 0x14008d170
mov qword [rdi], 0
mov dword [rbx], 0
cmp qword [r15 + 0x10], 0x40000
ja 0x14008d170
lea rcx, [0x14010377c]
mov rdx, rcx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
je 0x14008d170
mov rbp, rax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
lea rcx, str.PageantRequest_08x
mov edx, eax
call fcn.140042250
mov r12, rax
xor edi, edi
call fcn.140046780
mov edx, 0
test al, al
je 0x14008d04f
call fcn.140046940
test rax, rax
je 0x14008d04b
mov rsi, rax
mov edx, 0x28
mov ecx, 0x40
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
test rax, rax
je 0x14008d04b
mov rdi, rax
mov rcx, rax
mov edx, 1
call qword [0x14012cde0]
test eax, eax
je 0x14008d042
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
call qword [0x14012cde8]
test eax, eax
je 0x14008d042
mov dword [rsp + 0x48], 0x18
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x50], rdi
lea rdx, [rsp + 0x48]
jmp 0x14008d04f
test r14, r14
mov rbx, r13
je 0x14008cf7d
xor r12d, r12d
mov ecx, 1
mov edx, 0x28
xor r8d, r8d
call fcn.140042eb0
mov r13, rax
lea rdx, [0x14008d1a0]
mov rcx, rsi
mov r8, rax
xor r9d, r9d
call fcn.140077b70
mov qword [r13], rax
mov qword [r13 + 8], rsi
call fcn.140043600
mov qword [r13 + 0x10], rax
mov qword [r13 + 0x18], r14
mov rax, qword [rsp + 0x4d0]
mov qword [r13 + 0x20], rax
mov rsi, 0xffffffffffffffff
mov rdi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
jmp 0x14008cdf0
call fcn.140043600
mov r12, rax
mov rdi, rax
add rdi, 0x18
lea r14, [rsp + 0x60]
mov rbp, qword [sym.imp.KERNEL32.DLL_ReadFile]
jmp 0x14008cfa8
mov r13d, edx
test r13d, r13d
jne 0x14008d012
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, r14
mov r8d, 0x400
lea r9, [rsp + 0x44]
call rbp
test eax, eax
je 0x14008cdd6
mov r8d, dword [rsp + 0x44]
mov rcx, rdi
mov rdx, r14
call fcn.1400424b0
mov rax, qword [r12 + 0x10]
xor r13d, r13d
cmp rax, 4
jb 0x14008cfa3
mov rcx, qword [r12 + 8]
mov ecx, dword [rcx]
shl rcx, 0x20
bswap rcx
mov edx, 0xffffffff
cmp ecx, 0x40000
ja 0x14008cfa0
add rcx, 4
mov edx, ecx
cmp rax, rcx
jae 0x14008cfa0
jmp 0x14008cfa3
cmp r13d, 0xffffffff
mov rbp, qword [rsp + 0x38]
jne 0x14008d027
mov rdi, qword [rsp + 0x30]
jmp 0x14008cde0
mov rcx, r12
call fcn.1400436c0
mov rdi, qword [rsp + 0x30]
mov qword [rdi], rax
mov dword [rbx], r13d
xor r12d, r12d
jmp 0x14008cded
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xor edi, edi
xor edx, edx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x40000
mov rcx, 0xffffffffffffffff
mov r8d, 4
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov rsi, rax
add rax, 1
cmp rax, 1
ja 0x14008d08c
mov rcx, r12
call fcn.140042f50
jmp 0x14008d170
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov r14, rax
mov rcx, r15
call fcn.1400437a0
mov rdx, qword [r15]
mov r8, qword [r15 + 0x10]
mov rcx, r14
call fcn.1400b9f30
mov eax, 0x804e50ba
mov qword [rsp + 0x60], rax
mov rcx, r12
call fcn.1400ce950
add eax, 1
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x70], r12
lea r9, [rsp + 0x60]
mov rcx, rbp
mov edx, 0x4a
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x14008d148
mov ebx, dword [r14]
shl rbx, 0x20
bswap rbx
lea eax, [rbx - 1]
cmp eax, 0x3fffb
ja 0x14008d148
add rbx, 4
mov edx, 1
mov rcx, rbx
xor r8d, r8d
call fcn.140042eb0
mov rbp, rax
mov rcx, rax
mov rdx, r14
mov r8, rbx
call fcn.1400b9f30
mov rax, qword [rsp + 0x30]
mov qword [rax], rbp
mov rax, qword [rsp + 0x38]
mov dword [rax], ebx
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, r12
call fcn.140042f50
test rdi, rdi
je 0x14008d170
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400b8cc0
mov rax, r13
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret