Function at 0x140030270
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x14010c718]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r14, r8
mov r15, rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], r8
xor edi, edi
mov dword [rsp + 0x20], edi
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x80]
call fcn.14001f420
nop
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rdi
lea ecx, [rdi + 0x20]
call fcn.1400be0b8
mov qword [rsp + 0x60], rax
lea rsi, [rax + 0x20]
mov qword [rsp + 0x70], rsi
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rsp + 0x68], rsi
mov r13, qword [rsp + 0x60]
sub rsi, r13
mov rbx, qword [r15 + 0x10]
mov r12, r15
cmp qword [r15 + 0x18], 0x10
jb 0x14003031d
mov r12, qword [r15]
lea rax, [0x14010e450]
cmp qword [0x14010e468], 0x10
cmovae rax, qword [0x14010e450]
movups xmmword [rbp + 0x140], xmm0
movups xmmword [rbp + 0x150], xmm0
movups xmmword [rbp + 0x160], xmm0
movups xmmword [rbp + 0x170], xmm0
movdqa xmm1, xmmword [0x1400fa4b0]
movups xmmword [rbp + 0xc0], xmm1
movups xmmword [rbp + 0xd0], xmm1
movups xmmword [rbp + 0xe0], xmm1
movups xmmword [rbp + 0xf0], xmm1
movdqa xmm0, xmmword [0x1400fa500]
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
mov rcx, qword [0x14010e460]
cmp rcx, 0x40
jbe 0x1400303bf
mov r9d, 0x40
lea r8, [rbp + 0x140]
mov rdx, rcx
mov rcx, rax
call fcn.1400457c0
jmp 0x1400303d1
mov r8, rcx
mov rdx, rax
lea rcx, [rbp + 0x140]
call sub.VCRUNTIME140.dll_memcpy
mov rax, rdi
movdqu xmm2, xmmword [rbp + rax + 0x140]
movdqu xmm0, xmmword [rbp + rax + 0xc0]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rbp + rax + 0xc0], xmm1
movdqu xmm0, xmmword [rbp + rax + 0x100]
pxor xmm0, xmm2
movdqu xmmword [rbp + rax + 0x100], xmm0
add rax, 0x10
cmp rax, 0x40
jl 0x1400303d4
lea rcx, [rbx + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
movups xmm0, xmmword [rbp + 0xc0]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbp + 0xd0]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rbp + 0xe0]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rbp + 0xf0]
movups xmmword [rax + 0x30], xmm1
lea rcx, [rax + 0x40]
mov r8, rbx
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
mov r12d, reloc.WLDAP32.dll_Ordinal_32
mov r9d, r12d
lea r8, [rbp + 0x80]
lea rdx, [rbx + 0x40]
mov rcx, rdi
call fcn.1400457c0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea ecx, [r12 + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
movups xmm0, xmmword [rbp + 0x100]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbp + 0x110]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rbp + 0x120]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rbp + 0x130]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rbp + 0x80]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rbp + 0x90]
movups xmmword [rax + 0x50], xmm1
mov r9d, r12d
lea r8, [rbp + 0xa0]
lea edx, [r12 + 0x40]
mov rcx, rax
call fcn.1400457c0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp rsi, r12
cmova rsi, r12
mov r8, rsi
lea rdx, [rbp + 0xa0]
mov rcx, r13
call sub.VCRUNTIME140.dll_memcpy
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
cmp rsi, r12
je 0x14003057f
nop word [rax + rax]
movzx edi, byte [rsi]
lea rdx, [0x14001a540]
lea rcx, [rbp - 0x70]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rbx, rax
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov byte [rdx + rax + 0x58], Ordinal_50
mov edx, 2
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov r8, qword [rax]
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
add rcx, rbx
mov rdx, qword [rax + 8]
call r8
mov edx, edi
mov rcx, rbx
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___int____ptr64]
inc rsi
cmp rsi, r12
jne 0x140030520
mov rsi, qword [rsp + 0x60]
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
xor r13d, r13d
mov r9d, r13d
mov qword [rbp + 0x90], r13
mov ecx, reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x98], rcx
mov byte [rbp + 0x80], r9b
mov dword [rsp + reloc.WLDAP32.dll_Ordinal_32], 0x20
movups xmmword [rbp + 0xa0], xmm0
mov eax, dword [rbp + 8]
and al, 0x22
cmp al, 2
je 0x1400305e2
mov rax, qword [rbp - 0x28]
mov r8, qword [rax]
test r8, r8
je 0x1400305e2
mov rax, qword [rbp - 0x48]
mov rdx, qword [rax]
cmp r8, qword [rbp]
cmovb r8, qword [rbp]
sub r8, rdx
jmp 0x140030618
test byte [rbp + 8], 4
jne 0x14003060a
mov rax, qword [rbp - 0x30]
mov r10, qword [rax]
test r10, r10
je 0x14003060a
mov rax, qword [rbp - 0x50]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x18]
movsxd r8, dword [rax]
add r8, r10
sub r8, rdx
jmp 0x140030618
mov r8, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0xa0]
test rdx, rdx
je 0x14003063c
lea rcx, [rbp + 0x80]
call fcn.140013f70
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rbp + 0x98]
mov r9, qword [rbp + 0x90]
mov ebx, reloc.WS2_32.dll_recv
cmp r9, qword [r14 + 0x10]
setne dil
cmp rcx, rbx
jb 0x140030688
lea rdx, [rcx + 1]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003067e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400309e1
call fcn.1400be344
mov rsi, qword [rsp + 0x60]
test dil, dil
je 0x1400307c4
mov byte [0x14010dccd], 1
test rsi, rsi
je 0x1400306e0
mov rdx, qword [rsp + 0x70]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400306ca
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030a36
mov rcx, rsi
call fcn.1400be344
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x7c], edx
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x68], rax
lea rcx, [rbp - 0x68]
call fcn.140013ec0
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x18]
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 [r15 + 0x18]
cmp rdx, 0x10
jb 0x140030773
mov rcx, qword [r15]
inc rdx
cmp rdx, 0x1000
jb 0x14003076e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140030b66
mov rcx, r8
call fcn.1400be344
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r15], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x1400307bd
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x1400307b8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140030b6d
mov rcx, r8
call fcn.1400be344
xor al, al
jmp 0x140030b2c
mov r12d, r13d
mov rdi, r13
nop word [rax + rax]
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
mov r9, r13
mov qword [rbp + 0x90], r13
mov ecx, reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x98], rcx
mov byte [rbp + 0x80], r9b
or ebx, 2
mov dword [rsp + 0x20], ebx
movups xmmword [rbp + 0xa0], xmm0
mov eax, dword [rbp + 8]
and al, 0x22
cmp al, 2
je 0x14003082f
mov rax, qword [rbp - 0x28]
mov r8, qword [rax]
test r8, r8
je 0x14003082f
mov rax, qword [rbp - 0x48]
mov rdx, qword [rax]
cmp r8, qword [rbp]
cmovb r8, qword [rbp]
sub r8, rdx
jmp 0x140030865
test byte [rbp + 8], 4
jne 0x140030857
mov rax, qword [rbp - 0x30]
mov r10, qword [rax]
test r10, r10
je 0x140030857
mov rax, qword [rbp - 0x50]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x18]
movsxd r8, dword [rax]
add r8, r10
sub r8, rdx
jmp 0x140030865
mov r8, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0xa0]
test rdx, rdx
je 0x140030884
lea rcx, [rbp + 0x80]
call fcn.140013f70
mov rcx, qword [rbp + 0x98]
mov r9, qword [rbp + 0x90]
and ebx, 0xfffffffd
or ebx, 1
cmp rdi, r9
setb sil
cmp rcx, 0x10
jb 0x1400308cc
lea rdx, [rcx + 1]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400308c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400309e1
call fcn.1400be344
test sil, sil
je 0x1400309e8
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r13
mov r9d, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x48], r9
mov byte [rsp + 0x30], 0
or ebx, 8
mov dword [rsp + 0x20], ebx
movups xmmword [rbp + 0xa0], xmm0
mov eax, dword [rbp + 8]
and al, 0x22
cmp al, 2
je 0x14003092a
mov rax, qword [rbp - 0x28]
mov r8, qword [rax]
test r8, r8
je 0x14003092a
mov rax, qword [rbp - 0x48]
mov rdx, qword [rax]
cmp r8, qword [rbp]
cmovb r8, qword [rbp]
sub r8, rdx
jmp 0x140030960
test byte [rbp + 8], 4
jne 0x140030952
mov rax, qword [rbp - 0x30]
mov rcx, qword [rax]
test rcx, rcx
je 0x140030952
mov rax, qword [rbp - 0x50]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x18]
movsxd r8, dword [rax]
add r8, rcx
sub r8, rdx
jmp 0x140030960
mov r8, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0xa0]
test rdx, rdx
je 0x140030974
lea rcx, [rsp + 0x30]
call fcn.140013f70
mov r9, qword [rsp + 0x48]
and ebx, 0xfffffff7
or ebx, 4
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x140030987
mov rdx, qword [r14]
lea rax, [rsp + 0x30]
mov r8, qword [rsp + 0x30]
cmp r9, 0x10
cmovae rax, r8
movsx ecx, byte [rax + rdi]
movsx eax, byte [rdx + rdi]
xor ecx, eax
or r12d, ecx
cmp r9, 0x10
jb 0x1400309d9
lea rdx, [r9 + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x1400309d1
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400309e1
mov rcx, r8
call fcn.1400be344
inc rdi
jmp 0x1400307d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movzx eax, byte [0x14010dccd]
mov ecx, 1
test r12d, r12d
cmovne eax, ecx
mov byte [0x14010dccd], al
sete bl
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140030a50
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030a3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140030a3d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400be344
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x7c], edx
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x68], rax
lea rcx, [rbp - 0x68]
call fcn.140013ec0
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x18]
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 [r15 + 0x18]
cmp rdx, 0x10
jb 0x140030ae3
mov rcx, qword [r15]
inc rdx
cmp rdx, 0x1000
jb 0x140030ade
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140030b66
mov rcx, r8
call fcn.1400be344
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r15], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140030b29
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140030b24
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140030b6d
mov rcx, r8
call fcn.1400be344
movzx eax, bl
mov byte [r14], 0
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov qword [r14 + 0x10], r13
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400bde00
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
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]
int3