Function at 0x4bbdb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
movzx eax, word [ecx + 0x7a]
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x18], edi
cmp eax, 8
je 0x4bbf7d
cmp eax, 0x10
jne 0x4bc0fc
movzx eax, word [ecx + 0x6e]
mov ebx, dword [esp + 0x28]
shr ebx, 1
cmp ax, 1
jne 0x4bbe78
lea esi, [ebx - 1]
xor eax, eax
cmp esi, 2
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], esi
jl 0x4bbe47
mov ecx, dword [esp + 0x24]
add esi, 0xfffffffe
shr esi, 1
add ecx, 2
inc esi
lea eax, [esi + esi]
mov dword [esp + 0x18], eax
nop
movsx ebx, word [ecx]
movsx eax, word [ecx - 2]
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
movsx edx, word [ecx + 2]
sar eax, 3
add ebp, eax
mov eax, ebx
sub eax, edx
cdq
xor eax, edx
sub eax, edx
sar eax, 3
add dword [esp + 0x28], eax
add ecx, 4
sub esi, 1
jne 0x4bbe10
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp eax, esi
jae 0x4bbe64
mov ecx, dword [esp + 0x24]
movsx edx, word [ecx + eax*2 + 2]
movsx eax, word [ecx + eax*2]
sub eax, edx
cdq
mov edi, eax
xor edi, edx
sub edi, edx
sar edi, 3
mov eax, dword [esp + 0x28]
add ebp, eax
add edi, ebp
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
cmp ax, 2
jne 0x4bc0fc
add ebx, 0xfffffffd
xor esi, esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], ebx
cmp ebx, ebp
jbe 0x4bc0fc
mov ecx, dword [esp + 0x24]
lea eax, [ebx + 1]
cdq
sub eax, edx
sar eax, 1
cmp eax, 2
jl 0x4bbf34
add ebx, 0xfffffffd
shr ebx, 2
add ecx, 6
inc ebx
lea edx, [ebx*4]
mov dword [esp + 0x1c], edx
movsx edi, word [ecx - 2]
movsx eax, word [ecx - 6]
movsx esi, word [ecx]
sub eax, edi
cdq
mov ebp, eax
movsx eax, word [ecx - 4]
xor ebp, edx
sub eax, esi
sub ebp, edx
cdq
xor eax, edx
sub eax, edx
movsx edx, word [ecx + 2]
sar eax, 3
sar ebp, 3
add ebp, eax
mov eax, edi
sub eax, edx
cdq
mov edi, eax
xor edi, edx
sub edi, edx
movsx edx, word [ecx + 4]
mov eax, esi
sub eax, edx
cdq
xor eax, edx
sub eax, edx
sar edi, 3
sar eax, 3
add edi, eax
sar ebp, 1
add dword [esp + 0x10], ebp
sar edi, 1
add dword [esp + 0x28], edi
add ecx, 8
sub ebx, 1
jne 0x4bbec5
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
cmp esi, ebx
jae 0x4bbf65
movsx edx, word [ecx + esi*2 + 6]
movsx eax, word [ecx + esi*2 + 2]
sub eax, edx
cdq
mov edi, eax
movsx eax, word [ecx + esi*2]
xor edi, edx
sub edi, edx
movsx edx, word [ecx + esi*2 + 4]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
sar edi, 3
sar eax, 3
add edi, eax
sar edi, 1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
add eax, ecx
add edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
movzx eax, word [ecx + 0x6e]
cmp ax, 1
jne 0x4bc00a
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
dec eax
xor ecx, ecx
cmp eax, 2
mov dword [esp + 0x10], ebp
mov dword [esp + 0x28], eax
jl 0x4bbfdd
movzx ebx, byte [esi + ecx + 1]
movzx eax, byte [esi + ecx]
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
movzx edx, byte [esi + ecx + 2]
sar eax, 3
add ebp, eax
mov eax, ebx
sub eax, edx
cdq
xor eax, edx
sub eax, edx
sar eax, 3
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
add ecx, 2
dec eax
cmp ecx, eax
jb 0x4bbfa3
mov eax, dword [esp + 0x28]
cmp ecx, eax
jae 0x4bbff6
movzx edx, byte [ecx + esi + 1]
movzx eax, byte [ecx + esi]
sub eax, edx
cdq
mov edi, eax
xor edi, edx
sub edi, edx
sar edi, 3
mov eax, dword [esp + 0x10]
add eax, ebp
add edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
cmp ax, 2
jne 0x4bc0fc
mov ebx, dword [esp + 0x28]
add ebx, 0xfffffffd
xor ecx, ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x28], ebx
cmp ebx, ebp
jbe 0x4bc0fc
mov esi, dword [esp + 0x24]
lea eax, [ebx + 1]
cdq
sub eax, edx
sar eax, 1
cmp eax, 2
jl 0x4bc0bf
jmp 0x4bc050
movzx ebx, byte [ecx + esi + 2]
movzx eax, byte [ecx + esi]
movzx edi, byte [ecx + esi + 3]
sub eax, ebx
cdq
mov ebp, eax
movzx eax, byte [ecx + esi + 1]
sub eax, edi
xor ebp, edx
sub ebp, edx
cdq
xor eax, edx
sub eax, edx
movzx edx, byte [ecx + esi + 4]
sar eax, 3
sar ebp, 3
add ebp, eax
mov eax, ebx
sub eax, edx
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
movzx edx, byte [ecx + esi + 5]
mov eax, edi
sub eax, edx
cdq
xor eax, edx
sub eax, edx
sar ebx, 3
sar eax, 3
add ebx, eax
sar ebx, 1
add dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x28]
sar ebp, 1
add dword [esp + 0x14], ebp
add ecx, 4
lea eax, [ebx - 2]
cmp ecx, eax
jb 0x4bc050
mov edi, dword [esp + 0x18]
cmp ecx, ebx
jae 0x4bc0f0
movzx edx, byte [ecx + esi + 3]
movzx eax, byte [ecx + esi + 1]
sub eax, edx
cdq
mov edi, eax
movzx eax, byte [ecx + esi]
xor edi, edx
sub edi, edx
movzx edx, byte [ecx + esi + 2]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
sar edi, 3
sar eax, 3
add edi, eax
sar edi, 1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, ecx
add edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8