Function at 0x140036ed0
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 [0x1400d0080]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x140037115
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
xor ebx, ebx
mov eax, dword [rcx + rax]
cmp dword [0x14090c114], eax
jle 0x14003700d
lea rcx, [0x14090c114]
call fcn.1400a9400
cmp dword [0x14090c114], 0xffffffff
jne 0x14003700d
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.1400a9478
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 [0x1400bb3e0]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x1400bb3e8]
mov dword [rax + 0x18], ecx
movzx eax, word [0x1400bb3ec]
mov word [rdx + 0x1c], ax
movzx eax, byte [0x1400bb3ee]
mov byte [rdx + 0x1e], al
mov byte [rdx + 0x1f], bl
lea r8, [rbp + 7]
mov rdx, qword [0x14090bc98]
mov rcx, rsi
call fcn.140035d80
mov qword [0x14090c0a0], rax
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x140037001
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036ffb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140036ffb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a9350
nop
lea rcx, [0x14090c114]
call fcn.1400a9394
mov r8, qword [0x14090c0a0]
test r8, r8
jne 0x140037131
mov dword [rbp - 0x69], 0x15f9158c
mov dword [rbp - 0x65], 0x15fa1584
mov dword [rbp - 0x61], 0x15bd159d
mov dword [rbp - 0x5d], 0x15b215b4
mov dword [rbp - 0x59], 0x158415ba
mov dword [rbp - 0x55], 0x159615c1
mov dword [rbp - 0x51], 0x15c4158c
mov dword [rbp - 0x4d], 0x158f1583
mov dword [rbp - 0x49], 0x158c1589
mov dword [rbp - 0x45], 0x15b815c9
mov dword [rbp - 0x41], 0x1580159f
mov dword [rbp - 0x3d], 0x158115a1
mov dword [rbp - 0x39], 0x159b1580
mov dword [rbp - 0x35], 0x15821584
mov dword [rbp - 0x31], 0x159815b6
mov dword [rbp - 0x2d], 0x159b1590
mov dword [rbp - 0x29], 0x15961592
mov dword [rbp - 0x25], 0x15bd158d
mov dword [rbp - 0x21], 0x1592159e
mov dword [rbp - 0x1d], 0x158c1598
mov dword [rbp - 0x19], 0x16631596
mov dword [rbp - 0x15], 0x16631655
mov dword [rbp - 0x11], 0x16681661
mov dword [rbp - 0xd], 0x16471660
mov dword [rbp - 9], 0x16641671
mov word [rbp - 5], bx
mov byte [rbp - 3], 1
mov ecx, 0x15d7
nop dword [rax]
lea eax, [rcx + rbx]
xor word [rbp + rbx*2 - 0x69], ax
inc rbx
cmp rbx, 0x32
jb 0x1400370e0
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.14003b430
lea rdx, [0x14003b610]
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.1400a9330
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.14003f0e0
test al, al
je 0x140037115
mov rax, qword [rbp + 0x27]
jmp 0x140037117