Function at 0x4b2690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
sub esp, 0x14
mov edx, dword [eax + 4]
push ebx
mov ebx, dword [eax + 8]
push esi
mov esi, dword [eax]
push edi
mov dword [eax + 0x83a0], 0
movzx ecx, byte [esi + ebx]
movzx edi, byte [esi + ebx + 1]
shl ecx, 8
or edi, ecx
movzx ecx, byte [esi + ebx + 2]
shl edi, 8
mov ebx, 8
or edi, ecx
mov ecx, ebx
sub ecx, edx
shr edi, cl
and edi, 0xffff
cmp dword [eax + 0x83a8], 2
jne 0x4b2707
inc edx
mov ecx, edx
and edx, 7
sar ecx, 3
add ecx, esi
mov dword [eax + 4], edx
mov dword [eax], ecx
cmp edi, 0x8000
jae 0x4b27c6
add edi, edi
mov dword [eax + 0x83a8], 0
mov ecx, dword [eax + 0x839c]
xor esi, esi
add ecx, 3
shr edi, 8
cmp dword [eax + 0x8390], 0x25
mov edx, 0xff
mov dword [0x7e89ec], ecx
mov dword [0x7e89a4], ecx
jae 0x4b2767
mov ecx, dword [0x7e89a0]
sar edx, cl
not edx
test edi, edx
je 0x4b275e
lea ecx, [ecx]
mov ecx, dword [esi*4 + 0x7e89a4]
inc esi
mov edx, 0xff
sar edx, cl
not edx
mov ecx, dword [esi*4 + 0x78b8d0]
xor ecx, edi
test ecx, edx
jne 0x4b2740
mov edx, dword [esi*4 + 0x7e89a0]
jmp 0x4b27a5
mov ecx, dword [0x7e89e0]
sar edx, cl
not edx
test edi, edx
je 0x4b279e
jmp 0x4b2780
mov ecx, dword [esi*4 + 0x7e89e4]
inc esi
mov edx, 0xff
sar edx, cl
not edx
mov ecx, dword [esi*4 + 0x78b860]
xor ecx, edi
test ecx, edx
jne 0x4b2780
mov edx, dword [esi*4 + 0x7e89e0]
add edx, dword [eax + 4]
mov ecx, edx
and edx, 7
sar ecx, 3
add dword [eax], ecx
mov dword [eax + 4], edx
cmp esi, 9
jb 0x4b29c7
jne 0x4b27e0
inc dword [eax + 0x83a8]
push dword [eax + 0x55ac]
mov ecx, eax
push dword [eax + 0x55a8]
call fcn.004b35e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax + 0x83a8], 0
cmp esi, 0xe
jne 0x4b28d3
mov edx, dword [eax + 8]
lea edi, [esi - 0xb]
add edx, dword [eax]
movzx ecx, byte [edx]
movzx esi, byte [edx + 1]
shl ecx, 8
or esi, ecx
movzx ecx, byte [edx + 2]
shl esi, 8
xor edx, edx
or esi, ecx
mov ecx, ebx
mov ebx, dword [eax + 4]
sub ecx, ebx
shr esi, cl
and esi, 0xfff0
cmp dword [0x7e8010], esi
ja 0x4b283b
lea esp, [esp]
inc edx
inc edi
cmp dword [edx*4 + 0x7e8010], esi
jbe 0x4b2830
add ebx, edi
mov ecx, ebx
and ebx, 7
sar ecx, 3
add dword [eax], ecx
mov dword [eax + 4], ebx
test edx, edx
je 0x4b2857
mov ecx, dword [edx*4 + 0x7e800c]
jmp 0x4b2859
xor ecx, ecx
mov edx, dword [eax]
sub esi, ecx
mov ecx, 0x10
sub ecx, edi
mov edi, dword [edi*4 + 0x7e7f58]
shr esi, cl
mov ecx, dword [eax + 8]
add esi, 5
add edi, esi
push edi
movzx esi, byte [ecx + edx + 1]
movzx ecx, byte [ecx + edx]
shl ecx, 8
or esi, ecx
mov ecx, dword [eax + 8]
shl esi, 8
movzx ecx, byte [ecx + edx + 2]
lea edx, [ebx + 0xf]
or esi, ecx
mov dword [eax + 0x55ac], edi
mov ecx, 8
sub ecx, ebx
shr esi, cl
mov ecx, edx
and esi, 0xfffe
sar ecx, 3
add dword [eax], ecx
or esi, 0x10000
shr esi, 1
and edx, 7
push esi
mov ecx, eax
mov dword [eax + 4], edx
mov dword [eax + 0x55a8], esi
call fcn.004b35e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x55a4]
mov edx, 2
mov edi, dword [eax + 8]
sub ecx, esi
mov ebx, dword [eax + 4]
inc ecx
and ecx, 3
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edx
mov ecx, dword [eax + ecx*4 + 0x5594]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
movzx ebx, byte [ecx + edi + 1]
movzx ecx, byte [ecx + edi]
shl ecx, 8
or ebx, ecx
mov ecx, dword [eax]
shl ebx, 8
movzx ecx, byte [ecx + edi + 2]
xor edi, edi
or ebx, ecx
mov ecx, 8
sub ecx, dword [ebp - 8]
shr ebx, cl
and ebx, 0xfff0
cmp dword [0x7e80c0], ebx
ja 0x4b293e
inc edi
inc edx
cmp dword [edi*4 + 0x7e80c0], ebx
jbe 0x4b2930
mov dword [ebp - 4], edx
add edx, dword [eax + 4]
mov ecx, edx
and edx, 7
sar ecx, 3
add dword [eax], ecx
mov dword [eax + 4], edx
test edi, edi
je 0x4b295b
mov ecx, dword [edi*4 + 0x7e80bc]
jmp 0x4b295d
xor ecx, ecx
mov edx, dword [ebp - 4]
sub ebx, ecx
mov ecx, 0x10
sub ecx, edx
shr ebx, cl
mov edx, dword [edx*4 + 0x7e80ec]
add edx, 2
add edx, ebx
cmp edx, 0x101
jne 0x4b2992
cmp esi, 0xa
jne 0x4b2992
xor dword [eax + 0x839c], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x10]
cmp ebx, 0x100
jbe 0x4b299e
inc edx
cmp ebx, dword [eax + 0x83b8]
jb 0x4b29a7
inc edx
mov ecx, dword [eax + 0x55a4]
push edx
push ebx
mov dword [eax + ecx*4 + 0x5594], ebx
mov dword [eax + 0x55ac], edx
mov dword [eax + 0x55a8], ebx
jmp 0x4b2ac6
mov edx, dword [eax + 0x8390]
add edx, esi
mov dword [eax + 0x83a8], 0
mov ecx, edx
mov dword [ebp - 4], 5
shr ecx, 4
sub edx, ecx
mov ecx, dword [eax]
mov dword [eax + 0x8390], edx
mov edx, dword [eax + 8]
movzx edi, byte [ecx + edx + 1]
movzx edx, byte [ecx + edx]
shl edx, 8
or edi, edx
mov edx, dword [eax + 8]
shl edi, 8
movzx edx, byte [ecx + edx + 2]
or edi, edx
mov edx, dword [eax + 4]
sub ebx, edx
mov ecx, ebx
xor ebx, ebx
shr edi, cl
and edi, 0xfff0
lea ecx, [ebx + 5]
cmp dword [0x7e80a0], edi
ja 0x4b2a3e
lea esp, [esp]
inc ebx
inc ecx
cmp dword [ebx*4 + 0x7e80a0], edi
jbe 0x4b2a30
mov dword [ebp - 4], ecx
add edx, ecx
mov ecx, edx
and edx, 7
sar ecx, 3
add dword [eax], ecx
mov dword [eax + 4], edx
test ebx, ebx
je 0x4b2a5a
mov ecx, dword [ebx*4 + 0x7e809c]
jmp 0x4b2a5c
xor ecx, ecx
mov edx, dword [ebp - 4]
sub edi, ecx
mov ecx, 0x10
sub ecx, edx
shr edi, cl
add edi, dword [edx*4 + 0x7e806c]
and edi, 0xff
mov edx, dword [eax + edi*4 + 0x5b84]
dec edi
cmp edi, 0xffffffff
je 0x4b2aa7
dec dword [eax + edx*4 + 0x6b84]
mov ecx, dword [eax + edi*4 + 0x5b84]
inc dword [eax + ecx*4 + 0x6b84]
mov dword [eax + edi*4 + 0x5b88], ecx
mov dword [eax + edi*4 + 0x5b84], edx
mov ecx, dword [eax + 0x55a4]
add esi, 2
inc edx
push esi
push edx
mov dword [eax + ecx*4 + 0x5594], edx
mov dword [eax + 0x55ac], esi
mov dword [eax + 0x55a8], edx
mov ecx, dword [eax + 0x55a4]
inc ecx
and ecx, 3
mov dword [eax + 0x55a4], ecx
mov ecx, eax
call fcn.004b35e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret