Function at 0x4bc961
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4dd52c]
mov edx, dword [ebp + 0x18]
push esi
push edi
mov dword [ebp - 4], eax
push 9
xor eax, eax
mov byte [ebp - 0x2c], 0
pop ecx
lea edi, [ebp - 0x2b]
rep stosd dword es:[edi], eax
xor esi, esi
cmp edx, esi
stosw word es:[edi], ax
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x214], esi
stosb byte es:[edi], al
je 0x4bcc14
cmp dword [ebp + 0xc], esi
je 0x4bcc14
cmp dword [ebp + 0x10], esi
je 0x4bcc14
push dword [ebp + 8]
push dword [0x4e1eac]
call fcn.004bdee5
test eax, eax
jne 0x4bc9ce
mov eax, 0xb3
jmp 0x4bcc19
mov eax, dword [ebp + 0x14]
cmp eax, 0xc0
je 0x4bc9ee
cmp eax, 0xe0
je 0x4bc9ee
cmp eax, 0xf0
je 0x4bc9ee
push 0xb
pop esi
jmp 0x4bcc05
push ebx
push eax
call fcn.004be82c
push 2
push dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
shr ebx, 3
call fcn.004be424
mov esi, eax
test esi, esi
jne 0x4bcc04
push 1
push dword [ebp + 0x10]
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.004be424
mov esi, eax
test esi, esi
jne 0x4bcc04
push 0x430
call fcn.004bed92
test eax, eax
mov dword [ebp - 0x214], eax
jne 0x4bca4d
push 5
pop esi
test esi, esi
jne 0x4bcc04
mov eax, dword [0x4df488]
xor ecx, ecx
test eax, eax
jbe 0x4bca72
cmp dword [ecx*8 + 0x4df478], 0x2c5
je 0x4bca72
inc ecx
cmp ecx, eax
jb 0x4bca60
cmp ecx, eax
jne 0x4bca80
mov esi, 0x1a0
jmp 0x4bcc04
mov eax, dword [ecx*8 + 0x4df47c]
push 0x15
push dword [eax + 0x18]
push 0x14
pop esi
push esi
push dword [eax + 0x14]
push esi
push dword [eax + 0x10]
push esi
push dword [eax + 0xc]
push esi
push dword [eax + 8]
push esi
push dword [eax + 4]
mov eax, dword [ebp - 0x214]
push 0xa0
push eax
call dword [eax + 0x78]
test eax, eax
jne 0x4bcc01
push esi
call dword [sym.imp.msvcrt.dll_malloc]
mov edx, eax
test edx, edx
pop ecx
mov dword [ebp - 0x210], edx
je 0x4bcc01
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xc4]
mov eax, ecx
shr ecx, 2
lea esi, [ebp - 0xc0]
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x78]
mov eax, ecx
shr ecx, 2
push 0x14
lea esi, [ebp - 0x74]
lea edi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x214]
and ecx, 3
push 2
rep movsb byte es:[edi], byte [esi]
call fcn.004bf67b
test eax, eax
jne 0x4bcbef
push ebx
call dword [sym.imp.msvcrt.dll_malloc]
mov edx, eax
test edx, edx
pop ecx
mov dword [ebp - 0x21c], edx
je 0x4bcbef
mov ecx, ebx
mov esi, ecx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
cmp ebx, 0x14
rep stosb byte es:[edi], al
ja 0x4bcba2
mov esi, dword [ebp - 0x210]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x218]
push ebx
push edx
push 0x10000
push dword [ebp + 8]
call fcn.004be619
mov edx, dword [ebp - 0x21c]
mov esi, eax
push edx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x4bcbf2
cmp ebx, 0x24
jae 0x4bcbea
mov esi, dword [ebp - 0x210]
push 5
pop ecx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx - 0x14]
xor esi, esi
test edi, edi
jbe 0x4bcb7b
mov eax, dword [ebp - 0x210]
sub eax, 0x4df48c
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
lea eax, [esi + 0x4df48c]
mov cl, byte [ecx + eax]
xor cl, byte [eax]
inc esi
cmp esi, edi
mov byte [edx + esi + 0x13], cl
jb 0x4bcbce
jmp 0x4bcb7b
push 0xb
pop esi
jmp 0x4bcb98
push 5
pop esi
push dword [ebp - 0x210]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x4bcc04
push 5
pop esi
pop ebx
push dword [ebp - 0x214]
call fcn.004bf2ca
mov eax, esi
jmp 0x4bcc19
mov eax, 0x1a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.004a9585
leave
ret 0x14