Function at 0x1400861c0
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 [0x1402f6010]
xor rax, rsp
mov qword [rbp + 0xb8], rax
call fcn.14007fc80
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, [0x14007eb60]
lea rcx, [rbp - 0x40]
call fcn.140087d40
mov rbx, rax
cmp dword [rax + 8], 0
jne 0x140086244
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 0x140086261
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 0x140086275
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
lea rdx, [0x14007ee70]
lea rcx, [rbp - 0x20]
call fcn.140087e90
mov rbx, rax
cmp dword [rax + 8], 0
jne 0x140086299
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 0x1400862b6
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 0x1400862c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
lea rdx, [0x14007f0f0]
lea rcx, [rbp]
call fcn.140087e90
mov rbx, rax
cmp dword [rax + 8], 0
jne 0x1400862ed
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 0x14008630a
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 0x14008631d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
lea rdx, [0x14007f2f0]
lea rcx, [rbp + 0x20]
call fcn.140087e90
mov rbx, rax
cmp dword [rax + 8], 0
jne 0x140086341
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 0x14008635e
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 0x140086371
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
lea rdx, [0x14007eb90]
lea rcx, [rbp + 0x40]
call fcn.140087e90
mov rbx, rax
cmp dword [rax + 8], 0
jne 0x140086395
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 0x1400863b2
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 0x1400863c5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
lea rdx, [0x14007f570]
lea rcx, [rbp + 0x60]
call fcn.140087d40
mov rbx, rax
cmp dword [rax + 8], 0
jne 0x1400863e9
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 0x140086406
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 0x140086419
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, [0x14068d7d0]
lea r15, [0x14068d3d0]
lea r13, [0x14068d2d0]
lea r14, [0x14068d230]
lea r12, [0x14068d530]
call fcn.1400832b0
mov rdx, qword [0x14068d7e0]
mov r8, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, r8
jae 0x14008648e
lea rcx, [rdx + 1]
mov qword [0x14068d7e0], rcx
mov rcx, rsi
cmp r8, 0x10
cmovae rcx, qword [0x14068d7d0]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x14008649a
movzx r9d, al
mov rcx, rsi
call fcn.14007cf20
call fcn.1400832b0
mov rdx, qword [0x14068d3e0]
mov r8, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, r8
jae 0x1400864d6
lea rcx, [rdx + 1]
mov qword [0x14068d3e0], rcx
mov rcx, r15
cmp r8, 0x10
cmovae rcx, qword [0x14068d3d0]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x1400864e2
movzx r9d, al
mov rcx, r15
call fcn.14007cf20
call fcn.1400832b0
mov rdx, qword [0x14068d2e0]
mov r8, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, r8
jae 0x14008651e
lea rcx, [rdx + 1]
mov qword [0x14068d2e0], rcx
mov rcx, r13
cmp r8, 0x10
cmovae rcx, qword [0x14068d2d0]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x14008652a
movzx r9d, al
mov rcx, r13
call fcn.14007cf20
call fcn.1400832b0
mov rdx, qword [0x14068d240]
mov r8, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, r8
jae 0x140086566
lea rcx, [rdx + 1]
mov qword [0x14068d240], rcx
mov rcx, r14
cmp r8, 0x10
cmovae rcx, qword [0x14068d230]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x140086572
movzx r9d, al
mov rcx, r14
call fcn.14007cf20
call fcn.1400832b0
mov rdx, qword [0x14068d540]
mov r8, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, r8
jae 0x1400865ae
lea rcx, [rdx + 1]
mov qword [0x14068d540], rcx
mov rcx, r12
cmp r8, 0x10
cmovae rcx, qword [0x14068d530]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x1400865ba
movzx r9d, al
mov rcx, r12
call fcn.14007cf20
sub rbx, 1
jne 0x140086452
mov dword [rsp + 0x20], 0x232c2e6f
mov word [rsp + 0x24], 0x100
mov rcx, rdi
nop word [rax + rax]
lea eax, [rcx + 0x41]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 4
jb 0x1400865e0
mov byte [rsp + 0x25], 0
lea rax, [rsp + 0x20]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x140086604
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.14007c6d0
mov dword [rsp + 0x28], 0x213b276f
mov word [rsp + 0x2c], 0x100
mov rcx, rdi
nop dword [rax]
lea eax, [rcx + 0x41]
xor byte [rsp + rcx + 0x28], al
inc rcx
cmp rcx, 4
jb 0x140086630
mov byte [rsp + 0x2d], 0
lea rax, [rsp + 0x28]
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140086650
mov r8, rbx
lea rdx, [rsp + 0x28]
mov rcx, r13
call fcn.14007c6d0
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rsi, qword [0x14068d7d0]
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 [0x1402d8e50]
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1402d8cb0]
movdqu xmmword [rsp + 0x60], xmm1
mov dword [rsp + 0x70], 0x21012700
mov dword [rsp + 0x74], 0x352d31
mov byte [rsp + 0x78], 1
mov rdx, rdi
nop
lea eax, [rdx + 0x42]
xor byte [rsp + rdx + 0x50], al
inc rdx
cmp rdx, 0x27
jb 0x1400866f0
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.14007ca90
lea rdx, [0x14007cc60]
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 [0x1402d8d70]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x213c343b
mov dword [rsp + 0x44], 0x3b2d0776
mov dword [rsp + 0x48], 0x3f3236
mov byte [rsp + 0x4c], 1
mov r8, rdi
lea eax, [r8 + 0x42]
xor byte [rsp + r8 + 0x30], al
inc r8
cmp r8, 0x1b
jb 0x140086790
mov byte [rsp + 0x4c], 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.14007ca90
lea rdx, [0x14007cc60]
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.140082a20
movdqa xmm0, xmmword [0x1402d8cf0]
movdqu xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x1402d8db0]
movdqu xmmword [rbp - 0x70], xmm1
mov dword [rbp - 0x60], 0x140b12
mov byte [rbp - 0x5c], 1
nop
lea eax, [rdi + 0x42]
xor byte [rbp + rdi - 0x80], al
inc rdi
cmp rdi, 0x23
jb 0x140086830
mov byte [rbp - 0x5c], 0
lea rcx, [rbp - 0x80]
call fcn.140084c30
xor eax, eax
mov rcx, qword [rbp + 0xb8]
xor rcx, rsp
call fcn.1400897d0
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