Function at 0x7d7100
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [0xbd33e0]
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 0x7d72e0
mov edx, fcn.008022d0
movzx ecx, byte [0xbbc29f]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7d72ca
mov al, byte [0xbbc29f]
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 [0xbbc29f], ah
jne 0x7d7158
mov ecx, fcn.008022d0
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 0x7d71b8
cmp ecx, 1
movzx edx, byte [0xbbc29f]
seta al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x7d719a
jmp 0x7d72ca
cmp ecx, 1
movzx ecx, byte [0xbbc29f]
seta al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7d72a7
mov eax, fcn.008022d0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbbc280]
seta cl
xor ecx, 0x4abc353
add ecx, 0x958
xor eax, ecx
mov dword [0xbbc280], eax
not eax
mov edx, dword [0xbbc284]
imul eax, ecx
and cl, 7
lea ebx, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbbc284], edx
or ebx, eax
not edx
mov eax, dword [0xbbc288]
imul edx, ebx
lea ebx, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbbc288], eax
or ebx, edx
not eax
mov edx, dword [0xbbc28c]
imul eax, ebx
lea ebx, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbbc28c], edx
or ebx, eax
not edx
mov eax, dword [0xbbc290]
imul edx, ebx
mov ebx, edx
shl ebx, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbbc290], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbbc294]
mov ebx, eax
shl ebx, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbbc294], edx
or eax, ebx
not edx
imul edx, eax
xor dword [0xbbc298], edx
mov dl, 1
shl dl, cl
or byte [0xbbc29f], dl
mov eax, fcn.008022d0
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 [0xbbc29f], al
mov eax, esp
push eax
push 0xbbc280
push edi
call fcn.0078de60
add esp, 0xc
jmp 0x7d7484
mov edx, fcn.00835090
xor eax, eax
movzx ebx, byte [0xbbc2b7]
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 0x7d7476
mov al, byte [0xbbc2b7]
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 [0xbbc2b7], ah
jne 0x7d7314
mov ecx, fcn.00835090
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 0x7d7389
xor eax, eax
cmp ecx, 3
movzx ebx, byte [0xbbc2b7]
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2]
and al, 7
movzx eax, al
bt ebx, eax
jae 0x7d7364
jmp 0x7d7476
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbbc2b7]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7d744c
mov ecx, fcn.00835090
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 [0xbbc2a0]
xor eax, ecx
mov dword [0xbbc2a0], eax
not eax
mov edx, dword [0xbbc2a4]
imul eax, ecx
and cl, 7
lea ebx, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbbc2a4], edx
or ebx, eax
not edx
mov eax, dword [0xbbc2a8]
imul edx, ebx
lea ebx, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbbc2a8], eax
or ebx, edx
not eax
mov edx, dword [0xbbc2ac]
imul eax, ebx
lea ebx, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbbc2ac], edx
or ebx, eax
not edx
mov al, 1
imul edx, ebx
shl al, cl
xor dword [0xbbc2b0], edx
or byte [0xbbc2b7], al
mov eax, fcn.00835090
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 [0xbbc2b7], al
push 0xbbc2a0
push edi
call fcn.0078de60
add esp, 8
mov dword [esi + 4], edi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00989fe9
add esp, 0xc
pop esi
pop edi
pop ebx
ret