Function at 0x9610d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x9618e8
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push ebx
push 0
push edi
call fcn.00985720
add esp, 0xc
mov ebp, esi
neg ebp
cmovl ebp, esi
mov esi, ebp
and esi, 0xff80
je 0x961473
push ebp
call fcn.00960e30
add esp, 4
mov ecx, dword [fcn.0066e960]
test eax, eax
mov dword [esp], ecx
jne 0x961300
mov edx, fcn.00989030
mov eax, fcn.00989030
movzx ecx, byte [0xbcfdaf]
and edx, 1
xor edx, eax
cmp edx, 0xffffffff
sete al
or al, 4
add al, 0x44
and al, 7
movzx eax, al
bt ecx, eax
jb 0x9612f4
mov al, byte [0xbcfdaf]
cmp edx, 0xffffffff
mov ah, 1
sete cl
or cl, 4
add cl, 0x44
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbcfdaf], ah
jne 0x961159
mov ecx, fcn.00989030
mov edx, fcn.00989030
movzx eax, al
and ecx, 1
xor ecx, edx
cmp ecx, 0xffffffff
sete dl
or dl, 4
add dl, 0x44
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x9611c7
cmp ecx, 0xffffffff
movzx edx, byte [0xbcfdaf]
sete al
or al, 4
add al, 0x44
and al, 7
movzx eax, al
bt edx, eax
jae 0x9611a7
jmp 0x9612f4
cmp ecx, 0xffffffff
movzx ecx, byte [0xbcfdaf]
sete al
or al, 4
add al, 0x44
and al, 7
movzx eax, al
bt ecx, eax
jb 0x9612c9
mov edx, fcn.00989030
mov eax, fcn.00989030
xor ecx, ecx
mov edi, ebx
and edx, 1
xor edx, eax
mov eax, dword [0xbcfd90]
cmp edx, 0xffffffff
sete cl
or ecx, 0x82feb8c4
add ecx, 0xa44
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbcfd90], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbcfd94]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbcfd94], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbcfd98]
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbcfd98], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbcfd9c]
lea ebx, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbcfd9c], eax
or edx, ebx
not eax
imul eax, edx
mov edx, dword [0xbcfda0]
mov ebx, eax
shl ebx, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbcfda0], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbcfda4]
mov ebx, edx
shl ebx, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbcfda4], eax
or edx, ebx
not eax
mov ebx, edi
mov edi, dword [esp + 0x20]
imul eax, edx
mov dl, 1
xor dword [0xbcfda8], eax
shl dl, cl
or byte [0xbcfdaf], dl
mov ecx, fcn.00989030
mov eax, fcn.00989030
and ecx, 1
xor ecx, eax
mov al, 0xfe
cmp ecx, 0xffffffff
sete cl
or cl, 4
add cl, 0x44
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbcfdaf], al
push esi
push 0xbcfd90
push ebx
jmp 0x96145f
mov edi, fcn.00989030
mov dword [esp + 4], eax
xor eax, eax
not edi
movzx edx, byte [0xbcfdb7]
and edi, 1
mov ecx, edi
add ecx, fcn.00989030
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x961451
mov al, byte [0xbcfdb7]
mov ebx, edi
xor ecx, ecx
mov ah, 1
add ebx, fcn.00989030
sete 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 [0xbcfdb7], ah
jne 0x96133d
mov ecx, fcn.00989030
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov edi, ecx
add edi, fcn.00989030
sete 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 0x9613c7
mov ebx, dword [esp + 0x24]
mov edx, ecx
xor eax, eax
movzx edi, byte [0xbcfdb7]
add edx, fcn.00989030
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2 + 4]
and al, 7
movzx eax, al
bt edi, eax
jae 0x96139c
jmp 0x961451
xor eax, eax
add ecx, fcn.00989030
movzx edx, byte [0xbcfdb7]
mov ebx, dword [esp + 0x24]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x961425
mov ecx, fcn.00989030
xor eax, eax
not ecx
and ecx, 1
add ecx, fcn.00989030
sete al
mov ecx, eax
not ecx
and ecx, 3
lea ecx, [eax + ecx*2 - 0x1a6384ac]
mov al, 1
xor dword [0xbcfdb0], ecx
and cl, 7
shl al, cl
or byte [0xbcfdb7], al
mov eax, fcn.00989030
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.00989030
sete 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 [0xbcfdb7], al
push dword [esp + 4]
push 0xbcfdb0
push ebx
mov edi, dword [esp + 0x2c]
push edi
call dword [esp + 0x10]
add esp, 0x10
cmp esi, 0x7780
je 0x9618e8
mov eax, ebp
and eax, 0x7fff007f
mov dword [esp], eax
je 0x9618e8
push edi
call fcn.00989030
add esp, 4
test eax, eax
je 0x961628
sub ebx, eax
mov esi, eax
cmp ebx, 5
jb 0x9618e8
mov dword [esp + 4], ebx
mov ebx, fcn.00960f90
xor eax, eax
not ebx
movzx edx, byte [0xbcfdc3]
and ebx, 1
mov ecx, ebx
add ecx, fcn.00960f90
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x961605
mov al, byte [0xbcfdc3]
mov edi, ebx
xor edx, edx
add edi, fcn.00960f90
sete dl
mov ecx, edx
not ecx
lea ecx, [ecx + edx*2]
mov dl, 1
and cl, 7
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbcfdc3], dl
jne 0x9614dd
mov ecx, fcn.00960f90
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov edi, ecx
add edi, fcn.00960f90
sete dl
mov ebx, edx
not ebx
lea edx, [ebx + edx*2]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x961564
mov edi, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
movzx ebx, byte [0xbcfdc3]
add edx, fcn.00960f90
sete al
mov edx, eax
not edx
lea eax, [edx + eax*2]
and al, 7
movzx eax, al
bt ebx, eax
jae 0x96153a
jmp 0x961605
xor eax, eax
add ecx, fcn.00960f90
movzx edx, byte [0xbcfdc3]
mov edi, dword [esp + 0x20]
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x9615da
mov eax, fcn.00960f90
xor ecx, ecx
mov ebx, dword [0xbcfdb8]
not eax
and eax, 1
add eax, fcn.00960f90
sete cl
mov eax, ecx
xor eax, 0x7f56b72f
lea ecx, [eax + ecx*2 + 0x11a0]
mov edx, ecx
xor ebx, ecx
shr edx, 0x1f
mov dword [0xbcfdb8], ebx
not ebx
or edx, ecx
and cl, 7
imul edx, ebx
xor dword [0xbcfdbc], edx
mov dl, 1
shl dl, cl
or byte [0xbcfdc3], dl
mov eax, fcn.00960f90
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.00960f90
sete cl
mov eax, ecx
not eax
lea ecx, [eax + ecx*2]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbcfdc3], al
lea eax, [edi + esi]
push 0xbcfdb8
push dword [esp + 8]
push eax
call dword [0xbd0acc]
add esp, 0xc
mov ebx, dword [esp + 0x24]
lea edi, [edi + esi + 3]
add esi, 3
sub ebx, esi
push ebp
call fcn.00960f90
add esp, 4
mov ebp, dword [fcn.0066e960]
test eax, eax
jne 0x9617da
mov edx, fcn.009610d0
movzx ecx, byte [0xbcfdef]
xor eax, eax
imul edx, edx
and edx, 3
cmp edx, 2
sete al
bt ecx, eax
jb 0x9617c6
mov al, byte [0xbcfdef]
cmp edx, 2
mov ah, 1
sete cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbcfdef], ah
jne 0x961667
mov ecx, fcn.009610d0
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x9616b8
movzx edx, byte [0xbcfdef]
xor eax, eax
cmp ecx, 2
sete al
bt edx, eax
jae 0x96169f
jmp 0x9617c6
movzx edx, byte [0xbcfdef]
xor eax, eax
cmp ecx, 2
sete al
bt edx, eax
jb 0x9617a8
mov eax, fcn.009610d0
xor ecx, ecx
mov esi, edi
imul eax, eax
and eax, 3
cmp eax, 2
mov eax, dword [0xbcfdd0]
sete cl
or ecx, 0xad519e88
add ecx, 0x68
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbcfdd0], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbcfdd4]
lea edi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbcfdd4], eax
or edi, edx
not eax
mov edx, dword [0xbcfdd8]
imul eax, edi
lea edi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbcfdd8], edx
or edi, eax
not edx
mov eax, dword [0xbcfddc]
imul edx, edi
lea edi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbcfddc], eax
or edi, edx
not eax
mov edx, dword [0xbcfde0]
imul eax, edi
mov edi, eax
shl edi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbcfde0], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbcfde4]
mov edi, edx
shl edi, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbcfde4], eax
or edx, edi
not eax
mov edi, esi
imul eax, edx
mov dl, 1
xor dword [0xbcfde8], eax
shl dl, cl
or byte [0xbcfdef], dl
mov eax, fcn.009610d0
imul eax, eax
and eax, 3
cmp eax, 2
mov al, 0xfe
sete cl
xor cl, 7
rol al, cl
and byte [0xbcfdef], al
push dword [esp]
push 0xbcfdd0
push ebx
push edi
call ebp
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ebx
mov ebx, fcn.00985720
mov dword [esp + 4], ebp
mov ebp, fcn.00985720
mov dword [esp], edi
mov edx, eax
xor eax, eax
or ebx, 2
xor ebp, 2
mov ecx, ebx
add ecx, ebp
movzx ecx, byte [0xbcfdf7]
setne al
bt ecx, eax
jb 0x9618d4
mov al, byte [0xbcfdf7]
mov ecx, ebx
mov ah, 1
add ecx, ebp
setne cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbcfdf7], ah
jne 0x961813
mov ecx, fcn.00985720
mov ebx, fcn.00985720
or ecx, 2
xor ebx, 2
mov edi, ecx
add edi, ebx
setne ah
xor ah, 7
movzx edi, ah
movzx eax, al
bt eax, edi
jae 0x961869
mov edi, ecx
xor eax, eax
add edi, ebx
movzx edi, byte [0xbcfdf7]
setne al
bt edi, eax
jae 0x961852
jmp 0x9618d4
xor eax, eax
add ecx, ebx
movzx ecx, byte [0xbcfdf7]
setne al
bt ecx, eax
jb 0x9618b2
mov eax, fcn.00985720
mov edi, fcn.00985720
xor ecx, ecx
xor edi, 2
or eax, 2
add eax, edi
mov al, 1
sete cl
xor ecx, 0x62f891e1
add ecx, 0x1038
xor dword [0xbcfdf0], ecx
and cl, 7
shl al, cl
or byte [0xbcfdf7], al
mov eax, fcn.00985720
mov ecx, fcn.00985720
xor ecx, 2
or eax, 2
add eax, ecx
mov al, 0xfe
setne cl
xor cl, 7
rol al, cl
and byte [0xbcfdf7], al
push edx
push 0xbcfdf0
push esi
push dword [esp + 0xc]
call dword [esp + 0x14]
jmp 0x9617d2
add esp, 8
jmp 0x9617d5