Function at 0x140085dc0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x140162080]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r8
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov r15, qword [rdx + 0x10]
mov r14, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x140085e1a
mov r14, qword [rdx]
call fcn.14010482c
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r15
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140084a40
mov dword [rsp + 0x40], 6
lea rcx, [rsp + 0x60]
call fcn.140085320
movzx r14d, al
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140085e95
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140085e90
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140085e90
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140105460
movdqa xmm0, xmmword [0x14014c8e0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r12w
test r14b, r14b
jne 0x140086015
mov byte [rsp + 0x30], gethostname
mov byte [rsp + 0x31], reloc.WS2_32.dll_recvfrom
mov byte [rsp + 0x32], 0xe7
mov byte [rsp + 0x33], 0xec
mov byte [rsp + 0x34], 0xa5
mov byte [rsp + 0x35], 0xc0
mov byte [rsp + 0x36], 0xe2
mov byte [rsp + 0x37], 0xf4
mov byte [rsp + 0x38], 0xaf
mov byte [rsp + 0x39], Ordinal_200
mov byte [rsp + 0x3a], 0xef
mov byte [rsp + 0x3b], 0xf8
mov byte [rsp + 0x3c], 0xe0
mov byte [rsp + 0x3d], 0xea
mov byte [rsp + 0x3e], 0x81
movzx eax, byte [rsp + 0x30]
mov r9, r12
movabs r11, 0x5d54484959d78b7e
mov r10, r11
lea rax, [rsp + 0x30]
sub r10, rax
mov r15d, reloc.WS2_32.dll_ntohs
lea rdx, [rsp + 0x30]
add rdx, r9
movsx r8, byte [rdx]
mov rcx, r9
and ecx, r15d
cmp rcx, r15
cmovae rcx, r15
shl cl, 2
mov rax, r11
shr rax, cl
and al, r15b
add dl, r10b
xor al, dl
xor al, r8b
mov byte [rsp + r9 + 0x30], al
inc r9
cmp r9, r15
jb 0x140085f20
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140085f74
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140069f60
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140085fc2
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140085fbd
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14008600e
mov rcx, r8
call fcn.140105460
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r15
mov byte [rbx], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140086194
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14008618f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x14008618c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp]
call fcn.140106020
mov rdx, rbx
lea rcx, [rbp]
call fcn.140091900
nop
mov qword [rbp - 0x48], r12
lea r8, [rbp - 0x80]
lea rdx, [rbp]
lea rcx, [rbp - 0x10]
call fcn.140094f70
nop
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.14006c910
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140091cc0
nop
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r12
mov r15d, reloc.WS2_32.dll_ntohs
mov qword [rdi + 0x18], r15
mov byte [rdi], 0
mov dword [rsp + 0x40], Ordinal_41
cmp byte [rax], 3
jne 0x1400861d1
mov r9, qword [rax + 8]
cmp rdi, r9
je 0x1400860c8
mov r14, qword [r9 + 0x10]
cmp qword [r9 + 0x18], r15
jbe 0x1400860a1
mov r9, qword [r9]
mov rcx, rdi
cmp r14, r15
ja 0x1400860bf
mov qword [rdi + 0x10], r14
mov r8, r14
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [r14 + rdi], 0
jmp 0x1400860c8
mov rdx, r14
call fcn.14006a060
nop
movzx edx, byte [rbp - 0x10]
lea rcx, [rbp - 8]
call fcn.140093500
nop
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 0x10]
call fcn.140071020
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140086153
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14008614e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400861c3
mov rcx, r8
call fcn.140105460
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r15
mov byte [rbx], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140086194
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14008618f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400861ca
mov rcx, r8
call fcn.140105460
mov rax, rdi
mov byte [rsi], 0
mov qword [rsi + 0x18], r15
mov qword [rsi + 0x10], r12
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140104d30
add rsp, 0x220
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rax
call fcn.140093a00
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
lea rcx, [rbp - 0x40]
call fcn.1400a1890
nop
mov r8, rax
lea rcx, [rbp - 0x80]
call fcn.1400a1950
lea rdx, [0x14015d390]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
int3