Function at 0x466170
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, 2
push edi
mov dword [edx + 0xc0], 0
mov dword [esp + 0x18], esi
lea ecx, [ecx]
movzx eax, byte [edx + esi + 0x2cb0]
mov ecx, eax
and eax, 1
shr ecx, 1
dec ecx
or eax, 2
shl eax, cl
xor ebx, ebx
mov dword [esp + 0x14], esi
lea edi, [edx + eax*4 + 0x23b0]
mov dword [esp + 0x10], edi
mov edi, 1
mov ebp, edi
shl ebp, cl
add eax, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebp
test ecx, ecx
je 0x46620f
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
mov esi, eax
shr eax, 1
and esi, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
movzx eax, word [eax + edi*2]
mov ebp, esi
neg ebp
shr ebp, 4
shr eax, 4
and ebp, 0x7f
xor eax, ebp
add ebx, dword [edx + eax*4 + 0x760]
dec ecx
lea edi, [esi + edi*2]
jne 0x4661d0
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
movzx ecx, word [ecx + edi*2]
mov edi, ecx
xor ecx, 0x7f0
shr edi, 4
mov edi, dword [edx + edi*4 + 0x760]
shr ecx, 4
mov ecx, dword [edx + ecx*4 + 0x760]
add edi, ebx
inc esi
add ecx, ebx
add ebp, eax
mov dword [esp + eax*4 + 0x34], edi
mov dword [esp + ebp*4 + 0x34], ecx
mov dword [esp + 0x18], esi
cmp esi, 0x40
jb 0x466190
lea eax, [esp + 0x38]
sub eax, edx
lea ecx, [edx + 0x1230]
lea ebp, [edx + 0x1638]
sub eax, 0x1630
lea edi, [edx + 0x21b0]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 4
mov ebx, dword [edx + 0xc8]
inc ebx
shr ebx, 1
mov dword [esp + 0x30], ebx
je 0x4663ab
mov dword [esp + 0x24], ecx
mov eax, 0x20
lea ecx, [edi + 0x40]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ebx
jmp 0x4662b0
mov ecx, eax
shr eax, 1
movzx esi, word [edi + eax*2]
shr esi, 4
and ecx, 1
neg ecx
shr ecx, 4
and ecx, 0x7f
xor esi, ecx
mov ecx, dword [edx + esi*4 + 0x760]
mov esi, eax
and esi, 1
neg esi
shr eax, 1
movzx ebx, word [edi + eax*2]
shr esi, 4
and esi, 0x7f
shr ebx, 4
xor ebx, esi
add ecx, dword [edx + ebx*4 + 0x760]
mov esi, eax
and esi, 1
shr eax, 1
movzx ebx, word [edi + eax*2]
neg esi
shr esi, 4
and esi, 0x7f
shr ebx, 4
xor ebx, esi
add ecx, dword [edx + ebx*4 + 0x760]
mov esi, eax
shr eax, 1
mov ebx, eax
mov ebp, eax
movzx eax, word [edi + eax*2]
and esi, 1
shr ebx, 1
movzx ebx, word [edi + ebx*2]
and ebp, 1
neg esi
neg ebp
shr esi, 4
shr eax, 4
and esi, 0x7f
xor eax, esi
shr ebp, 4
shr ebx, 4
and ebp, 0x7f
xor ebx, ebp
mov esi, dword [edx + ebx*4 + 0x760]
add esi, dword [edx + eax*4 + 0x760]
mov ebx, dword [esp + 0x18]
movzx eax, word [ebx]
add ecx, esi
mov esi, eax
shr esi, 4
mov ebp, dword [edx + esi*4 + 0x760]
mov esi, dword [esp + 0x24]
xor eax, 0x7f0
shr eax, 4
add ebp, ecx
mov dword [esi], ebp
mov eax, dword [edx + eax*4 + 0x760]
add eax, ecx
mov dword [esi + 4], eax
mov eax, dword [esp + 0x2c]
add ebx, 2
inc eax
add esi, 8
dec dword [esp + 0x28]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], esi
jne 0x4662b0
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov eax, 7
mov esi, 0x20
cmp ebx, eax
jbe 0x4663cf
lea esp, [esp]
add dword [ecx + eax*8], esi
add dword [ecx + eax*8 + 4], esi
inc eax
add esi, 0x10
cmp eax, ebx
jb 0x4663c0
mov eax, dword [ecx]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 8]
mov dword [ebp], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp + 4], eax
mov esi, 4
lea eax, [ebp + 8]
mov edi, edi
movzx ebx, byte [edx + esi + 0x2cb0]
mov ebx, dword [ecx + ebx*4]
mov ebp, dword [esp + 0x10]
mov ebp, dword [eax + ebp - 4]
add ebp, ebx
mov dword [eax], ebp
mov ebp, dword [esp + 0x10]
mov ebp, dword [eax + ebp]
add ebp, ebx
mov dword [eax + 4], ebp
add esi, 2
add eax, 8
cmp esi, 0x80
jb 0x4663f0
mov ebp, dword [esp + 0x14]
sub dword [esp + 0x10], 0x200
add ecx, 0x100
add ebp, 0x200
sub edi, 0xffffff80
dec dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ebp
jne 0x466280
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret