Function at 0x7fbea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
mov eax, edx
mov edi, ecx
mov esi, dword [ebx]
test esi, esi
je 0x7fbf3a
cmp byte [ebx + 0x10], 0
jne 0x7fbf3a
mov ebp, ebx
mov ecx, edi
mov edx, eax
push esi
call fcn.007fd050
add esp, 4
test eax, eax
je 0x7fc502
mov edx, dword [eax + 8]
mov ecx, dword [edi]
mov ebx, eax
push 0
call fcn.007f4030
add esp, 4
mov dword [ebp + 8], eax
mov edx, dword [ebx + 0xc]
mov ecx, dword [edi]
push 0
call fcn.007f4030
add esp, 4
mov dword [ebp + 0xc], eax
mov edx, dword [ebx + 0x18]
mov ecx, dword [edi]
push 0
call fcn.007f0780
add esp, 4
mov dword [ebp + 0x18], eax
mov edx, dword [ebx + 0x1c]
mov ecx, dword [edi]
push 0
call fcn.007f0780
add esp, 4
mov dword [ebp + 0x1c], eax
mov al, byte [ebx + 0x11]
mov byte [ebp + 0x11], al
mov al, byte [ebx + 0x12]
mov byte [ebp + 0x12], al
mov al, byte [ebx + 0x10]
mov byte [ebp + 0x10], al
mov cl, byte [ebx + 0x14]
mov byte [ebp + 0x14], cl
jmp 0x7fbf4c
mov ecx, edi
mov edx, ebx
push eax
call fcn.007eb7c0
add esp, 4
mov al, byte [ebx + 0x10]
mov ebp, ebx
mov ebx, dword [esp + 0x34]
cmp al, 0x59
jne 0x7fc0b2
cmp dword [ebp + 0x18], 0
jne 0x7fbf68
cmp dword [ebp + 0x1c], 0
je 0x7fc0b2
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x7fbf78
cmp dword [eax], 1
je 0x7fc0b2
mov edx, fcn.00777540
movzx ecx, byte [0xbb0ddb]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7fc09f
mov al, byte [0xbb0ddb]
cmp edx, 2
mov ah, 1
sete cl
not cl
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb0ddb], ah
jne 0x7fbfa5
mov ecx, fcn.00777540
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
not dl
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7fc005
cmp ecx, 2
movzx edx, byte [0xbb0ddb]
sete al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x7fbfe7
jmp 0x7fc09f
xor edx, edx
cmp ecx, 2
movzx ecx, byte [0xbb0ddb]
sete dl
xor edx, 0x4dd39f8b
add edx, 0xc8
mov eax, edx
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7fc07c
mov esi, 0xbb0d90
xor eax, eax
mov ebx, dword [esi]
mov ecx, eax
mov ebp, edx
inc eax
shl ebp, cl
xor cl, 0x1f
xor ebx, edx
shr edx, cl
mov dword [esi], ebx
or edx, ebp
not ebx
add esi, 4
imul edx, ebx
cmp eax, 0x12
jne 0x7fc033
mov eax, fcn.00777540
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
imul eax, eax
and eax, 3
cmp eax, 2
mov al, 1
sete cl
not cl
and cl, 3
shl al, cl
or byte [0xbb0ddb], al
mov eax, fcn.00777540
imul eax, eax
and eax, 3
cmp eax, 2
mov al, 0xfe
sete cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbb0ddb], al
push 0xbb0d90
push edi
call fcn.00782570
add esp, 8
jmp 0x7fc4ff
test byte [ebx + 6], 1
je 0x7fc4ff
cmp dword [ebp + 0x28], 0
jne 0x7fc2f0
mov eax, dword [edi]
mov edx, fcn.007972a0
xor ecx, ecx
and edx, 1
inc edx
mov dword [esp + 0x10], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
xor edx, edx
mov edi, dword [ecx*4 + 0xb4ec80]
mov ebp, dword [ecx*4 + 0xb4eca0]
mov dword [esp + 0x18], ecx
xor eax, fcn.007972a0
mov eax, 1
sete dl
or edx, 0xc2fca3f2
add edx, 0x1010
xor edx, dword [ecx*4 + 0xb4ecc0]
mov ecx, edx
and cl, 7
movzx ebx, cl
shl eax, cl
xor cl, 7
mov dword [esp], ebx
mov ebx, 1
shl ebx, cl
movzx ecx, byte [edi + ebp - 1]
mov esi, dword [esp]
bt ecx, esi
jb 0x7fc1be
mov dword [esp + 8], eax
mov al, byte [edi + ebp - 1]
mov ecx, eax
or cl, bl
lock cmpxchg byte [edi + ebp - 1], cl
jne 0x7fc143
mov ecx, dword [esp + 8]
movzx eax, al
test ebx, eax
je 0x7fc165
movzx eax, byte [edi + ebp - 1]
test ecx, eax
je 0x7fc15a
jmp 0x7fc1be
mov dword [esp + 0xc], ebx
movzx eax, byte [edi + ebp - 1]
test ecx, eax
jne 0x7fc1b4
lea ecx, [ebp - 4]
shr ecx, 2
je 0x7fc1ac
xor eax, eax
mov ebx, edi
mov dword [esp + 0x14], ecx
mov esi, dword [ebx]
mov ecx, eax
mov dword [esp], edx
inc eax
shl dword [esp], cl
and cl, 0x1f
xor cl, 0x1f
xor esi, edx
shr edx, cl
mov ecx, dword [esp + 0x14]
or edx, dword [esp]
mov dword [ebx], esi
not esi
add ebx, 4
imul edx, esi
cmp eax, ecx
jne 0x7fc182
mov eax, dword [esp + 8]
or byte [edi + ebp - 1], al
mov eax, dword [esp + 0xc]
not al
and byte [edi + ebp - 1], al
mov ecx, dword [esp + 0x18]
inc ecx
cmp ecx, 8
jne 0x7fc0db
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + 0x20]
cmp eax, 0xbb0e24
jne 0x7fc50a
xor esi, esi
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x30]
mov ecx, edi
mov edx, dword [eax + 0x18]
mov ebp, eax
call fcn.007c00e0
mov edx, dword [ebp + 0x1c]
mov ecx, edi
call fcn.007c00e0
shl esi, 4
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
mov dl, byte [esi + 0xb47f28]
mov al, byte [esi + 0xb47f24]
mov cl, byte [esi + 0xb47f2c]
cmp dl, 0x56
mov byte [ebp + 0x10], al
mov byte [ebp + 0x11], dl
mov byte [ebp + 0x12], cl
mov byte [ebp + 0x14], 0
jne 0x7fc4ff
mov edx, 0x7ff890
xor eax, eax
movzx esi, byte [0xbb0e9f]
and edx, 1
inc edx
mov ecx, edx
xor ecx, 0x7ff890
sete al
mov ecx, eax
xor ecx, 3
lea eax, [eax + ecx*2]
bt esi, eax
jb 0x7fc4e8
mov al, byte [0xbb0e9f]
mov esi, edx
xor ecx, ecx
mov ah, 1
xor esi, 0x7ff890
sete cl
mov esi, ecx
not esi
and esi, 3
lea ecx, [ecx + esi*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb0e9f], ah
jne 0x7fc26a
mov ecx, 0x7ff890
xor edx, edx
movzx eax, al
and ecx, 1
inc ecx
mov esi, ecx
xor esi, 0x7ff890
sete dl
mov esi, edx
not esi
and esi, 3
lea edx, [edx + esi*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7fc462
mov ebp, dword [esp + 0x30]
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbb0e9f]
xor edx, 0x7ff890
sete al
mov edx, eax
xor edx, 3
lea eax, [eax + edx*2]
bt esi, eax
jae 0x7fc2ca
jmp 0x7fc4e8
mov edx, fcn.00780a70
xor eax, eax
movzx esi, byte [0xbb0e23]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jb 0x7fc458
mov al, byte [0xbb0e23]
xor ecx, ecx
cmp edx, 2
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 5
lea ecx, [ebx + ecx*2 + 4]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb0e23], ah
jne 0x7fc326
mov ecx, fcn.00780a70
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
mov ebx, edx
xor ebx, 5
lea edx, [ebx + edx*2 + 4]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7fc3a5
mov ebx, dword [esp + 0x34]
xor eax, eax
cmp ecx, 2
movzx esi, byte [0xbb0e23]
sete al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jae 0x7fc37e
jmp 0x7fc458
xor eax, eax
cmp ecx, 2
movzx esi, byte [0xbb0e23]
mov ebx, dword [esp + 0x34]
sete al
mov ecx, eax
xor ecx, 0xe01b01a5
lea edx, [ecx + eax*2 + 0x1084]
mov eax, edx
and al, 7
movzx eax, al
bt esi, eax
jb 0x7fc42c
mov esi, 0xbb0de0
xor eax, eax
mov ebx, dword [esi]
mov ecx, eax
mov ebp, edx
inc eax
shl ebp, cl
xor cl, 0x1f
xor ebx, edx
shr edx, cl
mov dword [esi], ebx
or edx, ebp
not ebx
add esi, 4
imul edx, ebx
cmp eax, 0x10
jne 0x7fc3da
mov eax, fcn.00780a70
xor ecx, ecx
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 5
lea ecx, [eax + ecx*2 + 4]
mov al, 1
and cl, 7
shl al, cl
or byte [0xbb0e23], al
mov eax, fcn.00780a70
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
xor eax, 5
lea ecx, [eax + ecx*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb0e23], al
push 0xbb0de0
jmp 0x7fc0a4
xor eax, eax
xor ecx, 0x7ff890
movzx edx, byte [0xbb0e9f]
mov ebp, dword [esp + 0x30]
sete al
mov ecx, eax
xor ecx, 3
lea eax, [eax + ecx*2]
bt edx, eax
jb 0x7fc4bd
mov ecx, 0x7ff890
xor eax, eax
and ecx, 1
inc ecx
xor ecx, 0x7ff890
sete al
mov ecx, eax
not ecx
and ecx, 0x6a3
lea ecx, [eax + ecx*2 + 0x1e780958]
mov al, 1
xor dword [0xbb0e98], ecx
and cl, 7
shl al, cl
or byte [0xbb0e9f], al
mov ecx, 0x7ff890
xor eax, eax
and ecx, 1
inc ecx
xor ecx, 0x7ff890
sete al
mov ecx, eax
not ecx
and ecx, 3
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb0e9f], al
mov ecx, edi
mov edx, 0x98
push 0xbb0e98
call fcn.007d8c20
add esp, 4
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x2c], ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
cmp eax, 0xbb0e34
jne 0x7fc51b
mov esi, 1
jmp 0x7fc1e0
mov edi, dword [esp + 4]
cmp eax, 0xbb0e44
jne 0x7fc530
mov esi, 2
jmp 0x7fc1e4
cmp eax, 0xbb0e50
jne 0x7fc541
mov esi, 3
jmp 0x7fc1e4
cmp eax, 0xbb0e64
jne 0x7fc552
mov esi, 4
jmp 0x7fc1e4
cmp eax, 0xbb0e74
jne 0x7fc563
mov esi, 5
jmp 0x7fc1e4
cmp eax, 0xbb0e80
jne 0x7fc574
mov esi, 6
jmp 0x7fc1e4
mov ebp, dword [esp + 0x30]
cmp eax, 0xbb0e8c
jne 0x7fc4ff
mov esi, 7
jmp 0x7fc1e4