Function at 0x140003840
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x200
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x1400a97c0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140003974
mov r8d, 0x104
lea rdx, [rsp + 0xc0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rsp + 0xc0]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], bl
jne 0x1400038c0
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x30]
call fcn.14000b9f0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xa0]
call fcn.14001abb0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14000392f
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000392a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000392a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140083ac4
movups xmm0, xmmword [rsp + 0xa0]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0xb0]
movups xmmword [rdi + 0x10], xmm1
mov rax, rdi
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140083820
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x18]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rdi
ret
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
call fcn.140003b80
movzx ecx, byte [rax + 1]
test cl, cl
je 0x140003999
xor byte [rax], 0x37
xor cl, 0x38
mov byte [rax + 1], cl
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140009300
mov rdi, rax
lea rdx, [rsp + 0x30]
call fcn.140003b50
mov r9, rax
cmp byte [rax + 0x1b], 0
je 0x140003b2e
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140003aee
movdqa xmm5, xmmword [0x14009ad00]
movdqa xmm4, xmmword [0x14009ae10]
movdqa xmm6, xmmword [0x14009ad30]
movdqa xmm0, xmmword [0x14009adc0]
movdqa xmmword [rsp + 0x50], xmm0
mov rcx, rax
movdqa xmm7, xmmword [0x14009ad90]
mov edx, dword [rsp + 0x50]
movd xmm2, ebx
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
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
lea eax, [rbx + 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
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, edx
paddb xmm3, xmm0
movd xmm0, dword [rcx + 4]
xorps xmm3, xmm0
movd dword [rcx + 4], xmm3
add ebx, 8
mov eax, ebx
lea rcx, [rcx + 8]
cmp ebx, 0x18
jl 0x140003a02
cmp eax, 0x1c
jge 0x140003b2e
movsxd r8, ebx
add r8, r9
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x8d3dcb09
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, bl
sub al, cl
add al, 0x37
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x1c
jl 0x140003b00
mov rdx, r9
lea rcx, [rsp + 0x80]
call fcn.140009300
nop
mov rdx, rdi
mov rcx, rax
call fcn.140002f50
int3