Function at 0x1400d0800
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x14016a080]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400d0a48
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
xor ebx, ebx
mov eax, dword [rcx + rax]
cmp dword [0x14059ed14], eax
jle 0x1400d093d
lea rcx, [0x14059ed14]
call fcn.140143000
cmp dword [0x14059ed14], 0xffffffff
jne 0x1400d093d
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rbx
mov qword [rbp + 0x1f], reloc.WS2_32.dll_ntohs
lea ecx, [rbx + 0x20]
call fcn.140143078
mov rdx, rax
mov qword [rbp + 7], rax
mov qword [rbp + 0x17], Ordinal_35
mov qword [rbp + Ordinal_35], 0x1f
movups xmm0, xmmword [str.RtlLookupElementGenericTableAvl]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1401553c0]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x1401553c8]
mov dword [rax + 0x18], ecx
movzx eax, word [0x1401553cc]
mov word [rdx + 0x1c], ax
movzx eax, byte [0x1401553ce]
mov byte [rdx + 0x1e], al
mov byte [rdx + 0x1f], bl
lea r8, [rbp + 7]
mov rdx, qword [0x14059e898]
mov rcx, rsi
call fcn.1400cf6b0
mov qword [0x14059eca0], rax
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x1400d0931
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d092b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d092b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140142f50
nop
lea rcx, [0x14059ed14]
call fcn.140142f94
mov r8, qword [0x14059eca0]
test r8, r8
jne 0x1400d0a64
mov dword [rbp - 0x69], 0xfc06fc7d
mov dword [rbp - 0x65], 0xfc09fc75
mov dword [rbp - 0x61], 0xfc4afc6c
mov dword [rbp - 0x5d], 0xfc41fc45
mov dword [rbp - 0x59], 0xfc4bfc4b
mov dword [rbp - 0x55], 0xfc45fc10
mov dword [rbp - 0x51], 0xfc13fc5d
mov dword [rbp - 0x4d], 0xfc5cfc52
mov dword [rbp - 0x49], 0xfc53fc58
mov dword [rbp - 0x45], 0xfc6bfc18
mov dword [rbp - 0x41], 0xfc57fc4e
mov dword [rbp - 0x3d], 0xfc52fc70
mov dword [rbp - 0x39], 0xfc54fc51
mov dword [rbp - 0x35], 0xfc31fc35
mov dword [rbp - 0x31], 0xfc2ffc07
mov dword [rbp - 0x2d], 0xfc28fc21
mov dword [rbp - 0x29], 0xfc29fc23
mov dword [rbp - 0x25], 0xfc0efc3c
mov dword [rbp - 0x21], 0xfc25fc2f
mov dword [rbp - 0x1d], 0xfc3ffc29
mov dword [rbp - 0x19], 0xfc2cfc27
mov dword [rbp - 0x15], 0xfc30fc04
mov dword [rbp - 0x11], 0xfc3ffc30
mov dword [rbp - 0xd], 0xfc14fc31
mov dword [rbp - 9], 0xfc3bfc20
mov word [rbp - 5], bx
mov byte [rbp - 3], 1
mov ecx, 0x3da
nop dword [rax]
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x69], ax
inc rbx
cmp rbx, 0x32
jb 0x1400d0a10
mov byte [rbp - 3], 0
lea rdx, [rbp - 0x69]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400d4d70
lea rdx, [0x1400d4f50]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140142f30
add rsp, 0xd0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [rsp + 0x20], r14
mov r9, rdi
lea rdx, [rbp + 0x27]
mov rcx, rsi
call fcn.1400d8a80
test al, al
je 0x1400d0a48
mov rax, qword [rbp + 0x27]
jmp 0x1400d0a4a