Function at 0x451f50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x284
push ebx
mov ebx, ecx
mov dword [esp + 0x20], edx
imul ecx, dword [esp + 0x290], 3
push ebp
push esi
mov esi, dword [esp + 0x2a0]
lea ebp, [esp + 0x170]
push edi
mov edi, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], edi
movzx eax, byte [esi + 0x4becd8]
cmp eax, ecx
cmovl ecx, eax
mov eax, dword [esp + 0x298]
shr eax, 2
not eax
mov dword [esp + 0x24], ecx
xor ecx, ecx
inc ecx
and eax, ecx
mov dword [esp + 0x50], ecx
neg eax
and eax, edx
sub ebx, eax
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], eax
movzx eax, byte [esi + 0x4becdc]
mov esi, dword [esp + 0x298]
mov dword [esp + 0x20], eax
xor eax, eax
shr esi, 3
inc eax
not esi
mov dword [esp + 0x34], ebx
and esi, eax
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x24]
sub ebx, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x1c], 8
movzx ecx, byte [ebx + edi]
movzx eax, byte [edi]
sub eax, ecx
mov ecx, dword [esp + 0x20]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x29c]
shl eax, cl
xor ecx, ecx
sub edx, eax
mov eax, esi
add edx, 0x20
sub eax, edx
cmp esi, edx
cmovl ecx, eax
lea eax, [ecx + edx]
xor ecx, ecx
test eax, eax
cmovg ecx, eax
cmp edx, 0xffffffc0
cmovl ecx, dword [esp + 0x2a0]
mov dword [ebp], ecx
add ebp, 4
inc edi
sub dword [esp + 0x1c], 1
jne 0x451feb
mov ecx, dword [esp + 0x10]
cmp ecx, 7
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
mov ebx, edi
push 1
pop edx
cmovl eax, edx
neg eax
and eax, dword [esp + 0x2c]
add edi, eax
inc ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
cmp ecx, 9
jl 0x451fd9
mov ebp, dword [esp + 0x298]
lea ebx, [esp + 0x54]
mov edi, dword [esp + 0x30]
mov eax, ebp
and dword [esp + 0x18], 0
not eax
and eax, edx
shr ebp, 1
mov esi, edi
mov dword [esp + 0x10], edi
not ebp
mov dword [esp + 0x40], eax
sub esi, eax
and ebp, edx
mov dword [esp + 0x298], ebp
mov ebp, dword [esp + 0x24]
mov eax, edi
sub esi, edi
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x14], 8
movzx ecx, byte [esi + eax]
movzx eax, byte [eax]
sub eax, ecx
mov ecx, dword [esp + 0x20]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x29c]
shl eax, cl
xor ecx, ecx
sub edx, eax
mov eax, ebp
add edx, 0x20
sub eax, edx
cmp ebp, edx
cmovl ecx, eax
lea eax, [ecx + edx]
xor ecx, ecx
test eax, eax
cmovg ecx, eax
mov eax, dword [esp + 0x1c]
cmp edx, 0xffffffc0
cmovl ecx, dword [esp + 0x2a0]
add eax, edi
mov dword [ebx], ecx
add ebx, 4
sub dword [esp + 0x14], 1
mov dword [esp + 0x1c], eax
jne 0x4520b5
mov ecx, dword [esp + 0x18]
cmp ecx, 7
mov edi, dword [esp + 0x10]
mov esi, edi
mov eax, dword [esp + 0x298]
push 1
pop edx
cmovl eax, edx
add edi, eax
inc ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ecx
cmp ecx, 9
jl 0x45209d
mov ebx, dword [esp + 0x30]
mov ecx, ebx
mov eax, dword [esp + 0x2c]
add eax, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
xor edx, edx
lea eax, [esp + 0x194]
mov dword [esp + 0x18], eax
sub ecx, dword [esp + 0x40]
mov edi, 0x80
sub edi, dword [esp + edx*4 + 0x54]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], 6
movzx esi, byte [ecx]
imul esi, dword [esp + edx*4 + 0x54]
sub edi, dword [eax - 0x20]
sub edi, dword [eax]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
movzx edx, byte [edx]
imul edx, dword [eax - 0x20]
movzx ecx, byte [ecx]
imul ecx, dword [eax]
mov eax, dword [esp + 0x24]
lea ebp, [eax + 1]
movzx eax, byte [eax]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x28]
sub edi, dword [esp + ebp*4 + 0x74]
imul edi, eax
mov eax, dword [esp + 0x20]
movzx eax, byte [eax]
add edi, esi
imul eax, dword [esp + ebp*4 + 0x74]
mov esi, 0xff
add eax, edi
mov edi, dword [esp + 0x20]
add eax, edx
lea edx, [ecx + 0x40]
add edx, eax
sar edx, 7
mov ecx, edx
movzx eax, dl
shr ecx, 0x1f
dec cl
cmp edx, esi
lea edx, [esp + 0x94]
cmovg eax, esi
mov esi, dword [esp + 0x10]
sub esi, dword [esp + 0x24]
and cl, al
mov eax, ebp
mov byte [ebx], cl
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x34]
add ecx, 4
sub ebp, dword [esp + 0x10]
sub ebx, dword [esp + 0x24]
lea edx, [edx + eax*4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ebx
jmp 0x452225
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov ebx, 0x80
sub ebx, dword [edx - 0x20]
add eax, edi
sub ebx, dword [ecx - 0x20]
sub ebx, dword [ecx]
movzx esi, byte [edi - 1]
imul esi, dword [edx - 0x20]
movzx edx, byte [eax + ebp]
imul edx, dword [ecx - 0x20]
movzx ecx, byte [eax]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
add edx, 0x40
imul ecx, dword [eax]
inc edi
mov eax, dword [esp + 0x14]
sub ebx, dword [eax]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax]
imul ebx, eax
movzx eax, byte [edi]
imul eax, dword [ebp]
add ebx, esi
add eax, ebx
add eax, edx
mov edx, 0xff
add ecx, eax
sar ecx, 7
cmp ecx, edx
movzx eax, cl
cmovg eax, edx
mov edx, dword [esp + 0x4c]
shr ecx, 0x1f
dec cl
and al, cl
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x20], edi
mov byte [ecx + edx], al
mov edx, ebp
mov ecx, dword [esp + 0x1c]
add edx, 0x20
add ecx, 4
mov dword [esp + 0x14], edx
sub dword [esp + 0x38], 1
mov dword [esp + 0x1c], ecx
jne 0x452221
mov eax, dword [esp + 0x28]
mov edi, 0x80
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x24]
sub edi, dword [esp + eax*4 + 0x134]
sub edi, dword [ecx - 4]
sub edi, dword [ecx + 0x1c]
sub edi, dword [esp + eax*4 + 0x154]
movzx edx, byte [edx + 7]
imul edx, dword [ecx - 4]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
movzx esi, byte [ebx + 6]
imul esi, dword [esp + eax*4 + 0x134]
movzx ecx, byte [ecx + 7]
imul ecx, dword [ebp + 0x1c]
movzx eax, byte [ebx + 7]
mov ebp, dword [esp + 0x298]
imul edi, eax
add ecx, 0x40
movzx eax, byte [ebx + ebp + 7]
mov ebx, dword [esp + 0x28]
add edi, esi
imul eax, dword [esp + ebx*4 + 0x154]
mov ebx, dword [esp + 0x30]
add eax, edi
mov edi, dword [esp + 0x10]
add eax, edx
mov edx, 0xff
add ecx, eax
sar ecx, 7
cmp ecx, edx
movzx eax, cl
cmovg eax, edx
mov edx, dword [esp + 0x28]
shr ecx, 0x1f
dec cl
and al, cl
mov ecx, edi
mov byte [ebx + 7], al
add ebx, dword [esp + 0x2c]
cmp edx, 6
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
cmovl eax, dword [esp + 0x50]
add dword [esp + 0x18], 0x20
neg eax
and eax, dword [esp + 0x2c]
mov dword [esp + 0x24], edi
add edi, eax
inc edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], edx
cmp edx, 8
jl 0x45215a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x284
ret