Function at 0x140049e90
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x128]
sub rsp, 0x1f0
movaps xmmword [rax - 0x48], xmm6
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov r15, qword [rdx + 0x10]
mov r14, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x140049edd
mov r14, qword [rdx]
call fcn.1400c91dc
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140048430
nop
lea rcx, [rsp + 0x70]
call fcn.140048da0
movzx r14d, al
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140049f50
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049f4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140049f4b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c96c8
test r14b, r14b
jne 0x14004a1b5
movsd xmm0, qword [str.qQU_erRJ]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x1400f3c38]
mov dword [rsp + 0x48], eax
movzx eax, word [0x1400f3c3c]
mov word [rsp + 0x4c], ax
movzx eax, byte [0x1400f3c3e]
mov byte [rsp + 0x4e], al
mov ecx, r12d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14004a0a9
movdqa xmm4, xmmword [0x1400f94d0]
mov eax, 5
movd xmm6, eax
mov eax, Ordinal_33
movd xmm5, eax
movdqa xmm2, xmmword [0x1400f9300]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400f9330]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400f93c0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.7777777777777777]
movd xmm0, dword [str.qQU_erRJ]
xorps xmm2, xmm0
movd dword [rsp + 0x40], xmm2
movdqa xmm3, xmmword [0x1400f9320]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400f9330]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400f93c0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.7777777777777777]
movd xmm0, dword [rsp + 0x44]
xorps xmm2, xmm0
movd dword [rsp + 0x44], xmm2
mov ecx, 8
movsxd rax, ecx
lea r8, [rsp + 0x40]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x38
movzx eax, cl
sub al, dl
add al, 0x37
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xf
jl 0x14004a0c0
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14004a110
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140008930
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14004a15e
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14004a159
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004a1ae
mov rcx, r8
call fcn.1400c96c8
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x14004a2d9
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14004a2d4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x14004a2d1
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 rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140054690
nop
mov qword [rbp - 0x38], r12
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x60]
call fcn.140057060
nop
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.14000b590
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140054a90
nop
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rsp + 0x30], Ordinal_41
cmp byte [rax], 3
jne 0x14004a313
mov rdx, qword [rax + 8]
cmp rdi, rdx
je 0x14004a23a
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14004a231
mov rdx, qword [rdx]
mov rcx, rdi
call fcn.14000a920
nop
lea rcx, [rsp + 0x60]
call fcn.1400561d0
movzx edx, byte [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140055b70
nop
lea rcx, [rbp - 0x30]
call fcn.14000bd90
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14004a294
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14004a28f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004a305
mov rcx, r8
call fcn.1400c96c8
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x14004a2d9
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14004a2d4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004a30c
mov rcx, r8
call fcn.1400c96c8
mov rax, rdi
mov byte [rsi], 0
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rsi + 0x10], r12
movaps xmm6, xmmword [rsp + 0x1e0]
add rsp, 0x1f0
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.140055f60
mov qword [rbp + 0x148], rax
lea r8, [rbp + 0x148]
lea rcx, [rsp + 0x40]
call fcn.140066ce0
nop
mov r8, rax
lea rcx, [rbp - 0x70]
call fcn.140066d90
lea rdx, [0x140108420]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3