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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov r14d, ecx
mov ecx, r14d
call fcn.140001b3c
mov rbx, rax
cmp byte [rax], 0
jne 0x140001175
cmp byte [rax + 1], 0xc8
jbe 0x140001175
and qword [rsp + 0x30], 0
lea rcx, str.log.txt
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r8d, r8d
mov dword [rsp + 0x20], 3
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001374
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x3a0]
mov r8d, 0x18
lea rdx, str.Logfile_data
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
test eax, eax
je 0x1400012b2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rbx], 0xc8
jb 0x140001204
movzx eax, byte [rbx]
cmp eax, 0x12c
jae 0x140001204
cmp byte [rbx], 0xc8
jne 0x140001204
movzx edx, byte [rbx + 1]
mov rcx, qword [rbx + 8]
call fcn.140002068
mov rcx, qword [rbx + 8]
mov rdi, rax
test rcx, rcx
je 0x1400011ab
call fcn.140003740
lea r8, [rsp + 0x40]
mov rcx, rdi
lea rdx, [rbp + 0x3a8]
call fcn.1400015f4
mov rcx, qword [rdi + 0x10]
mov esi, eax
test rcx, rcx
je 0x1400011cf
call fcn.140003740
test esi, esi
je 0x1400012bd
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x1400011fc
mov rdx, qword [rbp + 0x3a8]
mov rcx, rdi
call fcn.140001be4
mov rcx, qword [rbp + 0x3a8]
call fcn.140003740
mov rcx, rdi
call fcn.140003740
cmp byte [rbx], 0x45
jne 0x14000129b
and dword [rbp + 0x398], 0
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x400
call fcn.140002ac8
and qword [rsp + 0x30], 0
lea rcx, str.example1.txt
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001264
xor ecx, ecx
call fcn.1400010d8
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x398]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001292
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.140003740
mov ecx, 0x3e8
call fcn.14000368c
jmp 0x1400010f1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001374
cmp qword [rsp + 0x40], 0
jbe 0x140001364
mov eax, dword [0x1400050c0]
lea rcx, [0x140005090]
movups xmm0, xmmword [str.Hello__this_is_a_test.]
and qword [rsp + 0x30], 0
xor r9d, r9d
and dword [rbp + 0x398], 0
xor r8d, r8d
mov dword [rsp + 0x58], eax
mov edx, 0x40000000
movzx eax, word [0x1400050c4]
mov word [rsp + 0x5c], ax
mov al, byte [0x1400050c6]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov byte [rsp + 0x5e], al
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x398]
mov rcx, rax
lea rdx, [rsp + 0x48]
mov r8d, 0x17
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000135b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.140003740
mov rcx, rbx
call fcn.140003740
add rsp, 0x460
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret