Function at 0xcfe8b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x280
mov ebx, dword [0xa2d74c]
mov ebp, dword [0xa2d748]
mov eax, ebp
or eax, ebx
jne 0xcfe97e
mov dword [esp + 0x50], 0xf19a0fa2
mov dword [esp + 0x54], 0xf55ef354
mov dword [esp + 0x58], 0xf918f758
mov dword [esp + 0x5c], 0xfd56fb5c
mov dword [esp + 0x60], 0xe1feff50
mov byte [esp + 0x64], 0
mov dword [esp + 0x150], 0
mov eax, dword [esp + 0x150]
cmp eax, 0x14
ja 0xcfe95a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x150]
movzx eax, byte [esp + eax + 0x50]
push dword [esp + 0x150]
push eax
call fcn.00cff2f0
add esp, 8
mov ecx, dword [esp + 0x150]
mov byte [esp + ecx + 0x50], al
inc dword [esp + 0x150]
mov eax, dword [esp + 0x150]
cmp eax, 0x15
jb 0xcfe920
lea eax, [esp + 0x50]
push eax
call fcn.00cfe510
add esp, 4
mov ebp, eax
mov dword [0xa2d74c], edx
mov dword [0xa2d748], eax
or eax, edx
je 0xcfea78
mov ebx, edx
lea eax, [esp + 0x240]
push 0x40
push eax
push ebx
push ebp
call fcn.00cfe320
add esp, 0x10
test eax, eax
js 0xcfea78
mov eax, dword [esp + 0x27c]
mov ecx, eax
sar ecx, 0x1f
add eax, ebp
adc ecx, ebx
add eax, 0x18
adc ecx, 0
lea edx, [esp + 0x150]
push 0xf0
push edx
push ecx
push eax
call fcn.00cfe320
add esp, 0x10
xor edi, edi
test eax, eax
js 0xcfea7a
cmp dword [esp + 0x1c4], 0
je 0xcfea7a
mov eax, dword [esp + 0x1c0]
mov esi, 0
test eax, eax
je 0xcfea7c
add eax, ebp
mov ecx, ebx
adc ecx, 0
lea edx, [esp + 0x28]
push 0x28
push edx
push ecx
push eax
call fcn.00cfe320
add esp, 0x10
test eax, eax
js 0xcfea78
mov esi, dword [esp + 0x3c]
mov eax, 0xffffffff
cmp esi, 0x40000000
jae 0xcfea27
lea eax, [esi*4]
push eax
call 0xcc3890
add esp, 4
mov edx, eax
mov eax, esi
and eax, 4
mov ecx, esi
or esi, 4
imul esi, eax
xor eax, 4
and ecx, 0xfffffffb
imul ecx, eax
add esi, ecx
mov eax, dword [esp + 0x44]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0x10], edx
push edx
push ecx
push eax
call fcn.00cfe320
add esp, 0x10
test eax, eax
js 0xcfea8b
mov eax, dword [esp + 0x3c]
test eax, eax
jns 0xcfea94
mov eax, 0xffffffff
jmp 0xcfea96
xor edi, edi
xor esi, esi
mov eax, edi
mov edx, esi
add esp, 0x280
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
xor esi, esi
jmp 0xcfecb7
add eax, eax
push eax
call 0xcc3890
add esp, 4
mov esi, dword [esp + 0x40]
mov ecx, esi
and ecx, 2
mov edx, esi
or esi, 2
imul esi, ecx
xor ecx, 2
and edx, 0xfffffffd
imul edx, ecx
add esi, edx
mov ecx, dword [esp + 0x4c]
add ecx, ebp
mov edx, ebx
adc edx, 0
push esi
mov dword [esp + 0xc], eax
push eax
push edx
push ecx
call fcn.00cfe320
add esp, 0x10
test eax, eax
js 0xcfeca7
mov ecx, dword [esp + 0x40]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0xcfeaf8
mov eax, esi
push eax
call 0xcc3890
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x48]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push esi
push edi
push ecx
push eax
call fcn.00cfe320
add esp, 0x10
test eax, eax
mov dword [esp + 4], edi
js 0xcfec95
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp esi, eax
jb 0xcfeb34
mov esi, eax
test esi, esi
je 0xcfec95
xor eax, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], esi
jmp 0xcfeb77
mov esi, 0xfb520141
cmp esi, dword [esp + 0x294]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
je 0xcfecc8
mov eax, dword [esp + 0x10]
inc eax
cmp eax, esi
je 0xcfec95
mov dword [esp + 0x10], eax
mov eax, dword [edi + eax*4]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push 0x100
lea edx, [esp + 0x54]
push edx
push ecx
push eax
call fcn.00cfe320
add esp, 0x10
test eax, eax
jns 0xcfeba4
cmp eax, 0x8000000d
jne 0xcfeb6a
mov ebx, 0xffffffff
xor eax, eax
nop
nop
nop
nop
nop
mov ebp, eax
cmp byte [esp + ebx + 0x51], 0
lea ebx, [ebx + 1]
lea eax, [eax + 1]
jne 0xcfebb0
mov dword [esp + 0x14], 0x121210a3
lea eax, [esp + 0x18]
mov byte [eax + 2], 0
mov word [eax], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0xcfec16
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x14]
push dword [esp]
push eax
call fcn.00cff340
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x14], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0xcfebf0
test ebx, ebx
je 0xcfeb4c
mov eax, dword [esp + 0x14]
mov edx, 0xfb520141
lea ecx, [esp + 0x50]
cmp ebx, 4
jb 0xcfec6f
mov esi, ebp
and esi, 0xfffffffc
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx edi, byte [ecx]
xor edi, edx
imul edi, eax
movsx edx, byte [ecx + 1]
xor edx, edi
imul edx, eax
movsx edi, byte [ecx + 2]
xor edi, edx
imul edi, eax
movsx edx, byte [ecx + 3]
add ecx, 4
xor edx, edi
imul edx, eax
add esi, 0xfffffffc
jne 0xcfec40
mov edi, dword [esp + 4]
mov esi, edx
test bl, 3
je 0xcfeb51
and ebp, 3
xor ebx, ebx
nop
movsx esi, byte [ecx + ebx]
xor esi, edx
imul esi, eax
inc ebx
mov edx, esi
cmp ebp, ebx
jne 0xcfec80
jmp 0xcfeb51
xor edi, edi
xor esi, esi
push dword [esp + 4]
call fcn.00cc38a0
add esp, 4
jmp 0xcfecab
xor edi, edi
xor esi, esi
push dword [esp + 8]
call fcn.00cc38a0
add esp, 4
push dword [esp + 0xc]
call fcn.00cc38a0
add esp, 4
jmp 0xcfea7c
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0xc]
add ebp, dword [ecx + eax*4]
adc ebx, 0
mov edi, ebp
mov esi, ebx
jmp 0xcfec99