Function at 0x7c3d30
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
mov ecx, dword [0xbcbae0]
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.00784540
add esp, 0x14
mov ebx, eax
test eax, eax
jne 0x7c4060
mov ebp, dword [esp + 8]
mov dword [esp], esi
push ebp
call fcn.0077e7f0
add esp, 4
cmp eax, 0x64
jne 0x7c4032
mov ebx, dword [esp]
mov dword [esp + 4], edi
mov edi, 0x785a00
mov eax, 0x785a00
and edi, 1
xor edi, eax
push 0
push ebp
call fcn.0077f1d0
add esp, 8
test eax, eax
je 0x7c401c
mov esi, eax
xor eax, eax
cmp edi, 0xffffffff
movzx edx, byte [0xbaef63]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt edx, eax
jb 0x7c3ec2
mov al, byte [0xbaef63]
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 [0xbaef63], dl
jne 0x7c3dd5
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 0x7c3e3f
xor eax, eax
cmp edi, 0xffffffff
movzx edx, byte [0xbaef63]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt edx, eax
jae 0x7c3e1a
jmp 0x7c3ec2
xor eax, eax
cmp edi, 0xffffffff
movzx edx, byte [0xbaef63]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt edx, eax
jb 0x7c3ea3
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 [0xbaef58]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbaef58], eax
not eax
imul edx, eax
xor dword [0xbaef5c], edx
mov dl, 1
shl dl, cl
or byte [0xbaef63], 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 [0xbaef63], al
push 3
push 0xbaef58
push esi
call fcn.009819d0
add esp, 0xc
test eax, eax
je 0x7c4009
mov edx, fcn.00828570
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 [0xbaef6f]
bt ecx, eax
jb 0x7c3ff5
mov al, byte [0xbaef6f]
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 [0xbaef6f], ah
jne 0x7c3f0b
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 0x7c3f73
xor eax, eax
cmp edx, 1
seta al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
movzx ecx, byte [0xbaef6f]
bt ecx, eax
jae 0x7c3f51
jmp 0x7c3ff5
xor eax, eax
cmp edx, 1
seta al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
movzx ecx, byte [0xbaef6f]
bt ecx, eax
jb 0x7c3fd7
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 [0xbaef64]
mov ebx, ecx
shr ebx, 0x1f
or ebx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbaef64], eax
not eax
imul ebx, eax
mov ah, 1
xor dword [0xbaef68], ebx
mov ebx, dword [esp]
shl ah, cl
or byte [0xbaef6f], 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 [0xbaef6f], al
push 3
push 0xbaef64
push esi
call fcn.009819d0
add esp, 0xc
test eax, eax
jne 0x7c401c
mov edx, dword [esp + 4]
mov ecx, ebx
push esi
call fcn.007c3d30
add esp, 4
test eax, eax
jne 0x7c402e
push ebp
call fcn.0077e7f0
add esp, 4
cmp eax, 0x64
je 0x7c3d97
mov edi, dword [esp + 4]
xor ebx, ebx
cmp eax, 0x65
cmovne ebx, eax
test ebx, ebx
je 0x7c4057
mov esi, dword [esp]
push esi
call fcn.00784590
add esp, 4
mov ecx, edi
mov edx, esi
push eax
call fcn.007be460
add esp, 4
push ebp
call fcn.0077d1c0
add esp, 4
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00980459
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret