Function at 0x7cf620
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
mov ecx, dword [0xbd33e0]
mov eax, dword [esp + 0x24]
mov edi, edx
xor ecx, esp
mov dword [esp + 0xc], ecx
lea ecx, [esp + 8]
push 0
push ecx
push 0xffffffffffffffff
push eax
push esi
call fcn.0078fe30
add esp, 0x14
mov ebx, eax
test eax, eax
jne 0x7cf950
mov ebp, dword [esp + 8]
mov dword [esp], esi
push ebp
call fcn.0078a0e0
add esp, 4
cmp eax, 0x64
jne 0x7cf922
mov ebx, dword [esp]
mov dword [esp + 4], edi
mov edi, 0x791300
mov eax, 0x791300
and edi, 1
xor edi, eax
push 0
push ebp
call fcn.0078aac0
add esp, 8
test eax, eax
je 0x7cf90c
mov esi, eax
xor eax, eax
cmp edi, 0xffffffff
movzx edx, byte [0xbb68c3]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt edx, eax
jb 0x7cf7b2
mov al, byte [0xbb68c3]
xor ecx, ecx
cmp edi, 0xffffffff
sete cl
mov edx, ecx
not edx
lea ecx, [ecx + edx*2]
mov dl, 1
and cl, 3
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb68c3], dl
jne 0x7cf6c5
xor ecx, ecx
cmp edi, 0xffffffff
movzx eax, al
sete cl
mov edx, ecx
not edx
lea ecx, [ecx + edx*2]
and cl, 3
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x7cf72f
xor eax, eax
cmp edi, 0xffffffff
movzx edx, byte [0xbb68c3]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt edx, eax
jae 0x7cf70a
jmp 0x7cf7b2
xor eax, eax
cmp edi, 0xffffffff
movzx edx, byte [0xbb68c3]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt edx, eax
jb 0x7cf793
xor eax, eax
cmp edi, 0xffffffff
sete al
mov ecx, eax
not ecx
and ecx, 0x625
lea ecx, [eax + ecx*2 + 0x7ecdf9d0]
mov eax, dword [0xbb68b8]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb68b8], eax
not eax
imul edx, eax
xor dword [0xbb68bc], edx
mov dl, 1
shl dl, cl
or byte [0xbb68c3], dl
xor eax, eax
cmp edi, 0xffffffff
sete al
mov ecx, eax
not ecx
lea ecx, [eax + ecx*2]
mov al, 0xfe
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbb68c3], al
push 3
push 0xbb68b8
push esi
call fcn.0098b560
add esp, 0xc
test eax, eax
je 0x7cf8f9
mov edx, fcn.00833dd0
xor eax, eax
imul edx, edx
and edx, 3
cmp edx, 1
seta al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
movzx ecx, byte [0xbb68cf]
bt ecx, eax
jb 0x7cf8e5
mov al, byte [0xbb68cf]
xor ebx, ebx
cmp edx, 1
mov ah, 1
seta 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 [0xbb68cf], ah
jne 0x7cf7fb
xor ecx, ecx
cmp edx, 1
movzx eax, al
seta cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 2]
mov ebx, dword [esp]
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x7cf863
xor eax, eax
cmp edx, 1
seta al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
movzx ecx, byte [0xbb68cf]
bt ecx, eax
jae 0x7cf841
jmp 0x7cf8e5
xor eax, eax
cmp edx, 1
seta al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
movzx ecx, byte [0xbb68cf]
bt ecx, eax
jb 0x7cf8c7
xor eax, eax
cmp edx, 1
seta al
mov ecx, eax
not ecx
and ecx, 0xbd
lea ecx, [eax + ecx*2 - 0x63e978be]
mov eax, dword [0xbb68c4]
mov ebx, ecx
shr ebx, 0x1f
or ebx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb68c4], eax
not eax
imul ebx, eax
mov ah, 1
xor dword [0xbb68c8], ebx
mov ebx, dword [esp]
shl ah, cl
or byte [0xbb68cf], ah
xor eax, eax
cmp edx, 1
seta al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb68cf], al
push 3
push 0xbb68c4
push esi
call fcn.0098b560
add esp, 0xc
test eax, eax
jne 0x7cf90c
mov edx, dword [esp + 4]
mov ecx, ebx
push esi
call fcn.007cf620
add esp, 4
test eax, eax
jne 0x7cf91e
push ebp
call fcn.0078a0e0
add esp, 4
cmp eax, 0x64
je 0x7cf687
mov edi, dword [esp + 4]
xor ebx, ebx
cmp eax, 0x65
cmovne ebx, eax
test ebx, ebx
je 0x7cf947
mov esi, dword [esp]
push esi
call fcn.0078fe80
add esp, 4
mov ecx, edi
mov edx, esi
push eax
call fcn.007c9d60
add esp, 4
push ebp
call fcn.00788ab0
add esp, 4
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00989fe9
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret