Function at 0x418c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x90df34]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [0x1808d24]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 4]
lea esi, [edi + 0x14]
mov dword [eax + 0x770], edx
call fcn.005ba622
mov dword [edi + 0x7f0], eax
test esi, esi
je 0x418c9e
mov dword [edi + 0x7f4], esi
movups xmm0, xmmword [0x8d2aa0]
mov ax, word [0x8d2ab0]
xor esi, esi
mov word [esp + 0x30], ax
movups xmmword [esp + 0x20], xmm0
mov eax, 0x8d3dcb09
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3a
sub ecx, eax
add ecx, 0x33
xor word [esp + esi*2 + 0x20], cx
inc esi
cmp esi, 9
jl 0x418cb7
lea eax, [esp + 0x20]
push eax
lea ecx, [edi + 0x14]
call fcn.005b2a7b
movq xmm0, qword [0x8d2a90]
xor esi, esi
mov dword [edi + 0x75c], eax
mov eax, dword [0x8d2a98]
mov dword [esp + 0x18], eax
mov ax, word [0x8d2a9c]
movq qword [esp + 0x10], xmm0
mov word [esp + 0x1c], ax
mov eax, 0x8d3dcb09
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3a
sub ecx, eax
add ecx, 0x33
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 7
jl 0x418d16
lea eax, [esp + 0x10]
push eax
lea ecx, [edi + 0x14]
call fcn.005b2a7b
mov ecx, dword [edi + 0x75c]
mov dword [edi + 0x760], eax
test ecx, ecx
je 0x418db1
mov eax, dword [ecx]
xor esi, esi
mov eax, dword [eax + 0xcc]
mov dword [esp + 0xc], eax
mov eax, dword [0x8d2c84]
mov dword [esp + 0x10], eax
mov ax, word [0x8d2c88]
mov word [esp + 0x14], ax
nop dword [eax]
mov eax, 0x8d3dcb09
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, esi
imul eax, eax, 0x3a
sub edx, eax
add edx, 0x33
xor word [esp + esi*2 + 0x10], dx
inc esi
cmp esi, 3
jl 0x418d80
lea eax, [esp + 0x10]
push eax
call dword [esp + 0x10]
mov esi, dword [edi + 0x760]
test esi, esi
je 0x418eb6
cmp word [0x8d2c82], 0
mov eax, dword [esi]
mov eax, dword [eax + 0xcc]
mov dword [esp + 0xc], eax
mov eax, dword [0x8d2c7c]
mov dword [esp + 0x10], eax
mov eax, dword [0x8d2c80]
mov dword [esp + 0x14], eax
je 0x418eab
xor ecx, ecx
cmp dword [0x18021f4], 2
jl 0x418e83
movups xmm3, xmmword [0x8d6c60]
mov eax, 5
movaps xmm2, xmm3
movaps xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x8d6d00]
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x8d6d00]
shufps xmm2, xmm0, 0xdd
movd xmm0, eax
paddd xmm2, xmm3
psrad xmm2, xmm0
mov eax, 0x1f
movaps xmm1, xmm2
movd xmm0, eax
mov eax, 0x8d2c7c
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x8d6c90]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
paddw xmm1, xmmword [0x8d6cb0]
movq xmm0, qword [eax]
pxor xmm1, xmm0
movq qword [esp + 0x10], xmm1
jmp 0x418eab
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 [esp + ecx*2 + 0x10], dx
inc ecx
cmp ecx, 4
jl 0x418e83
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call dword [esp + 0x10]
lea ecx, [edi + 0x7f0]
call fcn.00451700
mov esi, dword [edi + 4]
lea eax, [esp + 0x20]
push 0
push eax
push 0
xorps xmm0, xmm0
mov dword [edi + 0x7e8], 1
push 0x30
movups xmmword [esp + 0x30], xmm0
call dword [0x811a9c]
test eax, eax
je 0x418f52
mov edi, dword [0x811a98]
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
je 0x418f52
lea eax, [esp + 0x4c]
push eax
push esi
call edi
test eax, eax
je 0x418f52
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push 0x60
push eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x64]
sub eax, dword [esp + 0x2c]
add eax, dword [esp + 0x38]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x64]
sub eax, dword [esp + 0x30]
add eax, dword [esp + 0x38]
cdq
sub eax, edx
sar eax, 1
push eax
push 0xffffffffffffffff
push esi
call dword [0x811a94]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.0059a3cf
mov esp, ebp
pop ebp
ret