Function at 0x4bc55d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
test ecx, ecx
je 0x4bc57b
mov byte [ecx], dl
test edi, edi
je 0x4bc7ab
mov edi, dword [edi + 0x7c]
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4bc7ab
cmp dword [edi], edx
jne 0x4bc59c
push 0xffffffffffffff9c
jmp 0x4bc7ad
mov eax, dword [ebp + 8]
test eax, eax
je 0x4bc7ae
mov ecx, dword [edi + 0x5c]
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], eax
cmp eax, ecx
jbe 0x4bc5b9
mov dword [edi + 0x14], ecx
mov eax, ecx
test eax, eax
je 0x4bc78b
mov ebx, dword [edi + 8]
test ebx, ebx
jne 0x4bc673
mov eax, dword [edi + 0x58]
test eax, eax
je 0x4bc673
mov edx, dword [edi + 0x68]
mov esi, 0x4000
mov ecx, dword [edi + 0x60]
cmp eax, esi
push ebx
cmovb esi, eax
add edx, dword [edi + 0x3c]
call fcn.004bba41
pop ecx
test eax, eax
jne 0x4bc78f
push dword [edi + 0x60]
mov ecx, dword [edi]
mov edx, esi
push 1
call fcn.004bbaac
pop ecx
pop ecx
cmp eax, 1
jne 0x4bc78f
add dword [edi + 0x3c], esi
mov ebx, esi
sub dword [edi + 0x58], esi
cmp byte [edi + 0x6c], 0
mov ecx, dword [edi]
mov dword [ebp - 0x1c], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], esi
je 0x4bc673
and dword [ebp - 0x18], 0
test esi, esi
je 0x4bc673
lea eax, [edi + 0x70]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 8]
and eax, 0xfffd
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
shr ebx, 8
xor bl, byte [edi + ecx]
mov ecx, dword [ebp - 0x14]
mov dl, bl
call fcn.004bb314
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov byte [edi + ecx], bl
inc edi
cmp edi, esi
jb 0x4bc63c
mov edi, dword [ebp - 0x10]
mov ebx, dword [edi + 8]
mov edx, dword [edi + 0x7c]
mov ecx, ebx
cmp edx, ebx
cmovbe ecx, edx
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x4bc6b3
mov eax, dword [edi + 4]
add eax, ecx
mov cl, byte [eax - 1]
mov byte [ebp - 1], cl
mov ecx, dword [ebp - 0x1c]
sub ebx, ecx
sub dword [edi + 0x5c], ecx
sub edx, ecx
mov dword [edi + 8], ebx
mov dword [edi + 4], eax
mov dword [edi + 0x7c], edx
jne 0x4bc6b3
mov al, byte [ebp - 1]
cmp al, byte [edi + 0x80]
jne 0x4bc794
cmp dword [edi + 0x64], 0
jne 0x4bc732
mov eax, dword [edi + 0x14]
cmp eax, ebx
mov edx, eax
mov dword [ebp - 0x14], eax
cmovae edx, ebx
xor esi, esi
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x4bc6e9
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x10]
mov al, byte [esi + eax]
mov byte [esi + ecx], al
inc esi
cmp esi, edx
jb 0x4bc6cf
mov eax, dword [edi + 0x14]
mov ebx, dword [edi + 8]
mov dword [ebp - 0x14], eax
mov esi, dword [edi + 0x10]
mov ecx, dword [edi + 0x50]
push edx
mov edx, esi
call fcn.004bb22a
mov edx, dword [ebp - 8]
mov dword [edi + 0x50], eax
mov eax, dword [ebp - 0x14]
pop ecx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sub dword [edi + 0x5c], ecx
sub ebx, ecx
add dword [edi + 4], ecx
add dword [edi + 0x18], ecx
add dword [ebp - 0xc], ecx
cmp dword [edi + 0x5c], 0
mov dword [edi + 0x14], eax
lea eax, [esi + ecx]
mov dword [edi + 8], ebx
mov dword [edi + 0x10], eax
jne 0x4bc77d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4bc77d
mov byte [ecx], 1
jmp 0x4bc77d
mov ebx, dword [ebp - 0x10]
mov esi, dword [edi + 0x18]
mov edi, dword [edi + 0x10]
lea ecx, [ebx + 4]
call fcn.004bb5bc
mov ebx, dword [ebx + 0x18]
mov edx, edi
mov edi, dword [ebp - 0x10]
sub ebx, esi
push ebx
mov dword [ebp - 8], eax
mov ecx, dword [edi + 0x50]
call fcn.004bb22a
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
add esi, ebx
mov dword [edi + 0x50], eax
mov eax, dword [edi + 0x5c]
sub eax, ebx
mov dword [ebp - 0xc], esi
mov dword [edi + 0x5c], eax
pop ecx
cmp edx, 1
je 0x4bc798
test eax, eax
je 0x4bc798
test edx, edx
jne 0x4bc78b
cmp dword [edi + 0x14], 0
ja 0x4bc5c1
test edx, edx
je 0x4bc7a6
mov eax, edx
jmp 0x4bc7ae
or eax, 0xffffffff
jmp 0x4bc7ae
push 0xffffffffffffff96
jmp 0x4bc7ad
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4bc7a2
mov byte [ecx], 1
mov eax, esi
jmp 0x4bc7ae
mov edx, dword [ebp - 0xc]
jmp 0x4bc78b
push 0xffffffffffffff9a
pop eax
pop edi
pop esi
pop ebx
leave
ret