Function at 0x7cb800
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [0xbcbae0]
mov eax, dword [esp + 0x1c]
mov esi, ecx
xor edi, esp
mov dword [esp + 8], edi
mov dword [esp], edx
mov dword [esp + 4], eax
mov edi, dword [esi + 4]
cmp byte [edx], 0
je 0x7cb9e0
mov edx, fcn.007f6a70
movzx ecx, byte [0xbb493f]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7cb9ca
mov al, byte [0xbb493f]
cmp edx, 1
mov ah, 1
seta cl
not cl
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb493f], ah
jne 0x7cb858
mov ecx, fcn.007f6a70
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
not dl
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7cb8b8
cmp ecx, 1
movzx edx, byte [0xbb493f]
seta al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x7cb89a
jmp 0x7cb9ca
cmp ecx, 1
movzx ecx, byte [0xbb493f]
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7cb9a7
mov eax, fcn.007f6a70
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbb4920]
seta cl
xor ecx, 0x4abc353
add ecx, 0x958
xor eax, ecx
mov dword [0xbb4920], eax
not eax
mov edx, dword [0xbb4924]
imul eax, ecx
and cl, 7
lea ebx, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb4924], edx
or ebx, eax
not edx
mov eax, dword [0xbb4928]
imul edx, ebx
lea ebx, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb4928], eax
or ebx, edx
not eax
mov edx, dword [0xbb492c]
imul eax, ebx
lea ebx, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb492c], edx
or ebx, eax
not edx
mov eax, dword [0xbb4930]
imul edx, ebx
mov ebx, edx
shl ebx, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb4930], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb4934]
mov ebx, eax
shl ebx, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbb4934], edx
or eax, ebx
not edx
imul edx, eax
xor dword [0xbb4938], edx
mov dl, 1
shl dl, cl
or byte [0xbb493f], dl
mov eax, fcn.007f6a70
imul eax, eax
and eax, 3
cmp eax, 1
mov al, 0xfe
seta cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbb493f], al
mov eax, esp
push eax
push 0xbb4920
push edi
call fcn.00782570
add esp, 0xc
jmp 0x7cbb84
mov edx, fcn.00829830
xor eax, eax
movzx ebx, byte [0xbb4957]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 7
movzx eax, al
bt ebx, eax
jb 0x7cbb76
mov al, byte [0xbb4957]
xor ecx, ecx
cmp edx, 3
mov ah, 1
sete cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb4957], ah
jne 0x7cba14
mov ecx, fcn.00829830
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
mov ebx, edx
not ebx
lea edx, [edx + ebx*2]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7cba89
xor eax, eax
cmp ecx, 3
movzx ebx, byte [0xbb4957]
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2]
and al, 7
movzx eax, al
bt ebx, eax
jae 0x7cba64
jmp 0x7cbb76
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb4957]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7cbb4c
mov ecx, fcn.00829830
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete al
mov ecx, eax
not ecx
and ecx, 0x187
lea ecx, [eax + ecx*2 + 0x30045c58]
mov eax, dword [0xbb4940]
xor eax, ecx
mov dword [0xbb4940], eax
not eax
mov edx, dword [0xbb4944]
imul eax, ecx
and cl, 7
lea ebx, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb4944], edx
or ebx, eax
not edx
mov eax, dword [0xbb4948]
imul edx, ebx
lea ebx, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb4948], eax
or ebx, edx
not eax
mov edx, dword [0xbb494c]
imul eax, ebx
lea ebx, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb494c], edx
or ebx, eax
not edx
mov al, 1
imul edx, ebx
shl al, cl
xor dword [0xbb4950], edx
or byte [0xbb4957], al
mov eax, fcn.00829830
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
not eax
lea ecx, [ecx + eax*2]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb4957], al
push 0xbb4940
push edi
call fcn.00782570
add esp, 8
mov dword [esi + 4], edi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00980459
add esp, 0xc
pop esi
pop edi
pop ebx
ret