Function at 0x811eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [ecx]
mov esi, edx
mov edx, dword [edx + 0x14]
mov edi, ecx
mov ecx, ebp
call fcn.0078dee0
mov ecx, esi
mov ebx, eax
mov dword [esp + 0xc], esi
call fcn.007cbde0
test eax, eax
je 0x812243
mov ecx, dword [ebp + 0x10]
mov edx, ebx
shl edx, 4
mov esi, dword [ecx + edx]
xor ecx, ecx
cmp ebx, 1
setne cl
lea edx, [ecx + ecx + 0xe]
mov ecx, edi
push esi
push dword [eax]
mov eax, dword [esp + 0x14]
push dword [eax]
call fcn.008002d0
add esp, 0xc
test eax, eax
jne 0x812684
mov edx, 0x994dd8
xor eax, eax
mov dword [esp + 8], esi
imul edx, edx
movzx esi, byte [0xbb97b7]
and edx, 3
cmp edx, 1
seta al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jb 0x8120c5
mov al, byte [0xbb97b7]
mov dword [esp + 4], ebx
xor ebx, ebx
cmp edx, 1
mov ah, 1
seta bl
mov ecx, ebx
not ecx
lea ecx, [ebx + ecx*2 + 4]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb97b7], ah
jne 0x811f4b
mov ecx, 0x994dd8
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
mov ebx, edx
not ebx
lea edx, [edx + ebx*2 + 4]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x811fc7
mov ebx, dword [esp + 4]
xor eax, eax
cmp ecx, 1
movzx esi, byte [0xbb97b7]
seta al
mov edx, eax
not edx
lea eax, [eax + edx*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jae 0x811fa1
jmp 0x8120c5
xor eax, eax
cmp ecx, 1
movzx edx, byte [0xbb97b7]
mov ebx, dword [esp + 4]
seta al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x81209a
mov ecx, 0x994dd8
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta al
mov ecx, eax
not ecx
and ecx, 0x323
lea ecx, [eax + ecx*2 + 0x5eb22c9c]
mov eax, dword [0xbb97a0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb97a0], eax
not eax
imul edx, eax
mov eax, dword [0xbb97a4]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb97a4], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb97a8]
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb97a8], edx
or eax, ebx
not edx
mov esi, dword [0xbb97ac]
imul edx, eax
lea ebx, [edx*8]
xor esi, edx
shr edx, 0x1c
mov dword [0xbb97ac], esi
or edx, ebx
not esi
mov ebx, dword [esp + 4]
imul esi, edx
mov dl, 1
xor dword [0xbb97b0], esi
shl dl, cl
or byte [0xbb97b7], dl
mov eax, 0x994dd8
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
not eax
lea ecx, [ecx + eax*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb97b7], al
mov edx, fcn.007a79d0
mov dword [esp], ebp
mov eax, fcn.007a79d0
and edx, 1
movzx ecx, byte [0xbb97d3]
xor edx, eax
xor eax, eax
cmp edx, 0xffffffff
setne al
bt ecx, eax
jb 0x81220e
mov al, byte [0xbb97d3]
cmp edx, 0xffffffff
mov ah, 1
setne cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb97d3], ah
jne 0x8120f4
mov ecx, fcn.007a79d0
mov edx, fcn.007a79d0
movzx eax, al
and ecx, 1
xor ecx, edx
cmp ecx, 0xffffffff
setne dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x812149
movzx edx, byte [0xbb97d3]
xor eax, eax
cmp ecx, 0xffffffff
setne al
bt edx, eax
jae 0x812130
jmp 0x81220e
movzx edx, byte [0xbb97d3]
xor eax, eax
cmp ecx, 0xffffffff
setne al
bt edx, eax
jb 0x8121ec
mov edx, fcn.007a79d0
mov eax, fcn.007a79d0
xor ecx, ecx
mov dword [esp + 4], ebx
and edx, 1
xor edx, eax
mov eax, dword [0xbb97c0]
cmp edx, 0xffffffff
sete cl
xor ecx, 0xf0688df9
add ecx, 8
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb97c0], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb97c4]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb97c4], eax
or ebx, edx
not eax
mov edx, dword [0xbb97c8]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb97c8], edx
or ebx, eax
not edx
mov al, 1
imul edx, ebx
mov ebx, dword [esp + 4]
shl al, cl
xor dword [0xbb97cc], edx
or byte [0xbb97d3], al
mov ecx, fcn.007a79d0
mov eax, fcn.007a79d0
and ecx, 1
xor ecx, eax
mov al, 0xfe
cmp ecx, 0xffffffff
setne cl
xor cl, 7
rol al, cl
and byte [0xbb97d3], al
cmp ebx, 1
mov ebp, ebx
mov eax, 0xbb97a0
mov ebx, 0xbb97c0
mov ecx, edi
mov edx, 9
cmove ebx, eax
push dword [esp + 8]
push 0
push ebx
mov ebx, ebp
call fcn.008002d0
add esp, 0xc
mov ebp, dword [esp]
test eax, eax
jne 0x812684
mov ecx, edi
call fcn.007f7590
test eax, eax
je 0x812684
mov edx, fcn.00826560
mov dword [esp + 8], eax
imul edx, edx
movzx ecx, byte [0xbb97f3]
and edx, 3
cmp edx, 3
setne al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x8123a3
mov al, byte [0xbb97f3]
cmp edx, 3
mov ah, 1
setne cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb97f3], ah
jne 0x812281
mov ecx, fcn.00826560
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
setne dl
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x8122db
cmp ecx, 3
movzx edx, byte [0xbb97f3]
setne al
or al, 4
movzx eax, al
bt edx, eax
jae 0x8122bf
jmp 0x8123a3
cmp ecx, 3
movzx edx, byte [0xbb97f3]
setne al
or al, 4
movzx eax, al
bt edx, eax
jb 0x812382
mov eax, fcn.00826560
xor ecx, ecx
mov dword [esp], ebp
mov ebp, ebx
imul eax, eax
and eax, 3
cmp eax, 3
mov eax, dword [0xbb97e0]
sete cl
xor ecx, 0x9a5f7d61
add ecx, 0x124
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb97e0], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb97e4]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb97e4], eax
or ebx, edx
not eax
mov edx, dword [0xbb97e8]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb97e8], edx
or ebx, eax
not edx
mov al, 1
imul edx, ebx
mov ebx, ebp
mov ebp, dword [esp]
shl al, cl
xor dword [0xbb97ec], edx
or byte [0xbb97f3], al
mov eax, fcn.00826560
imul eax, eax
and eax, 3
cmp eax, 3
mov al, 0xfe
setne cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb97f3], al
mov edx, fcn.007ba6b0
xor eax, eax
movzx esi, byte [0xbb9837]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt esi, eax
jb 0x81263b
mov al, byte [0xbb9837]
mov dword [esp], ebp
mov ebp, ebx
xor ecx, ecx
cmp edx, 3
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 6]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb9837], ah
jne 0x8123de
mov ecx, fcn.007ba6b0
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 6]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x81245e
mov ebx, ebp
mov ebp, dword [esp]
xor eax, eax
cmp ecx, 3
movzx esi, byte [0xbb9837]
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 6]
and al, 7
movzx eax, al
bt esi, eax
jae 0x812437
jmp 0x81263b
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb9837]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x81260a
mov ecx, fcn.007ba6b0
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete al
mov ecx, eax
not ecx
and ecx, 0x561
lea ecx, [eax + ecx*2 + 0x49b4fa96]
mov eax, dword [0xbb9800]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb9800], eax
not eax
imul edx, eax
mov eax, dword [0xbb9804]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb9804], eax
or ebx, edx
not eax
mov edx, dword [0xbb9808]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb9808], edx
or ebx, eax
not edx
mov eax, dword [0xbb980c]
imul edx, ebx
lea ebx, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb980c], eax
or ebx, edx
not eax
mov edx, dword [0xbb9810]
imul eax, ebx
mov ebx, eax
shl ebx, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb9810], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb9814]
mov ebx, edx
shl ebx, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbb9814], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb9818]
mov ebx, eax
shl ebx, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbb9818], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb981c]
mov ebx, edx
shl ebx, 7
xor eax, edx
shr edx, 0x18
mov dword [0xbb981c], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb9820]
mov ebx, eax
shl ebx, 8
xor edx, eax
shr eax, 0x17
mov dword [0xbb9820], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb9824]
mov ebx, edx
shl ebx, 9
xor eax, edx
shr edx, 0x16
mov dword [0xbb9824], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb9828]
mov ebx, eax
shl ebx, 0xa
xor edx, eax
shr eax, 0x15
mov dword [0xbb9828], edx
or eax, ebx
not edx
mov esi, dword [0xbb982c]
imul edx, eax
mov ebx, edx
shl ebx, 0xb
xor esi, edx
shr edx, 0x14
mov dword [0xbb982c], esi
or edx, ebx
not esi
imul esi, edx
mov dl, 1
xor dword [0xbb9830], esi
shl dl, cl
or byte [0xbb9837], dl
mov eax, fcn.007ba6b0
xor ecx, ecx
mov ebx, ebp
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb9837], al
mov ebp, dword [esp]
mov esi, dword [esp + 0xc]
mov eax, dword [ebp + 0x10]
mov ecx, ebx
shl ecx, 4
push dword [esi]
push 0xbb97e0
push dword [eax + ecx]
push 0xbb9800
push edi
call fcn.00802190
add esp, 0x14
mov ecx, edi
mov edx, ebx
call fcn.00802260
mov ecx, dword [esp + 8]
mov edx, 0x91
push 0
push dword [esi]
push 0
push 0
push ebx
call fcn.007f75d0
add esp, 0x24
jmp 0x812687
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret