Function at 0x452270
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
test eax, eax
push edi
mov edi, ecx
je 0x452283
mov word [eax], 0xffff
mov eax, dword [0x96ef80]
test eax, eax
je 0x452745
mov ecx, dword [0x96ef84]
mov al, cl
add al, 0x64
mov byte [esp + 0x14], al
mov eax, dword [0x96eab8]
test eax, eax
jle 0x4522c7
movzx edx, word [0x977b7e]
movzx eax, word [0x977b7c]
imul edx, edx, 0x1c
mov eax, dword [edi + eax*4 + 0x804]
mov dl, byte [eax + edx + 0x17]
mov byte [esp + 0x14], dl
mov eax, dword [0x96ef88]
mov dword [edi + ecx*4 + 0x3548], eax
mov ecx, dword [0x96ef80]
imul ecx, ecx, 0x1c
push ebx
push ebp
push esi
push 0
push ecx
call fcn.0072f420
mov edx, dword [0x96ef84]
mov dword [edi + edx*4 + 0x904], eax
mov edx, dword [0x96ef80]
add esp, 8
xor ebp, ebp
test edx, edx
jle 0x4524cc
xor esi, esi
lea esp, [esp]
fld dword [ebp*4 + 0x96ec80]
mov eax, dword [0x96ef84]
fld dword [ebp*4 + 0x96ed80]
mov ebx, dword [edi + eax*4 + 0x904]
fld dword [ebp*4 + 0x96ee80]
add ebx, esi
fmul dword [0x859000]
call fcn.00821b40
fmul dword [0x859000]
mov word [ebx + 8], ax
call fcn.00821b40
fmul dword [0x859000]
mov word [ebx + 0xa], ax
call fcn.00821b40
mov word [ebx + 0xc], ax
mov ecx, dword [0x96ef84]
mov edx, dword [edi + ecx*4 + 0x904]
mov word [edx + esi + 0x14], bp
lea eax, [edx + esi + 0x12]
add ecx, 0x40
mov word [eax], cx
mov eax, dword [0x96ef84]
mov ecx, dword [edi + eax*4 + 0x904]
mov byte [ecx + esi + 0x16], 0
mov edx, dword [0x96ef84]
mov eax, dword [edi + edx*4 + 0x904]
mov cl, byte [esp + 0x20]
mov byte [eax + esi + 0x17], cl
mov edx, dword [0x96ef84]
mov eax, dword [edi + edx*4 + 0x904]
mov bl, byte [eax + esi + 0x18]
lea eax, [eax + esi + 0x18]
and bl, 0xef
mov byte [eax], bl
mov ecx, dword [0x96ef84]
mov edx, dword [edi + ecx*4 + 0x904]
lea eax, [edx + esi + 0x18]
or byte [eax], 0x20
mov eax, dword [0x96ef84]
mov ecx, dword [edi + eax*4 + 0x904]
lea eax, [ecx + esi + 0x19]
or byte [eax], 1
mov edx, dword [0x96ef84]
mov eax, dword [edi + edx*4 + 0x904]
mov bl, byte [eax + esi + 0x18]
lea eax, [eax + esi + 0x18]
and bl, 0xbf
mov byte [eax], bl
mov ecx, dword [0x96ef84]
mov edx, dword [edi + ecx*4 + 0x904]
lea eax, [edx + esi + 0x18]
and byte [eax], 0x7f
mov eax, dword [0x96ef84]
mov ecx, dword [edi + eax*4 + 0x904]
lea eax, [ecx + esi + 0x19]
and byte [eax], 0xfd
mov edx, dword [0x96ef84]
mov eax, dword [edi + edx*4 + 0x904]
mov dl, byte [eax + esi + 0x19]
mov cl, byte [ebp + 0x96ec40]
lea eax, [eax + esi + 0x19]
shl cl, 2
xor cl, dl
and cl, 4
xor dl, cl
mov byte [eax], dl
mov edx, dword [0x96ef84]
mov eax, dword [edi + edx*4 + 0x904]
mov bl, byte [eax + esi + 0x19]
lea eax, [eax + esi + 0x19]
or bl, 8
mov byte [eax], bl
mov ecx, dword [0x96ef84]
mov edx, dword [edi + ecx*4 + 0x904]
lea eax, [edx + esi + 0x19]
and byte [eax], 0xcf
mov eax, dword [0x96ef84]
mov ecx, dword [edi + eax*4 + 0x904]
lea eax, [ecx + esi + 0x1a]
or byte [eax], 0xf
mov edx, dword [0x96ef84]
mov eax, dword [edi + edx*4 + 0x904]
mov bl, byte [eax + esi + 0x1a]
lea eax, [eax + esi + 0x1a]
and bl, 0xf
mov byte [eax], bl
mov ecx, dword [0x96ef84]
mov edx, dword [edi + ecx*4 + 0x904]
mov word [edx + esi + 0xe], 0x7ffe
mov edx, dword [0x96ef80]
inc ebp
add esi, 0x1c
cmp ebp, edx
jl 0x452310
xor ebx, ebx
test edx, edx
jle 0x452538
mov dword [esp + 0x20], 0x96eac0
lea ebx, [ebx]
xor ebp, ebp
mov eax, dword [esp + 0x20]
mov cl, byte [eax + ebp]
test cl, cl
jl 0x452522
movsx esi, cl
xor eax, eax
lea ecx, [esi + esi*2]
cmp byte [eax + ecx*2 + 0x96eac0], bl
je 0x452522
inc eax
cmp eax, 6
jl 0x4524f5
xor eax, eax
cmp byte [eax + ecx*2 + 0x96eac0], 0
jl 0x452518
inc eax
cmp eax, 6
jl 0x452506
jmp 0x452522
lea ecx, [esi + esi*2]
mov byte [eax + ecx*2 + 0x96eac0], bl
inc ebp
cmp ebp, 6
jl 0x4524e2
mov ecx, dword [esp + 0x20]
inc ebx
add ecx, 6
cmp ebx, edx
mov dword [esp + 0x20], ecx
jl 0x4524e0
xor ebp, ebp
test edx, edx
mov dword [esp + 0x14], ebp
jle 0x45257f
mov eax, 0x96eac1
mov cl, byte [eax - 1]
test cl, cl
jl 0x45254f
inc ebp
cmp byte [eax], 0
jl 0x452555
inc ebp
mov cl, byte [eax + 1]
test cl, cl
jl 0x45255d
inc ebp
mov cl, byte [eax + 2]
test cl, cl
jl 0x452565
inc ebp
mov cl, byte [eax + 3]
test cl, cl
jl 0x45256d
inc ebp
mov cl, byte [eax + 4]
test cl, cl
jl 0x452575
inc ebp
add eax, 6
dec edx
jne 0x452547
mov dword [esp + 0x14], ebp
lea esi, [ebp + 0xc0]
lea edx, [esi*4]
push 0
push edx
call fcn.0072f420
mov ecx, dword [0x96ef84]
xor ebx, ebx
push ebx
push esi
mov dword [edi + ecx*4 + 0xb44], eax
call fcn.0072f420
mov edx, dword [0x96ef84]
push ebx
push esi
mov dword [edi + edx*4 + 0xc64], eax
call fcn.0072f420
mov ecx, dword [0x96ef84]
mov dword [edi + ecx*4 + 0xd84], eax
mov eax, dword [0x96ef80]
add esp, 0x18
test eax, eax
mov dword [esp + 0x10], ebx
jle 0x45267b
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0x96eac0
lea ecx, [ecx]
mov edx, dword [0x96ef84]
mov ecx, dword [edi + edx*4 + 0x904]
mov dx, word [esp + 0x10]
mov word [ecx + eax + 0x10], dx
mov ecx, dword [0x96ef84]
mov edx, dword [edi + ecx*4 + 0x904]
mov cl, byte [edx + eax + 0x18]
lea eax, [edx + eax + 0x18]
and cl, 0xf0
mov byte [eax], cl
xor esi, esi
mov eax, dword [esp + 0x20]
mov cl, byte [eax + esi]
test cl, cl
jl 0x452650
mov edx, dword [0x96ef84]
lea ebp, [esp + 0x10]
push ebp
push edx
movsx ecx, cl
push ecx
lea eax, [edx + 0x40]
push eax
push ebx
push eax
call fcn.00450fb0
mov ebp, dword [esp + 0x2c]
add esp, 0x18
inc esi
cmp esi, 6
jl 0x452623
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, dword [0x96ef80]
inc ebx
add eax, 0x1c
add edx, 6
cmp ebx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
jl 0x4525f0
lea ecx, [ebp + 0xc0]
cmp ebp, ecx
mov eax, ebp
jge 0x4526a8
jmp 0x452690
mov edx, dword [0x96ef84]
mov edx, dword [edi + edx*4 + 0xb44]
mov word [edx + eax*4], 0xffff
inc eax
cmp eax, ecx
jl 0x452690
mov eax, dword [0x96ef84]
mov ecx, dword [0x96ef80]
mov dword [edi + eax*4 + 0x10a4], ecx
mov edx, dword [0x96ef84]
xor esi, esi
mov dword [edi + edx*4 + 0x11c4], esi
mov eax, dword [0x96ef84]
mov ecx, dword [0x96ef80]
mov dword [edi + eax*4 + 0x12e4], ecx
mov edx, dword [0x96ef84]
mov dword [edi + edx*4 + 0x1404], esi
mov eax, dword [0x96ef84]
mov dword [edi + eax*4 + 0x1524], ebp
cmp dword [0x96eab8], esi
jle 0x452742
lea esp, [esp]
mov ecx, dword [0x96ef84]
mov dx, word [esi*4 + 0x96ea98]
mov ebx, dword [esi*4 + 0x977b7c]
add ecx, 0x40
mov word [esp + 0x20], cx
mov word [esp + 0x22], dx
mov ebp, dword [esp + 0x20]
push ebx
push ebp
mov ecx, edi
call fcn.0044e000
push ebp
push ebx
mov ecx, edi
call fcn.0044e000
mov eax, dword [0x96eab8]
inc esi
cmp esi, eax
jl 0x452700
pop esi
pop ebp
pop ebx
mov byte [0x96f031], 0
pop edi
add esp, 0xc
ret 4