Function at 0x7cf360
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [ecx + 0xe4]
test esi, esi
je 0x7cf8de
mov ebx, ecx
mov ecx, dword [ecx]
movsx eax, word [esi + 0x2a]
cmp dword [ecx + 0x74], eax
jg 0x7cf569
mov edx, fcn.00788a40
xor eax, eax
movzx edi, byte [0xbb15cb]
and edx, 1
inc edx
mov ecx, edx
xor ecx, fcn.00788a40
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edi, eax
jb 0x7cf554
mov al, byte [0xbb15cb]
mov ebp, esi
mov edi, ebx
mov esi, edx
xor ecx, ecx
mov ah, 1
xor esi, fcn.00788a40
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb15cb], ah
jne 0x7cf3be
mov ecx, fcn.00788a40
xor edx, edx
movzx eax, al
and ecx, 1
inc ecx
mov esi, ecx
xor esi, fcn.00788a40
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7cf43f
mov ebx, edi
mov esi, ebp
mov edx, ecx
xor eax, eax
movzx edi, byte [0xbb15cb]
xor edx, fcn.00788a40
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 2]
bt edi, eax
jae 0x7cf418
jmp 0x7cf554
xor eax, eax
xor ecx, fcn.00788a40
movzx edx, byte [0xbb15cb]
mov ebx, edi
mov esi, ebp
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7cf52b
mov ecx, fcn.00788a40
xor eax, eax
and ecx, 1
inc ecx
xor ecx, fcn.00788a40
sete al
mov ecx, eax
not ecx
and ecx, 0x185
lea ecx, [eax + ecx*2 - 0x3cc9658e]
mov eax, dword [0xbb15b0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb15b0], eax
not eax
imul edx, eax
mov eax, dword [0xbb15b4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb15b4], eax
or esi, edx
not eax
mov edx, dword [0xbb15b8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb15b8], edx
or esi, eax
not edx
mov eax, dword [0xbb15bc]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb15bc], eax
or esi, edx
not eax
mov edx, dword [0xbb15c0]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb15c0], edx
or eax, esi
not edx
mov esi, ebp
imul edx, eax
xor dword [0xbb15c4], edx
mov dl, 1
shl dl, cl
or byte [0xbb15cb], dl
mov eax, fcn.00788a40
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.00788a40
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb15cb], al
push dword [esi]
push 0xbb15b0
push ebx
call fcn.00782570
add esp, 0x20
jmp 0x7cf8e1
mov ebp, edx
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 4]
mov dword [esp + 8], edx
mov edx, dword [edx + 4]
mov dword [esp], ecx
lea edx, [eax + edx + 2]
push 0
call fcn.00784570
add esp, 4
test eax, eax
je 0x7cf8de
cmp byte [ebx + 0xc8], 2
mov edi, eax
jb 0x7cf5aa
mov ecx, ebx
mov edx, edi
push ebp
call fcn.007d8f10
add esp, 4
mov dword [esp + 0xc], ebx
push dword [ebp + 4]
push dword [ebp]
push edi
call fcn.009806e0
add esp, 0xc
mov eax, dword [ebp + 4]
mov ecx, edi
mov byte [edi + eax], 0
call fcn.008038b0
movsx ebx, word [esi + 0x2a]
mov dword [esp + 4], esi
test ebx, ebx
jle 0x7cf7f1
mov eax, dword [esp + 4]
xor ebp, ebp
mov esi, dword [eax + 4]
jmp 0x7cf5ef
inc ebp
cmp ebp, ebx
jge 0x7cf7f1
lea eax, [ebp + ebp*4]
push dword [esi + eax*4]
push edi
call fcn.00777e00
add esp, 8
test eax, eax
jne 0x7cf5e6
mov edx, 0x79e3a0
xor eax, eax
movzx esi, byte [0xbb15ef]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jb 0x7cf7da
mov al, byte [0xbb15ef]
xor ecx, ecx
cmp edx, 2
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 5
lea ecx, [ebx + ecx*2 + 4]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb15ef], ah
jne 0x7cf639
mov ecx, 0x79e3a0
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
mov ebx, edx
xor ebx, 5
lea edx, [ebx + edx*2 + 4]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7cf6b4
xor eax, eax
cmp ecx, 2
movzx esi, byte [0xbb15ef]
sete al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jae 0x7cf68d
jmp 0x7cf7da
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbb15ef]
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7cf7ae
mov eax, 0x79e3a0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 0x3d82796d
lea ecx, [eax + ecx*2 + 0xc04]
mov eax, dword [0xbb15d0]
xor eax, ecx
mov dword [0xbb15d0], eax
not eax
mov edx, dword [0xbb15d4]
imul eax, ecx
and cl, 7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb15d4], edx
or esi, eax
not edx
mov eax, dword [0xbb15d8]
imul edx, esi
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb15d8], eax
or esi, edx
not eax
mov edx, dword [0xbb15dc]
imul eax, esi
lea esi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb15dc], edx
or esi, eax
not edx
mov eax, dword [0xbb15e0]
imul edx, esi
mov esi, edx
shl esi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb15e0], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb15e4]
mov esi, eax
shl esi, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbb15e4], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbb15e8], edx
mov dl, 1
shl dl, cl
or byte [0xbb15ef], dl
mov eax, 0x79e3a0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 5
lea ecx, [eax + ecx*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb15ef], al
push edi
push 0xbb15d0
push dword [esp + 0x14]
call fcn.00782570
add esp, 0xc
mov ecx, dword [esp]
jmp 0x7cf826
test bl, 7
je 0x7cf7ff
mov eax, dword [esp + 4]
mov ebp, dword [eax + 4]
jmp 0x7cf83d
mov esi, dword [esp + 4]
lea eax, [ebx + ebx*4]
mov ebx, dword [esp]
lea eax, [eax*4 + 0xa0]
mov edx, dword [esi + 4]
mov ecx, ebx
push 0
push eax
call fcn.0078dc70
add esp, 8
test eax, eax
jne 0x7cf834
mov ecx, ebx
mov edx, edi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00774f10
mov dword [esi + 4], eax
mov ebp, eax
movsx ebx, word [esi + 0x2a]
mov eax, dword [esp + 8]
lea esi, [ebx + ebx*4]
mov dword [ebp + esi*4 + 0x10], 0
mov dword [ebp + esi*4 + 0xc], 0
mov dword [ebp + esi*4 + 8], 0
mov dword [ebp + esi*4 + 4], 0
mov dword [ebp + esi*4], edi
mov ebx, dword [eax + 4]
test ebx, ebx
jne 0x7cf878
mov byte [ebp + esi*4 + 0xe], 1
mov al, 0x41
jmp 0x7cf8c3
lea ecx, [ebp + esi*4]
mov dword [esp], ecx
mov ecx, edi
call fcn.00777870
lea ecx, [edi + eax]
lea edi, [edi + eax + 1]
mov dword [esp + 0x10], ecx
push ebx
mov ebx, dword [esp + 0xc]
push dword [ebx]
push edi
call fcn.009806e0
add esp, 0xc
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x10]
mov byte [eax + ecx + 1], 0
mov ecx, edi
call fcn.008038b0
mov edx, dword [esp]
mov ecx, edi
call fcn.007ee450
or byte [ebp + esi*4 + 0x10], 4
mov byte [ebp + esi*4 + 0xd], al
mov eax, dword [esp + 4]
inc word [eax + 0x2a]
inc word [eax + 0x2c]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x4c], 0
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret