Function at 0x7cf8f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [0xbcbae0]
mov ebx, edx
mov esi, ecx
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0xe4]
mov edi, dword [ecx]
test eax, eax
je 0x7cfed2
cmp byte [edi + 0xa5], 0
mov dword [esp + 4], esi
jne 0x7cf929
mov esi, edi
xor ecx, ecx
jmp 0x7cf935
cmp byte [edi + 0xa4], 1
mov esi, edi
setne cl
movsx ebp, word [eax + 0x2a]
mov edi, dword [eax + 4]
movzx edx, cl
mov ecx, ebx
dec ebp
call fcn.00803900
test eax, eax
jne 0x7cfbe2
mov edx, fcn.0077fa50
mov eax, fcn.0077fa50
mov dword [esp + 8], edi
and edx, 1
movzx edi, byte [0xbb1623]
xor edx, eax
xor eax, eax
cmp edx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edi, eax
mov edi, esi
mov esi, dword [esp + 4]
jb 0x7cfbc4
mov al, byte [0xbb1623]
mov dword [esp], ebx
xor ebx, ebx
cmp edx, 0xffffffff
mov ah, 1
sete bl
mov ecx, ebx
xor ecx, 1
lea ecx, [ebx + ecx*2 + 2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb1623], ah
jne 0x7cf991
mov ecx, fcn.0077fa50
mov edx, fcn.0077fa50
movzx eax, al
and ecx, 1
xor ecx, edx
xor edx, edx
cmp ecx, 0xffffffff
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7cfa08
mov ebx, dword [esp]
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 2]
movzx edx, byte [0xbb1623]
bt edx, eax
jae 0x7cf9e6
jmp 0x7cfbc4
xor eax, eax
cmp ecx, 0xffffffff
movzx edx, byte [0xbb1623]
mov ebx, dword [esp]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7cfb97
mov ecx, fcn.0077fa50
mov eax, fcn.0077fa50
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 5
lea ecx, [eax + ecx*2 + 0x7f14f802]
mov eax, dword [0xbb15f0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb15f0], eax
not eax
imul edx, eax
mov eax, dword [0xbb15f4]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb15f4], eax
or ebx, edx
not eax
mov edx, dword [0xbb15f8]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb15f8], edx
or ebx, eax
not edx
mov eax, dword [0xbb15fc]
imul edx, ebx
lea ebx, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb15fc], eax
or ebx, edx
not eax
mov edx, dword [0xbb1600]
imul eax, ebx
mov ebx, eax
shl ebx, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb1600], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb1604]
mov ebx, edx
shl ebx, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbb1604], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb1608]
mov ebx, eax
shl ebx, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbb1608], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb160c]
mov ebx, edx
shl ebx, 7
xor eax, edx
shr edx, 0x18
mov dword [0xbb160c], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb1610]
mov ebx, eax
shl ebx, 8
xor edx, eax
shr eax, 0x17
mov dword [0xbb1610], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb1614]
mov ebx, edx
shl ebx, 9
xor eax, edx
shr edx, 0x16
mov dword [0xbb1614], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb1618]
mov ebx, eax
shl ebx, 0xa
xor edx, eax
shr eax, 0x15
mov dword [0xbb1618], edx
or eax, ebx
not edx
mov ebx, dword [esp]
imul edx, eax
xor dword [0xbb161c], edx
mov dl, 1
shl dl, cl
or byte [0xbb1623], dl
mov ecx, fcn.0077fa50
mov eax, fcn.0077fa50
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb1623], al
mov ecx, dword [esp + 8]
lea eax, [ebp + ebp*4]
push dword [ecx + eax*4]
push 0xbb15f0
push esi
call fcn.00782570
add esp, 0xc
jmp 0x7cfed2
lea ebp, [ebp + ebp*4]
test byte [edi + ebp*4 + 0x10], 0x60
je 0x7cfe11
mov edx, fcn.007b9540
movzx ecx, byte [0xbb165f]
mov edi, esi
mov esi, dword [esp + 4]
imul edx, edx
and edx, 3
cmp edx, 2
setb al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7cfdfe
mov al, byte [0xbb165f]
cmp edx, 2
mov ah, 1
setb cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb165f], ah
jne 0x7cfc22
mov ecx, fcn.007b9540
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
setb dl
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7cfc7c
cmp ecx, 2
movzx edx, byte [0xbb165f]
setb al
or al, 4
movzx eax, al
bt edx, eax
jae 0x7cfc60
jmp 0x7cfdfe
cmp ecx, 2
movzx edx, byte [0xbb165f]
setb al
or al, 4
movzx eax, al
bt edx, eax
jb 0x7cfddd
mov eax, fcn.007b9540
xor ecx, ecx
mov ebp, ebx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbb1630]
seta cl
xor ecx, 0x28f654a1
add ecx, 0x63c
xor eax, ecx
mov dword [0xbb1630], eax
not eax
mov edx, dword [0xbb1634]
imul eax, ecx
and cl, 7
lea ebx, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb1634], edx
or ebx, eax
not edx
mov eax, dword [0xbb1638]
imul edx, ebx
lea ebx, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb1638], eax
or ebx, edx
not eax
mov edx, dword [0xbb163c]
imul eax, ebx
lea ebx, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb163c], edx
or ebx, eax
not edx
mov eax, dword [0xbb1640]
imul edx, ebx
mov ebx, edx
shl ebx, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb1640], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb1644]
mov ebx, eax
shl ebx, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbb1644], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb1648]
mov ebx, edx
shl ebx, 6
xor eax, edx
shr edx, 0x19
mov dword [0xbb1648], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb164c]
mov ebx, eax
shl ebx, 7
xor edx, eax
shr eax, 0x18
mov dword [0xbb164c], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb1650]
mov ebx, edx
shl ebx, 8
xor eax, edx
shr edx, 0x17
mov dword [0xbb1650], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb1654]
mov ebx, eax
shl ebx, 9
xor edx, eax
shr eax, 0x16
mov dword [0xbb1654], edx
or eax, ebx
not edx
mov ebx, ebp
imul edx, eax
xor dword [0xbb1658], edx
mov dl, 1
shl dl, cl
or byte [0xbb165f], dl
mov eax, fcn.007b9540
imul eax, eax
and eax, 3
cmp eax, 2
mov al, 0xfe
setb cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb165f], al
push 0xbb1630
push esi
call fcn.00782570
add esp, 8
jmp 0x7cfed2
mov edx, dword [edi + ebp*4 + 4]
mov ecx, esi
mov esi, edi
mov edi, ecx
call fcn.007c00e0
mov edx, dword [esp + 0x58]
mov dword [esp + 0xc], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0xc], 0xb2
mov ecx, edi
push dword [esp + 0x5c]
call fcn.00803910
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 0x1000
lea edx, [esp + 0xc]
mov ecx, edi
push 1
call fcn.007f0780
add esp, 4
mov dword [esi + ebp*4 + 4], eax
mov ecx, edi
mov edx, dword [esp + 0x14]
call fcn.00774f10
mov esi, dword [esp + 4]
cmp byte [esi + 0xc8], 2
jb 0x7cfee4
mov ecx, esi
mov edx, ebx
call fcn.00803960
mov ecx, edi
mov edx, ebx
call fcn.007c00e0
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00980459
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret