Function at 0x424ff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ecx + 0x50]
push ebx
xor ebx, ebx
shl eax, 5
mov dword [ebp - 8], ecx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push esi
mov esi, edx
test eax, eax
je 0x4252a3
mov eax, dword [ecx + 0x54]
test byte [eax], 1
je 0x4252a3
mov ecx, dword [esi + 4]
mov eax, ecx
shl eax, 5
test eax, eax
je 0x42504b
mov eax, dword [esi + 8]
mov eax, dword [eax]
and eax, 1
mov edx, dword [ebp + 0x14]
xor al, 1
push edi
mov byte [edx], al
xor eax, eax
lea eax, [ebp - 0x30]
cmp eax, esi
je 0x4250f2
mov edx, dword [esi + 8]
test edx, edx
je 0x4250f2
lea eax, [ecx - 1]
test eax, eax
je 0x425081
lea ecx, [edx + eax*4]
cmp dword [ecx], ebx
jne 0x425081
sub ecx, 4
sub eax, 1
jne 0x425075
lea edi, [eax + 1]
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
test edi, edi
je 0x4250bf
cmp edi, 0x2710
jbe 0x42509c
mov ebx, 0xfffffff0
jmp 0x4250ea
push 4
push edi
call fcn.0044a732
add esp, 8
test eax, eax
jne 0x4250b0
lea ebx, [eax - 0x10]
jmp 0x4250ea
mov ebx, eax
mov dword [ebp - 0x2c], edi
xor eax, eax
mov dword [ebp - 0x28], ebx
shl edi, 2
jmp 0x4250db
imul eax, edi, 0xfffffffc
lea ecx, [edi*4]
mov dword [ebp - 0xc], ecx
push eax
push 0
push ecx
call fcn.004459f0
mov edi, dword [ebp - 0xc]
add esp, 0xc
push edi
push dword [esi + 8]
push ebx
call fcn.00446970
add esp, 0xc
xor ebx, ebx
test ebx, ebx
jne 0x425254
mov ebx, dword [ebp - 8]
mov eax, dword [esi]
add ebx, 0x4c
mov edi, dword [ebx]
imul eax, edi
test eax, eax
jle 0x425136
mov edx, esi
mov ecx, ebx
call fcn.004155d0
lea ecx, [ebp - 0x24]
test eax, eax
js 0x42511d
push esi
mov edx, ebx
call fcn.00415960
jmp 0x425141
push ebx
mov edx, esi
call fcn.00415960
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x425254
neg edi
jmp 0x42514e
push esi
mov edx, ebx
lea ecx, [ebp - 0x24]
call fcn.00415720
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x425254
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], edi
movzx eax, byte [eax]
push eax
call fcn.00414aa0
mov ebx, eax
add esp, 4
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x425254
mov edi, dword [ebp + 0xc]
lea ecx, [edi + 1]
push ecx
push eax
push dword [ebp + 8]
call fcn.004459f0
xor eax, eax
add esp, 0xc
mov dword [ebp - 8], eax
test edi, edi
je 0x4251f8
movzx ecx, byte [ebp + 0x10]
mov dword [ebp - 0x14], ecx
xor esi, esi
test ecx, ecx
je 0x4251ed
mov edi, dword [ebp - 0x2c]
mov edx, eax
mov ecx, dword [ebp + 8]
shl edi, 5
add ecx, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], ecx
mov bl, byte [ecx]
cmp edi, edx
ja 0x4251b9
xor eax, eax
jmp 0x4251d1
mov edi, dword [ebp - 0x28]
mov eax, edx
shr eax, 5
mov ecx, edx
and ecx, 0x1f
mov eax, dword [edi + eax*4]
mov edi, dword [ebp - 0x10]
shr eax, cl
and eax, 1
add edx, dword [ebp + 0xc]
mov ecx, esi
shl al, cl
inc esi
mov ecx, dword [ebp - 0x14]
or bl, al
cmp esi, ecx
jb 0x4251b1
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 0xc]
mov byte [eax], bl
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, edi
jb 0x425196
mov ebx, dword [ebp - 0xc]
xor al, al
mov esi, 1
mov byte [ebp - 1], al
cmp edi, esi
jb 0x425254
mov ecx, dword [ebp + 8]
nop dword [eax]
mov bl, byte [ecx + esi]
mov bh, 1
mov dl, byte [ecx + esi - 1]
mov dh, bl
mov edi, dword [ebp + 8]
xor dh, al
and bl, byte [ebp - 1]
mov al, dh
and al, 1
movzx ecx, dl
sub bh, al
movzx eax, bh
imul ecx, eax
shl bh, 7
or bh, dl
mov al, cl
xor cl, dh
mov byte [edi + esi], cl
and al, dh
mov ecx, edi
or al, bl
mov byte [ebp - 1], al
mov byte [ecx + esi - 1], bh
inc esi
cmp esi, dword [ebp + 0xc]
jbe 0x425210
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
pop edi
test ecx, ecx
je 0x425278
mov eax, dword [ebp - 0x20]
shl eax, 2
push eax
mov eax, dword [fcn.004459f0]
push 0
push ecx
call eax
push dword [ebp - 0x1c]
call fcn.0044a73d
add esp, 0x10
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x42529b
mov eax, dword [ebp - 0x2c]
shl eax, 2
push eax
mov eax, dword [fcn.004459f0]
push 0
push ecx
call eax
push dword [ebp - 0x28]
call fcn.0044a73d
add esp, 0x10
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0xffffb080
pop ebx
mov esp, ebp
pop ebp
ret