Function at 0x140086680
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Set console window title

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xe8]
sub rsp, 0x1c0
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1402f7010]
xor rax, rsp
mov qword [rbp + 0xb8], rax
call fcn.14007fb60
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
mov eax, dword [rdx + 0x30]
add eax, 0x100000
mov dword [rdx + 0x40], eax
lea rdx, [0x14007ea40]
lea rcx, [rbp - 0x40]
call fcn.140088230
mov rbx, rax
cmp dword [rax + 8], 0
jne 0x140086704
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x50], xmm0
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x140086721
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
xor edi, edi
mov qword [rbx], rdi
mov dword [rbx + 8], edi
cmp dword [rbp - 0x38], edi
je 0x140086735
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
lea rdx, [0x14007ed50]
lea rcx, [rbp - 0x20]
call fcn.140088380
mov rbx, rax
cmp dword [rax + 8], 0
jne 0x140086759
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x140086776
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov qword [rbx], rdi
mov dword [rbx + 8], edi
cmp dword [rbp - 0x18], 0
je 0x140086789
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
lea rdx, [0x14007efd0]
lea rcx, [rbp]
call fcn.140088380
mov rbx, rax
cmp dword [rax + 8], 0
jne 0x1400867ad
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x1400867ca
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov qword [rbx], rdi
mov dword [rbx + 8], edi
cmp dword [rbp + 8], 0
je 0x1400867dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
lea rdx, [0x14007f1d0]
lea rcx, [rbp + 0x20]
call fcn.140088380
mov rbx, rax
cmp dword [rax + 8], 0
jne 0x140086801
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
movups xmm0, xmmword [rbx]
movaps xmmword [rbp + 0x10], xmm0
lea rcx, [rbp + 0x10]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x14008681e
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov qword [rbx], rdi
mov dword [rbx + 8], edi
cmp dword [rbp + 0x28], 0
je 0x140086831
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
lea rdx, [0x14007ea70]
lea rcx, [rbp + 0x40]
call fcn.140088380
mov rbx, rax
cmp dword [rax + 8], 0
jne 0x140086855
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
movups xmm0, xmmword [rbx]
movaps xmmword [rbp + 0x30], xmm0
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x140086872
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov qword [rbx], rdi
mov dword [rbx + 8], edi
cmp dword [rbp + 0x48], 0
je 0x140086885
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
lea rdx, [0x14007f450]
lea rcx, [rbp + 0x60]
call fcn.140088230
mov rbx, rax
cmp dword [rax + 8], 0
jne 0x1400868a9
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
movups xmm0, xmmword [rbx]
movaps xmmword [rbp + 0x50], xmm0
lea rcx, [rbp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x1400868c6
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov qword [rbx], rdi
mov dword [rbx + 8], edi
cmp dword [rbp + 0x68], 0
je 0x1400868d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov ebx, 0xa
lea rsi, [0x14068a5b0]
lea r15, [0x14068a1b0]
lea r13, [0x14068a0b0]
lea r14, [0x14068a010]
lea r12, [0x14068a310]
call fcn.140083570
mov rdx, qword [0x14068a5c0]
mov r8, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, r8
jae 0x14008694e
lea rcx, [rdx + 1]
mov qword [0x14068a5c0], rcx
mov rcx, rsi
cmp r8, 0x10
cmovae rcx, qword [0x14068a5b0]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x14008695a
movzx r9d, al
mov rcx, rsi
call fcn.14007cea0
call fcn.140083570
mov rdx, qword [0x14068a1c0]
mov r8, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, r8
jae 0x140086996
lea rcx, [rdx + 1]
mov qword [0x14068a1c0], rcx
mov rcx, r15
cmp r8, 0x10
cmovae rcx, qword [0x14068a1b0]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x1400869a2
movzx r9d, al
mov rcx, r15
call fcn.14007cea0
call fcn.140083570
mov rdx, qword [0x14068a0c0]
mov r8, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, r8
jae 0x1400869de
lea rcx, [rdx + 1]
mov qword [0x14068a0c0], rcx
mov rcx, r13
cmp r8, 0x10
cmovae rcx, qword [0x14068a0b0]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x1400869ea
movzx r9d, al
mov rcx, r13
call fcn.14007cea0
call fcn.140083570
mov rdx, qword [0x14068a020]
mov r8, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, r8
jae 0x140086a26
lea rcx, [rdx + 1]
mov qword [0x14068a020], rcx
mov rcx, r14
cmp r8, 0x10
cmovae rcx, qword [0x14068a010]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x140086a32
movzx r9d, al
mov rcx, r14
call fcn.14007cea0
call fcn.140083570
mov rdx, qword [0x14068a320]
mov r8, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, r8
jae 0x140086a6e
lea rcx, [rdx + 1]
mov qword [0x14068a320], rcx
mov rcx, r12
cmp r8, 0x10
cmovae rcx, qword [0x14068a310]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x140086a7a
movzx r9d, al
mov rcx, r12
call fcn.14007cea0
sub rbx, 1
jne 0x140086912
mov dword [rsp + 0x20], 0x5f585a1b
mov word [rsp + 0x24], 0x100
mov rcx, rdi
nop word [rax + rax]
lea eax, [rcx + 0x35]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 4
jb 0x140086aa0
mov byte [rsp + 0x25], 0
lea rax, [rsp + 0x20]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x140086ac4
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.14007c620
mov dword [rsp + 0x28], 0x5d4f531b
mov word [rsp + 0x2c], 0x100
mov rcx, rdi
nop dword [rax]
lea eax, [rcx + 0x35]
xor byte [rsp + rcx + 0x28], al
inc rcx
cmp rcx, 4
jb 0x140086af0
mov byte [rsp + 0x2d], 0
lea rax, [rsp + 0x28]
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140086b10
mov r8, rbx
lea rdx, [rsp + 0x28]
mov rcx, r13
call fcn.14007c620
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rsi, qword [0x14068a5b0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
lea rdx, [rbp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx edx, word [rbp + 0x78]
mov esi, 0xf0
and dx, si
or dx, 0xa
mov word [rbp + 0x78], dx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movdqa xmm0, xmmword [0x1402d8ec0]
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1402d8ae0]
movdqu xmmword [rsp + 0x60], xmm1
mov dword [rsp + 0x70], 0x1e3c1c35
mov dword [rsp + 0x74], 0x160c
mov byte [rsp + 0x78], 1
mov rdx, rdi
nop
lea eax, [rdx + 0x37]
xor byte [rsp + rdx + 0x50], al
inc rdx
cmp rdx, 0x27
jb 0x140086bb0
mov byte [rsp + 0x78], 0
lea rdx, [rsp + 0x50]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14007ca10
lea rdx, [0x14007cbe0]
mov rcx, rax
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 ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
lea rdx, [rbp + 0x88]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx edx, word [rbp + 0x90]
and dx, si
or dx, 0xb
mov word [rbp + 0x90], dx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movdqa xmm0, xmmword [0x1402d8db0]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x283c1867
mov dword [rsp + 0x44], 0x2e2527
mov byte [rsp + 0x48], 1
mov r8, rdi
nop dword [rax + rax]
lea eax, [r8 + 0x37]
xor byte [rsp + r8 + 0x30], al
inc r8
cmp r8, 0x17
jb 0x140086c50
mov byte [rsp + 0x48], 0
lea rdx, [rsp + 0x30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14007ca10
lea rdx, [0x14007cbe0]
mov rcx, rax
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 ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
lea rdx, [rbp + 0xa0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx edx, word [rbp + 0xa8]
and dx, si
or dx, 0xf
mov word [rbp + 0xa8], dx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call fcn.140082be0
call fcn.140082be0
movdqa xmm0, xmmword [0x1402d8d20]
movdqu xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x1402d8c80]
movdqu xmmword [rbp - 0x70], xmm1
mov dword [rbp - 0x60], 0x100263d
nop
lea eax, [rdi + 0x35]
xor byte [rbp + rdi - 0x80], al
inc rdi
cmp rdi, 0x22
jb 0x140086cf0
mov byte [rbp - 0x5d], 0
lea rcx, [rbp - 0x80]
call fcn.1400850a0
xor eax, eax
mov rcx, qword [rbp + 0xb8]
xor rcx, rsp
call fcn.140089e50
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret