Function at 0x459f40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x48
push ebx
mov ebx, dword [esp + 0x54]
push ebp
mov ebp, dword [esp + 0x54]
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x64]
lea esi, [esp + 0x68]
mov ecx, ebp
call fcn.004594f0
cmp eax, 3
je 0x45a777
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x64]
mov esi, dword [ecx]
mov eax, dword [ecx + 8]
sub eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar eax, 1
shr edx, 1
cmp edx, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x64], eax
ja 0x459f9d
mov dword [esp + 0x64], edx
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 4]
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
sar eax, 1
shr edx, 1
cmp edx, eax
mov dword [esp + 0x60], eax
ja 0x459fba
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x64]
lea eax, [esi + edx]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x28], eax
sub eax, edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x64], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 0xc]
add edx, eax
mov dword [esp + 0x20], ecx
sub ecx, dword [esp + 0x60]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x68]
cmp esi, edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x1c], eax
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], eax
mov ecx, esi
jge 0x45a004
mov ecx, edx
mov edx, dword [esp + 0x6c]
cmp eax, edx
mov dword [esp + 0x4c], edx
jl 0x45a014
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x14]
cmp edx, eax
mov dword [esp + 0x50], eax
jg 0x45a028
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
cmp edx, eax
jle 0x45a036
mov edx, eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
push ebx
push edi
mov dword [eax + 8], ecx
push ebp
mov dword [eax + 0xc], edx
call fcn.00459ca0
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x64]
cmp ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
jge 0x45a07a
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
cmp edx, eax
mov dword [esp + 0x4c], eax
jl 0x45a08a
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x28]
cmp edx, eax
mov dword [esp + 0x50], eax
jg 0x45a09e
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x74]
cmp edx, eax
jle 0x45a0ac
mov edx, eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
push ebx
push edi
mov dword [eax + 8], ecx
push ebp
mov dword [eax + 0xc], edx
call fcn.00459ca0
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x30]
cmp esi, dword [esp + 0x68]
mov dword [ebx + 0x18], esi
mov dword [esp + 0x34], eax
mov dword [ebx + 0x1c], eax
mov ecx, esi
jge 0x45a0ea
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x60]
cmp edx, eax
mov dword [esp + 0x4c], eax
jl 0x45a0fe
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x14]
cmp edx, eax
mov dword [esp + 0x50], eax
jg 0x45a112
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x74]
cmp edx, eax
jle 0x45a120
mov edx, eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
push ebx
push edi
mov dword [eax + 8], ecx
push ebp
mov dword [eax + 0xc], edx
call fcn.00459ca0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x68]
mov dword [ebx + 0x18], edx
mov ecx, eax
jge 0x45a15e
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x60]
cmp edx, eax
mov dword [esp + 0x4c], eax
jl 0x45a172
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x28]
cmp edx, eax
mov dword [esp + 0x50], eax
jg 0x45a186
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x74]
cmp edx, eax
jle 0x45a194
mov edx, eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
push ebx
push edi
mov dword [eax + 8], ecx
push ebp
mov dword [eax + 0xc], edx
call fcn.00459ca0
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x14]
shr eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0xc]
shr eax, 1
cmp ecx, dword [esp + 0x68]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x48], ecx
jge 0x45a1dc
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x1c]
cmp edx, eax
mov dword [esp + 0x4c], eax
jl 0x45a1f0
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x64]
cmp edx, eax
mov dword [esp + 0x50], eax
jg 0x45a204
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x74]
cmp edx, eax
jle 0x45a212
mov edx, eax
cmp ecx, dword [esp + 0x50]
mov dword [esp + 0x54], edx
jge 0x45a313
mov eax, dword [esp + 0x4c]
cmp eax, edx
jge 0x45a313
mov dword [esp + 0x34], eax
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
jmp 0x45a244
mov ecx, dword [esp + 0x48]
mov edx, dword [ebx + 4]
imul edx, dword [esp + 0x1c]
add edx, dword [esp + 0x30]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edx*4]
mov esi, eax
shr esi, 0x18
imul esi, edi
shr esi, 8
mov edx, 0xff
sub edx, esi
mov esi, eax
shr eax, 8
and eax, 0xff00ff
and esi, 0xff00ff
imul eax, edi
imul esi, edi
and eax, 0xff00ff00
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], eax
jmp 0x45a295
mov esi, dword [esp + 0x3c]
mov eax, dword [ebp + 4]
imul eax, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [ebp + 0x10]
lea eax, [ecx + eax*4]
mov dword [esp + 0x44], eax
mov eax, dword [eax]
mov ecx, eax
and eax, 0xff00ff
imul eax, edx
add eax, esi
shr ecx, 8
mov esi, ecx
and esi, 0xffff00ff
and ecx, 0xff00ff
imul esi, edx
imul ecx, edx
shr eax, 8
xor eax, esi
and eax, 0xff00ff
xor eax, ecx
add eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
mov ecx, dword [esp + 0x38]
add ecx, 1
cmp ecx, dword [esp + 0x50]
mov dword [esp + 0x38], ecx
jl 0x45a291
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], 1
add eax, 1
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x34], eax
jl 0x45a240
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x68]
cmp ecx, eax
mov dword [esp + 0x48], ecx
jge 0x45a329
mov ecx, eax
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x60]
cmp edx, eax
mov dword [esp + 0x4c], eax
jl 0x45a33d
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x64]
cmp edx, eax
mov dword [esp + 0x50], eax
jg 0x45a351
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x74]
cmp edx, eax
jle 0x45a35f
mov edx, eax
cmp ecx, dword [esp + 0x50]
mov dword [esp + 0x54], edx
jge 0x45a463
mov eax, dword [esp + 0x4c]
cmp eax, edx
jge 0x45a463
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
sub eax, dword [esp + 0x60]
lea eax, [eax + edx + 1]
mov dword [esp + 0x20], eax
jmp 0x45a394
mov ecx, dword [esp + 0x48]
mov edx, dword [ebx + 4]
imul edx, dword [esp + 0x20]
add edx, dword [esp + 0x30]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edx*4]
mov esi, eax
shr esi, 0x18
imul esi, edi
shr esi, 8
mov edx, 0xff
sub edx, esi
mov esi, eax
shr eax, 8
and eax, 0xff00ff
and esi, 0xff00ff
imul eax, edi
imul esi, edi
and eax, 0xff00ff00
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], eax
jmp 0x45a3e5
mov esi, dword [esp + 0x44]
mov eax, dword [ebp + 4]
imul eax, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [ebp + 0x10]
lea eax, [ecx + eax*4]
mov dword [esp + 0x3c], eax
mov eax, dword [eax]
mov ecx, eax
and eax, 0xff00ff
imul eax, edx
add eax, esi
shr ecx, 8
mov esi, ecx
and esi, 0xffff00ff
and ecx, 0xff00ff
imul esi, edx
imul ecx, edx
shr eax, 8
xor eax, esi
and eax, 0xff00ff
xor eax, ecx
add eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
mov ecx, dword [esp + 0x38]
add ecx, 1
cmp ecx, dword [esp + 0x50]
mov dword [esp + 0x38], ecx
jl 0x45a3e1
mov eax, dword [esp + 0x34]
add dword [esp + 0x20], 1
add eax, 1
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x34], eax
jl 0x45a390
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x68]
cmp esi, eax
mov dword [esp + 0x48], esi
jge 0x45a473
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov dword [esp + 0x4c], eax
jl 0x45a487
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
mov edx, eax
jg 0x45a497
mov edx, ecx
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x74]
cmp ecx, eax
mov dword [esp + 0x50], edx
jle 0x45a4a9
mov ecx, eax
cmp dword [esp + 0x48], edx
mov dword [esp + 0x54], ecx
jge 0x45a5a0
mov eax, dword [esp + 0x4c]
cmp eax, ecx
jge 0x45a5a0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], eax
jmp 0x45a4e4
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x38], eax
jmp 0x45a4e4
mov esi, dword [esp + 0x24]
mov edx, dword [ebx + 4]
imul edx, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x10]
sub edx, esi
add edx, eax
mov ecx, dword [ecx + edx*4]
mov edx, dword [ebp + 4]
imul edx, dword [esp + 0x34]
add edx, eax
mov eax, dword [ebp + 0x10]
lea eax, [eax + edx*4]
mov edx, ecx
shr edx, 0x18
imul edx, edi
mov dword [esp + 0x44], eax
mov eax, dword [eax]
shr edx, 8
mov ebp, ecx
and ebp, 0xff00ff
mov esi, 0xff
imul ebp, edi
sub esi, edx
mov edx, eax
and eax, 0xff00ff
imul eax, esi
add eax, ebp
shr edx, 8
mov ebp, edx
and ebp, 0xffff00ff
shr ecx, 8
imul ebp, esi
and ecx, 0xff00ff
and edx, 0xff00ff
imul ecx, edi
shr eax, 8
imul edx, esi
xor eax, ebp
mov ebp, dword [esp + 0x5c]
and eax, 0xff00ff
xor eax, edx
and ecx, 0xff00ff00
add eax, ecx
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
mov eax, dword [esp + 0x38]
add eax, 1
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x38], eax
jl 0x45a4e0
mov eax, dword [esp + 0x34]
add eax, 1
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x34], eax
jl 0x45a4d1
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
cmp eax, ecx
mov dword [esp + 0x48], eax
jge 0x45a5b4
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x18]
cmp edx, ecx
mov eax, ecx
jl 0x45a5c4
mov eax, edx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x70]
cmp edx, ecx
jle 0x45a5d2
mov edx, ecx
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x74]
cmp esi, ecx
mov dword [esp + 0x50], edx
jg 0x45a5e4
mov ecx, esi
cmp dword [esp + 0x48], edx
mov dword [esp + 0x54], ecx
jge 0x45a6d3
cmp eax, ecx
jge 0x45a6d3
mov dword [esp + 0x34], eax
mov edi, edi
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], eax
jmp 0x45a610
mov edx, dword [ebx + 4]
imul edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x64]
mov ecx, dword [ebx + 0x10]
add edx, eax
add edx, dword [esp + 0x30]
mov esi, 0xff
mov ecx, dword [ecx + edx*4 + 4]
mov edx, dword [ebp + 4]
imul edx, dword [esp + 0x34]
add edx, eax
mov eax, dword [ebp + 0x10]
lea eax, [eax + edx*4]
mov edx, ecx
shr edx, 0x18
imul edx, edi
mov dword [esp + 0x44], eax
mov eax, dword [eax]
shr edx, 8
sub esi, edx
mov edx, eax
and eax, 0xff00ff
mov ebp, ecx
imul eax, esi
and ebp, 0xff00ff
imul ebp, edi
add eax, ebp
shr edx, 8
mov ebp, edx
and ebp, 0xffff00ff
shr ecx, 8
imul ebp, esi
and ecx, 0xff00ff
and edx, 0xff00ff
imul ecx, edi
shr eax, 8
imul edx, esi
xor eax, ebp
mov ebp, dword [esp + 0x5c]
and eax, 0xff00ff
xor eax, edx
and ecx, 0xff00ff00
add eax, ecx
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
mov eax, dword [esp + 0x38]
add eax, 1
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x38], eax
jl 0x45a610
mov eax, dword [esp + 0x34]
add eax, 1
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x34], eax
jl 0x45a600
mov edx, dword [ebx + 4]
imul edx, dword [esp + 0x2c]
add edx, dword [esp + 0x30]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, eax
and ecx, 0xff00ff
shr edx, 8
imul ecx, edi
and edx, 0xffff00ff
shr eax, 8
imul edx, edi
and eax, 0xff00ff
imul eax, edi
shr ecx, 8
xor ecx, edx
mov edx, dword [esp + 0x68]
and ecx, 0xff00ff
xor ecx, eax
mov eax, dword [esp + 0x14]
cmp eax, edx
mov dword [esp + 0x48], eax
jge 0x45a72c
mov eax, edx
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x18]
cmp esi, edx
mov ebx, edx
jl 0x45a73c
mov ebx, esi
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x70]
cmp esi, edx
mov dword [esp + 0x4c], ebx
jle 0x45a74e
mov esi, edx
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x74]
cmp edi, edx
mov dword [esp + 0x50], esi
jg 0x45a760
mov edx, edi
cmp eax, esi
mov dword [esp + 0x54], edx
jge 0x45a777
cmp ebx, edx
jge 0x45a777
push ecx
push ebp
lea eax, [esp + 0x50]
call fcn.0045a790
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret 0x1c