Function at 0x42ec40
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 0x7f773b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x228
mov eax, dword [0x90cf34]
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 [0x1807d24]
lea eax, [ebp - 0x220]
push 0x208
push 0
push eax
call fcn.006a3e10
movups xmm0, xmmword [0x8d417c]
add esp, 0xc
mov eax, 1
cmp word [0x8d4192], 0
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [0x8d418c]
movq qword [ebp - 0x228], xmm0
je 0x42edfb
xor ecx, ecx
cmp dword [0x18011f4], 2
jl 0x42edd3
movaps xmm2, xmmword [0x8d5c60]
mov ecx, 8
movaps xmm4, xmmword [0x8d5cd0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
movd xmm5, eax
mov eax, 0x1f
psrad xmm1, xmm5
movaps xmm0, xmm1
movd xmm6, eax
mov eax, 0x8d417c
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x8d5c80]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x8d5c70]
paddd xmm2, xmmword [0x8d5c60]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
paddw xmm1, xmmword [0x8d5cb0]
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
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x8d5c80]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [ebp - 0x230]
paddw xmm1, xmmword [0x8d5cb0]
pxor xmm1, xmm0
movq qword [ebp - 0x230], xmm1
mov eax, 0x94f2095
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul eax, eax, 0x37
sub edx, eax
add edx, 0x32
xor word [ebp + ecx*2 - 0x238], dx
inc ecx
cmp ecx, 0xc
jl 0x42edd3
push 0x103
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x238]
push eax
call dword [0x810334]
lea eax, [ebp - 0x220]
push eax
call dword [0x810350]
cmp dword [edi + 0x700], 8
lea esi, [edi + 0x6ec]
mov eax, esi
jb 0x42ee34
mov eax, dword [esi]
push eax
call dword [0x8106b8]
test eax, eax
je 0x42eee1
test byte [edi + 4], 1
jne 0x42eee1
cmp dword [esi + 0x14], 8
jb 0x42ee55
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 0x42ee77
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x238]
call fcn.0040d800
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 0
call fcn.00413ea0
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x42eee1
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42eed7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42ef04
push edx
push ecx
call fcn.0059982b
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.0059961f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.006a6ec9
int3