Function at 0x7f4ea0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov eax, dword [esp + 0x10]
mov edi, edx
mov esi, ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx]
cmp dword [eax + 4], 0
je 0x7f525c
cmp byte [ecx + 0xa5], 0
je 0x7f5069
mov edx, fcn.0079e400
xor eax, eax
movzx edi, byte [0xbb06a7]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2]
bt edi, eax
jb 0x7f5051
mov al, byte [0xbb06a7]
xor ecx, ecx
cmp edx, 2
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb06a7], ah
jne 0x7f4ef8
mov ecx, fcn.0079e400
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7f4f65
xor eax, eax
cmp ecx, 2
movzx edi, byte [0xbb06a7]
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2]
bt edi, eax
jae 0x7f4f44
jmp 0x7f5051
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbb06a7]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2]
bt edx, eax
jb 0x7f5029
mov ecx, fcn.0079e400
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete al
mov ecx, eax
not ecx
and ecx, 0x8b1
lea ecx, [eax + ecx*2 + 0x5f68b308]
mov eax, dword [0xbb0690]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb0690], eax
not eax
imul edx, eax
mov eax, dword [0xbb0694]
lea edi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb0694], eax
or edi, edx
not eax
mov edx, dword [0xbb0698]
imul eax, edi
lea edi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb0698], edx
or edi, eax
not edx
mov eax, dword [0xbb069c]
imul edx, edi
lea edi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb069c], eax
or edi, edx
not eax
mov dl, 1
imul eax, edi
shl dl, cl
xor dword [0xbb06a0], eax
or byte [0xbb06a7], dl
mov eax, fcn.0079e400
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb06a7], al
push 0xbb0690
push esi
call fcn.00782570
add esp, 8
mov eax, 0xffffffff
jmp 0x7f5265
mov dword [edx], eax
mov edx, edi
call fcn.007f58e0
test eax, eax
jns 0x7f5265
mov edx, fcn.007fbe00
xor eax, eax
movzx ebx, byte [0xbb06cb]
not edx
and edx, 1
mov ecx, edx
add ecx, fcn.007fbe00
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt ebx, eax
jb 0x7f5246
mov al, byte [0xbb06cb]
mov ebx, edx
xor ecx, ecx
mov ah, 1
add ebx, fcn.007fbe00
sete cl
mov ebx, ecx
not ebx
lea ecx, [ebx + ecx*2]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb06cb], ah
jne 0x7f50b2
mov ecx, fcn.007fbe00
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov ebx, ecx
add ebx, fcn.007fbe00
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 0x7f5135
mov edx, ecx
xor eax, eax
movzx ebx, byte [0xbb06cb]
add edx, fcn.007fbe00
sete al
mov edx, eax
not edx
lea eax, [edx + eax*2]
and al, 7
movzx eax, al
bt ebx, eax
jae 0x7f510b
jmp 0x7f5246
xor eax, eax
add ecx, fcn.007fbe00
movzx edx, byte [0xbb06cb]
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7f521b
mov eax, fcn.007fbe00
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.007fbe00
sete cl
mov eax, ecx
xor eax, 0x5557d6e7
lea ecx, [eax + ecx*2 + 0x1210]
mov eax, dword [0xbb06b0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb06b0], eax
not eax
imul edx, eax
mov eax, dword [0xbb06b4]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb06b4], eax
or ebx, edx
not eax
mov edx, dword [0xbb06b8]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb06b8], edx
or ebx, eax
not edx
mov eax, dword [0xbb06bc]
imul edx, ebx
lea ebx, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb06bc], eax
or ebx, edx
not eax
mov edx, dword [0xbb06c0]
imul eax, ebx
mov ebx, eax
shl ebx, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb06c0], edx
or eax, ebx
not edx
imul edx, eax
xor dword [0xbb06c4], edx
mov dl, 1
shl dl, cl
or byte [0xbb06cb], dl
mov eax, fcn.007fbe00
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.007fbe00
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 [0xbb06cb], al
push edi
push 0xbb06b0
push esi
call fcn.00782570
add esp, 0xc
mov eax, 0xffffffff
jmp 0x7f5265
movzx eax, byte [ecx + 0xa4]
mov dword [edx], edi
pop esi
pop edi
pop ebx
ret