Function at 0xcbe54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xcc63d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
cmp eax, 8
jg 0xcbf73
cmp dword [ebp - 0xc], 8
jg 0xcbf73
cmp eax, dword [ebp - 0xc]
jg 0xcbf73
mov ecx, eax
mov eax, 1
shl eax, cl
cmp eax, dword [ebp + 0xc]
jg 0xcbf73
mov dl, 1
mov eax, dword [0xc590c]
call fcn.000d2848
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0xcbf6c
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov eax, dword [ebp - 0x1c]
call fcn.00093998
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
call fcn.000cf368
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0009286c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov edi, 1
shl edi, cl
dec edi
test edi, edi
jl 0xcbf3c
inc edi
xor eax, eax
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jge 0xcbf28
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + eax*4 + 0x90]
mov ecx, dword [ebp - 4]
mov dword [ecx + eax*4 + 0x90], edx
jmp 0xcbf38
mov edx, dword [ebp - 4]
mov ecx, dword [0x1e3994]
mov dword [edx + eax*4 + 0x90], ecx
inc eax
dec edi
jne 0xcbf05
mov eax, dword [ebp - 4]
call fcn.00092b68
mov eax, dword [ebp - 0x1c]
push eax
push 0xffffffffffffffff
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.000cbc74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xcc621
mov eax, dword [ebp - 0x1c]
call fcn.00013088
ret
cmp dword [ebp - 0xc], 8
jg 0xcc059
mov eax, dword [ebp - 4]
call fcn.000d45a4
cmp eax, dword [ebp + 0xc]
jg 0xcc059
mov dl, 1
mov eax, dword [0xc590c]
call fcn.000d2848
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0xcc052
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov eax, dword [ebp - 0x1c]
call fcn.00093998
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
call fcn.000cf368
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.000d4fac
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0009286c
mov eax, dword [ebp - 0x20]
call fcn.00015a08
mov edi, eax
test edi, edi
jl 0xcbffb
inc edi
xor eax, eax
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebp - 4]
mov dword [ecx + eax*4 + 0x90], edx
inc eax
dec edi
jne 0xcbfe7
mov eax, dword [ebp - 0x20]
call fcn.00015a00
cmp eax, 0xff
jg 0xcc022
mov edx, dword [ebp - 4]
mov ecx, dword [0x1e3994]
mov dword [edx + eax*4 + 0x90], ecx
inc eax
cmp eax, 0x100
jne 0xcc00a
mov eax, dword [ebp - 4]
call fcn.00092b68
mov eax, dword [ebp - 0x1c]
push eax
push 0xffffffffffffffff
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.000cbc74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xcc621
mov eax, dword [ebp - 0x1c]
call fcn.00013088
ret
cmp dword [ebp - 8], 0
je 0xcc069
cmp dword [ebp - 0xc], 8
jle 0xcc4d8
mov dl, 1
mov eax, dword [0xa7bec]
call fcn.000a7c44
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0xcc4d1
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0xa7bec]
call fcn.000a7c44
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0xcc4b4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.000cf660
sub eax, 0xf
je 0xcc0ba
dec eax
je 0xcc0dc
sub eax, 8
je 0xcc0fe
jmp 0xcc11d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
push 0x22b
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x7c]
mov eax, dword [ebp - 0x14]
call fcn.000a7d28
jmp 0xcc13d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
push 0x235
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x7c]
mov eax, dword [ebp - 0x14]
call fcn.000a7d28
jmp 0xcc13d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x7c]
mov eax, dword [ebp - 0x14]
call fcn.000a7d28
jmp 0xcc13d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
push 0x378
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x7c]
mov eax, dword [ebp - 0x14]
call fcn.000a7d28
mov eax, dword [ebp - 4]
call fcn.000cf660
cmp eax, 8
jg 0xcc171
mov eax, dword [ebp - 0x14]
mov cx, word [eax + 0x3e]
mov eax, 1
shl eax, cl
mov ecx, eax
shl ecx, 2
mov eax, dword [ebp - 4]
lea edx, [eax + 0x90]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x2c]
call fcn.00018030
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x40]
dec edi
test edi, edi
jl 0xcc1ad
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00091dbc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x458]
mov eax, dword [eax + ebx*4]
pop edx
call fcn.00018030
inc ebx
dec edi
jne 0xcc17f
mov eax, dword [ebp - 0xc]
sub eax, 0xf
je 0xcc1ba
dec eax
je 0xcc1da
jmp 0xcc1fa
push 0x10
push 0x22b
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 0x10]
call fcn.000a7d28
jmp 0xcc298
push 0x10
push 0x235
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 0x10]
call fcn.000a7d28
jmp 0xcc298
cmp dword [ebp - 0xc], 1
jne 0xcc27e
mov eax, dword [ebp - 4]
call fcn.000cf660
cmp eax, 8
jl 0xcc27e
mov dl, 1
mov eax, dword [0xa7bec]
call fcn.000a7c44
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0xcc277
push dword fs:[edx]
mov dword fs:[edx], esp
push 4
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 0x18]
call fcn.000a7d28
mov al, byte [ebp + 8]
push eax
push 0x10
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.000bdd0c
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xcc27e
mov eax, dword [ebp - 0x18]
call fcn.00013088
ret
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 0x10]
call fcn.000a7d28
mov al, byte [ebp + 8]
push eax
mov al, byte [ebp + 0xc]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.000bdd0c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x7c]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x68]
cmp dword [ebp - 0xc], 8
jg 0xcc2f9
mov eax, dword [ebp - 0x10]
mov cx, word [eax + 0x3e]
mov eax, 1
shl eax, cl
mov ecx, eax
shl ecx, 2
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 4]
add eax, 0x90
call fcn.00018030
mov eax, dword [ebp - 4]
call fcn.00092b68
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
dec eax
sub eax, 8
jb 0xcc324
add eax, 0xfffffffa
sub eax, 2
jb 0xcc374
sub eax, 7
je 0xcc3c3
sub eax, 8
je 0xcc432
jmp 0xcc49e
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x40]
dec edi
test edi, edi
jl 0xcc49e
inc edi
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
dec eax
test eax, eax
jl 0xcc36b
inc eax
mov dword [ebp - 0x30], eax
xor esi, esi
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.000a8048
and eax, 0xff
push eax
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00091fe8
inc esi
dec dword [ebp - 0x30]
jne 0xcc347
inc ebx
dec edi
jne 0xcc336
jmp 0xcc49e
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x40]
dec edi
test edi, edi
jl 0xcc49e
inc edi
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
dec eax
test eax, eax
jl 0xcc3ba
inc eax
mov dword [ebp - 0x30], eax
xor esi, esi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x468]
mov eax, dword [eax + ebx*4]
movzx eax, word [eax + esi*2]
push eax
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00091fe8
inc esi
dec dword [ebp - 0x30]
jne 0xcc397
inc ebx
dec edi
jne 0xcc386
jmp 0xcc49e
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x40]
dec edi
test edi, edi
jl 0xcc49e
inc edi
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
dec eax
test eax, eax
jl 0xcc42c
inc eax
mov dword [ebp - 0x30], eax
xor esi, esi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x46c]
mov eax, dword [eax + ebx*4]
lea edx, [esi + esi*2]
add eax, edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov al, byte [eax]
push eax
mov eax, dword [ebp - 0x34]
mov cl, byte [eax + 1]
mov eax, dword [ebp - 0x34]
mov dl, byte [eax + 2]
mov eax, dword [ebp - 4]
add eax, 0x490
call fcn.00091460
push eax
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00091fe8
inc esi
dec dword [ebp - 0x30]
jne 0xcc3e6
inc ebx
dec edi
jne 0xcc3d5
jmp 0xcc49e
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x40]
dec edi
test edi, edi
jl 0xcc49e
inc edi
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
dec eax
test eax, eax
jl 0xcc49a
inc eax
mov dword [ebp - 0x30], eax
xor esi, esi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x470]
mov eax, dword [eax + ebx*4]
lea eax, [eax + esi*4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov al, byte [eax]
push eax
mov eax, dword [ebp - 0x38]
mov cl, byte [eax + 1]
mov eax, dword [ebp - 0x38]
mov dl, byte [eax + 2]
mov eax, dword [ebp - 4]
add eax, 0x490
call fcn.00091460
or eax, 0xff000000
push eax
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00091fe8
inc esi
dec dword [ebp - 0x30]
jne 0xcc451
inc ebx
dec edi
jne 0xcc440
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xcc4bb
mov eax, dword [ebp - 0x14]
call fcn.00013088
ret
mov dl, 1
mov eax, dword [0x2b494]
call fcn.00031b04
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0xcc61a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x20de4]
call fcn.00013058
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0xcc548
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
xor edx, edx
mov eax, dword [ebp - 0x2c]
call fcn.000248f8
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x50]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xcc54f
mov eax, dword [ebp - 0x2c]
call fcn.00013088
ret