Function at 0x7f99a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edi, fcn.007f1f60
mov dword [esp], ecx
xor eax, eax
mov ebp, edx
imul edi, edi
movzx edx, byte [0xbb0b63]
and edi, 3
cmp edi, 3
sete al
mov ecx, eax
xor ecx, 3
lea eax, [eax + ecx*2]
bt edx, eax
jb 0x7f9b8e
mov al, byte [0xbb0b63]
xor ecx, ecx
cmp edi, 3
mov ah, 1
sete cl
mov ebx, ecx
not ebx
and ebx, 3
lea ecx, [ecx + ebx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb0b63], ah
jne 0x7f99da
mov ecx, fcn.007f1f60
xor ebx, ebx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete bl
mov edi, ebx
not edi
and edi, 3
lea ebx, [ebx + edi*2]
xor bl, 7
movzx edi, bl
bt eax, edi
jae 0x7f9a4b
xor eax, eax
cmp ecx, 3
movzx edi, byte [0xbb0b63]
sete al
mov ebx, eax
xor ebx, 3
lea eax, [eax + ebx*2]
bt edi, eax
jae 0x7f9a2a
jmp 0x7f9b8e
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb0b63]
sete al
mov ecx, eax
xor ecx, 3
lea eax, [eax + ecx*2]
bt edx, eax
jb 0x7f9b64
mov ecx, fcn.007f1f60
xor eax, eax
mov dl, 1
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete al
mov ecx, eax
not ecx
and ecx, 0x823
lea ecx, [eax + ecx*2 + 0x60b0d158]
mov eax, dword [0xbb0b40]
mov edi, ecx
shr edi, 0x1f
or edi, ecx
xor eax, ecx
and cl, 7
shl dl, cl
mov dword [0xbb0b40], eax
not eax
imul edi, eax
mov eax, dword [0xbb0b44]
lea ebx, [edi + edi]
xor eax, edi
shr edi, 0x1e
mov dword [0xbb0b44], eax
or edi, ebx
not eax
imul eax, edi
mov edi, dword [0xbb0b48]
lea ebx, [eax*4]
xor edi, eax
shr eax, 0x1d
mov dword [0xbb0b48], edi
or eax, ebx
not edi
imul edi, eax
mov eax, dword [0xbb0b4c]
lea ebx, [edi*8]
xor eax, edi
shr edi, 0x1c
mov dword [0xbb0b4c], eax
or edi, ebx
not eax
imul eax, edi
mov edi, dword [0xbb0b50]
mov ebx, eax
shl ebx, 4
xor edi, eax
shr eax, 0x1b
mov dword [0xbb0b50], edi
or eax, ebx
not edi
imul edi, eax
mov eax, dword [0xbb0b54]
mov ebx, edi
shl ebx, 5
xor eax, edi
shr edi, 0x1a
mov dword [0xbb0b54], eax
or edi, ebx
not eax
mov esi, dword [0xbb0b58]
imul eax, edi
mov ebx, eax
shl ebx, 6
xor esi, eax
shr eax, 0x19
mov dword [0xbb0b58], esi
or eax, ebx
not esi
imul esi, eax
xor dword [0xbb0b5c], esi
or byte [0xbb0b63], dl
mov ecx, fcn.007f1f60
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete al
mov ecx, eax
not ecx
and ecx, 3
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb0b63], al
mov edi, 0x778810
mov eax, 0x778810
movzx edx, byte [0xbb0bc7]
and edi, 1
xor edi, eax
xor eax, eax
cmp edi, 0xffffffff
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7f9d28
mov al, byte [0xbb0bc7]
xor ecx, ecx
cmp edi, 0xffffffff
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb0bc7], ah
jne 0x7f9bc3
mov ecx, 0x778810
mov edi, 0x778810
xor edx, edx
movzx eax, al
and ecx, 1
xor ecx, edi
cmp ecx, 0xffffffff
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7f9c37
xor eax, eax
cmp ecx, 0xffffffff
movzx esi, byte [0xbb0bc7]
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 2]
bt esi, eax
jae 0x7f9c15
jmp 0x7f9d28
xor eax, eax
cmp ecx, 0xffffffff
movzx edx, byte [0xbb0bc7]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7f9cfb
mov ecx, 0x778810
mov eax, 0x778810
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
not ecx
and ecx, 0x829
lea ecx, [eax + ecx*2 + 0x129a7052]
mov eax, dword [0xbb0bb0]
xor eax, ecx
mov dword [0xbb0bb0], eax
not eax
mov edx, dword [0xbb0bb4]
imul eax, ecx
and cl, 7
lea edi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb0bb4], edx
or edi, eax
not edx
mov eax, dword [0xbb0bb8]
imul edx, edi
lea edi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb0bb8], eax
or edi, edx
not eax
mov edx, dword [0xbb0bbc]
imul eax, edi
lea edi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb0bbc], edx
or edi, eax
not edx
mov al, 1
imul edx, edi
shl al, cl
xor dword [0xbb0bc0], edx
or byte [0xbb0bc7], al
mov ecx, 0x778810
mov eax, 0x778810
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb0bc7], al
mov eax, dword [ebp + 0x18]
mov esi, 0xbb0b70
test al, 0x20
jne 0x7f9d4c
mov esi, 0xbb0b90
test al, 4
jne 0x7f9d4c
test al, 8
mov eax, 0xbb0b40
mov esi, 0xbb0bb0
cmove esi, eax
mov edi, fcn.007a0550
xor eax, eax
movzx edx, byte [0xbb0b87]
imul edi, edi
and edi, 3
cmp edi, 1
seta al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7f9ecd
mov al, byte [0xbb0b87]
xor ecx, ecx
cmp edi, 1
mov ah, 1
seta cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ebx + ecx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb0b87], ah
jne 0x7f9d7c
mov ecx, fcn.007a0550
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
mov ebx, edx
xor ebx, 1
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7f9de9
xor eax, eax
cmp ecx, 1
movzx edi, byte [0xbb0b87]
seta al
mov edx, eax
xor edx, 1
lea eax, [edx + eax*2]
bt edi, eax
jae 0x7f9dc8
jmp 0x7f9ecd
xor eax, eax
cmp ecx, 1
movzx edx, byte [0xbb0b87]
seta al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7f9ea5
mov eax, fcn.007a0550
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
xor eax, 0x6580a9
lea ecx, [eax + ecx*2 + 0xa28]
mov eax, dword [0xbb0b70]
xor eax, ecx
mov dword [0xbb0b70], eax
not eax
mov edx, dword [0xbb0b74]
imul eax, ecx
and cl, 7
lea edi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb0b74], edx
or edi, eax
not edx
mov eax, dword [0xbb0b78]
imul edx, edi
lea edi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb0b78], eax
or edi, edx
not eax
mov edx, dword [str.0_X]
imul eax, edi
lea edi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [str.0_X], edx
or edi, eax
not edx
mov al, 1
imul edx, edi
shl al, cl
xor dword [0xbb0b80], edx
or byte [0xbb0b87], al
mov eax, fcn.007a0550
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
xor eax, 1
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb0b87], al
mov edi, fcn.0077c8c0
mov ebx, fcn.0077c8c0
movzx ecx, byte [0xbb0ba7]
or edi, 2
xor ebx, 2
mov eax, edi
add eax, ebx
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7fa04e
mov al, byte [0xbb0ba7]
mov ecx, edi
mov dl, 1
add ecx, ebx
sete cl
not cl
and cl, 3
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb0ba7], dl
jne 0x7f9f00
mov ecx, fcn.0077c8c0
mov edi, fcn.0077c8c0
movzx eax, al
or ecx, 2
xor edi, 2
mov edx, ecx
add edx, edi
sete dl
not dl
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7f9f68
mov eax, ecx
movzx edx, byte [0xbb0ba7]
add eax, edi
sete al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x7f9f49
jmp 0x7fa04e
add ecx, edi
movzx ecx, byte [0xbb0ba7]
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7fa027
mov eax, fcn.0077c8c0
mov edx, fcn.0077c8c0
xor ecx, ecx
xor edx, 2
or eax, 2
add eax, edx
mov eax, dword [0xbb0b90]
sete cl
xor ecx, 0x6d63abb3
add ecx, 0x98
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb0b90], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb0b94]
lea edi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb0b94], eax
or edi, edx
not eax
mov edx, dword [0xbb0b98]
imul eax, edi
lea edi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb0b98], edx
or edi, eax
not edx
mov eax, dword [0xbb0b9c]
imul edx, edi
lea edi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb0b9c], eax
or edi, edx
not eax
mov dl, 1
imul eax, edi
shl dl, cl
xor dword [0xbb0ba0], eax
or byte [0xbb0ba7], dl
mov eax, fcn.0077c8c0
mov ecx, fcn.0077c8c0
xor ecx, 2
or eax, 2
add eax, ecx
mov al, 0xfe
sete cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbb0ba7], al
mov ebp, fcn.007b1a70
xor eax, eax
movzx edx, byte [0xbb0beb]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
imul ebp, ebp
and ebp, 3
cmp ebp, 3
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7fa223
mov al, byte [0xbb0beb]
xor ecx, ecx
cmp ebp, 3
sete cl
mov edx, ecx
xor edx, 5
lea ecx, [edx + ecx*2 + 4]
mov dl, 1
and cl, 7
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb0beb], dl
jne 0x7fa08c
mov ecx, fcn.007b1a70
xor ebx, ebx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete bl
mov edx, ebx
xor edx, 5
lea edx, [edx + ebx*2 + 4]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7fa10b
mov ebx, dword [esp + 0x18]
xor eax, eax
cmp ecx, 3
movzx ebp, byte [0xbb0beb]
sete al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2 + 4]
and al, 7
movzx eax, al
bt ebp, eax
jae 0x7fa0e4
jmp 0x7fa223
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb0beb]
mov ebx, dword [esp + 0x18]
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7fa1f7
mov eax, fcn.007b1a70
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 0x6934a835
lea ecx, [eax + ecx*2 + 0x284]
mov eax, dword [0xbb0bd0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb0bd0], eax
not eax
imul edx, eax
mov eax, dword [0xbb0bd4]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb0bd4], eax
or ebx, edx
not eax
mov edx, dword [0xbb0bd8]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb0bd8], edx
or ebx, eax
not edx
mov eax, dword [0xbb0bdc]
imul edx, ebx
lea ebx, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb0bdc], eax
or ebx, edx
not eax
mov edx, dword [0xbb0be0]
imul eax, ebx
mov ebx, eax
shl ebx, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb0be0], edx
or eax, ebx
not edx
mov ebx, dword [esp + 0x18]
imul edx, eax
xor dword [0xbb0be4], edx
mov dl, 1
shl dl, cl
or byte [0xbb0beb], dl
mov eax, fcn.007b1a70
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 5
lea ecx, [eax + ecx*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb0beb], al
push esi
push ebx
push 0xbb0bd0
push dword [esp + 0xc]
call fcn.00782570
add esp, 0x10
test edi, edi
je 0x7fa23d
mov byte [edi], 0x77
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret