Function at 0x457210
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 0x7fa381
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x320
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 esi, ecx
mov dword [ebp - 0x2e4], esi
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x330]
push ecx
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x32c], 0
push 0
push eax
movlpd qword [ebp - 0x324], xmm0
movlpd qword [ebp - 0x318], xmm0
movlpd qword [ebp - 0x310], xmm0
movlpd qword [ebp - 0x308], xmm0
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x330], 0x3c
mov dword [ebp - 0x328], 0xffffffff
mov dword [ebp - 0x31c], 0xffffffff
mov dword [ebp - 0x300], 0xffffffff
mov dword [ebp - 0x2f8], 0xffffffff
call dword [0x811af0]
test eax, eax
je 0x457a81
xor edi, edi
mov dword [ebp - 0x2f4], 0x8d6a9c
mov dword [ebp - 0x2f0], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x2e8], edi
mov dword [ebp - 0x2ec], 0x8d6a8c
lea ecx, [ebp - 0x2e0]
call fcn.00459ac0
mov dword [ebp - 0x2e0], 0x8d6a00
push edi
push edi
push edi
push edi
push 0x8d6770
mov byte [ebp - 4], 2
call dword [0x811b04]
test eax, eax
jne 0x45733a
call fcn.0045b9e0
mov dword [ebp - 0x18], eax
jmp 0x457349
mov edi, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2f0], edi
push dword [esi + 0x44]
push dword [esi + 0x40]
push dword [esi + 0x3c]
push dword [esi + 0x38]
push edi
call dword [0x811ae8]
test eax, eax
jne 0x457365
call fcn.0045b9e0
cmp dword [ebp - 0x18], 0
jl 0x457a5c
mov ecx, dword [ebp - 0x320]
xor esi, esi
mov eax, dword [ebp - 0x31c]
mov edx, 7
mov word [ebp - 0x34], si
mov esi, dword [ebp - 0x2e4]
mov dword [ebp - 0x24], 0
lea eax, [ecx + eax*2]
mov dword [ebp - 0x20], edx
cmp ecx, eax
je 0x4573ae
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040d850
mov edx, dword [ebp - 0x20]
push 0
push dword [ebp - 0x318]
cmp edx, 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push edi
call dword [0x811aec]
test eax, eax
jne 0x4573d6
call fcn.0045b9e0
mov dword [ebp - 0x18], eax
jmp 0x4573e3
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x45741d
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457413
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457aa3
push edx
push ecx
call fcn.0059a5db
add esp, 8
cmp dword [ebp - 0x18], 0
jl 0x457a5c
mov eax, dword [esi + 0x30]
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 1
movlpd qword [ebp - 0x228], xmm0
mov dword [ebp - 0x220], 0
test eax, eax
je 0x457479
add esi, 0x20
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x1a0]
cmp ecx, esi
je 0x457479
cmp dword [esi + 0x14], 8
jb 0x45746c
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x1a0]
call fcn.0040d850
mov ecx, dword [ebp - 0x2fc]
xor edx, edx
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], dx
lea eax, [ecx + eax*2]
cmp ecx, eax
je 0x4574ae
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040d850
mov byte [ebp - 4], 3
xor edx, edx
mov ecx, dword [ebp - 0x304]
mov eax, dword [ebp - 0x300]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], dx
lea eax, [ecx + eax*2]
cmp ecx, eax
je 0x4574e7
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x7c]
call fcn.0040d850
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0045b950
add esp, 0xc
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x68]
cmp edx, 8
jb 0x45753d
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457533
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457aa8
push edx
push ecx
call fcn.0059a5db
add esp, 8
xor eax, eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x45758f
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457585
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457aad
push edx
push ecx
call fcn.0059a5db
add esp, 8
xor eax, eax
mov dword [ebp - 0x24], 0
cmp word [0x8d69fa], 0
mov ecx, 5
mov word [ebp - 0x34], ax
mov eax, dword [0x8d69f4]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x8d69f8]
lea edx, [ecx + 0x1a]
mov dword [ebp - 0x18], eax
mov eax, dword [0x18021f4]
mov dword [ebp - 0x20], 7
je 0x45767b
xor esi, esi
cmp eax, 2
jl 0x457653
movups xmm3, xmmword [0x8d6c60]
mov eax, 0x8d69f4
movaps xmm2, xmm3
movaps xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x8d6d00]
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x8d6d00]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
movd xmm0, ecx
psrad xmm2, xmm0
movd xmm0, edx
movaps xmm1, xmm2
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 [ebp - 0x1c], xmm1
jmp 0x45767b
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 [ebp + esi*2 - 0x1c], cx
inc esi
cmp esi, 4
jl 0x457653
cmp dword [ebp - 0x50], 8
lea ecx, [ebp - 0x64]
mov edx, 0x800000
cmovae ecx, dword [ebp - 0x64]
sub esp, 8
xor eax, eax
cmp dword [ebp - 0x324], 2
cmove eax, edx
push eax
push 0
sub esp, 8
lea eax, [ebp - 0x1c]
push eax
push ecx
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.0045b3e0
test eax, eax
js 0x457a26
movups xmm0, xmmword [0x8d69a8]
mov eax, dword [0x8d69f0]
xor esi, esi
cmp dword [0x18021f4], 2
movups xmmword [ebp - 0xd0], xmm0
mov dword [ebp - 0x88], eax
movups xmm0, xmmword [0x8d69b8]
movups xmmword [ebp - 0xc0], xmm0
movups xmm0, xmmword [0x8d69c8]
movups xmmword [ebp - 0xb0], xmm0
movups xmm0, xmmword [0x8d69d8]
movups xmmword [ebp - 0xa0], xmm0
movq xmm0, qword [0x8d69e8]
movq qword [ebp - 0x90], xmm0
jl 0x457850
movaps xmm4, xmmword [0x8d6c60]
mov eax, 5
movaps xmm3, xmmword [0x8d6d00]
movaps xmm6, xmmword [0x8d6c90]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, eax
nop dword [eax + eax]
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x8d6cb0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0xd0]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + esi*2 - 0xd0], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x8d6cb0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0xc8]
pxor xmm1, xmm0
movq qword [ebp + esi*2 - 0xc8], xmm1
add esi, 8
cmp esi, 0x20
jl 0x457750
cmp esi, 0x26
jge 0x45787b
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 [ebp + esi*2 - 0xd0], cx
inc esi
cmp esi, 0x26
jl 0x457850
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040d990
mov byte [ebp - 4], 8
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
push 0x1000000
push dword [ebp - 0x3c]
cmovae eax, dword [ebp - 0x4c]
push eax
push dword [ebp - 0x2dc]
call dword [0x811afc]
test eax, eax
jne 0x4578b7
call fcn.0045b9e0
push 0
push 0
lea ecx, [ebp - 0x2e0]
call fcn.0045ac40
test eax, eax
js 0x4579ec
mov edx, dword [ebp - 0x2e4]
lea esi, [ebp - 0x200]
cmp dword [ebp - 0x1ec], 8
mov eax, dword [ebp - 0x110]
cmovae esi, dword [ebp - 0x200]
mov ecx, esi
mov dword [edx], eax
mov eax, dword [ebp - 0x10c]
mov dword [edx + 4], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x2e4], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457904
sub ecx, dword [ebp - 0x2e4]
sar ecx, 1
push ecx
push esi
lea ecx, [edx + 8]
call fcn.0040d850
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x45795b
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457951
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457ab2
push edx
push ecx
call fcn.0059a5db
add esp, 8
mov edx, dword [ebp - 0x50]
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
cmp edx, 8
jb 0x4579a9
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45799f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457ab7
push edx
push ecx
call fcn.0059a5db
add esp, 8
xor eax, eax
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x2e0]
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
call fcn.00459250
mov eax, dword [ebp - 0x2e8]
mov esi, dword [0x811b08]
test eax, eax
je 0x4579db
push eax
call esi
test edi, edi
je 0x4579e2
push edi
call esi
mov eax, 1
jmp 0x457a83
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x457a26
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457a1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457abc
push edx
push ecx
call fcn.0059a5db
add esp, 8
mov edx, dword [ebp - 0x50]
cmp edx, 8
jb 0x457a5c
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457a52
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x457ac1
push edx
push ecx
call fcn.0059a5db
add esp, 8
lea ecx, [ebp - 0x2e0]
call fcn.00459250
mov eax, dword [ebp - 0x2e8]
mov esi, dword [0x811b08]
test eax, eax
je 0x457a7a
push eax
call esi
test edi, edi
je 0x457a81
push edi
call esi
xor eax, eax
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 4
call fcn.006a7c79
call fcn.006a7c79
call fcn.006a7c79
call fcn.006a7c79
call fcn.006a7c79
call fcn.006a7c79
call fcn.006a7c79
int3