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

Disassembly:
push rbp
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0xb0]
call dbg.__main
mov rax, rsp
mov rbx, rax
mov dword [rbp - 0xc], 0xc5
lea rax, section..rdata
mov rdx, rax
lea rax, str.D:CodeVNPTpe_injectioncodeinject_demoprj_execsNOTEPAD_3.EXE
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x18], rax
mov ecx, 0x40
call sym.malloc
mov qword [0x140007030], rax
mov rax, qword [0x140007030]
mov rdx, qword [rbp - 0x18]
mov r9, rdx
mov r8d, 0x40
mov edx, 1
mov rcx, rax
call sym.fread
mov rax, qword [0x140007030]
mov eax, dword [rax + 0x3c]
mov dword [rbp - 0x1c], eax
mov edx, dword [rbp - 0x1c]
mov rax, qword [rbp - 0x18]
mov r8d, 0
mov rcx, rax
call sym.fseek
mov ecx, 0xf8
call sym.malloc
mov qword [0x140007038], rax
mov rax, qword [0x140007038]
mov rdx, qword [rbp - 0x18]
mov r9, rdx
mov r8d, 0xf8
mov edx, 1
mov rcx, rax
call sym.fread
mov rax, qword [0x140007038]
mov eax, dword [rax + 0x28]
mov dword [rbp - 0x5c], eax
mov rax, qword [0x140007038]
movzx eax, word [rax + 6]
movzx eax, ax
mov dword [rbp - 0x60], eax
mov rax, qword [0x140007038]
mov eax, dword [rax + 0x50]
mov dword [rbp - 0x64], eax
mov edx, dword [rbp - 0x60]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 3
mov eax, eax
mov rcx, rax
call sym.malloc
mov qword [0x140007040], rax
mov edx, dword [rbp - 0x60]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 3
mov ecx, eax
mov rax, qword [0x140007040]
mov rdx, qword [rbp - 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fread
mov rax, qword [0x140007038]
mov eax, dword [rax + 0x3c]
mov dword [rbp - 0x20], eax
mov rax, qword [0x140007038]
mov eax, dword [rax + 0x38]
mov dword [rbp - 0x24], eax
mov dword [rbp - 0x69], 0x77656e2e
mov byte [rbp - 0x65], 0
mov eax, dword [rbp - 0xc]
mov dword [rbp - 0x70], eax
mov edx, dword [rbp - 0xc]
mov eax, dword [rbp - 0x20]
lea ecx, [rdx + rax]
mov eax, dword [rbp - 0xc]
mov edx, 0
div dword [rbp - 0x20]
mov eax, ecx
sub eax, edx
mov dword [rbp - 0x74], eax
mov rdx, qword [0x140007040]
mov eax, dword [rbp - 0x60]
sub eax, 1
mov ecx, eax
mov rax, rcx
shl rax, 2
add rax, rcx
shl rax, 3
add rax, rdx
mov edx, dword [rax + 0x14]
mov rcx, qword [0x140007040]
mov eax, dword [rbp - 0x60]
sub eax, 1
mov r8d, eax
mov rax, r8
shl rax, 2
add rax, r8
shl rax, 3
add rax, rcx
mov eax, dword [rax + 0x10]
add eax, edx
mov dword [rbp - 0x78], eax
mov rdx, qword [0x140007040]
mov eax, dword [rbp - 0x60]
sub eax, 1
mov ecx, eax
mov rax, rcx
shl rax, 2
add rax, rcx
shl rax, 3
add rax, rdx
mov edx, dword [rax + 0xc]
mov rcx, qword [0x140007040]
mov eax, dword [rbp - 0x60]
sub eax, 1
mov r8d, eax
mov rax, r8
shl rax, 2
add rax, r8
shl rax, 3
add rax, rcx
mov eax, dword [rax + 8]
add eax, edx
mov dword [rbp - 0x7c], eax
mov edx, dword [rbp - 0x7c]
mov eax, dword [rbp - 0x24]
lea ecx, [rdx + rax]
mov eax, dword [rbp - 0x7c]
mov edx, 0
div dword [rbp - 0x24]
mov eax, ecx
sub eax, edx
mov dword [rbp - 0x7c], eax
mov eax, dword [rbp - 0x60]
add eax, 1
mov dword [rbp - 0x60], eax
mov edx, dword [rbp - 0x70]
mov eax, dword [rbp - 0x24]
lea ecx, [rdx + rax]
mov eax, dword [rbp - 0x70]
mov edx, 0
div dword [rbp - 0x24]
mov eax, edx
sub ecx, eax
mov edx, ecx
mov eax, dword [rbp - 0x64]
add eax, edx
mov dword [rbp - 0x64], eax
mov eax, dword [rbp - 0x1c]
add eax, 6
mov edx, eax
mov rax, qword [rbp - 0x18]
mov r8d, 0
mov rcx, rax
call sym.fseek
mov rdx, qword [rbp - 0x18]
lea rax, [rbp - 0x60]
mov r9, rdx
mov r8d, 4
mov edx, 1
mov rcx, rax
call sym.fwrite
mov eax, dword [rbp - 0x1c]
add eax, 0x50
mov edx, eax
mov rax, qword [rbp - 0x18]
mov r8d, 0
mov rcx, rax
call sym.fseek
mov rdx, qword [rbp - 0x18]
lea rax, [rbp - 0x64]
mov r9, rdx
mov r8d, 4
mov edx, 1
mov rcx, rax
call sym.fwrite
mov edx, dword [rbp - 0x60]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 3
mov edx, eax
mov eax, dword [rbp - 0x1c]
add eax, edx
add eax, 0xd0
mov dword [rbp - 0x28], eax
mov edx, dword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
mov r8d, 0
mov rcx, rax
call sym.fseek
mov rdx, qword [rbp - 0x18]
lea rax, [rbp - 0x69]
mov r9, rdx
mov r8d, 5
mov edx, 1
mov rcx, rax
call sym.fwrite
mov eax, dword [rbp - 0x28]
lea edx, [rax + 8]
mov rax, qword [rbp - 0x18]
mov r8d, 0
mov rcx, rax
call sym.fseek
mov rdx, qword [rbp - 0x18]
lea rax, [rbp - 0x70]
mov r9, rdx
mov r8d, 4
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rdx, qword [rbp - 0x18]
lea rax, [rbp - 0x7c]
mov r9, rdx
mov r8d, 4
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rdx, qword [rbp - 0x18]
lea rax, [rbp - 0x74]
mov r9, rdx
mov r8d, 4
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rdx, qword [rbp - 0x18]
lea rax, [rbp - 0x78]
mov r9, rdx
mov r8d, 4
mov edx, 1
mov rcx, rax
call sym.fwrite
mov eax, dword [rbp - 0x28]
lea edx, [rax + 0x24]
mov rax, qword [rbp - 0x18]
mov r8d, 0
mov rcx, rax
call sym.fseek
mov dword [rbp - 0x80], 0xe0000060
mov rdx, qword [rbp - 0x18]
lea rax, [rbp - 0x80]
mov r9, rdx
mov r8d, 4
mov edx, 1
mov rcx, rax
call sym.fwrite
mov eax, dword [rbp - 0x1c]
add eax, 0x28
mov edx, eax
mov rax, qword [rbp - 0x18]
mov r8d, 0
mov rcx, rax
call sym.fseek
mov rdx, qword [rbp - 0x18]
lea rax, [rbp - 0x7c]
mov r9, rdx
mov r8d, 4
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.fclose
mov eax, dword [rbp - 0x7c]
mov dword [rbp - 0x84], eax
lea rax, [rbp - 0x84]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x5c]
mov qword [rbp - 0x38], rax
mov dword [rbp - 4], 0
jmp 0x14000192e
mov eax, dword [rbp - 4]
cdqe
lea rdx, section..data
add rax, rdx
mov r8d, 4
lea rdx, str.aaaa
mov rcx, rax
call sym.strncmp
test eax, eax
jne 0x1400018e9
mov eax, dword [rbp - 4]
cdqe
lea rdx, section..data
add rdx, rax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax]
mov dword [rdx], eax
jmp 0x14000192a
mov eax, dword [rbp - 4]
cdqe
lea rdx, section..data
add rax, rdx
mov r8d, 4
lea rdx, str.bbbb
mov rcx, rax
call sym.strncmp
test eax, eax
jne 0x14000192a
mov eax, dword [rbp - 4]
cdqe
lea rdx, section..data
add rdx, rax
mov rax, qword [rbp - 0x38]
mov eax, dword [rax]
mov dword [rdx], eax
jmp 0x14000193a
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, dword [rbp - 0xc]
jl 0x1400018a8
mov eax, dword [rbp - 0xc]
mov edx, 0
div dword [rbp - 0x20]
mov eax, dword [rbp - 0x20]
sub eax, edx
mov dword [rbp - 0x3c], eax
mov eax, dword [rbp - 0x3c]
movsxd rdx, eax
sub rdx, 1
mov qword [rbp - 0x48], rdx
cdqe
add rax, 0xf
shr rax, 4
shl rax, 4
call fcn.140002ad0
sub rsp, rax
lea rax, [rsp + 0x20]
add rax, 0
mov qword [rbp - 0x50], rax
mov dword [rbp - 8], 0
jmp 0x140001998
mov rdx, qword [rbp - 0x50]
mov eax, dword [rbp - 8]
cdqe
mov byte [rdx + rax], 0
add dword [rbp - 8], 1
mov eax, dword [rbp - 8]
cmp eax, dword [rbp - 0x3c]
jl 0x140001987
lea rax, [0x140004054]
mov rdx, rax
lea rax, str.D:CodeVNPTpe_injectioncodeinject_demoprj_execsNOTEPAD_3.EXE
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x58], rax
mov eax, dword [rbp - 0xc]
cdqe
mov rdx, qword [rbp - 0x58]
mov r9, rdx
mov r8, rax
mov edx, 1
lea rax, section..data
mov rcx, rax
call sym.fwrite
mov eax, dword [rbp - 0x3c]
movsxd rdx, eax
mov rcx, qword [rbp - 0x58]
mov rax, qword [rbp - 0x50]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 0x58]
mov rcx, rax
call sym.fclose
mov rax, qword [0x140007030]
mov rcx, rax
call sym.free
mov rax, qword [0x140007038]
mov rcx, rax
call sym.free
mov rax, qword [0x140007040]
mov rcx, rax
call sym.free
mov eax, 0
mov rsp, rbx
lea rsp, [rbp + 8]
pop rbx
pop rbp
ret