Function at 0x7b3800
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0xbcbae0]
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 0x7b3850
mov edx, dword [edx + 4]
push 0
call fcn.007be4f0
add esp, 4
mov esi, 1
jmp 0x7b3e41
mov dword [esp + 4], esi
xor esi, esi
test edx, edx
je 0x7b3e41
cmp dword [edx + 0xc], 0
jne 0x7b3876
mov edx, dword [edx + 4]
push 0
call fcn.007be4f0
add esp, 4
jmp 0x7b3e41
mov edx, 0x98b2a8
movzx ecx, byte [0xbae6b7]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x7b398e
mov al, byte [0xbae6b7]
cmp edx, 1
mov ah, 1
seta cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbae6b7], ah
jne 0x7b38a1
mov ecx, 0x98b2a8
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 0x7b38fb
cmp ecx, 1
movzx edx, byte [0xbae6b7]
seta al
or al, 6
movzx eax, al
bt edx, eax
jae 0x7b38df
jmp 0x7b398e
cmp ecx, 1
movzx edx, byte [0xbae6b7]
seta al
or al, 6
movzx eax, al
bt edx, eax
jb 0x7b396d
mov eax, 0x98b2a8
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 [0xbae6a8]
mov dword [0xbae6a8], eax
not eax
mov edx, dword [0xbae6ac]
imul eax, eax, 0x807efabf
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbae6ac], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbae6b0], edx
mov dl, 1
shl dl, cl
or byte [0xbae6b7], dl
mov eax, 0x98b2a8
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 [0xbae6b7], al
mov edi, dword [esp + 0x2c]
mov esi, dword [edi + 0x10]
push 7
push 0xbae6a8
push esi
call fcn.00777e50
add esp, 0xc
test eax, eax
jne 0x7b3a6e
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.007bea50
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.007bea90
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 0x7b3a5d
test byte [ebx + 0xa8], 1
jne 0x7b3a5d
mov ecx, dword [esp + 0x24]
cmp eax, dword [ecx + 0xc]
jle 0x7b3a29
mov dword [ecx + 0xc], eax
cmp eax, 9
je 0x7b3a5d
cmp eax, 7
jne 0x7b3a3c
mov ecx, ebx
call fcn.0077e7a0
jmp 0x7b3a5d
cmp al, 6
je 0x7b3a5d
push ebx
call fcn.00784590
add esp, 4
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x24]
push eax
call fcn.007be4f0
add esp, 4
push dword [esp + 8]
call fcn.0077d1c0
add esp, 4
jmp 0x7b3e41
mov edx, dword [edi + 4]
test edx, edx
je 0x7b3a7e
test esi, esi
je 0x7b3a89
cmp byte [esi], 0
je 0x7b3a89
mov ecx, dword [esp + 0x24]
push 0
jmp 0x7b3e37
mov eax, dword [ebx + 0x10]
mov ecx, ebx
push dword [eax + ebp]
call fcn.007bf210
add esp, 4
mov edi, dword [esp + 0x24]
mov ebp, eax
test eax, eax
je 0x7b3acc
mov eax, dword [esp + 0x2c]
lea ebx, [ebp + 0x2c]
mov edx, ebx
mov ecx, dword [eax + 0xc]
call fcn.007bf280
test eax, eax
je 0x7b3acc
cmp dword [ebx], 2
jl 0x7b3acc
mov ecx, ebp
call fcn.007bf510
test eax, eax
je 0x7b3e3f
mov eax, fcn.00838b00
mov edx, 3
movzx esi, byte [0xbae6d7]
sub edx, eax
xor eax, eax
mov ecx, edx
xor ecx, fcn.00838b00
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
or al, 4
movzx eax, al
bt esi, eax
jb 0x7b3c8c
mov al, byte [0xbae6d7]
mov esi, edx
xor ecx, ecx
mov ah, 1
xor esi, fcn.00838b00
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 [0xbae6d7], ah
jne 0x7b3b07
mov edx, fcn.00838b00
mov ecx, 3
movzx eax, al
sub ecx, edx
xor edx, edx
mov esi, ecx
xor esi, fcn.00838b00
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 0x7b3b8f
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbae6d7]
xor edx, fcn.00838b00
sete al
mov edx, eax
xor edx, 1
lea eax, [edx + eax*2]
or al, 4
movzx eax, al
bt esi, eax
jae 0x7b3b64
jmp 0x7b3c8c
xor eax, eax
xor ecx, fcn.00838b00
movzx edx, byte [0xbae6d7]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
or al, 4
movzx eax, al
bt edx, eax
jb 0x7b3c5d
mov eax, fcn.00838b00
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.00838b00
sete al
mov ecx, eax
xor ecx, 0xb7e4c819
lea ecx, [ecx + eax*2 + 0xf44]
mov eax, dword [0xbae6c0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbae6c0], eax
not eax
imul edx, eax
mov eax, dword [0xbae6c4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbae6c4], eax
or esi, edx
not eax
mov edx, dword [0xbae6c8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbae6c8], edx
or esi, eax
not edx
mov eax, dword [0xbae6cc]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbae6cc], eax
or esi, edx
not eax
mov dl, 1
imul eax, esi
shl dl, cl
xor dword [0xbae6d0], eax
or byte [0xbae6d7], dl
mov eax, fcn.00838b00
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.00838b00
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 [0xbae6d7], al
mov edx, fcn.0078db30
mov eax, fcn.0078db30
movzx esi, byte [0xbae6f3]
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 0x7b3e1e
mov al, byte [0xbae6f3]
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 [0xbae6f3], ah
jne 0x7b3cc5
mov ecx, fcn.0078db30
mov edx, fcn.0078db30
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 0x7b3d41
xor eax, eax
cmp ecx, 0xffffffff
movzx esi, byte [0xbae6f3]
sete al
mov edx, eax
xor edx, 1
lea eax, [edx + eax*2]
or al, 4
movzx eax, al
bt esi, eax
jae 0x7b3d1b
jmp 0x7b3e1e
xor eax, eax
cmp ecx, 0xffffffff
movzx edx, byte [0xbae6f3]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
or al, 4
movzx eax, al
bt edx, eax
jb 0x7b3def
mov ecx, fcn.0078db30
mov eax, fcn.0078db30
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 [0xbae6e0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbae6e0], eax
not eax
imul edx, eax
mov eax, dword [0xbae6e4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbae6e4], eax
or esi, edx
not eax
mov edx, dword [0xbae6e8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbae6e8], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
shl al, cl
xor dword [0xbae6ec], edx
or byte [0xbae6f3], al
mov ecx, fcn.0078db30
mov eax, fcn.0078db30
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 [0xbae6f3], al
mov ecx, dword [esp + 0x2c]
test ebp, ebp
mov eax, 0xbae6e0
mov esi, 0xbae6c0
cmove esi, eax
mov edx, dword [ecx + 4]
mov ecx, edi
push esi
call fcn.007be4f0
add esp, 4
xor esi, esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00980459
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret