Function at 0x806650
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.007825f0
mov ecx, esi
mov ebx, eax
mov dword [esp + 0xc], esi
call fcn.007c04e0
test eax, eax
je 0x8069e3
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.007f4a50
add esp, 0xc
test eax, eax
jne 0x806e24
mov edx, 0x98b248
xor eax, eax
mov dword [esp + 8], esi
imul edx, edx
movzx esi, byte [0xbb1e57]
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 0x806865
mov al, byte [0xbb1e57]
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 [0xbb1e57], ah
jne 0x8066eb
mov ecx, 0x98b248
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 0x806767
mov ebx, dword [esp + 4]
xor eax, eax
cmp ecx, 1
movzx esi, byte [0xbb1e57]
seta al
mov edx, eax
not edx
lea eax, [eax + edx*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jae 0x806741
jmp 0x806865
xor eax, eax
cmp ecx, 1
movzx edx, byte [0xbb1e57]
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 0x80683a
mov ecx, 0x98b248
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 [0xbb1e40]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb1e40], eax
not eax
imul edx, eax
mov eax, dword [0xbb1e44]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb1e44], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb1e48]
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb1e48], edx
or eax, ebx
not edx
mov esi, dword [0xbb1e4c]
imul edx, eax
lea ebx, [edx*8]
xor esi, edx
shr edx, 0x1c
mov dword [0xbb1e4c], esi
or edx, ebx
not esi
mov ebx, dword [esp + 4]
imul esi, edx
mov dl, 1
xor dword [0xbb1e50], esi
shl dl, cl
or byte [0xbb1e57], dl
mov eax, 0x98b248
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 [0xbb1e57], al
mov edx, fcn.0079c0e0
mov dword [esp], ebp
mov eax, fcn.0079c0e0
and edx, 1
movzx ecx, byte [0xbb1e73]
xor edx, eax
xor eax, eax
cmp edx, 0xffffffff
setne al
bt ecx, eax
jb 0x8069ae
mov al, byte [0xbb1e73]
cmp edx, 0xffffffff
mov ah, 1
setne cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb1e73], ah
jne 0x806894
mov ecx, fcn.0079c0e0
mov edx, fcn.0079c0e0
movzx eax, al
and ecx, 1
xor ecx, edx
cmp ecx, 0xffffffff
setne dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x8068e9
movzx edx, byte [0xbb1e73]
xor eax, eax
cmp ecx, 0xffffffff
setne al
bt edx, eax
jae 0x8068d0
jmp 0x8069ae
movzx edx, byte [0xbb1e73]
xor eax, eax
cmp ecx, 0xffffffff
setne al
bt edx, eax
jb 0x80698c
mov edx, fcn.0079c0e0
mov eax, fcn.0079c0e0
xor ecx, ecx
mov dword [esp + 4], ebx
and edx, 1
xor edx, eax
mov eax, dword [0xbb1e60]
cmp edx, 0xffffffff
sete cl
xor ecx, 0xf0688df9
add ecx, 8
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb1e60], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb1e64]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb1e64], eax
or ebx, edx
not eax
mov edx, dword [0xbb1e68]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb1e68], edx
or ebx, eax
not edx
mov al, 1
imul edx, ebx
mov ebx, dword [esp + 4]
shl al, cl
xor dword [0xbb1e6c], edx
or byte [0xbb1e73], al
mov ecx, fcn.0079c0e0
mov eax, fcn.0079c0e0
and ecx, 1
xor ecx, eax
mov al, 0xfe
cmp ecx, 0xffffffff
setne cl
xor cl, 7
rol al, cl
and byte [0xbb1e73], al
cmp ebx, 1
mov ebp, ebx
mov eax, 0xbb1e40
mov ebx, 0xbb1e60
mov ecx, edi
mov edx, 9
cmove ebx, eax
push dword [esp + 8]
push 0
push ebx
mov ebx, ebp
call fcn.007f4a50
add esp, 0xc
mov ebp, dword [esp]
test eax, eax
jne 0x806e24
mov ecx, edi
call fcn.007ebd10
test eax, eax
je 0x806e24
mov edx, fcn.0081ad20
mov dword [esp + 8], eax
imul edx, edx
movzx ecx, byte [0xbb1e93]
and edx, 3
cmp edx, 3
setne al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x806b43
mov al, byte [0xbb1e93]
cmp edx, 3
mov ah, 1
setne cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb1e93], ah
jne 0x806a21
mov ecx, fcn.0081ad20
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 0x806a7b
cmp ecx, 3
movzx edx, byte [0xbb1e93]
setne al
or al, 4
movzx eax, al
bt edx, eax
jae 0x806a5f
jmp 0x806b43
cmp ecx, 3
movzx edx, byte [0xbb1e93]
setne al
or al, 4
movzx eax, al
bt edx, eax
jb 0x806b22
mov eax, fcn.0081ad20
xor ecx, ecx
mov dword [esp], ebp
mov ebp, ebx
imul eax, eax
and eax, 3
cmp eax, 3
mov eax, dword [0xbb1e80]
sete cl
xor ecx, 0x9a5f7d61
add ecx, 0x124
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb1e80], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb1e84]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb1e84], eax
or ebx, edx
not eax
mov edx, dword [0xbb1e88]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb1e88], edx
or ebx, eax
not edx
mov al, 1
imul edx, ebx
mov ebx, ebp
mov ebp, dword [esp]
shl al, cl
xor dword [0xbb1e8c], edx
or byte [0xbb1e93], al
mov eax, fcn.0081ad20
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 [0xbb1e93], al
mov edx, fcn.007aeda0
xor eax, eax
movzx esi, byte [0xbb1ed7]
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 0x806ddb
mov al, byte [0xbb1ed7]
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 [0xbb1ed7], ah
jne 0x806b7e
mov ecx, fcn.007aeda0
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 0x806bfe
mov ebx, ebp
mov ebp, dword [esp]
xor eax, eax
cmp ecx, 3
movzx esi, byte [0xbb1ed7]
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 6]
and al, 7
movzx eax, al
bt esi, eax
jae 0x806bd7
jmp 0x806ddb
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb1ed7]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x806daa
mov ecx, fcn.007aeda0
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 [0xbb1ea0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb1ea0], eax
not eax
imul edx, eax
mov eax, dword [0xbb1ea4]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb1ea4], eax
or ebx, edx
not eax
mov edx, dword [0xbb1ea8]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb1ea8], edx
or ebx, eax
not edx
mov eax, dword [0xbb1eac]
imul edx, ebx
lea ebx, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb1eac], eax
or ebx, edx
not eax
mov edx, dword [0xbb1eb0]
imul eax, ebx
mov ebx, eax
shl ebx, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb1eb0], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb1eb4]
mov ebx, edx
shl ebx, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbb1eb4], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb1eb8]
mov ebx, eax
shl ebx, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbb1eb8], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb1ebc]
mov ebx, edx
shl ebx, 7
xor eax, edx
shr edx, 0x18
mov dword [0xbb1ebc], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb1ec0]
mov ebx, eax
shl ebx, 8
xor edx, eax
shr eax, 0x17
mov dword [0xbb1ec0], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb1ec4]
mov ebx, edx
shl ebx, 9
xor eax, edx
shr edx, 0x16
mov dword [0xbb1ec4], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbb1ec8]
mov ebx, eax
shl ebx, 0xa
xor edx, eax
shr eax, 0x15
mov dword [0xbb1ec8], edx
or eax, ebx
not edx
mov esi, dword [0xbb1ecc]
imul edx, eax
mov ebx, edx
shl ebx, 0xb
xor esi, edx
shr edx, 0x14
mov dword [0xbb1ecc], esi
or edx, ebx
not esi
imul esi, edx
mov dl, 1
xor dword [0xbb1ed0], esi
shl dl, cl
or byte [0xbb1ed7], dl
mov eax, fcn.007aeda0
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 [0xbb1ed7], 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 0xbb1e80
push dword [eax + ecx]
push 0xbb1ea0
push edi
call fcn.007f6930
add esp, 0x14
mov ecx, edi
mov edx, ebx
call fcn.007f6a00
mov ecx, dword [esp + 8]
mov edx, 0x91
push 0
push dword [esi]
push 0
push 0
push ebx
call fcn.007ebd50
add esp, 0x24
jmp 0x806e27
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret