Function at 0x962e70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0xbd33e0]
mov edi, 0xffffd800
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, 0xdf
mov ebx, dword [ecx + 8]
mov dword [esp + 8], ebx
and eax, dword [ecx]
cmp eax, 0x80
jne 0x963100
add ebx, dword [ecx + 4]
mov esi, edx
lea ebp, [esp + 0xc]
lea eax, [esp + 8]
push 6
push ebp
push ebx
push eax
call fcn.00976970
add esp, 0x10
test eax, eax
je 0x962ecb
mov edi, eax
add edi, 0xffffdb00
jmp 0x963100
cmp dword [esp + 0xc], 8
mov edi, 0xffffdf80
jne 0x963100
mov edx, 0x977a50
xor eax, eax
and edx, 1
inc edx
mov ecx, edx
xor ecx, 0x977a50
movzx ecx, byte [0xbd0177]
sete al
bt ecx, eax
jb 0x96300b
mov al, byte [0xbd0177]
mov ecx, edx
mov ah, 1
xor ecx, 0x977a50
sete cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbd0177], ah
jne 0x962f06
mov ecx, 0x977a50
movzx eax, al
and ecx, 1
inc ecx
mov edx, ecx
xor edx, 0x977a50
sete dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x962f64
mov edx, ecx
xor eax, eax
xor edx, 0x977a50
movzx edx, byte [0xbd0177]
sete al
bt edx, eax
jae 0x962f46
jmp 0x96300b
xor eax, eax
xor ecx, 0x977a50
movzx ecx, byte [0xbd0177]
sete al
bt ecx, eax
jb 0x962fed
mov eax, 0x977a50
xor ecx, ecx
and eax, 1
inc eax
xor eax, 0x977a50
mov eax, dword [0xbd0168]
sete cl
or ecx, 0xae8b9b10
add ecx, 0x888
mov edx, ecx
xor eax, ecx
mov dword [esp + 4], ecx
shr edx, 0x1f
mov dword [0xbd0168], eax
not eax
or edx, ecx
mov ecx, dword [0xbd016c]
imul edx, eax
lea eax, [edx + edx]
mov dword [esp], eax
mov al, 1
xor ecx, edx
shr edx, 0x1e
mov dword [0xbd016c], ecx
or dword [esp], edx
not ecx
imul ecx, dword [esp]
xor dword [0xbd0170], ecx
mov ecx, dword [esp + 4]
and cl, 7
shl al, cl
or byte [0xbd0177], al
mov eax, 0x977a50
and eax, 1
inc eax
xor eax, 0x977a50
mov al, 0xfe
sete cl
xor cl, 7
rol al, cl
and byte [0xbd0177], al
push 8
push dword [esp + 0xc]
push 0xbd0168
call fcn.00988e30
add esp, 0xc
test eax, eax
jne 0x963100
mov eax, dword [esp + 0xc]
add dword [esp + 8], eax
push 0xa0
push ebp
push ebx
lea eax, [esp + 0x14]
push eax
call fcn.00976970
add esp, 0x10
test eax, eax
jne 0x962ebe
mov eax, dword [esp + 8]
mov edi, 0xffffda9a
add eax, dword [esp + 0xc]
cmp ebx, eax
jne 0x963100
push 0x30
push ebp
push ebx
lea eax, [esp + 0x14]
push eax
call fcn.00976970
add esp, 0x10
test eax, eax
je 0x963080
add eax, 0xffffdb00
mov edi, eax
jmp 0x963100
mov eax, dword [esp + 8]
add eax, dword [esp + 0xc]
cmp ebx, eax
jne 0x963100
push 6
push ebp
push ebx
lea eax, [esp + 0x14]
push eax
call fcn.00976970
add esp, 0x10
test eax, eax
jne 0x962ebe
mov dword [esi + 0xc], 6
mov eax, dword [esp + 8]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0xc]
add eax, ecx
mov dword [esi + 0x10], ecx
mov dword [esp + 8], eax
push 4
push ebp
push ebx
lea eax, [esp + 0x14]
push eax
call fcn.00976970
add esp, 0x10
test eax, eax
jne 0x962ebe
mov dword [esi + 0x18], 4
mov edi, 0xffffda9a
mov eax, dword [esp + 8]
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0xc]
add eax, ecx
mov dword [esi + 0x1c], ecx
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 8], eax
cmove edi, ecx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00989fe9
mov eax, edi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret