Function at 0x7ced20
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
lea eax, [edx - 1]
mov ebp, edx
mov esi, ecx
cmp eax, dword [ecx + 0xc]
jb 0x7ceefb
mov edx, 0x788a70
movzx ecx, byte [0xbb632b]
not edx
and edx, 1
mov eax, edx
add eax, 0x788a70
sete al
not al
add al, 0xb0
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7ceee2
mov al, byte [0xbb632b]
mov ecx, edx
mov ah, 1
add ecx, 0x788a70
sete cl
not cl
add cl, 0xb0
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb632b], ah
jne 0x7ced67
mov ecx, 0x788a70
movzx eax, al
not ecx
and ecx, 1
mov edx, ecx
add edx, 0x788a70
sete dl
not dl
add dl, 0xb0
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7ceddc
mov eax, ecx
movzx edx, byte [0xbb632b]
add eax, 0x788a70
sete al
not al
add al, 0xb0
and al, 7
movzx eax, al
bt edx, eax
jae 0x7cedb8
jmp 0x7ceee2
add ecx, 0x788a70
movzx ecx, byte [0xbb632b]
sete al
not al
add al, 0xb0
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7ceebb
mov eax, 0x788a70
xor ecx, ecx
not eax
and eax, 1
add eax, 0x788a70
mov eax, dword [0xbb6310]
sete cl
xor ecx, 0xcbb66d27
add ecx, 0xb0
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb6310], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb6314]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb6314], eax
or ebx, edx
not eax
mov edx, dword [0xbb6318]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb6318], edx
or ebx, eax
not edx
mov eax, dword [0xbb631c]
imul edx, ebx
lea ebx, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb631c], eax
or ebx, edx
not eax
mov edx, dword [0xbb6320]
imul eax, ebx
mov ebx, eax
shl ebx, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb6320], edx
or eax, ebx
not edx
imul edx, eax
xor dword [0xbb6324], edx
mov dl, 1
shl dl, cl
or byte [0xbb632b], dl
mov eax, 0x788a70
not eax
and eax, 1
add eax, 0x788a70
mov al, 0xfe
sete cl
not cl
add cl, 0xb0
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb632b], al
push ebp
push 0xbb6310
push esi
call fcn.007cc8c0
add esp, 0xc
mov eax, 1
jmp 0x7cf10f
mov ecx, esi
mov edx, ebp
call fcn.007ced00
test eax, eax
je 0x7cf0f2
mov edi, fcn.007a3b00
mov ebx, fcn.007a3b00
xor eax, eax
movzx edx, byte [0xbb634f]
or edi, 2
xor ebx, 2
mov ecx, edi
add ecx, ebx
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7cf0e7
mov al, byte [0xbb634f]
mov dword [esp], ebp
mov ebp, edi
xor edx, edx
add ebp, ebx
sete dl
mov ecx, edx
xor ecx, 3
lea ecx, [ecx + edx*2]
mov dl, 1
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb634f], dl
jne 0x7cef45
mov ecx, fcn.007a3b00
mov edx, fcn.007a3b00
xor ebx, ebx
movzx eax, al
or ecx, 2
xor edx, 2
mov edi, ecx
add edi, edx
sete bl
mov edi, ebx
xor ebx, 3
lea ebx, [ebx + edi*2]
xor bl, 7
movzx edi, bl
bt eax, edi
jae 0x7cefbd
mov ebp, dword [esp]
mov edi, ecx
xor eax, eax
add edi, edx
movzx edi, byte [0xbb634f]
sete al
mov ebx, eax
xor ebx, 3
lea eax, [ebx + eax*2]
bt edi, eax
jae 0x7cef9b
jmp 0x7cf0e7
xor eax, eax
add ecx, edx
movzx edx, byte [0xbb634f]
mov ebp, dword [esp]
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7cf0bb
mov eax, fcn.007a3b00
mov ecx, fcn.007a3b00
xor edx, edx
xor ecx, 2
or eax, 2
add eax, ecx
sete dl
mov eax, edx
xor eax, 0x6090ba73
lea ecx, [eax + edx*2 + 8]
mov eax, dword [0xbb6330]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb6330], eax
not eax
imul edx, eax
mov eax, dword [0xbb6334]
lea edi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb6334], eax
or edi, edx
not eax
mov edx, dword [0xbb6338]
imul eax, edi
lea edi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb6338], edx
or edi, eax
not edx
mov eax, dword [0xbb633c]
imul edx, edi
lea edi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb633c], eax
or edi, edx
not eax
mov edx, dword [0xbb6340]
imul eax, edi
mov edi, eax
shl edi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb6340], edx
or eax, edi
not edx
mov ebx, dword [0xbb6344]
imul edx, eax
mov edi, edx
shl edi, 5
xor ebx, edx
shr edx, 0x1a
mov dword [0xbb6344], ebx
or edx, edi
not ebx
imul ebx, edx
mov dl, 1
xor dword [0xbb6348], ebx
shl dl, cl
or byte [0xbb634f], dl
mov eax, fcn.007a3b00
mov ecx, fcn.007a3b00
xor edx, edx
xor ecx, 2
or eax, 2
add eax, ecx
sete dl
mov eax, edx
xor eax, 3
lea ecx, [eax + edx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb634f], al
push ebp
push 0xbb6330
jmp 0x7ceee8
mov eax, dword [esi + 0x44]
mov ecx, dword [eax + 0x110]
mov eax, 1
test ecx, ecx
jne 0x7cf10f
mov ecx, esi
mov edx, ebp
call fcn.007cbdf0
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret