Function at 0x4bc010
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x14], eax
jae 0x4bc033
mov ecx, dword [esp + 0x10]
push 0xffffe003
mov dword [ecx], eax
call fcn.004207c0
add esp, 4
or eax, 0xffffffff
pop ecx
ret
mov edx, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x18]
mov dword [edx], 0
mov ebp, dword [edi + 0x40]
cmp ebp, esi
je 0x4bc09c
mov ecx, esi
sub ecx, ebp
cmp ecx, eax
jb 0x4bc05a
mov ecx, eax
xor eax, eax
lea ebp, [edi + ebp + 0x18]
test ecx, ecx
jbe 0x4bc07b
mov edx, dword [esp + 0x28]
mov dl, byte [eax + edx]
xor dl, byte [ebp]
mov ebx, dword [esp + 0x1c]
mov byte [eax + ebx], dl
inc eax
inc ebp
cmp eax, ecx
jb 0x4bc064
mov eax, dword [esp + 0x20]
add dword [edi + 0x40], ecx
add dword [eax], ecx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x1c], ecx
add dword [esp + 0x28], ecx
sub eax, ecx
mov dword [esp + 0x2c], eax
je 0x4bc2a0
cmp eax, esi
jb 0x4bc1a6
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push esi
push esi
lea eax, [edi + 8]
push eax
push esi
lea eax, [esp + 0x34]
push eax
lea eax, [edi + 0x18]
push eax
push ecx
call edx
mov ecx, dword [edi + 0x3c]
add esp, 0x1c
lea edx, [edi + esi + 7]
cmp ecx, 8
jb 0x4bc0e1
jmp 0x4bc0d0
inc byte [edx]
mov bl, byte [edx]
dec edx
test bl, bl
jne 0x4bc0f9
sub ecx, 8
cmp ecx, 8
jae 0x4bc0d0
test ecx, ecx
je 0x4bc0f9
mov bl, 1
shl bl, cl
dec bl
mov cl, bl
not cl
or cl, bl
mov bl, byte [edx]
inc bl
and cl, bl
mov byte [edx], cl
cmp dword [edi + 0x38], 0
je 0x4bc15a
mov ecx, esi
lea edx, [edi + 0x28]
lea ebp, [edi + 8]
cmp esi, 4
jb 0x4bc125
lea esp, [esp]
mov ebx, dword [ebp]
cmp ebx, dword [edx]
jne 0x4bc15a
sub ecx, 4
add edx, 4
add ebp, 4
cmp ecx, 4
jae 0x4bc110
test ecx, ecx
je 0x4bc258
mov bl, byte [edx]
cmp bl, byte [ebp]
jne 0x4bc15a
cmp ecx, 1
jbe 0x4bc258
mov bl, byte [edx + 1]
cmp bl, byte [ebp + 1]
jne 0x4bc15a
cmp ecx, 2
jbe 0x4bc258
mov dl, byte [edx + 2]
cmp dl, byte [ebp + 2]
je 0x4bc258
test eax, eax
jne 0x4bc265
test esi, esi
jbe 0x4bc186
lea ecx, [edi + 0x18]
lea esp, [esp]
mov edx, dword [esp + 0x28]
mov dl, byte [eax + edx]
xor dl, byte [ecx]
mov ebx, dword [esp + 0x1c]
mov byte [eax + ebx], dl
inc eax
inc ecx
cmp eax, esi
jb 0x4bc170
mov eax, dword [esp + 0x20]
add dword [eax], esi
mov eax, dword [esp + 0x2c]
add dword [esp + 0x1c], esi
add dword [esp + 0x28], esi
sub eax, esi
mov dword [esp + 0x2c], eax
cmp eax, esi
jae 0x4bc0a4
test eax, eax
je 0x4bc2a0
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push esi
push esi
lea ebp, [edi + 8]
push ebp
push esi
lea eax, [esp + 0x34]
push eax
lea ebx, [edi + 0x18]
push ebx
push ecx
call edx
mov ecx, dword [edi + 0x3c]
add esp, 0x1c
mov dword [esp + 0x10], eax
lea edx, [edi + esi + 7]
cmp ecx, 8
jb 0x4bc1f1
lea esp, [esp]
inc byte [edx]
mov al, byte [edx]
dec edx
test al, al
jne 0x4bc209
sub ecx, 8
cmp ecx, 8
jae 0x4bc1e0
test ecx, ecx
je 0x4bc209
mov al, 1
shl al, cl
dec al
mov cl, al
not cl
or cl, al
mov al, byte [edx]
inc al
and cl, al
mov byte [edx], cl
cmp dword [edi + 0x38], 0
je 0x4bc26e
lea eax, [edi + 0x28]
mov ecx, ebp
cmp esi, 4
jb 0x4bc234
lea esp, [esp]
mov edx, dword [ecx]
cmp edx, dword [eax]
jne 0x4bc26e
sub esi, 4
add eax, 4
add ecx, 4
cmp esi, 4
jae 0x4bc220
test esi, esi
je 0x4bc258
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4bc26e
cmp esi, 1
jbe 0x4bc258
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4bc26e
cmp esi, 2
jbe 0x4bc258
mov al, byte [eax + 2]
cmp al, byte [ecx + 2]
jne 0x4bc26e
push 0xffffe005
call fcn.004207c0
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
cmp dword [esp + 0x10], 0
jne 0x4bc265
mov esi, dword [esp + 0x2c]
xor eax, eax
test esi, esi
jbe 0x4bc297
mov ecx, ebx
mov edx, dword [esp + 0x28]
mov dl, byte [eax + edx]
xor dl, byte [ecx]
mov ebx, dword [esp + 0x1c]
mov byte [eax + ebx], dl
inc eax
inc ecx
cmp eax, esi
jb 0x4bc281
mov eax, dword [esp + 0x20]
mov dword [edi + 0x40], esi
add dword [eax], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret