Function at 0x809c10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [edx + 0x20]
mov edi, dword [edx + 0x44]
mov ebp, ecx
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 0x1c]
mov esi, dword [eax]
call fcn.007ebd10
mov ebx, eax
mov ecx, eax
mov edx, 0x64
push esi
push dword [edi + 0x30]
call fcn.007c57e0
add esp, 8
mov eax, dword [edi + 0x30]
mov ecx, ebx
mov edx, 0x62
push eax
inc eax
push eax
call fcn.007c57e0
add esp, 8
mov eax, dword [edi + 0x30]
mov ecx, ebx
mov edx, 0x62
push eax
add eax, 2
push eax
call fcn.007c57e0
add esp, 8
mov eax, dword [edi + 0x30]
mov ecx, ebx
mov edx, 0x62
push eax
add eax, 3
push eax
call fcn.007c57e0
add esp, 8
mov eax, dword [edi + 8]
test eax, eax
je 0x809cb1
mov ecx, dword [ebp + 0x2c]
mov eax, dword [eax]
mov edx, 0x48
inc ecx
mov dword [edi + 0x44], ecx
add dword [ebp + 0x2c], eax
mov ecx, ebx
mov esi, dword [edi + 0x44]
lea eax, [eax + esi - 1]
push eax
push esi
push 0
call fcn.007c5800
add esp, 0xc
mov eax, dword [ebp + 0x2c]
mov ecx, ebx
mov edx, 0x45
inc eax
mov dword [ebp + 0x2c], eax
mov dword [edi + 0x54], eax
push eax
push 1
call fcn.007c57e0
add esp, 8
cmp byte [edi + 0x14], 0
mov esi, ebp
jne 0x80a34a
mov ebp, 0x7a5740
mov eax, fcn.0077e2a0
mov edx, fcn.007a31e0
mov ecx, 3
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
imul ebp, ebp
and eax, 1
sub ecx, edx
and ebp, 3
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov edx, dword [edi + 0x2c]
test byte [edx + 5], 0x10
je 0x809dac
cmp byte [edi + 0x11], 0x5a
je 0x809dac
mov eax, dword [edi + 0x48]
mov ecx, esi
mov edx, dword [eax + 0x14]
push 0
push 0
call fcn.00809a50
add esp, 8
mov ebx, eax
mov eax, dword [esi + 0x28]
lea ecx, [eax + 1]
mov dword [esi + 0x28], ecx
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x2c]
inc eax
mov dword [edi + 0x40], eax
add dword [esi + 0x2c], 3
test ebx, ebx
je 0x809d67
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + 0x20]
cmp byte [eax + 1], 0x69
jne 0x809d67
mov eax, dword [ebx + 0x10]
mov byte [eax], 1
mov esi, dword [esp + 4]
mov edx, 0x64
mov ecx, esi
push 2
push dword [edi + 0x3c]
call fcn.007c57e0
add esp, 8
mov ecx, esi
mov edx, ebx
push 0xfffffffffffffff7
call fcn.007ec2f0
add esp, 4
mov eax, dword [edi + 0x40]
mov ecx, esi
mov edx, 0x45
inc eax
push eax
push 0
call fcn.007c57e0
add esp, 8
mov esi, dword [esp + 0xc]
jmp 0x80a337
xor eax, eax
cmp ebp, 1
movzx ebx, byte [0xbb22d3]
seta al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt ebx, eax
jb 0x809ee2
mov al, byte [0xbb22d3]
xor ecx, ecx
cmp ebp, 1
mov ah, 1
seta cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2 + 4]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb22d3], ah
jne 0x809dd6
xor ecx, ecx
cmp ebp, 1
movzx eax, al
seta cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2 + 4]
and cl, 7
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x809e43
xor eax, eax
cmp ebp, 1
movzx ebx, byte [0xbb22d3]
seta al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt ebx, eax
jae 0x809e1d
jmp 0x809ee2
xor eax, eax
cmp ebp, 1
movzx ebx, byte [0xbb22d3]
seta al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt ebx, eax
jb 0x809ec2
xor eax, eax
cmp ebp, 1
seta al
mov ecx, eax
not ecx
and ecx, 0x813
lea ecx, [eax + ecx*2 + 0x2b14a14c]
mov eax, dword [0xbb22c4]
mov dword [esp], ecx
xor eax, ecx
mov dword [0xbb22c4], eax
not eax
mov ebx, dword [0xbb22c8]
imul eax, ecx
lea ecx, [eax + eax]
xor ebx, eax
shr eax, 0x1e
mov dword [0xbb22c8], ebx
or ecx, eax
not ebx
mov al, 1
imul ebx, ecx
mov ecx, dword [esp]
xor dword [0xbb22cc], ebx
and cl, 7
shl al, cl
or byte [0xbb22d3], al
xor eax, eax
cmp ebp, 1
seta al
mov ecx, eax
not ecx
lea ecx, [eax + ecx*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb22d3], al
mov ebx, fcn.00834db0
xor eax, eax
imul ebx, ebx
and ebx, 3
cmp ebx, 3
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
movzx ecx, byte [0xbb22f3]
bt ecx, eax
jb 0x80a03f
mov al, byte [0xbb22f3]
mov dword [esp], edx
xor edx, edx
cmp ebx, 3
sete dl
mov ecx, edx
xor ecx, 1
lea ecx, [edx + ecx*2 + 2]
mov dl, 1
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb22f3], dl
jne 0x809f16
xor ecx, ecx
cmp ebx, 3
movzx eax, al
sete cl
mov edx, ecx
xor edx, 1
lea ecx, [ecx + edx*2 + 2]
mov edx, dword [esp]
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x809f7e
xor eax, eax
cmp ebx, 3
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
movzx ecx, byte [0xbb22f3]
bt ecx, eax
jae 0x809f5c
jmp 0x80a03f
xor eax, eax
cmp ebx, 3
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
movzx ecx, byte [0xbb22f3]
bt ecx, eax
jb 0x80a021
xor eax, eax
cmp ebx, 3
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 - 0x2ec1886e]
mov eax, dword [0xbb22e0]
mov edx, ecx
mov dword [esp + 0x10], ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
mov dword [0xbb22e0], eax
not eax
imul edx, eax
mov eax, dword [0xbb22e4]
lea ecx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb22e4], eax
or ecx, edx
not eax
imul eax, ecx
mov ecx, dword [0xbb22e8]
lea edx, [eax*4]
xor ecx, eax
shr eax, 0x1d
mov dword [0xbb22e8], ecx
or edx, eax
not ecx
mov al, 1
imul ecx, edx
mov edx, dword [esp]
xor dword [0xbb22ec], ecx
mov ecx, dword [esp + 0x10]
and cl, 7
shl al, cl
or byte [0xbb22f3], al
xor eax, eax
cmp ebx, 3
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 [0xbb22f3], al
mov edx, dword [edx + 0x20]
cmp edx, 0xbb22c4
je 0x80a052
cmp edx, 0xbb22e0
jne 0x80a081
mov eax, dword [esi + 0x2c]
mov edx, 0x62
inc eax
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x28]
lea ecx, [eax + 1]
mov dword [esi + 0x28], ecx
mov dword [edi + 0x3c], eax
add dword [esi + 0x2c], 2
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
push dword [eax + 0x30]
push dword [edi + 0x3c]
jmp 0x80a32f
mov esi, dword [esp + 0x18]
xor eax, eax
movzx ebx, byte [0xbb0e8b]
mov ecx, esi
xor ecx, fcn.0077e2a0
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt ebx, eax
jb 0x80a1c8
mov al, byte [0xbb0e8b]
mov ebx, esi
xor ecx, ecx
mov ah, 1
xor ebx, fcn.0077e2a0
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 [0xbb0e8b], ah
jne 0x80a0b5
mov ebx, esi
xor ecx, ecx
movzx eax, al
xor ebx, fcn.0077e2a0
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 6]
and cl, 7
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x80a134
mov ecx, esi
xor eax, eax
movzx ebx, byte [0xbb0e8b]
xor ecx, fcn.0077e2a0
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt ebx, eax
jae 0x80a108
jmp 0x80a1c8
mov ecx, esi
xor eax, eax
movzx ebx, byte [0xbb0e8b]
xor ecx, fcn.0077e2a0
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt ebx, eax
jb 0x80a1a4
mov ecx, esi
xor eax, eax
xor ecx, fcn.0077e2a0
sete al
mov ecx, eax
not ecx
and ecx, 0x381
lea ecx, [eax + ecx*2 + 0x59d04c0e]
mov eax, dword [0xbb0e80]
mov ebx, ecx
shr ebx, 0x1f
or ebx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb0e80], eax
not eax
imul ebx, eax
mov ah, 1
xor dword [0xbb0e84], ebx
shl ah, cl
or byte [0xbb0e8b], ah
xor eax, eax
xor esi, fcn.0077e2a0
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb0e8b], al
mov esi, dword [esp + 0x14]
xor eax, eax
movzx ebx, byte [0xbb0e97]
mov ecx, esi
xor ecx, fcn.007a31e0
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt ebx, eax
jb 0x80a2fe
mov al, byte [0xbb0e97]
mov ebx, esi
xor ecx, ecx
mov ah, 1
xor ebx, fcn.007a31e0
sete cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2]
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb0e97], ah
jne 0x80a1fa
mov ebx, esi
xor ecx, ecx
movzx eax, al
xor ebx, fcn.007a31e0
sete cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2]
and cl, 3
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x80a273
mov ecx, esi
xor eax, eax
movzx ebx, byte [0xbb0e97]
xor ecx, fcn.007a31e0
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt ebx, eax
jae 0x80a249
jmp 0x80a2fe
mov ecx, esi
xor eax, eax
movzx ebx, byte [0xbb0e97]
xor ecx, fcn.007a31e0
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt ebx, eax
jb 0x80a2da
mov ecx, esi
xor eax, eax
xor ecx, fcn.007a31e0
sete al
mov ecx, eax
not ecx
and ecx, 0x795
lea ecx, [eax + ecx*2 + 0x2e80a868]
mov eax, dword [0xbb0e8c]
xor eax, ecx
mov dword [0xbb0e8c], eax
not eax
imul eax, ecx
and cl, 7
xor dword [0xbb0e90], eax
mov ah, 1
shl ah, cl
or byte [0xbb0e97], ah
mov ecx, esi
xor eax, eax
xor ecx, fcn.007a31e0
sete al
mov ecx, eax
not ecx
lea ecx, [eax + ecx*2]
mov al, 0xfe
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbb0e97], al
mov esi, dword [esp + 0xc]
cmp edx, 0xbb0e80
je 0x80a312
cmp edx, 0xbb0e8c
jne 0x80a337
mov eax, dword [esi + 0x28]
mov ebx, dword [esp + 8]
mov edx, 0x62
lea ecx, [eax + 1]
mov dword [esi + 0x28], ecx
mov ecx, dword [esp + 4]
mov dword [edi + 0x3c], eax
push dword [ebx + 0x30]
push eax
call fcn.007c57e0
add esp, 8
mov edi, dword [edi + 0x24]
test edi, edi
jne 0x809d0d
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x2c]
mov edx, 0x45
inc eax
mov dword [esi + 0x2c], eax
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x2c]
inc eax
mov dword [esi + 0x2c], eax
mov dword [edi + 0x5c], eax
mov eax, dword [esi + 0x28]
lea ecx, [eax + 1]
mov dword [esi + 0x28], ecx
mov dword [edi + 0x3c], eax
mov ecx, ebx
push dword [edi + 0x58]
push 1
call fcn.007c57e0
add esp, 8
mov ecx, ebx
mov edx, 0x45
push dword [edi + 0x5c]
push 0
call fcn.007c57e0
add esp, 8
mov ecx, ebx
mov edx, 0x62
push dword [edi + 0x30]
push dword [edi + 0x3c]
call fcn.007c57e0
add esp, 0x24
jmp 0x80a345