Function at 0x4c24a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x5d4
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x5d0], eax
push ebx
mov ebx, dword [esp + 0x5f0]
push ebp
mov ebp, dword [esp + 0x5f8]
push esi
mov esi, dword [esp + 0x5e4]
push edi
mov edi, dword [esp + 0x5ec]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebp
cmp edi, 0x100
jbe 0x4c24f0
mov eax, dword [esi + 0x400]
mov dword [esp + 0x3c], eax
jmp 0x4c24f8
mov dword [esp + 0x3c], 0x10
push 0x44
lea eax, [esp + 0x58]
push 0
push eax
call fcn.00520500
add esp, 0xc
mov ecx, esi
mov edx, edi
lea ecx, [ecx]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [esp + eax*4 + 0x54]
sub edx, 1
jne 0x4c2510
cmp dword [esp + 0x54], edi
jne 0x4c2546
mov dword [ebx], edx
mov dword [ebp], edx
xor eax, eax
mov ecx, dword [esp + 0x5e0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x5d4
ret 0x1c
mov ecx, 1
jmp 0x4c2550
cmp dword [esp + ecx*4 + 0x54], 0
jne 0x4c255d
inc ecx
cmp ecx, 0x10
jbe 0x4c2550
mov eax, ecx
mov dword [esp + 0x14], eax
cmp dword [ebp], ecx
jae 0x4c256b
mov dword [ebp], ecx
mov edx, 0x10
cmp dword [esp + edx*4 + 0x54], 0
jne 0x4c257c
sub edx, 1
jne 0x4c2570
mov dword [esp + 0x30], edx
cmp dword [ebp], edx
jbe 0x4c2588
mov dword [ebp], edx
mov ebp, 1
shl ebp, cl
cmp ecx, edx
jae 0x4c25a4
sub ebp, dword [esp + ecx*4 + 0x54]
js 0x4c281d
inc ecx
add ebp, ebp
cmp ecx, edx
jb 0x4c2593
lea ebx, [edx*4]
mov eax, dword [esp + ebx + 0x54]
sub ebp, eax
mov dword [esp + 0x50], ebp
js 0x4c281d
add eax, ebp
xor ecx, ecx
mov dword [esp + ebx + 0x54], eax
mov dword [esp + 0x9c], ecx
sub edx, 1
je 0x4c25e4
xor eax, eax
add ecx, dword [esp + eax + 0x58]
lea eax, [eax + 4]
mov dword [esp + eax + 0x9c], ecx
sub edx, 1
jne 0x4c25d1
push 0x480
lea eax, [esp + 0x164]
push 0
push eax
call fcn.00520500
add esp, 0xc
xor ecx, ecx
lea ecx, [ecx]
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x4c261f
mov eax, dword [esp + edx*4 + 0x98]
mov dword [esp + eax*4 + 0x160], ecx
inc eax
mov dword [esp + edx*4 + 0x98], eax
inc ecx
cmp ecx, edi
jb 0x4c2600
mov eax, dword [esp + ebx + 0x98]
xor edx, edx
mov ecx, dword [esp + 0x14]
or edi, 0xffffffff
mov esi, dword [esp + 0x30]
xor ebx, ebx
mov dword [esp + 0x4c], eax
xor ebp, ebp
mov dword [esp + 0x20], 0
lea eax, [esp + 0x160]
mov dword [esp + 0x98], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0xdc], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0x120], edx
mov dword [esp + 0x24], ebx
cmp ecx, esi
jg 0x4c2951
lea eax, [esp + 0x54]
mov ebx, edx
lea eax, [eax + ecx*4]
mov dword [esp + 0x34], eax
mov eax, dword [eax]
test eax, eax
je 0x4c2939
jmp 0x4c26a0
mov dword [esp + 0x38], eax
lea esi, [edi*4]
dec eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + esi + 0xe0]
add eax, edx
cmp ecx, eax
jle 0x4c27f8
lea eax, [esp + 0xe0]
inc edi
add edx, dword [esi + eax]
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x30]
sub esi, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], edi
mov eax, dword [eax]
cmp esi, eax
jbe 0x4c26e6
mov esi, eax
mov ebx, ecx
mov eax, 1
sub ebx, edx
mov ecx, ebx
shl eax, cl
cmp eax, dword [esp + 0x38]
jbe 0x4c2727
mov edx, dword [esp + 0x34]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x44]
inc ebx
add eax, ecx
cmp ebx, esi
jae 0x4c2723
jmp 0x4c2710
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
add eax, eax
cmp eax, ecx
jbe 0x4c2723
inc ebx
sub eax, ecx
cmp ebx, esi
jb 0x4c2710
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
lea eax, [edx + ebx]
cmp eax, ecx
jbe 0x4c273a
cmp edx, ecx
jae 0x4c273a
mov ebx, ecx
sub ebx, edx
mov ecx, ebx
lea eax, [esp + 0xe0]
mov ebp, 1
lea esi, [edi*4]
shl ebp, cl
mov dword [esi + eax], ebx
lea eax, [ebp*8 + 8]
push eax
call fcn.00524aa7
add esp, 4
test eax, eax
je 0x4c297c
mov edx, dword [esp + 0x40]
lea ecx, [eax + 8]
add eax, 4
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], eax
mov dword [esp + esi + 0x120], ecx
mov dword [edx], ecx
mov dword [eax], 0
test edi, edi
je 0x4c27e1
mov eax, dword [esp + 0x20]
mov edx, 1
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
shl edx, cl
sub ecx, dword [esp + esi + 0xdc]
dec edx
and edx, dword [esp + 0x20]
mov dword [esp + esi + 0x98], eax
mov al, byte [esp + esi + 0xdc]
shr edx, cl
mov ecx, dword [esp + esi + 0x11c]
mov byte [esp + 0x19], al
lea eax, [ebx + 0x20]
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x18]
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + edx*8 + 4], eax
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea eax, [edx + ebx]
cmp ecx, eax
jg 0x4c26c1
mov ebx, dword [esp + 0x24]
mov al, cl
lea esi, [esp + 0x160]
sub al, dl
mov byte [esp + 0x19], al
mov eax, dword [esp + 0x4c]
lea eax, [esi + eax*4]
mov esi, dword [esp + 0x28]
cmp esi, eax
jb 0x4c2827
mov byte [esp + 0x18], 0x63
jmp 0x4c2873
mov eax, 2
jmp 0x4c252b
mov ecx, dword [esi]
mov eax, dword [esp + 0x5f0]
cmp ecx, eax
jae 0x4c2848
cmp ecx, 0x100
setb al
add al, 0x1f
mov byte [esp + 0x18], al
mov ax, cx
jmp 0x4c2863
sub ecx, eax
mov eax, dword [esp + 0x5f8]
mov al, byte [ecx + eax]
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x5f4]
mov ax, word [eax + ecx*2]
mov ecx, dword [esp + 0x14]
add esi, 4
mov dword [esp + 0x28], esi
mov word [esp + 0x1c], ax
mov eax, dword [esp + 0x20]
sub ecx, edx
mov esi, 1
shl esi, cl
mov ecx, edx
shr eax, cl
cmp eax, ebp
jae 0x4c28bb
mov edi, dword [esp + 0x1c]
lea ecx, [esi*8]
mov dword [esp + 0x38], ecx
lea ecx, [ebx + eax*8]
mov ebx, dword [esp + 0x18]
mov edi, edi
mov dword [ecx], ebx
add eax, esi
mov dword [ecx + 4], edi
add ecx, dword [esp + 0x38]
cmp eax, ebp
jb 0x4c28a0
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov eax, 1
mov esi, dword [esp + 0x20]
lea ecx, [ecx - 1]
shl eax, cl
test esi, eax
je 0x4c28d9
xor esi, eax
shr eax, 1
test esi, eax
jne 0x4c28d1
xor esi, eax
mov ecx, edx
mov eax, 1
mov dword [esp + 0x20], esi
shl eax, cl
dec eax
and eax, esi
cmp eax, dword [esp + edi*4 + 0x98]
je 0x4c2925
jmp 0x4c2900
sub edx, dword [esp + edi*4 + 0xdc]
dec edi
mov eax, 1
mov ecx, edx
shl eax, cl
dec eax
and eax, esi
cmp eax, dword [esp + edi*4 + 0x98]
jne 0x4c2900
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x4c26a0
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
inc ecx
add eax, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], eax
cmp ecx, esi
jle 0x4c2691
cmp dword [esp + 0x50], 0
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0xe0]
mov dword [ecx], eax
je 0x4c2529
cmp esi, 1
je 0x4c2529
mov eax, 1
jmp 0x4c252b
test edi, edi
je 0x4c29a5
mov eax, dword [esp + 0x120]
test eax, eax
je 0x4c29a5
jmp 0x4c2990
mov esi, dword [eax - 4]
sub eax, 8
push eax
call fcn.00524aa2
add esp, 4
mov eax, esi
test esi, esi
jne 0x4c2990
mov eax, 3
jmp 0x4c252b