Function at 0x180038940
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x18003904a
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
movaps xmmword [rsp + 0x160], xmm6
mov rax, qword [0x18005a080]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r13, r9
mov r15, r8
mov rbx, rdx
mov r14, rcx
xor esi, esi
lea rax, [rcx - 0x100000]
movabs rdi, 0x7fffffeffffe
cmp rax, rdi
ja 0x180039025
mov eax, dword [rcx + 8]
shr eax, 0x1d
not eax
bt eax, 0
jae 0x180039025
cmp qword [0x180060268], rsi
jne 0x180038fa3
movups xmm0, xmmword [str._GWYK_UIQLP_]
movups xmmword [rsp + 0x60], xmm0
mov eax, dword [0x180051250]
mov dword [rsp + 0x70], eax
movzx eax, word [0x180051254]
mov word [rsp + 0x74], ax
movzx eax, byte [0x180051256]
mov byte [rsp + 0x76], al
mov r8d, esi
cmp dword [0x18005a0d0], 2
jl 0x180038b3d
movdqa xmm5, xmmword [0x180051840]
movdqa xmm4, xmmword [0x180051ae0]
movdqa xmm6, xmmword [0x1800518c0]
movdqa xmm0, xmmword [0x1800518f0]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x64]
mov edx, dword [rsp + 0x40]
nop dword [rax + rax]
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
paddd xmm1, xmm2
psrad xmm1, 5
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 [0x1800518d0]
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
paddd xmm1, xmm3
psrad xmm1, 5
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 [0x1800518d0]
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, 0x10
jl 0x180038a30
cmp r8d, 0x17
jge 0x180038b83
movsxd rax, r8d
lea r9, [rsp + 0x60]
add r9, rax
nop dword [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, 0x34
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x17
jl 0x180038b50
movzx eax, word [0x180050114]
mov word [rsp + 0x30], ax
cmp byte [0x180050115], sil
je 0x180038ba2
mov byte [rsp + 0x30], 0x2e
xor byte [rsp + 0x31], 0x35
call fcn.1800228d0
test rax, rax
je 0x180038bdf
lea rcx, [rax - 0x100000]
cmp rcx, rdi
ja 0x180038bdf
mov ecx, dword [rax + 8]
shr ecx, 0x1d
not ecx
bt ecx, 0
jae 0x180038bdf
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x40], rax
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x40]
call fcn.180035f00
jmp 0x180038c05
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
mov r8d, 4
lea rdx, str.None
lea rcx, [rbp - 0x28]
call fcn.180004930
nop
movzx eax, word [0x180050114]
mov word [rsp + 0x34], ax
cmp byte [0x180050115], 0
je 0x180038c24
mov byte [rsp + 0x34], 0x2e
xor byte [rsp + 0x35], 0x35
call fcn.1800228d0
mov rcx, qword [rax + 0x20]
test rcx, rcx
je 0x180038c65
lea rax, [rcx - 0x100000]
cmp rax, rdi
ja 0x180038c65
mov eax, dword [rcx + 8]
shr eax, 0x1d
not eax
bt eax, 0
jae 0x180038c65
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x40], rax
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x40]
call fcn.180035f00
jmp 0x180038c8b
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
mov r8d, 4
lea rdx, str.None
lea rcx, [rbp - 0x48]
call fcn.180004930
nop
lea rax, [rsp + 0x34]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180038ca0
lea rdx, [rsp + 0x34]
lea rcx, [rbp - 0x48]
call fcn.180004220
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], recv
mov byte [rax], 0
lea r9, [rbp - 0x28]
lea r8, [rsp + 0x40]
lea rcx, [rbp - 8]
call fcn.18000ed10
nop
lea rax, [rsp + 0x30]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x180038cf3
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 8]
call fcn.180004220
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x58], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], recv
mov byte [rax], 0
lea rax, [rsp + 0x60]
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x180038d40
mov r8, rdi
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x68]
call fcn.180004220
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], recv
mov byte [rax], 0
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova rcx, qword [rsp + 0x78]
call fcn.1800137d0
mov rsi, rax
mov r9, rax
mov rcx, qword [0x18005f918]
call fcn.18000ef00
mov rdi, rax
mov edx, 2
mov rcx, rsi
call fcn.18004c45c
mov qword [0x180060268], rdi
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x180038e06
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180038e01
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180038e01
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004c45c
movdqa xmm0, xmmword [0x180051830]
movdqu xmmword [rbp - 0x78], xmm0
mov byte [rsp + 0x78], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x180038e56
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180038e51
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180038e51
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004c45c
movdqa xmm0, xmmword [0x180051830]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], 0
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x180038ea5
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180038ea0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180038ea0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004c45c
movdqa xmm0, xmmword [0x180051830]
movdqu xmmword [rbp + 8], xmm0
mov byte [rbp - 8], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x180038ef7
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180038ef1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180038ef1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004c45c
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x180038f35
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180038f30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180038f30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004c45c
movdqa xmm0, xmmword [0x180051830]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x180038f84
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180038f7f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180038f7f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004c45c
movdqa xmm0, xmmword [0x180051830]
movdqu xmmword [rbp - 0x18], xmm0
mov byte [rbp - 0x28], 0
cmp qword [0x180060268], 0
je 0x180039025
mov qword [rbp + 0x18], rbx
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], 0
movsd xmm0, qword [r15]
movsd qword [rbp + 0x38], xmm0
mov ecx, dword [r15 + 8]
mov dword [rbp + 0x40], ecx
movsd xmm1, qword [r13]
movsd qword [rbp + 0x44], xmm1
mov edx, dword [r13 + 8]
mov dword [rbp + 0x4c], edx
mov eax, dword [r14 + 8]
shr eax, 0x1d
not eax
bt eax, 0
jae 0x180039012
lea r9, [rbp + 0x18]
mov r8, qword [0x180060268]
mov rdx, r14
mov rcx, qword [0x18005f910]
call fcn.18000f1b0
mov edx, dword [rbp + 0x4c]
movsd xmm1, qword [rbp + 0x44]
mov ecx, dword [rbp + 0x40]
movsd xmm0, qword [rbp + 0x38]
movsd qword [r15], xmm0
mov dword [r15 + 8], ecx
movsd qword [r13], xmm1
mov dword [r13 + 8], edx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.18004c400
movaps xmm6, xmmword [rsp + 0x160]
add rsp, 0x170
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret