Function at 0x140021dc0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
mov rax, qword [0x1401798e0]
xor rax, rsp
mov qword [rbp + 0x48], rax
mov r12, r9
mov rdi, r8
mov rsi, rdx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], r8
xor r13d, r13d
mov r14, qword [0x14017a690]
mov r8, qword [rdx + 0x10]
cmp r8, 0xf
ja 0x14002272e
mov rbx, qword [rdi + 0x10]
cmp rbx, 0xf
ja 0x14002272e
lea rcx, [r14 + 0x50]
mov rax, rbx
cmp rcx, rdx
je 0x140021e58
cmp qword [rdx + 0x18], 0x10
jb 0x140021e48
mov rdx, qword [rdx]
call fcn.140020970
mov r8, qword [rsi + 0x10]
mov rbx, qword [rdi + 0x10]
mov rax, rbx
lea rcx, [r14 + 0x70]
cmp rcx, rdi
je 0x140021e7e
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140021e6e
mov rdx, qword [rdi]
mov r8, rax
call fcn.140020970
mov r8, qword [rsi + 0x10]
mov rbx, qword [rdi + 0x10]
xor eax, eax
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x50], eax
mov word [rbp - 0x4c], ax
mov byte [rbp - 0x4a], al
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], eax
mov word [rbp - 0x34], ax
mov byte [rbp - 0x32], al
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
mov word [rbp + 0x10], ax
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140021ebc
mov rdx, qword [rsi]
lea rcx, [rbp - 0x58]
call sub.VCRUNTIME140.dll_memcpy
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140021ed2
mov rdx, qword [rdi]
mov r8, rbx
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x48]
call fcn.140023570
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.140023570
cmp qword [rax + 0x18], 0x10
jb 0x140021eff
mov rax, qword [rax]
mov r8, qword [rbx + 0x10]
mov rdx, rax
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140021f4f
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021f4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021f4a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400825b4
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140021fa2
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021f9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021f9d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400825b4
mov dword [rsp + 0x78], 0xaf5bc6
mov byte [rsp + 0x7c], 0
mov dword [rbp - 0x80], r13d
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
imul rcx, rbx
mov qword [rbp - 0x78], rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r13
mov byte [rsp + 0x7c], 2
mov edx, 0xf
lea rcx, [rbp - 0x70]
call fcn.1400232f0
mov rcx, qword [rbp - 0x70]
movsd xmm0, qword [rbp - 0x58]
movsd qword [rcx], xmm0
mov eax, dword [rbp - 0x50]
mov dword [rcx + 8], eax
movzx eax, word [rbp - 0x4c]
mov word [rcx + 0xc], ax
movzx eax, byte [rbp - 0x4a]
mov byte [rcx + 0xe], al
mov rbx, qword [rbp - 0x68]
sub rbx, qword [rbp - 0x70]
mov dword [rbp - 0x80], ebx
lea rdx, [rbx + 0xf]
lea rcx, [rbp - 0x70]
call fcn.1400232f0
mov rcx, qword [rbp - 0x70]
add rcx, rbx
movsd xmm0, qword [rbp - 0x40]
movsd qword [rcx], xmm0
mov eax, dword [rbp - 0x38]
mov dword [rcx + 8], eax
movzx eax, word [rbp - 0x34]
mov word [rcx + 0xc], ax
movzx eax, byte [rbp - 0x32]
mov byte [rcx + 0xe], al
mov rbx, qword [rbp - 0x68]
sub rbx, qword [rbp - 0x70]
mov dword [rbp - 0x80], ebx
lea rdx, [rbx + 0x32]
lea rcx, [rbp - 0x70]
call fcn.1400232f0
mov rcx, qword [rbp - 0x70]
add rcx, rbx
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rbp]
movups xmmword [rcx + 0x20], xmm0
movzx eax, word [rbp + 0x10]
mov word [rcx + 0x30], ax
mov rax, qword [rbp - 0x68]
sub rax, qword [rbp - 0x70]
mov dword [rbp - 0x80], eax
lea rdx, [rsp + 0x78]
mov rcx, qword [r14 + 0x48]
call fcn.1400241b0
test eax, eax
jne 0x1400222b9
mov eax, dword [str.qGDXJ9]
mov dword [rsp + 0x20], eax
movzx eax, word [0x1400b0864]
mov word [rsp + 0x24], ax
mov byte [rsp + 0x20], 0x45
xor byte [rsp + 0x21], 0x35
xor byte [rsp + 0x22], 0x36
xor byte [rsp + 0x23], 0x37
xor al, 0x38
mov byte [rsp + 0x24], al
xor byte [rsp + 0x25], 0x39
movups xmm0, xmmword [0x1400b0838]
movups xmmword [rbp - 0x58], xmm0
movzx eax, word [0x1400b0848]
mov word [rbp - 0x48], ax
cmp byte [0x1400b0849], 0
je 0x1400222a0
mov r8d, r13d
cmp dword [0x1401798c0], 2
jl 0x140022259
movdqa xmm5, xmmword [0x1400b0940]
movdqa xmm4, xmmword [0x1400b0990]
mov eax, 4
movd xmm6, eax
movdqa xmm7, xmmword [0x1400b0960]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [str.4444444444444444]
movdqa xmmword [rbp - 0x40], xmm0
lea rcx, [rbp - 0x54]
mov edx, dword [rbp - 0x40]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
pxor xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
pxor xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x10
jl 0x140022152
cmp r8d, 0x12
jge 0x1400222a0
movsxd rax, r8d
lea r9, [rbp - 0x58]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x12
jl 0x140022270
xor r9d, r9d
lea r8, [rsp + 0x20]
lea rdx, [rbp - 0x58]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x140022629
mov rdx, qword [rbp - 0x68]
mov rax, qword [rbp - 0x70]
sub rdx, rax
add rdx, 0xfffffffffffffffc
mov ebx, dword [rax + rdx]
lea rcx, [rbp - 0x70]
call fcn.1400232f0
mov rdx, qword [rbp - 0x68]
mov rax, qword [rbp - 0x70]
sub rdx, rax
mov dword [rbp - 0x80], edx
dec rdx
movzx r15d, byte [rax + rdx]
lea rcx, [rbp - 0x70]
call fcn.1400232f0
mov rax, qword [rbp - 0x68]
sub rax, qword [rbp - 0x70]
mov dword [rbp - 0x80], eax
lea r9, [rbp + 0x45]
nop dword [rax]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul ebx
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [r9], bl
mov ebx, edx
test edx, edx
jne 0x140022310
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], 0xf
lea rax, [rbp + 0x45]
cmp r9, rax
je 0x140022362
lea r8, [rbp + 0x45]
sub r8, r9
mov rdx, r9
lea rcx, [rbp - 0x40]
call fcn.140020970
lea rdx, [rbp - 0x40]
mov rcx, r14
call fcn.140023370
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x1400223ac
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400223a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400223a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400825b4
test r15b, r15b
jne 0x1400223cb
mov r8d, 0x19
lea rdx, str.Wrong_username___password
mov rcx, r12
call fcn.140020970
jmp 0x140022629
cmp r15b, 1
jne 0x1400223eb
mov r8d, 0xa
lea rdx, str.Wrong_hwid
mov rcx, r12
call fcn.140020970
jmp 0x140022629
cmp r15b, 3
je 0x14002268b
cmp r15b, 4
je 0x14002268b
cmp r15b, 5
jne 0x140022685
mov eax, dword [str.qGDXJ9]
mov dword [rsp + 0x20], eax
movzx eax, word [0x1400b0864]
mov word [rsp + 0x24], ax
mov byte [rsp + 0x20], 0x45
xor byte [rsp + 0x21], 0x35
xor byte [rsp + 0x22], 0x36
xor byte [rsp + 0x23], 0x37
xor al, 0x38
mov byte [rsp + 0x24], al
xor byte [rsp + 0x25], 0x39
movups xmm0, xmmword [str.vTXY__eeu_]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [0x1400b0800]
movups xmmword [rbp - 0x10], xmm1
movups xmm0, xmmword [0x1400b0810]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [0x1400b0820]
movups xmmword [rbp + 0x10], xmm1
movsd xmm0, qword [0x1400b0830]
movsd qword [rbp + 0x20], xmm0
cmp dword [0x1401798c0], 2
jl 0x1400225d1
movdqa xmm5, xmmword [0x1400b0940]
mov edx, r13d
movdqa xmm4, xmmword [0x1400b0990]
mov eax, 4
movd xmm6, eax
movdqa xmm7, xmmword [0x1400b0960]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [str.4444444444444444]
movdqa xmmword [rbp - 0x40], xmm0
lea rcx, [rbp - 0x1c]
mov r8d, dword [rbp - 0x40]
nop word [rax + rax]
movd xmm2, edx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
pxor xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400b0970]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx]
pxor xmm2, xmm0
movd dword [rcx], xmm2
add edx, 8
lea rcx, [rcx + 8]
cmp edx, 0x48
jl 0x1400224d0
jmp 0x140022610
lea r9, [rbp - 0x20]
mov r8d, r13d
nop dword [rax + rax]
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x48
jl 0x1400225e0
xor r9d, r9d
lea r8, [rsp + 0x20]
lea rdx, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov byte [r14 + 0x20], 0
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x14002266f
mov rdx, qword [rbp - 0x60]
sub rdx, rcx
cmp rdx, 0x1000
mov rax, rcx
jb 0x14002265e
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022727
call fcn.1400825b4
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r13
mov rcx, rsi
call fcn.140020320
nop
mov rcx, rdi
call fcn.140020320
jmp 0x1400227d6
cmp r15b, 2
jne 0x1400226ea
mov byte [r14 + 0x20], 1
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400226d2
mov rdx, qword [rbp - 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400226c1
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022727
call fcn.1400825b4
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r13
mov rcx, rsi
call fcn.140020320
nop
mov rcx, rdi
call fcn.140020320
mov al, 1
jmp 0x1400227d8
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x14002266f
mov rdx, qword [rbp - 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002265e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002265e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor r9d, r9d
lea r8, str.Error
lea rdx, str.Username___Password_too_long
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140022782
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x14002277d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002280e
mov rcx, r8
call fcn.1400825b4
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400227c7
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400227c2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140022815
mov rcx, r8
call fcn.1400825b4
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
xor al, al
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.140082c20
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x40]
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 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