Function at 0x140039220
Capabilities:
Create thread
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm7
mov rax, qword [0x1400fc0c0]
xor rax, rsp
mov qword [rbp - 0x20], rax
mov esi, dword [0x1400fde18]
movsxd rax, dword [reloc.XINPUT1_4.dll_Ordinal_2]
xor edx, edx
cmp eax, 0x7b
ja 0x14003926c
lea rdx, [0x1400fc2c0]
mov rdx, qword [rdx + rax*8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x1400ea4b0]
movdqu xmmword [rbp - 0x30], xmm1
mov byte [rbp - 0x40], 0
mov edi, dword [reloc.WS2_32.dll_accept]
movdqa xmm7, xmmword [0x1400ea580]
test rdx, rdx
jne 0x140039481
movsd xmm0, qword [str.CTVWA]
movsd qword [rbp - 0x50], xmm0
mov ecx, dword [0x1400e9f58]
mov dword [rbp - 0x48], ecx
movzx eax, word [0x1400e9f5c]
mov word [rbp - 0x44], ax
movzx eax, byte [0x1400e9f5e]
mov byte [rbp - 0x42], al
xor r8d, r8d
cmp edi, 2
jl 0x140039419
movdqa xmm4, xmmword [0x1400eabc0]
movdqa xmm5, xmmword [str.::::]
movdqa xmm2, xmmword [0x1400ea510]
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, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400ea590]
movd xmm0, dword [str.CTVWA]
xorps xmm2, xmm0
movd dword [rbp - 0x50], xmm2
movdqa xmm2, xmmword [0x1400ea520]
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, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400ea590]
movd xmm0, dword [rbp - 0x4c]
xorps xmm2, xmm0
movd dword [rbp - 0x4c], xmm2
movdqa xmm3, xmmword [0x1400ea530]
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, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x1400ea590]
movd xmm0, ecx
xorps xmm3, xmm0
movd dword [rbp - 0x48], xmm3
mov r8d, ntohs
mov eax, r8d
lea r9, [rbp - 0x50]
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, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xf
jl 0x140039430
lea rax, [rbp - 0x50]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x140039471
lea rdx, [rbp - 0x50]
jmp 0x14003949a
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140039490
lea rcx, [rbp - 0x40]
call fcn.14004e1a0
cmp esi, 1
jne 0x140039690
movsd xmm0, qword [str._CW_G]
movsd qword [rbp - 0x50], xmm0
mov ecx, dword [0x1400e9b00]
mov dword [rbp - 0x48], ecx
movzx eax, word [0x1400e9b04]
mov word [rbp - 0x44], ax
cmp byte [0x1400e9b05], 0
je 0x140039673
xor r8d, r8d
cmp edi, 2
jl 0x140039633
movdqa xmm4, xmmword [0x1400eabc0]
movdqa xmm5, xmmword [str.::::]
movdqa xmm3, xmmword [0x1400ea510]
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, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
mov eax, dword [0x1400ea590]
movd xmm0, eax
paddb xmm3, xmm0
movd xmm0, dword [str._CW_G]
xorps xmm3, xmm0
movd dword [rbp - 0x50], xmm3
movdqa xmm2, xmmword [0x1400ea520]
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, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x4c]
xorps xmm2, xmm1
movd dword [rbp - 0x4c], xmm2
movdqa xmm3, xmmword [0x1400ea530]
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, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, eax
paddb xmm3, xmm0
movd xmm1, ecx
xorps xmm3, xmm1
movd dword [rbp - 0x48], xmm3
mov r8d, ntohs
mov eax, r8d
lea r9, [rbp - 0x50]
add r9, rax
nop dword [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, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xe
jl 0x140039640
lea rax, [rbp - 0x50]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140039677
mov r8, rbx
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x40]
call fcn.14004e1a0
mov dword [rbp - 0x50], 0x42fa0000
mov dword [rbp - 0x4c], 0x41c80000
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rcx, qword [rbp - 0x40]
lea rdx, [rbp - 0x50]
call fcn.1400263a0
test al, al
je 0x1400396df
test esi, esi
jne 0x1400396df
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x1400391d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x14003971d
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039718
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039718
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bc7a4
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.1400bc390
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
movaps xmm7, xmmword [rsp + 0x70]
mov rsp, r11
pop rbp
ret