Function at 0x4bce10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5e4
mov eax, dword [0x5c3040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x5d8], ebx
mov dword [ebp - 0x5c0], eax
cmp edi, 0x100
jbe 0x4bce53
mov eax, dword [esi + 0x400]
mov dword [ebp - 0x5d4], eax
jmp 0x4bce5d
mov dword [ebp - 0x5d4], 0x10
push 0x44
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00526a30
add esp, 0xc
mov ecx, esi
mov edx, edi
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [ebp + eax*4 - 0x50]
sub edx, 1
jne 0x4bce71
cmp dword [ebp - 0x50], edi
jne 0x4bcea1
mov eax, dword [ebp - 0x5c0]
mov dword [ebx], edx
mov dword [eax], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524763
mov esp, ebp
pop ebp
ret
mov ecx, 1
cmp dword [ebp + ecx*4 - 0x50], 0
jne 0x4bceb3
inc ecx
cmp ecx, 0x10
jbe 0x4bcea6
mov edx, dword [ebp - 0x5c0]
mov eax, ecx
mov dword [ebp - 0x5ac], eax
cmp dword [edx], ecx
jae 0x4bcec7
mov dword [edx], ecx
mov eax, 0x10
nop dword [eax]
cmp dword [ebp + eax*4 - 0x50], 0
jne 0x4bcedc
sub eax, 1
jne 0x4bced0
mov dword [ebp - 0x5c4], eax
cmp dword [edx], eax
jbe 0x4bcee8
mov dword [edx], eax
mov edx, 1
shl edx, cl
cmp ecx, eax
jae 0x4bcf00
sub edx, dword [ebp + ecx*4 - 0x50]
js 0x4bcf15
inc ecx
add edx, edx
cmp ecx, eax
jb 0x4bcef3
lea ebx, [eax*4]
mov ecx, edx
sub edx, dword [ebp + ebx - 0x50]
mov dword [ebp - 0x5e4], edx
jns 0x4bcf2b
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524763
mov esp, ebp
pop ebp
ret
xor edx, edx
mov dword [ebp + ebx - 0x50], ecx
mov dword [ebp - 0x94], edx
sub eax, 1
je 0x4bcf53
xor ecx, ecx
nop
add edx, dword [ebp + ecx - 0x4c]
lea ecx, [ecx + 4]
mov dword [ebp + ecx - 0x94], edx
sub eax, 1
jne 0x4bcf40
push 0x480
lea eax, [ebp - 0x5a0]
push 0
push eax
call fcn.00526a30
add esp, 0xc
xor ecx, ecx
nop dword [eax + eax]
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x4bcf8f
mov eax, dword [ebp + edx*4 - 0x98]
mov dword [ebp + eax*4 - 0x5a0], ecx
inc eax
mov dword [ebp + edx*4 - 0x98], eax
inc ecx
cmp ecx, edi
jb 0x4bcf70
mov eax, dword [ebp + ebx - 0x98]
xor edx, edx
mov ecx, dword [ebp - 0x5ac]
or edi, 0xffffffff
mov dword [ebp - 0x5e0], eax
xor ebx, ebx
lea eax, [ebp - 0x5a0]
mov dword [ebp - 0x5a4], 0
xor esi, esi
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x5b8], eax
mov dword [ebp - 0x5bc], edi
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0x5a8], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x5c8], ebx
cmp ecx, dword [ebp - 0x5c4]
jg 0x4bd315
lea eax, [ebp - 0x50]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x5cc], eax
nop word [eax + eax]
mov eax, dword [eax]
test eax, eax
je 0x4bd2f3
nop word [eax + eax]
mov dword [ebp - 0x5d0], eax
dec eax
mov dword [ebp - 0x5dc], eax
mov eax, dword [ebp + edi*4 - 0xdc]
add eax, edx
cmp ecx, eax
jle 0x4bd18e
nop
add edx, dword [ebp + edi*4 - 0xdc]
inc edi
mov ebx, dword [ebp - 0x5c0]
mov eax, dword [ebp - 0x5c4]
sub eax, edx
mov dword [ebp - 0x5a8], edx
mov dword [ebp - 0x5bc], edi
mov esi, dword [ebx]
cmp eax, esi
mov ebx, ecx
cmovbe esi, eax
sub ebx, edx
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp eax, dword [ebp - 0x5d0]
jbe 0x4bd0ad
mov edx, dword [ebp - 0x5cc]
or ecx, 0xffffffff
sub ecx, dword [ebp - 0x5dc]
inc ebx
add eax, ecx
cmp ebx, esi
jae 0x4bd0a7
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
add eax, eax
cmp eax, ecx
jbe 0x4bd0a7
inc ebx
sub eax, ecx
cmp ebx, esi
jb 0x4bd094
mov edx, dword [ebp - 0x5a8]
mov ecx, dword [ebp - 0x5d4]
lea eax, [edx + ebx]
cmp eax, ecx
jbe 0x4bd0c2
cmp edx, ecx
jae 0x4bd0c2
mov ebx, ecx
sub ebx, edx
mov ecx, ebx
mov dword [ebp + edi*4 - 0xdc], ebx
mov eax, 1
shl eax, cl
mov dword [ebp - 0x5c8], eax
lea eax, [eax*8 + 8]
push eax
call fcn.0052c198
add esp, 4
test eax, eax
je 0x4bd353
mov ecx, dword [ebp - 0x5d8]
lea esi, [eax + 8]
add eax, 4
mov dword [ebp + edi*4 - 0x120], esi
mov dword [ebp - 0x5d8], eax
mov dword [ecx], esi
mov dword [eax], 0
test edi, edi
je 0x4bd171
mov eax, dword [ebp - 0x5a4]
mov edx, 1
mov ecx, dword [ebp - 0x5a8]
shl edx, cl
sub ecx, dword [ebp + edi*4 - 0xe0]
dec edx
and edx, dword [ebp - 0x5a4]
mov dword [ebp + edi*4 - 0x98], eax
mov al, byte [ebp + edi*4 - 0xe0]
mov byte [ebp - 0x5b3], al
lea eax, [ebx + 0x20]
shr edx, cl
mov byte [ebp - 0x5b4], al
mov eax, dword [ebp + edi*4 - 0x124]
mov ecx, dword [ebp - 0x5b4]
mov dword [ebp - 0x5b0], esi
mov dword [eax + edx*8], ecx
mov ecx, esi
mov dword [eax + edx*8 + 4], ecx
mov edx, dword [ebp - 0x5a8]
mov ecx, dword [ebp - 0x5ac]
lea eax, [edx + ebx]
cmp ecx, eax
jg 0x4bd040
mov ebx, dword [ebp - 0x5c8]
mov al, cl
sub al, dl
mov byte [ebp - 0x5b3], al
mov eax, dword [ebp - 0x5e0]
lea eax, [ebp + eax*4 - 0x5a0]
cmp dword [ebp - 0x5b8], eax
jb 0x4bd1b6
mov byte [ebp - 0x5b4], 0x63
jmp 0x4bd216
mov eax, dword [ebp - 0x5b8]
mov ecx, dword [eax]
add eax, 4
mov dword [ebp - 0x5b8], eax
mov eax, dword [ebp + 0xc]
cmp ecx, eax
jae 0x4bd1e8
cmp ecx, 0x100
mov word [ebp - 0x5b0], cx
setb al
add al, 0x1f
mov byte [ebp - 0x5b4], al
jmp 0x4bd210
sub ecx, eax
mov eax, dword [ebp + 0x14]
mov al, byte [ecx + eax]
mov byte [ebp - 0x5b4], al
mov eax, dword [ebp + 0x10]
mov ax, word [eax + ecx*2]
mov word [ebp - 0x5b0], ax
mov eax, dword [ebp - 0x5b8]
mov dword [ebp - 0x5b8], eax
mov ecx, dword [ebp - 0x5ac]
sub ecx, edx
mov eax, 1
shl eax, cl
mov ecx, edx
mov dword [ebp - 0x5d0], eax
mov eax, dword [ebp - 0x5a4]
shr eax, cl
cmp eax, ebx
jae 0x4bd25e
mov edx, dword [ebp - 0x5b4]
mov ecx, dword [ebp - 0x5d0]
mov edi, dword [ebp - 0x5b0]
mov dword [esi + eax*8], edx
mov dword [esi + eax*8 + 4], edi
add eax, ecx
cmp eax, ebx
jb 0x4bd245
mov edx, dword [ebp - 0x5a8]
mov edi, dword [ebp - 0x5bc]
mov ecx, dword [ebp - 0x5ac]
mov eax, 1
lea ecx, [ecx - 1]
shl eax, cl
mov ecx, dword [ebp - 0x5a4]
test ecx, eax
je 0x4bd280
xor ecx, eax
shr eax, 1
test ecx, eax
jne 0x4bd278
xor ecx, eax
mov eax, 1
mov dword [ebp - 0x5a4], ecx
mov ecx, edx
shl eax, cl
dec eax
and eax, dword [ebp - 0x5a4]
cmp eax, dword [ebp + edi*4 - 0x98]
je 0x4bd2df
mov ebx, dword [ebp - 0x5a4]
nop word [eax + eax]
sub edx, dword [ebp + edi*4 - 0xe0]
dec edi
mov eax, 1
mov ecx, edx
shl eax, cl
dec eax
and eax, ebx
cmp eax, dword [ebp + edi*4 - 0x98]
jne 0x4bd2b0
mov ebx, dword [ebp - 0x5c8]
mov dword [ebp - 0x5bc], edi
mov dword [ebp - 0x5a8], edx
mov eax, dword [ebp - 0x5dc]
mov ecx, dword [ebp - 0x5ac]
test eax, eax
jne 0x4bd020
mov eax, dword [ebp - 0x5cc]
inc ecx
add eax, 4
mov dword [ebp - 0x5ac], ecx
mov dword [ebp - 0x5cc], eax
cmp ecx, dword [ebp - 0x5c4]
jle 0x4bd010
cmp dword [ebp - 0x5e4], 0
mov ecx, dword [ebp - 0x5c0]
mov eax, dword [ebp - 0xdc]
mov dword [ecx], eax
je 0x4bce8e
cmp dword [ebp - 0x5c4], 1
je 0x4bce8e
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524763
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4bd376
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x4bd376
mov esi, dword [eax - 4]
sub eax, 8
push eax
call fcn.0052a52b
add esp, 4
mov eax, esi
test esi, esi
jne 0x4bd361
mov ecx, dword [ebp - 4]
mov eax, 3
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00524763
mov esp, ebp
pop ebp
ret