Function at 0x457930
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 0x7f9765
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x400
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, ecx
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
push 0x3c
mov dword [ebp - 0x3d0], eax
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.006a3e10
add esp, 0xc
mov dword [ebp - 0x40c], 0x3c
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x404], 0xffffffff
mov dword [ebp - 0x3f8], 0xffffffff
mov dword [ebp - 0x3dc], 0xffffffff
push eax
push 0
push 0
push esi
mov dword [ebp - 0x3d4], 0xffffffff
call dword [0x810af0]
test eax, eax
je 0x4583a5
xor esi, esi
mov dword [ebp - 0x3cc], 0x8d5a9c
mov dword [ebp - 0x3c8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x3c0], esi
mov dword [ebp - 0x3c4], 0x8d5a8c
lea ecx, [ebp - 0x3b8]
call fcn.00458d40
mov dword [ebp - 0x3b8], 0x8d5a00
push esi
push esi
push esi
push esi
push 0x8d5770
mov byte [ebp - 4], 2
call dword [0x810b04]
test eax, eax
jne 0x457a3c
call fcn.0045ac60
mov dword [ebp - 0x3bc], eax
jmp 0x457a4e
mov esi, eax
mov dword [ebp - 0x3bc], 0
mov dword [ebp - 0x3c8], esi
push dword [edi + 0x44]
push dword [edi + 0x40]
push dword [edi + 0x3c]
push dword [edi + 0x38]
push esi
call dword [0x810ae8]
test eax, eax
jne 0x457a6a
call fcn.0045ac60
cmp dword [ebp - 0x3bc], 0
jl 0x458380
mov ecx, dword [ebp - 0x3fc]
xor edi, edi
mov eax, dword [ebp - 0x3f8]
mov edx, 7
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], edx
mov word [ebp - 0x44], di
lea eax, [ecx + eax*2]
cmp ecx, eax
je 0x457ab0
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.0040d800
mov edx, dword [ebp - 0x30]
push 0
push dword [ebp - 0x3f4]
cmp edx, 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push esi
call dword [0x810aec]
test eax, eax
jne 0x457ad7
call fcn.0045ac60
mov edi, eax
jmp 0x457adf
mov dword [ebp - 0x3c0], eax
xor edi, edi
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x457b19
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457b0f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4583c7
push edx
push ecx
call fcn.0059982b
add esp, 8
test edi, edi
js 0x458380
xorps xmm0, xmm0
mov dword [ebp - 0x2f4], 1
movlpd qword [ebp - 0x300], xmm0
mov dword [ebp - 0x2f8], 0
push 0xc
mov byte [ebp - 4], 3
call fcn.006ad406
movups xmm0, xmmword [0x8d597c]
mov esi, eax
add esp, 4
cmp word [0x8d598e], 0
mov eax, dword [0x8d598c]
mov dword [ebp - 0x3bc], esi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], eax
je 0x457b9a
xor edi, edi
mov eax, 0x94f2095
mov ecx, edi
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x37
sub ecx, eax
add ecx, 0x32
xor word [ebp + edi*2 - 0x28], cx
inc edi
cmp edi, 0xa
jl 0x457b75
movups xmm0, xmmword [0x8d5950]
xor edi, edi
lea eax, [ebp - 0x28]
mov dword [esi], eax
cmp dword [0x18011f4], 2
mov eax, dword [0x8d5978]
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x30], eax
lea edx, [edi + 1]
movups xmm0, xmmword [0x8d5960]
lea ecx, [edi + 0x1f]
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [0x8d5970]
movq qword [ebp - 0x38], xmm0
jl 0x457cf0
movaps xmm4, xmmword [0x8d5c60]
movaps xmm3, xmmword [0x8d5cd0]
movaps xmm6, xmmword [0x8d5c80]
movd xmm5, edx
movd xmm7, ecx
nop dword [eax]
movd xmm0, edi
lea eax, [edi + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
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 [0x8d5cb0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + edi*2 - 0x58]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + edi*2 - 0x58], 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
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 [0x8d5cb0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + edi*2 - 0x50]
pxor xmm1, xmm0
movq qword [ebp + edi*2 - 0x50], xmm1
add edi, 8
cmp edi, 0x10
jl 0x457c00
cmp edi, 0x16
jge 0x457d15
nop dword [eax]
mov eax, 0x94f2095
mov ecx, edi
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x37
sub ecx, eax
add ecx, 0x32
xor word [ebp + edi*2 - 0x58], cx
inc edi
cmp edi, 0x16
jl 0x457cf0
lea eax, [ebp - 0x58]
mov dword [ebp - 0xa8], 0
mov dword [esi + 4], eax
xor edx, edx
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x3d8]
mov eax, dword [ebp - 0x3d4]
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], dx
lea eax, [ecx + eax*2]
cmp ecx, eax
je 0x457d63
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0xb8]
call fcn.0040d800
mov byte [ebp - 4], 4
xor edx, edx
mov ecx, dword [ebp - 0x3e0]
mov eax, dword [ebp - 0x3dc]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], dx
lea eax, [ecx + eax*2]
cmp ecx, eax
je 0x457da8
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0xa0]
call fcn.0040d800
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0045abd0
add esp, 0xc
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x457e0a
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457e00
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4583cc
push edx
push ecx
call fcn.0059982b
add esp, 8
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xa4]
cmp edx, 8
jb 0x457e6b
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457e61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4583d1
push edx
push ecx
call fcn.0059982b
add esp, 8
movq xmm0, qword [0x8d5944]
xor eax, eax
mov word [ebp - 0xb8], ax
xor edi, edi
mov ax, word [0x8d594c]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
movq qword [ebp - 0x20], xmm0
mov word [ebp - 0x18], ax
mov eax, 0x94f2095
mov ecx, edi
imul edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x37
sub ecx, eax
add ecx, 0x32
xor word [ebp + edi*2 - 0x20], cx
inc edi
cmp edi, 5
jl 0x457ea1
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
mov edx, 0x800000
cmovae ecx, dword [ebp - 0x70]
sub esp, 8
xor eax, eax
cmp dword [ebp - 0x400], 2
cmove eax, edx
push eax
push esi
sub esp, 8
lea eax, [ebp - 0x20]
push eax
push ecx
lea eax, [ebp - 0x3c4]
push eax
lea ecx, [ebp - 0x3b8]
call fcn.0045a660
test eax, eax
js 0x458323
mov esi, dword [ebp - 0x3d0]
push esi
call dword [0x810388]
xor ecx, ecx
mov dword [ebp - 0x34], 0
push eax
mov word [ebp - 0x44], cx
lea ecx, [ebp - 0x44]
push esi
mov dword [ebp - 0x30], 7
call fcn.0040d800
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x88]
call fcn.00458400
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x457f84
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x457f7a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4583d6
push edx
push ecx
call fcn.0059982b
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov ecx, 0x3b
mov dword [ebp - 0x30], 7
mov esi, 0x8d5858
mov word [ebp - 0x44], ax
lea edi, [ebp - 0x1a8]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
lea edi, [eax + 1]
cmp dword [0x18011f4], 2
jl 0x4580e0
movaps xmm4, xmmword [0x8d5c60]
mov eax, 0x1f
movaps xmm3, xmmword [0x8d5cd0]
movaps xmm6, xmmword [0x8d5c80]
movd xmm5, edi
movd xmm7, eax
nop
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
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 [0x8d5cb0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0x1a8]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + esi*2 - 0x1a8], 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
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 [0x8d5cb0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0x1a0]
pxor xmm1, xmm0
movq qword [ebp + esi*2 - 0x1a0], xmm1
add esi, 8
cmp esi, 0x70
jl 0x457fe0
cmp esi, 0x76
jge 0x458108
nop dword [eax + eax]
mov eax, 0x94f2095
mov ecx, esi
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x37
sub ecx, eax
add ecx, 0x32
xor word [ebp + esi*2 - 0x1a8], cx
inc esi
cmp esi, 0x76
jl 0x4580e0
push dword [ebp - 0x78]
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00413d70
add esp, 0xc
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push 0x1000000
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x3b4]
call dword [0x810afc]
test eax, eax
jne 0x45814b
call fcn.0045ac60
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
push dword [ebp - 0x78]
cmovae eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x3b8]
push eax
call fcn.00459ec0
mov edx, dword [ebp - 0x18]
test eax, eax
js 0x45829b
cmp edx, 8
jb 0x4581ad
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4581a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4583db
push edx
push ecx
call fcn.0059982b
add esp, 8
mov edx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 0x10
jb 0x4581f8
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4581ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4583e0
push edx
push ecx
call fcn.0059982b
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
cmp edx, 8
jb 0x458247
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45823d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4583e5
push edx
push ecx
call fcn.0059982b
add esp, 8
push dword [ebp - 0x3bc]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.006acee9
add esp, 4
lea ecx, [ebp - 0x3b8]
call fcn.004584d0
mov eax, dword [ebp - 0x3c0]
mov esi, dword [0x810b08]
test eax, eax
je 0x458287
push eax
call esi
mov ecx, dword [ebp - 0x3c8]
test ecx, ecx
je 0x458294
push ecx
call esi
mov eax, edi
jmp 0x4583a7
cmp edx, 8
jb 0x4582d2
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4582c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4583ea
push edx
push ecx
call fcn.0059982b
add esp, 8
mov edx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 0x10
jb 0x45831d
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x458313
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4583ef
push edx
push ecx
call fcn.0059982b
add esp, 8
mov esi, dword [ebp - 0x3bc]
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x45835d
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x458353
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4583f4
push edx
push ecx
call fcn.0059982b
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
push esi
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.006acee9
mov esi, dword [ebp - 0x3c8]
add esp, 4
lea ecx, [ebp - 0x3b8]
call fcn.004584d0
mov eax, dword [ebp - 0x3c0]
mov edi, dword [0x810b08]
test eax, eax
je 0x45839e
push eax
call edi
test esi, esi
je 0x4583a5
push esi
call edi
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.0059961f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.006a6ec9
call fcn.006a6ec9
call fcn.006a6ec9
call fcn.006a6ec9
call fcn.006a6ec9
call fcn.006a6ec9
call fcn.006a6ec9
call fcn.006a6ec9
call fcn.006a6ec9
call fcn.006a6ec9
int3