Function at 0x828c40
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
movzx eax, byte [ecx]
mov esi, ecx
add eax, 0xffffffd0
cmp eax, 9
ja 0x828c5e
mov ecx, esi
call fcn.007bea50
mov ebx, eax
jmp case.default.0x828e69
mov edi, edx
mov eax, fcn.007a4c30
mov edx, 3
movzx ebx, byte [0xbb347f]
sub edx, eax
xor eax, eax
mov ecx, edx
xor ecx, fcn.007a4c30
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 7
movzx eax, al
bt ebx, eax
jb 0x828e56
mov al, byte [0xbb347f]
mov ebx, edx
xor ecx, ecx
mov ah, 1
xor ebx, fcn.007a4c30
sete cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb347f], ah
jne 0x828c9a
mov edx, fcn.007a4c30
mov ecx, 3
movzx eax, al
sub ecx, edx
xor edx, edx
mov ebx, ecx
xor ebx, fcn.007a4c30
sete dl
mov ebx, edx
not ebx
lea edx, [edx + ebx*2]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x828d1f
mov edx, ecx
xor eax, eax
movzx ebx, byte [0xbb347f]
xor edx, fcn.007a4c30
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2]
and al, 7
movzx eax, al
bt ebx, eax
jae 0x828cf5
jmp 0x828e56
xor eax, eax
xor ecx, fcn.007a4c30
movzx edx, byte [0xbb347f]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x828e28
mov eax, fcn.007a4c30
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.007a4c30
sete al
mov ecx, eax
not ecx
and ecx, 0x187
lea edx, [eax + ecx*2]
lea ecx, [eax + ecx*2 - 0x7d00bbd0]
mov eax, dword [0xbb3460]
or edx, 0x82ff4431
xor eax, ecx
and cl, 7
mov dword [0xbb3460], eax
not eax
imul edx, eax
mov eax, dword [0xbb3464]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb3464], eax
or ebx, edx
not eax
mov edx, dword [0xbb3468]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb3468], edx
or ebx, eax
not edx
mov eax, dword [0xbb346c]
imul edx, ebx
lea ebx, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb346c], eax
or ebx, edx
not eax
mov edx, dword [0xbb3470]
imul eax, ebx
mov ebx, eax
shl ebx, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb3470], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbb3474]
mov ebx, edx
shl ebx, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbb3474], eax
or edx, ebx
not eax
imul eax, edx
mov dl, 1
xor dword [0xbb3478], eax
shl dl, cl
or byte [0xbb347f], dl
mov eax, fcn.007a4c30
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.007a4c30
sete al
mov ecx, eax
not ecx
lea ecx, [eax + ecx*2]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb347f], al
mov bl, byte [esp + 0x10]
mov ecx, esi
call fcn.00777870
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x828e69
jmp dword [eax*4 + 0xb51800]
push 2
push esi
push 0xbb3460
call fcn.00777e50
add esp, 0xc
test eax, eax
jne 0x828e92
xor eax, eax
mov bl, byte [eax + 0xb48128]
mov eax, ebx
pop esi
pop edi
pop ebx
ret
push 2
push esi
push 0xbb3461
call fcn.00777e50
add esp, 0xc
test eax, eax
jne case.default.0x828e69
mov eax, 1
jmp 0x828e86
push 3
push esi
push 0xbb3462
call fcn.00777e50
add esp, 0xc
test eax, eax
jne 0x828ee3
mov eax, 2
jmp 0x828e86
push 5
push esi
push 0xbb3464
call fcn.00777e50
add esp, 0xc
test eax, eax
jne 0x828f1c
mov eax, 3
jmp 0x828e86
push 3
push esi
push 0xbb3469
call fcn.00777e50
add esp, 0xc
test eax, eax
jne case.default.0x828e69
mov eax, 4
jmp 0x828e86
push 4
push esi
push 0xbb346c
call fcn.00777e50
add esp, 0xc
test eax, eax
jne 0x828f3e
mov eax, 5
jmp 0x828e86
push 5
push esi
push 0xbb346f
call fcn.00777e50
add esp, 0xc
or eax, edi
jne case.default.0x828e69
mov eax, 6
jmp 0x828e86
push 4
push esi
push 0xbb3474
call fcn.00777e50
add esp, 0xc
or eax, edi
jne case.default.0x828e69
mov eax, 7
jmp 0x828e86