Function at 0x10025970
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 0x10025c23
mov eax, dword [ecx + 0x54]
test byte [eax], 1
je 0x10025c23
mov ecx, dword [esi + 4]
mov eax, ecx
shl eax, 5
test eax, eax
je 0x100259cb
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 0x10025a72
mov edx, dword [esi + 8]
test edx, edx
je 0x10025a72
lea eax, [ecx - 1]
test eax, eax
je 0x10025a01
lea ecx, [edx + eax*4]
cmp dword [ecx], ebx
jne 0x10025a01
sub ecx, 4
sub eax, 1
jne 0x100259f5
lea edi, [eax + 1]
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
test edi, edi
je 0x10025a3f
cmp edi, 0x2710
jbe 0x10025a1c
mov ebx, 0xfffffff0
jmp 0x10025a6a
push 4
push edi
call fcn.1004b0e2
add esp, 8
test eax, eax
jne 0x10025a30
lea ebx, [eax - 0x10]
jmp 0x10025a6a
mov ebx, eax
mov dword [ebp - 0x2c], edi
xor eax, eax
mov dword [ebp - 0x28], ebx
shl edi, 2
jmp 0x10025a5b
imul eax, edi, 0xfffffffc
lea ecx, [edi*4]
mov dword [ebp - 0xc], ecx
push eax
push 0
push ecx
call fcn.10046690
mov edi, dword [ebp - 0xc]
add esp, 0xc
push edi
push dword [esi + 8]
push ebx
call fcn.10047450
add esp, 0xc
xor ebx, ebx
test ebx, ebx
jne 0x10025bd4
mov ebx, dword [ebp - 8]
mov eax, dword [esi]
add ebx, 0x4c
mov edi, dword [ebx]
imul eax, edi
test eax, eax
jle 0x10025ab6
mov edx, esi
mov ecx, ebx
call fcn.10015f70
lea ecx, [ebp - 0x24]
test eax, eax
js 0x10025a9d
push esi
mov edx, ebx
call fcn.10016300
jmp 0x10025ac1
push ebx
mov edx, esi
call fcn.10016300
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10025bd4
neg edi
jmp 0x10025ace
push esi
mov edx, ebx
lea ecx, [ebp - 0x24]
call fcn.100160c0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10025bd4
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.10015440
mov ebx, eax
add esp, 4
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x10025bd4
mov edi, dword [ebp + 0xc]
lea ecx, [edi + 1]
push ecx
push eax
push dword [ebp + 8]
call fcn.10046690
xor eax, eax
add esp, 0xc
mov dword [ebp - 8], eax
test edi, edi
je 0x10025b78
movzx ecx, byte [ebp + 0x10]
mov dword [ebp - 0x14], ecx
xor esi, esi
test ecx, ecx
je 0x10025b6d
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 0x10025b39
xor eax, eax
jmp 0x10025b51
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 0x10025b31
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 0x10025b16
mov ebx, dword [ebp - 0xc]
xor al, al
mov esi, 1
mov byte [ebp - 1], al
cmp edi, esi
jb 0x10025bd4
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 0x10025b90
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
pop edi
test ecx, ecx
je 0x10025bf8
mov eax, dword [ebp - 0x20]
shl eax, 2
push eax
mov eax, dword [fcn.10046690]
push 0
push ecx
call eax
push dword [ebp - 0x1c]
call fcn.1004b0ed
add esp, 0x10
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x10025c1b
mov eax, dword [ebp - 0x2c]
shl eax, 2
push eax
mov eax, dword [fcn.10046690]
push 0
push ecx
call eax
push dword [ebp - 0x28]
call fcn.1004b0ed
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