Function at 0x140038840
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
movaps xmmword [rsp + 0x180], xmm6
mov rax, qword [0x140239780]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r12, rdx
mov r15, rcx
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov rdx, rcx
lea rcx, [rsp + 0x68]
call fcn.1400426e0
mov rbx, rax
mov rdx, r15
lea rcx, [rsp + 0x48]
call fcn.1400426e0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [0x14023de50]
call fcn.140058710
cmp byte [0x14023e060], 0
jne 0x140038993
mov rdx, qword [r15 + 0x18]
cmp rdx, 0xf
jbe 0x140038904
mov rcx, qword [r15]
inc rdx
cmp rdx, 0x1000
jb 0x1400388ff
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140038de1
mov rcx, r8
call fcn.14013d010
xor esi, esi
mov byte [r15], sil
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov qword [r15 + 0x10], rsi
mov rdx, qword [r12 + 0x18]
cmp rdx, 0xf
jbe 0x140038951
inc rdx
cmp rdx, 0x1000
mov rcx, qword [r12]
jb 0x14003894c
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140038de7
mov rcx, r8
call fcn.14013d010
mov qword [r12 + 0x10], rsi
mov qword [r12 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r12], 0
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14013cff0
mov rbx, qword [rsp + 0x1e0]
movaps xmm6, xmmword [rsp + 0x180]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor dil, dil
xor esi, esi
mov r13d, esi
mov rcx, qword [0x14023e038]
mov rax, rcx
mov rdx, qword [0x14023e030]
sub rax, rdx
sar rax, 6
test rax, rax
je 0x140038dd3
mov ebx, esi
nop
sub rcx, rdx
sar rcx, 6
cmp rcx, rbx
jbe 0x140038dcd
shl rbx, 6
add rbx, rdx
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.1400426e0
nop
lea rdx, [rbx + 0x20]
lea rcx, [rbp + 0x50]
call fcn.1400426e0
nop
lea rdx, [rbp + 0x30]
mov r14, qword [rbp + 0x48]
cmp r14, 0xf
seta byte [rsp + 0x30]
mov rbx, qword [rbp + 0x30]
cmova rdx, rbx
cmp qword [rbp + 0x40], 5
jne 0x140038a4b
mov rcx, rsi
lea r8, str.FiveM
nop dword [rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140038a38
cmp rcx, 5
jne 0x140038a20
mov eax, esi
jmp 0x140038a3d
sbb eax, eax
or eax, 1
movzx edi, dil
test eax, eax
mov eax, 1
cmove edi, eax
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x140038a86
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038a81
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140038ddb
call fcn.14013d010
cmp byte [rsp + 0x30], 0
je 0x140038abe
lea rdx, [r14 + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140038ab6
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140038ddb
mov rcx, rbx
call fcn.14013d010
inc r13d
mov rcx, qword [0x14023e038]
mov rax, rcx
mov rdx, qword [0x14023e030]
sub rax, rdx
sar rax, 6
movsxd rbx, r13d
cmp rbx, rax
jb 0x1400389c0
test dil, dil
je 0x140038dd3
lea rax, [rbp]
mov qword [rsp + 0x40], rax
mov rdx, r12
lea rcx, [rbp]
call fcn.1400426e0
mov rdi, rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
mov r8d, 8
lea rdx, str.password
lea rcx, [rbp - 0x30]
call fcn.1400417f0
nop
lea rax, [rbp - 0x78]
mov qword [rbp - 0x10], rax
mov rdx, r15
lea rcx, [rbp - 0x78]
call fcn.1400426e0
mov rbx, rax
lea rax, [rsp + 0x48]
mov qword [rbp - 8], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
mov r8d, 8
lea rdx, str.username
lea rcx, [rsp + 0x48]
call fcn.1400417f0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], rsi
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.C:login.json
lea rcx, [rsp + 0x68]
call fcn.1400417f0
nop
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.140041da0
movups xmm0, xmmword [str.cDQPQFEQMUVB]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [0x14021ac70]
movups xmmword [rbp - 0x68], xmm1
movsd xmm0, qword [0x14021ac80]
movsd qword [rbp - 0x58], xmm0
movzx eax, byte [0x14021ac88]
mov byte [rbp - 0x50], al
mov r8d, esi
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140038d36
movdqa xmm5, xmmword [0x14021b110]
movdqa xmm4, xmmword [0x14021b280]
movdqa xmm6, xmmword [str.4444::::]
movdqa xmm0, xmmword [str.00000000000000008888888888888888]
movdqa xmmword [rbp - 0x40], xmm0
lea rcx, [rbp - 0x74]
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, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14021b170]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps 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, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14021b170]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x28
jl 0x140038c31
cmp r8d, 0x29
jge 0x140038d70
movsxd rax, r8d
lea r9, [rbp - 0x78]
add r9, rax
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x29
jl 0x140038d40
lea rdx, [rbp - 0x78]
call fcn.140038e10
mov eax, 1
mov dword [0x14023dc2c], eax
mov dword [0x14023dc28], 0
mov rdx, qword [r15 + 0x18]
cmp rdx, 0xf
jbe 0x140038dc4
mov rcx, qword [r15]
inc rdx
cmp rdx, 0x1000
jb 0x140038dbf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140038de1
mov rcx, r8
call fcn.14013d010
mov byte [r15], 0
jmp 0x140038909
call fcn.140038df0
int3
xor ecx, ecx
call fcn.14014fae0
int3
call fcn.14014edc4
nop
call fcn.14014edc4
nop
call fcn.14014edc4
int3