Function at 0x42f1f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7f84eb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x228
mov eax, dword [0x90df34]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x1808d24]
lea eax, [ebp - 0x220]
push 0x208
push 0
push eax
call fcn.006a4bc0
movups xmm0, xmmword [0x8d517c]
add esp, 0xc
cmp word [0x8d5192], 0
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [0x8d518c]
movq qword [ebp - 0x228], xmm0
je 0x42f3bb
xor ecx, ecx
cmp dword [0x18021f4], 2
jl 0x42f390
movaps xmm2, xmmword [0x8d6c60]
mov eax, 5
movaps xmm4, xmmword [0x8d6d00]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov ecx, 8
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movd xmm5, eax
psrad xmm1, xmm5
mov eax, 0x1f
movaps xmm0, xmm1
movd xmm6, eax
mov eax, 0x8d517c
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x8d6c90]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x8d6c70]
paddd xmm2, xmmword [0x8d6c60]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
paddw xmm1, xmmword [0x8d6cb0]
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [ebp - 0x238], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x8d6c90]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [ebp - 0x230]
paddw xmm1, xmmword [0x8d6cb0]
pxor xmm1, xmm0
movq qword [ebp - 0x230], xmm1
nop dword [eax + eax]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul eax, eax, 0x3a
sub edx, eax
add edx, 0x33
xor word [ebp + ecx*2 - 0x238], dx
inc ecx
cmp ecx, 0xc
jl 0x42f390
push 0x103
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x238]
push eax
call dword [0x811334]
lea eax, [ebp - 0x220]
push eax
call dword [0x811350]
cmp dword [edi + 0x700], 8
lea esi, [edi + 0x6ec]
mov eax, esi
jb 0x42f3f4
mov eax, dword [esi]
push eax
call dword [0x8116b8]
test eax, eax
je 0x42f4a1
test byte [edi + 4], 1
jne 0x42f4a1
cmp dword [esi + 0x14], 8
jb 0x42f415
mov esi, dword [esi]
mov ecx, esi
mov dword [ebp - 0x228], 0
xor eax, eax
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f437
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x238]
call fcn.0040d850
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 0
call fcn.00413ef0
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x42f4a1
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42f497
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f4c4
push edx
push ecx
call fcn.0059a5db
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059a3cf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.006a7c79
int3