Function at 0x140029840
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
mov rax, qword [0x1401e56c8]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rsi, rcx
mov qword [rsp + 0x78], rcx
xor r15d, r15d
mov ebx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rbx + rcx]
cmp dword [0x1401eca58], eax
jle 0x1400298d3
lea rcx, [0x1401eca58]
call fcn.14015c240
cmp dword [0x1401eca58], 0xffffffff
jne 0x1400298d3
lea rcx, [0x140167690]
call fcn.14015c074
lea rcx, [0x1401eca58]
call fcn.14015c1d4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rbx + rax]
cmp dword [0x1401eca68], eax
jle 0x14002994b
lea rcx, [0x1401eca68]
call fcn.14015c240
cmp dword [0x1401eca68], 0xffffffff
jne 0x14002994b
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x14002991d
imul rax, rax, 0x64
jmp 0x140029938
cqo
idiv rbx
imul r8, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, r8
mov qword [0x1401eca60], rax
lea rcx, [0x1401eca68]
call fcn.14015c1d4
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140029969
imul rax, rax, 0x64
jmp 0x140029984
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
sub rax, qword [0x1401eca60]
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
divsd xmm0, qword [0x1401c49e8]
comisd xmm0, xmmword [0x1401c48f0]
jb 0x140029e9b
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x1400299c7
imul rax, rax, 0x64
jmp 0x1400299e2
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov qword [0x1401eca60], rax
call fcn.140011f10
mov rdi, rax
test rax, rax
je 0x140029e9b
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
mov ecx, 0x5dc
call fcn.14015be00
mov qword [rbp - 0x78], rax
lea rbx, [rax + 0x5dc]
mov qword [rbp - 0x68], rbx
xor edx, edx
mov r8d, 0x5dc
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x70], rbx
mov rbx, qword [rbp - 0x78]
mov r14, qword [0x1401ea128]
cmp byte [0x1401ec478], 0
jne 0x140029a53
call fcn.1400c9300
mov rax, qword [0x1401ec358]
mov qword [rsp + 0x20], r15
mov r9d, 0x5dc
mov r8, rbx
mov rdx, rdi
mov rcx, r14
test rax, rax
je 0x140029a77
call rax
jmp 0x140029a7d
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call fcn.140011e30
mov r14d, eax
mov rbx, qword [0x1401ea1f8]
mov rdi, qword [0x1401ea200]
cmp rbx, rdi
je 0x140029ad8
add rbx, 0x58
nop dword [rax]
lea rcx, [rbx + 0x20]
call fcn.140010730
mov rcx, rbx
call fcn.140010730
lea rcx, [rbx - 0x20]
call fcn.140010730
add rbx, 0x98
lea rax, [rbx - 0x58]
cmp rax, rdi
jne 0x140029aa0
mov rax, qword [0x1401ea1f8]
mov qword [0x1401ea200], rax
mov r8d, reloc.WS2_32.dll_recv
mov r9, qword [rbp - 0x70]
mov rax, r9
mov rcx, qword [rbp - 0x78]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp r8, rax
jae 0x140029e62
lea r12d, [r8 - 0xb]
lea r13d, [r8 + 0xf]
mov edi, dword [reloc.WS2_32.dll_accept]
nop word [rax + rax]
cmp byte [0x1401ea1e8], 0
je 0x140029ee2
mov rdx, r9
sub rdx, rcx
lea rbx, [r8 + 4]
cmp rbx, rdx
mov eax, r15d
ja 0x140029b33
mov eax, dword [rcx + r8]
mov dword [rsp + 0x78], eax
cmp rdx, 4
mov edx, r15d
jb 0x140029b42
mov edx, dword [rcx]
cmp eax, edx
je 0x140029e62
test eax, eax
je 0x140029e4c
cmp eax, 0x20000000
jb 0x140029e62
jbe 0x140029e4c
cmp eax, r14d
je 0x140029e4c
mov byte [rsp + 0x40], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x41], 1
mov byte [rsp + 0x42], 1
mov byte [rsp + 0x43], 1
mov byte [rsp + 0x44], 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x41]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x42]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x43]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x60]
call fcn.14001cf00
nop
lea rcx, [rsp + 0x58]
call fcn.140010730
movsd xmm0, qword [str.WEUVHdOI_Q_A]
movsd qword [rsp + 0x48], xmm0
mov eax, dword [0x1401ba660]
mov dword [rsp + 0x50], eax
cmp byte [0x1401ba663], 0
je 0x140029d73
mov r8d, r15d
cmp edi, 2
jl 0x140029d26
movdqa xmm4, xmmword [0x1401c4ea0]
movd xmm6, r12d
movd xmm5, r13d
movdqa xmm2, xmmword [0x1401c4b30]
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 [0x1401c4c20]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401c4d00]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401c4db0]
movd xmm0, dword [str.WEUVHdOI_Q_A]
xorps xmm2, xmm0
movd dword [rsp + 0x48], xmm2
movdqa xmm3, xmmword [0x1401c4b40]
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 [0x1401c4c20]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401c4d00]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401c4db0]
movd xmm0, dword [rsp + 0x4c]
xorps xmm2, xmm0
movd dword [rsp + 0x4c], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rsp + 0x48]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x8d3dcb09
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, r8b
sub al, cl
add al, 0x36
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xc
jl 0x140029d40
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
lea rax, [rsp + 0x48]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140029d91
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.140010900
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rcx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x18]
cmp r8, qword [rsp + 0x68]
jne 0x140029de9
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140029de9
lea rcx, [rsp + 0x58]
call fcn.140010730
jmp 0x140029e29
lea rcx, [rsp + 0x58]
call fcn.140010730
mov rax, qword [0x1401ea200]
cmp rax, qword [0x1401ea208]
je 0x140029e1c
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.14002bfd0
add qword [0x1401ea200], 0x98
jmp 0x140029e29
lea r8, [rbp - 0x60]
mov rdx, rax
call fcn.14002d540
nop
lea rcx, [rbp + 0x18]
call fcn.140010730
lea rcx, [rbp - 8]
call fcn.140010730
lea rcx, [rbp - 0x28]
call fcn.140010730
mov r9, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
mov r8, rbx
mov rax, r9
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rbx, rax
jb 0x140029b10
test rcx, rcx
je 0x140029e9b
mov rdx, qword [rbp - 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029e96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140029e96
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14015c094
mov rcx, rsi
call fcn.14002cdc0
mov rax, rsi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14015bde0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
movss xmm0, dword [0x1401c4720]
call fcn.1400cdb40
int3