Function at 0x890a00
Capabilities:
Encode data using xor

Disassembly:
cmp edx, 0x1c
jne 0x8906d1
mov edx, dword [ecx + 0x10]
mov eax, 0x3b
test edx, edx
je 0x8906dc
mov eax, 0xffffffff
mov dword [ecx], fcn.00553ca0
ret
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
lea ecx, [edi + 4]
cmp ecx, 0x20
ja case.0x890a1d.3
xor eax, eax
jmp dword [ecx*4 + 0xb58058]
mov eax, dword [esp + 0x28]
mov edx, 0x893330
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
and edx, 1
mov dword [esp], eax
mov eax, 0x893330
xor edx, eax
movzx ecx, byte [0xbc329f]
cmp edx, 0xffffffff
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x890b56
mov al, byte [0xbc329f]
cmp edx, 0xffffffff
mov ah, 1
sete cl
not cl
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbc329f], ah
jne 0x890a64
mov ecx, 0x893330
mov edx, 0x893330
movzx eax, al
and ecx, 1
xor ecx, edx
cmp ecx, 0xffffffff
sete dl
not dl
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x890ac8
cmp ecx, 0xffffffff
movzx edx, byte [0xbc329f]
sete al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x890aaa
jmp 0x890b56
cmp ecx, 0xffffffff
movzx ecx, byte [0xbc329f]
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x890b2f
mov edx, 0x893330
mov eax, 0x893330
xor ecx, ecx
and edx, 1
xor edx, eax
mov eax, dword [0xbc3294]
cmp edx, 0xffffffff
sete cl
xor ecx, 0x70eb31bb
add ecx, 0x808
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbc3294], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
xor dword [0xbc3298], edx
mov dl, 1
shl dl, cl
or byte [0xbc329f], dl
mov ecx, 0x893330
mov eax, 0x893330
and ecx, 1
xor ecx, eax
mov al, 0xfe
cmp ecx, 0xffffffff
sete cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbc329f], al
mov eax, dword [ebx + 0x40]
mov ecx, dword [esp]
lea eax, [ecx + eax*2]
push 0xbc3294
push ebp
push eax
push ebx
call dword [ebx + 0x18]
add esp, 0x10
test eax, eax
je 0x890b81
mov dword [esi], 0x8910b0
mov eax, 0xb
jmp case.0x890a1d.15
mov dword [esp + 8], ebp
mov ebp, 0x890460
xor eax, eax
not ebp
movzx edx, byte [0xbc32af]
and ebp, 1
mov ecx, ebp
add ecx, 0x890460
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x890cf0
mov al, byte [0xbc32af]
mov dword [esp + 4], ebx
mov edx, ebp
xor ecx, ecx
add edx, 0x890460
sete cl
mov edx, ecx
xor edx, 5
lea ecx, [edx + ecx*2]
mov dl, 1
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbc32af], dl
jne 0x890bbd
mov ecx, 0x890460
xor ebx, ebx
movzx eax, al
not ecx
and ecx, 1
mov ebp, ecx
add ebp, 0x890460
sete bl
mov edx, ebx
xor edx, 5
lea edx, [edx + ebx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x890c3c
mov ebx, dword [esp + 4]
mov edx, ecx
xor eax, eax
movzx ebp, byte [0xbc32af]
add edx, 0x890460
sete al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2]
bt ebp, eax
jae 0x890c16
jmp 0x890cf0
xor eax, eax
add ecx, 0x890460
movzx edx, byte [0xbc32af]
mov ebx, dword [esp + 4]
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x890cc7
mov eax, 0x890460
xor ecx, ecx
mov ebx, dword [0xbc32a0]
not eax
and eax, 1
add eax, 0x890460
sete cl
mov eax, ecx
xor eax, 0xda4407dd
lea ecx, [eax + ecx*2]
xor ebx, ecx
mov edx, ecx
and cl, 7
mov dword [0xbc32a0], ebx
not ebx
or edx, 1
mov ebp, dword [str.O_t70]
imul edx, ebx
lea ebx, [edx + edx]
xor ebp, edx
shr edx, 0x1e
mov dword [str.O_t70], ebp
or ebx, edx
not ebp
mov dl, 1
imul ebp, ebx
mov ebx, dword [esp + 4]
shl dl, cl
xor dword [0xbc32a8], ebp
or byte [0xbc32af], dl
mov eax, 0x890460
xor ecx, ecx
not eax
and eax, 1
add eax, 0x890460
sete cl
mov eax, ecx
xor eax, 5
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbc32af], al
mov eax, dword [ebx + 0x40]
mov ecx, dword [esp]
lea eax, [ecx + eax*2]
push 0xbc32a0
mov ebp, dword [esp + 0xc]
push ebp
push eax
push ebx
call dword [ebx + 0x18]
add esp, 0x10
test eax, eax
je 0x890d1f
mov dword [esi], 0x8910f0
mov eax, 0x21
jmp case.0x890a1d.15
mov edx, 0x8918c0
movzx ecx, byte [0xbc32bf]
imul edx, edx
and edx, 3
cmp edx, 2
setb al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x890e47
mov al, byte [0xbc32bf]
cmp edx, 2
mov ah, 1
setb cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbc32bf], ah
jne 0x890d4a
mov ecx, 0x8918c0
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
setb dl
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x890da4
cmp ecx, 2
movzx edx, byte [0xbc32bf]
setb al
or al, 4
movzx eax, al
bt edx, eax
jae 0x890d88
jmp 0x890e47
cmp ecx, 2
movzx edx, byte [0xbc32bf]
setb al
or al, 4
movzx eax, al
bt edx, eax
jb 0x890e26
mov eax, 0x8918c0
xor ecx, ecx
mov ebp, ebx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbc32b0]
seta cl
xor ecx, 0x836798c1
add ecx, 0x27c
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbc32b0], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbc32b4]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbc32b4], eax
or ebx, edx
not eax
mov dl, 1
imul eax, ebx
mov ebx, ebp
mov ebp, dword [esp + 8]
shl dl, cl
xor dword [0xbc32b8], eax
or byte [0xbc32bf], dl
mov eax, 0x8918c0
imul eax, eax
and eax, 3
cmp eax, 2
mov al, 0xfe
setb cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbc32bf], al
mov eax, dword [ebx + 0x40]
mov ecx, dword [esp]
lea eax, [ecx + eax*2]
push 0xbc32b0
push ebp
push eax
push ebx
call dword [ebx + 0x18]
add esp, 0x10
test eax, eax
je 0x890e72
mov dword [esi], 0x891120
mov eax, 0x27
jmp case.0x890a1d.15
mov edx, 0x8904a0
movzx ecx, byte [0xbc32cf]
and edx, 1
inc edx
mov eax, edx
xor eax, 0x8904a0
setne al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x890fa6
mov al, byte [0xbc32cf]
mov ecx, edx
mov ah, 1
xor ecx, 0x8904a0
setne cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbc32cf], ah
jne 0x890e9f
mov ecx, 0x8904a0
movzx eax, al
and ecx, 1
inc ecx
mov edx, ecx
xor edx, 0x8904a0
setne dl
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x890f05
mov eax, ecx
movzx edx, byte [0xbc32cf]
xor eax, 0x8904a0
setne al
or al, 4
movzx eax, al
bt edx, eax
jae 0x890ee5
jmp 0x890fa6
xor ecx, 0x8904a0
movzx ecx, byte [0xbc32cf]
setne al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x890f85
mov eax, 0x8904a0
xor ecx, ecx
mov ebp, ebx
and eax, 1
inc eax
xor eax, 0x8904a0
mov eax, dword [0xbc32c0]
sete cl
xor ecx, 0x9ac95ba9
or ecx, 4
xor eax, ecx
and cl, 5
mov dword [0xbc32c0], eax
not eax
mov edx, dword [0xbc32c4]
imul eax, eax, 0x9ac95bad
lea ebx, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbc32c4], edx
or ebx, eax
not edx
mov al, 1
imul edx, ebx
mov ebx, ebp
mov ebp, dword [esp + 8]
shl al, cl
xor dword [0xbc32c8], edx
or byte [0xbc32cf], al
mov eax, 0x8904a0
and eax, 1
inc eax
xor eax, 0x8904a0
mov al, 0xfe
setne cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbc32cf], al
mov eax, dword [ebx + 0x40]
mov ecx, dword [esp]
lea eax, [ecx + eax*2]
push 0xbc32c0
push ebp
push eax
push ebx
call dword [ebx + 0x18]
add esp, 0x10
test eax, eax
je case.0x890a1d.3
mov dword [esi], 0x891150
mov eax, 0x11
jmp case.0x890a1d.15
mov eax, 0x38
jmp case.0x890a1d.15
mov eax, 0x3c
jmp case.0x890a1d.15
mov dword [esi], 0x891180
mov eax, 3
jmp case.0x890a1d.15
mov ecx, esi
mov edx, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp 0x8906c0
mov eax, 0x37
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret