Function at 0x8103a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
xor edi, edi
test edx, edx
je 0x810649
mov ebx, edx
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x8103bd
or byte [ebx + 7], 0x40
cmp byte [ebx], 0x99
jne 0x8103d2
mov edx, dword [esi]
mov eax, dword [edx]
cmp byte [eax + 0xa5], 0
je 0x810407
mov byte [ebx], 0x77
mov eax, dword [ebx + 4]
test eax, 0x804000
jne 0x810649
test eax, 0x800
je 0x810614
mov edx, dword [ebx + 0x14]
mov ecx, esi
call fcn.008102e0
test eax, eax
je 0x810629
mov edi, 1
jmp 0x810649
mov edi, fcn.0078b410
mov ebx, fcn.0078b410
xor eax, eax
movzx ebp, byte [0xbb940f]
or edi, 2
xor ebx, 2
mov ecx, edi
add ecx, ebx
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt ebp, eax
jb 0x8105fc
mov al, byte [0xbb940f]
mov dword [esp], edi
mov edi, ebx
mov ebp, dword [esp]
xor ebx, ebx
mov ah, 1
add ebp, edi
sete bl
mov ecx, ebx
xor ecx, 1
lea ecx, [ebx + ecx*2 + 6]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb940f], ah
jne 0x810448
mov ecx, fcn.0078b410
mov edi, fcn.0078b410
xor ebx, ebx
movzx eax, al
or ecx, 2
xor edi, 2
mov ebp, ecx
add ebp, edi
sete bl
mov ebp, ebx
xor ebx, 1
lea ebx, [ebp + ebx*2 + 6]
and bl, 7
xor bl, 7
movzx ebx, bl
bt eax, ebx
jae 0x8104cc
mov ebx, ecx
xor eax, eax
movzx ebp, byte [0xbb940f]
add ebx, edi
sete al
mov ebx, eax
xor ebx, 1
lea eax, [eax + ebx*2 + 6]
and al, 7
movzx eax, al
bt ebp, eax
jae 0x8104a4
jmp 0x8105fc
xor eax, eax
add ecx, edi
movzx edi, byte [0xbb940f]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edi, eax
jb 0x8105cc
mov ecx, fcn.0078b410
mov edi, fcn.0078b410
xor eax, eax
xor edi, 2
or ecx, 2
add ecx, edi
sete al
mov ecx, eax
not ecx
and ecx, 0x111
lea ecx, [eax + ecx*2 + 0x1dbcbe8e]
mov eax, dword [0xbb93f0]
xor eax, ecx
mov dword [0xbb93f0], eax
not eax
mov edi, dword [0xbb93f4]
imul eax, ecx
and cl, 7
lea ebx, [eax + eax]
xor edi, eax
shr eax, 0x1e
mov dword [0xbb93f4], edi
or ebx, eax
not edi
mov eax, dword [0xbb93f8]
imul edi, ebx
lea ebx, [edi*4]
xor eax, edi
shr edi, 0x1d
mov dword [0xbb93f8], eax
or ebx, edi
not eax
mov edi, dword [0xbb93fc]
imul eax, ebx
lea ebx, [eax*8]
xor edi, eax
shr eax, 0x1c
mov dword [0xbb93fc], edi
or ebx, eax
not edi
mov eax, dword [0xbb9400]
imul edi, ebx
mov ebx, edi
shl ebx, 4
xor eax, edi
shr edi, 0x1b
mov dword [0xbb9400], eax
or edi, ebx
not eax
mov ebp, dword [0xbb9404]
imul eax, edi
mov ebx, eax
shl ebx, 5
xor ebp, eax
shr eax, 0x1a
mov dword [0xbb9404], ebp
or eax, ebx
not ebp
imul ebp, eax
mov ah, 1
xor dword [0xbb9408], ebp
shl ah, cl
or byte [0xbb940f], ah
mov eax, fcn.0078b410
mov ecx, fcn.0078b410
xor ebx, ebx
xor ecx, 2
or eax, 2
add eax, ecx
sete bl
mov eax, ebx
xor eax, 1
lea ecx, [ebx + eax*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb940f], al
push dword [esi + 0x10]
push 0xbb93f0
push edx
call fcn.0078de60
add esp, 0xc
mov edi, 1
jmp 0x810649
mov edx, dword [ebx + 0x14]
mov ecx, esi
call fcn.00810660
test eax, eax
je 0x810629
mov edi, 1
jmp 0x810649
mov edx, dword [ebx + 0x10]
mov ecx, esi
call fcn.008103a0
test eax, eax
je 0x81063e
mov edi, 1
jmp 0x810649
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x8103b3
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret