Function at 0x7bf110
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0xbd33e0]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
xor eax, esp
mov dword [esp + 0xc], eax
mov ebx, dword [ecx]
mov esi, dword [ecx + 8]
mov eax, dword [ebx + 0x10]
mov ebp, esi
shl ebp, 4
mov eax, dword [eax + ebp + 0xc]
and word [eax + 0x4e], 0xfffb
inc dword [ecx + 0x14]
cmp byte [ebx + 0x51], 0
je 0x7bf160
mov edx, dword [edx + 4]
push 0
call fcn.007c9df0
add esp, 4
mov esi, 1
jmp 0x7bf751
mov dword [esp + 4], esi
xor esi, esi
test edx, edx
je 0x7bf751
cmp dword [edx + 0xc], 0
jne 0x7bf186
mov edx, dword [edx + 4]
push 0
call fcn.007c9df0
add esp, 4
jmp 0x7bf751
mov edx, 0x994e38
movzx ecx, byte [0xbb6017]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x7bf29e
mov al, byte [0xbb6017]
cmp edx, 1
mov ah, 1
seta cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb6017], ah
jne 0x7bf1b1
mov ecx, 0x994e38
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
or dl, 6
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7bf20b
cmp ecx, 1
movzx edx, byte [0xbb6017]
seta al
or al, 6
movzx eax, al
bt edx, eax
jae 0x7bf1ef
jmp 0x7bf29e
cmp ecx, 1
movzx edx, byte [0xbb6017]
seta al
or al, 6
movzx eax, al
bt edx, eax
jb 0x7bf27d
mov eax, 0x994e38
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
or cl, 6
or eax, 0x807efabe
xor eax, dword [0xbb6008]
mov dword [0xbb6008], eax
not eax
mov edx, dword [0xbb600c]
imul eax, eax, 0x807efabf
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb600c], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbb6010], edx
mov dl, 1
shl dl, cl
or byte [0xbb6017], dl
mov eax, 0x994e38
imul eax, eax
and eax, 3
cmp eax, 1
mov al, 0xfe
seta cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbb6017], al
mov edi, dword [esp + 0x2c]
mov esi, dword [edi + 0x10]
push 7
push 0xbb6008
push esi
call fcn.00783750
add esp, 0xc
test eax, eax
jne 0x7bf37e
mov al, byte [ebx + 0xa4]
mov byte [esp + 3], al
mov eax, dword [esp + 4]
mov byte [ebx + 0xa4], al
mov ecx, dword [edi + 0xc]
call fcn.007ca350
mov dword [ebx + 0xa0], eax
and byte [ebx + 0xa8], 0xfe
mov dword [ebx + 0xac], edi
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, ebx
mov edx, dword [edi + 0x10]
push 0
push eax
push 0
push 0
push 0xffffffffffffffff
call fcn.007ca390
add esp, 0x14
mov eax, dword [ebx + 0x40]
mov cl, byte [esp + 3]
mov esi, 0
test eax, eax
mov byte [ebx + 0xa4], cl
je 0x7bf36d
test byte [ebx + 0xa8], 1
jne 0x7bf36d
mov ecx, dword [esp + 0x24]
cmp eax, dword [ecx + 0xc]
jle 0x7bf339
mov dword [ecx + 0xc], eax
cmp eax, 9
je 0x7bf36d
cmp eax, 7
jne 0x7bf34c
mov ecx, ebx
call fcn.0078a090
jmp 0x7bf36d
cmp al, 6
je 0x7bf36d
push ebx
call fcn.0078fe80
add esp, 4
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x24]
push eax
call fcn.007c9df0
add esp, 4
push dword [esp + 8]
call fcn.00788ab0
add esp, 4
jmp 0x7bf751
mov edx, dword [edi + 4]
test edx, edx
je 0x7bf38e
test esi, esi
je 0x7bf399
cmp byte [esi], 0
je 0x7bf399
mov ecx, dword [esp + 0x24]
push 0
jmp 0x7bf747
mov eax, dword [ebx + 0x10]
mov ecx, ebx
push dword [eax + ebp]
call fcn.007cab10
add esp, 4
mov edi, dword [esp + 0x24]
mov ebp, eax
test eax, eax
je 0x7bf3dc
mov eax, dword [esp + 0x2c]
lea ebx, [ebp + 0x2c]
mov edx, ebx
mov ecx, dword [eax + 0xc]
call fcn.007cab80
test eax, eax
je 0x7bf3dc
cmp dword [ebx], 2
jl 0x7bf3dc
mov ecx, ebp
call fcn.007cae10
test eax, eax
je 0x7bf74f
mov eax, fcn.00844370
mov edx, 3
movzx esi, byte [0xbb6037]
sub edx, eax
xor eax, eax
mov ecx, edx
xor ecx, fcn.00844370
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
or al, 4
movzx eax, al
bt esi, eax
jb 0x7bf59c
mov al, byte [0xbb6037]
mov esi, edx
xor ecx, ecx
mov ah, 1
xor esi, fcn.00844370
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ebx + ecx*2]
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb6037], ah
jne 0x7bf417
mov edx, fcn.00844370
mov ecx, 3
movzx eax, al
sub ecx, edx
xor edx, edx
mov esi, ecx
xor esi, fcn.00844370
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [ebx + edx*2]
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7bf49f
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbb6037]
xor edx, fcn.00844370
sete al
mov edx, eax
xor edx, 1
lea eax, [edx + eax*2]
or al, 4
movzx eax, al
bt esi, eax
jae 0x7bf474
jmp 0x7bf59c
xor eax, eax
xor ecx, fcn.00844370
movzx edx, byte [0xbb6037]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
or al, 4
movzx eax, al
bt edx, eax
jb 0x7bf56d
mov eax, fcn.00844370
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.00844370
sete al
mov ecx, eax
xor ecx, 0xb7e4c819
lea ecx, [ecx + eax*2 + 0xf44]
mov eax, dword [0xbb6020]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb6020], eax
not eax
imul edx, eax
mov eax, dword [0xbb6024]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb6024], eax
or esi, edx
not eax
mov edx, dword [0xbb6028]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb6028], edx
or esi, eax
not edx
mov eax, dword [0xbb602c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb602c], eax
or esi, edx
not eax
mov dl, 1
imul eax, esi
shl dl, cl
xor dword [0xbb6030], eax
or byte [0xbb6037], dl
mov eax, fcn.00844370
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.00844370
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [ecx + eax*2]
mov al, 0xfe
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb6037], al
mov edx, fcn.00799430
mov eax, fcn.00799430
movzx esi, byte [0xbb6053]
and edx, 1
xor edx, eax
xor eax, eax
cmp edx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
or al, 4
movzx eax, al
bt esi, eax
jb 0x7bf72e
mov al, byte [0xbb6053]
xor ecx, ecx
cmp edx, 0xffffffff
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ebx + ecx*2]
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb6053], ah
jne 0x7bf5d5
mov ecx, fcn.00799430
mov edx, fcn.00799430
movzx eax, al
and ecx, 1
xor ecx, edx
xor edx, edx
cmp ecx, 0xffffffff
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [ebx + edx*2]
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7bf651
xor eax, eax
cmp ecx, 0xffffffff
movzx esi, byte [0xbb6053]
sete al
mov edx, eax
xor edx, 1
lea eax, [edx + eax*2]
or al, 4
movzx eax, al
bt esi, eax
jae 0x7bf62b
jmp 0x7bf72e
xor eax, eax
cmp ecx, 0xffffffff
movzx edx, byte [0xbb6053]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
or al, 4
movzx eax, al
bt edx, eax
jb 0x7bf6ff
mov ecx, fcn.00799430
mov eax, fcn.00799430
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 0xa89073d9
lea ecx, [ecx + eax*2 + 0x844]
mov eax, dword [0xbb6040]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb6040], eax
not eax
imul edx, eax
mov eax, dword [0xbb6044]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb6044], eax
or esi, edx
not eax
mov edx, dword [0xbb6048]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb6048], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
shl al, cl
xor dword [0xbb604c], edx
or byte [0xbb6053], al
mov ecx, fcn.00799430
mov eax, fcn.00799430
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [ecx + eax*2]
mov al, 0xfe
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb6053], al
mov ecx, dword [esp + 0x2c]
test ebp, ebp
mov eax, 0xbb6040
mov esi, 0xbb6020
cmove esi, eax
mov edx, dword [ecx + 4]
mov ecx, edi
push esi
call fcn.007c9df0
add esp, 4
xor esi, esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00989fe9
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret