Function at 0x89c290
Capabilities:
Encode data using xor

Disassembly:
cmp edx, 0x1c
jne 0x89bf61
mov edx, dword [ecx + 0x10]
mov eax, 0x3b
test edx, edx
je 0x89bf6c
mov eax, 0xffffffff
mov dword [ecx], fcn.0066e960
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.0x89c2ad.3
xor eax, eax
jmp dword [ecx*4 + 0xb606b8]
mov eax, dword [esp + 0x28]
mov edx, 0x89ebd0
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
and edx, 1
mov dword [esp], eax
mov eax, 0x89ebd0
xor edx, eax
movzx ecx, byte [0xbcabff]
cmp edx, 0xffffffff
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x89c3e6
mov al, byte [0xbcabff]
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 [0xbcabff], ah
jne 0x89c2f4
mov ecx, 0x89ebd0
mov edx, 0x89ebd0
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 0x89c358
cmp ecx, 0xffffffff
movzx edx, byte [0xbcabff]
sete al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x89c33a
jmp 0x89c3e6
cmp ecx, 0xffffffff
movzx ecx, byte [0xbcabff]
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x89c3bf
mov edx, 0x89ebd0
mov eax, 0x89ebd0
xor ecx, ecx
and edx, 1
xor edx, eax
mov eax, dword [0xbcabf4]
cmp edx, 0xffffffff
sete cl
xor ecx, 0x70eb31bb
add ecx, 0x808
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbcabf4], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
xor dword [0xbcabf8], edx
mov dl, 1
shl dl, cl
or byte [0xbcabff], dl
mov ecx, 0x89ebd0
mov eax, 0x89ebd0
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 [0xbcabff], al
mov eax, dword [ebx + 0x40]
mov ecx, dword [esp]
lea eax, [ecx + eax*2]
push 0xbcabf4
push ebp
push eax
push ebx
call dword [ebx + 0x18]
add esp, 0x10
test eax, eax
je 0x89c411
mov dword [esi], 0x89c940
mov eax, 0xb
jmp case.0x89c2ad.15
mov dword [esp + 8], ebp
mov ebp, 0x89bcf0
xor eax, eax
not ebp
movzx edx, byte [0xbcac0f]
and ebp, 1
mov ecx, ebp
add ecx, 0x89bcf0
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x89c580
mov al, byte [0xbcac0f]
mov dword [esp + 4], ebx
mov edx, ebp
xor ecx, ecx
add edx, 0x89bcf0
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 [0xbcac0f], dl
jne 0x89c44d
mov ecx, 0x89bcf0
xor ebx, ebx
movzx eax, al
not ecx
and ecx, 1
mov ebp, ecx
add ebp, 0x89bcf0
sete bl
mov edx, ebx
xor edx, 5
lea edx, [edx + ebx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x89c4cc
mov ebx, dword [esp + 4]
mov edx, ecx
xor eax, eax
movzx ebp, byte [0xbcac0f]
add edx, 0x89bcf0
sete al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2]
bt ebp, eax
jae 0x89c4a6
jmp 0x89c580
xor eax, eax
add ecx, 0x89bcf0
movzx edx, byte [0xbcac0f]
mov ebx, dword [esp + 4]
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x89c557
mov eax, 0x89bcf0
xor ecx, ecx
mov ebx, dword [0xbcac00]
not eax
and eax, 1
add eax, 0x89bcf0
sete cl
mov eax, ecx
xor eax, 0xda4407dd
lea ecx, [eax + ecx*2]
xor ebx, ecx
mov edx, ecx
and cl, 7
mov dword [0xbcac00], 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 [0xbcac08], ebp
or byte [0xbcac0f], dl
mov eax, 0x89bcf0
xor ecx, ecx
not eax
and eax, 1
add eax, 0x89bcf0
sete cl
mov eax, ecx
xor eax, 5
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbcac0f], al
mov eax, dword [ebx + 0x40]
mov ecx, dword [esp]
lea eax, [ecx + eax*2]
push 0xbcac00
mov ebp, dword [esp + 0xc]
push ebp
push eax
push ebx
call dword [ebx + 0x18]
add esp, 0x10
test eax, eax
je 0x89c5af
mov dword [esi], 0x89c980
mov eax, 0x21
jmp case.0x89c2ad.15
mov edx, 0x89d150
movzx ecx, byte [0xbcac1f]
imul edx, edx
and edx, 3
cmp edx, 2
setb al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x89c6d7
mov al, byte [0xbcac1f]
cmp edx, 2
mov ah, 1
setb cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbcac1f], ah
jne 0x89c5da
mov ecx, 0x89d150
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 0x89c634
cmp ecx, 2
movzx edx, byte [0xbcac1f]
setb al
or al, 4
movzx eax, al
bt edx, eax
jae 0x89c618
jmp 0x89c6d7
cmp ecx, 2
movzx edx, byte [0xbcac1f]
setb al
or al, 4
movzx eax, al
bt edx, eax
jb 0x89c6b6
mov eax, 0x89d150
xor ecx, ecx
mov ebp, ebx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbcac10]
seta cl
xor ecx, 0x836798c1
add ecx, 0x27c
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbcac10], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbcac14]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbcac14], 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 [0xbcac18], eax
or byte [0xbcac1f], dl
mov eax, 0x89d150
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 [0xbcac1f], al
mov eax, dword [ebx + 0x40]
mov ecx, dword [esp]
lea eax, [ecx + eax*2]
push 0xbcac10
push ebp
push eax
push ebx
call dword [ebx + 0x18]
add esp, 0x10
test eax, eax
je 0x89c702
mov dword [esi], 0x89c9b0
mov eax, 0x27
jmp case.0x89c2ad.15
mov edx, 0x89bd30
movzx ecx, byte [0xbcac2f]
and edx, 1
inc edx
mov eax, edx
xor eax, 0x89bd30
setne al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x89c836
mov al, byte [0xbcac2f]
mov ecx, edx
mov ah, 1
xor ecx, 0x89bd30
setne cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbcac2f], ah
jne 0x89c72f
mov ecx, 0x89bd30
movzx eax, al
and ecx, 1
inc ecx
mov edx, ecx
xor edx, 0x89bd30
setne dl
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x89c795
mov eax, ecx
movzx edx, byte [0xbcac2f]
xor eax, 0x89bd30
setne al
or al, 4
movzx eax, al
bt edx, eax
jae 0x89c775
jmp 0x89c836
xor ecx, 0x89bd30
movzx ecx, byte [0xbcac2f]
setne al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x89c815
mov eax, 0x89bd30
xor ecx, ecx
mov ebp, ebx
and eax, 1
inc eax
xor eax, 0x89bd30
mov eax, dword [0xbcac20]
sete cl
xor ecx, 0x9ac95ba9
or ecx, 4
xor eax, ecx
and cl, 5
mov dword [0xbcac20], eax
not eax
mov edx, dword [0xbcac24]
imul eax, eax, 0x9ac95bad
lea ebx, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbcac24], 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 [0xbcac28], edx
or byte [0xbcac2f], al
mov eax, 0x89bd30
and eax, 1
inc eax
xor eax, 0x89bd30
mov al, 0xfe
setne cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbcac2f], al
mov eax, dword [ebx + 0x40]
mov ecx, dword [esp]
lea eax, [ecx + eax*2]
push 0xbcac20
push ebp
push eax
push ebx
call dword [ebx + 0x18]
add esp, 0x10
test eax, eax
je case.0x89c2ad.3
mov dword [esi], 0x89c9e0
mov eax, 0x11
jmp case.0x89c2ad.15
mov eax, 0x38
jmp case.0x89c2ad.15
mov eax, 0x3c
jmp case.0x89c2ad.15
mov dword [esi], 0x89ca10
mov eax, 3
jmp case.0x89c2ad.15
mov ecx, esi
mov edx, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp 0x89bf50
mov eax, 0x37
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret