Function at 0x8344a0
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 0x8344be
mov ecx, esi
call fcn.007ca350
mov ebx, eax
jmp case.default.0x8346c9
mov edi, edx
mov eax, fcn.007b0530
mov edx, 3
movzx ebx, byte [0xbbaddf]
sub edx, eax
xor eax, eax
mov ecx, edx
xor ecx, fcn.007b0530
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 7
movzx eax, al
bt ebx, eax
jb 0x8346b6
mov al, byte [0xbbaddf]
mov ebx, edx
xor ecx, ecx
mov ah, 1
xor ebx, fcn.007b0530
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 [0xbbaddf], ah
jne 0x8344fa
mov edx, fcn.007b0530
mov ecx, 3
movzx eax, al
sub ecx, edx
xor edx, edx
mov ebx, ecx
xor ebx, fcn.007b0530
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 0x83457f
mov edx, ecx
xor eax, eax
movzx ebx, byte [0xbbaddf]
xor edx, fcn.007b0530
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2]
and al, 7
movzx eax, al
bt ebx, eax
jae 0x834555
jmp 0x8346b6
xor eax, eax
xor ecx, fcn.007b0530
movzx edx, byte [0xbbaddf]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x834688
mov eax, fcn.007b0530
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.007b0530
sete al
mov ecx, eax
not ecx
and ecx, 0x187
lea edx, [eax + ecx*2]
lea ecx, [eax + ecx*2 - 0x7d00bbd0]
mov eax, dword [0xbbadc0]
or edx, 0x82ff4431
xor eax, ecx
and cl, 7
mov dword [0xbbadc0], eax
not eax
imul edx, eax
mov eax, dword [0xbbadc4]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbbadc4], eax
or ebx, edx
not eax
mov edx, dword [0xbbadc8]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbbadc8], edx
or ebx, eax
not edx
mov eax, dword [0xbbadcc]
imul edx, ebx
lea ebx, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbbadcc], eax
or ebx, edx
not eax
mov edx, dword [0xbbadd0]
imul eax, ebx
mov ebx, eax
shl ebx, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbbadd0], edx
or eax, ebx
not edx
imul edx, eax
mov eax, dword [0xbbadd4]
mov ebx, edx
shl ebx, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbbadd4], eax
or edx, ebx
not eax
imul eax, edx
mov dl, 1
xor dword [0xbbadd8], eax
shl dl, cl
or byte [0xbbaddf], dl
mov eax, fcn.007b0530
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.007b0530
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 [0xbbaddf], al
mov bl, byte [esp + 0x10]
mov ecx, esi
call fcn.00783170
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x8346c9
jmp dword [eax*4 + 0xb59e60]
push 2
push esi
push 0xbbadc0
call fcn.00783750
add esp, 0xc
test eax, eax
jne 0x8346f2
xor eax, eax
mov bl, byte [eax + 0xb50788]
mov eax, ebx
pop esi
pop edi
pop ebx
ret
push 2
push esi
push 0xbbadc1
call fcn.00783750
add esp, 0xc
test eax, eax
jne case.default.0x8346c9
mov eax, 1
jmp 0x8346e6
push 3
push esi
push 0xbbadc2
call fcn.00783750
add esp, 0xc
test eax, eax
jne 0x834743
mov eax, 2
jmp 0x8346e6
push 5
push esi
push 0xbbadc4
call fcn.00783750
add esp, 0xc
test eax, eax
jne 0x83477c
mov eax, 3
jmp 0x8346e6
push 3
push esi
push 0xbbadc9
call fcn.00783750
add esp, 0xc
test eax, eax
jne case.default.0x8346c9
mov eax, 4
jmp 0x8346e6
push 4
push esi
push 0xbbadcc
call fcn.00783750
add esp, 0xc
test eax, eax
jne 0x83479e
mov eax, 5
jmp 0x8346e6
push 5
push esi
push 0xbbadcf
call fcn.00783750
add esp, 0xc
or eax, edi
jne case.default.0x8346c9
mov eax, 6
jmp 0x8346e6
push 4
push esi
push 0xbbadd4
call fcn.00783750
add esp, 0xc
or eax, edi
jne case.default.0x8346c9
mov eax, 7
jmp 0x8346e6