Function at 0x7f3730
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, ecx
mov ecx, dword [ecx]
mov esi, edx
cmp byte [ecx + 0x51], 0
jne 0x7f39ea
mov ebx, dword [esp + 0x2c]
mov dword [esp], ecx
mov ecx, edi
call fcn.007d1540
mov ecx, dword [esp]
test eax, eax
jne 0x7f39ea
mov dword [esp + 0x10], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov eax, dword [esi + 0xc]
mov esi, dword [ecx + 0x14]
test esi, esi
mov dword [esp + 0xc], eax
jle 0x7f37da
mov eax, dword [esp + 4]
xor edi, edi
mov eax, dword [eax + 0x10]
mov dword [esp + 0x14], eax
xor ebx, ebx
cmp edi, 2
mov ebp, dword [ecx + 0x10]
setb bl
xor ebx, edi
cmp dword [esp + 0xc], 0
je 0x7f37b4
mov eax, ebx
mov edx, dword [esp + 0xc]
shl eax, 4
mov ecx, dword [ebp + eax]
call fcn.00783720
mov ecx, dword [esp]
test eax, eax
jne 0x7f37d5
shl ebx, 4
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + ebx + 0xc]
add ecx, 0x28
call fcn.007cb020
test eax, eax
jne 0x7f39d8
mov ecx, dword [esp]
mov esi, dword [ecx + 0x14]
inc edi
cmp edi, esi
jl 0x7f3787
cmp dword [esp + 0x10], 0
jne 0x7f39bc
mov edx, 0x791300
mov esi, 0x791300
xor eax, eax
movzx edi, byte [0xbbb1bb]
or edx, 2
xor esi, 2
mov ecx, edx
add ecx, esi
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edi, eax
jb 0x7f399d
mov al, byte [0xbbb1bb]
mov edi, edx
xor ecx, ecx
mov ah, 1
add edi, esi
sete cl
mov ebx, ecx
xor ebx, 3
lea ecx, [ebx + ecx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbb1bb], ah
jne 0x7f381b
mov ecx, 0x791300
mov edx, 0x791300
xor ebx, ebx
movzx eax, al
or ecx, 2
xor edx, 2
mov esi, ecx
add esi, edx
sete bl
mov esi, ebx
xor ebx, 3
lea ebx, [ebx + esi*2]
xor bl, 7
movzx esi, bl
bt eax, esi
jae 0x7f3890
mov esi, ecx
xor eax, eax
add esi, edx
movzx esi, byte [0xbbb1bb]
sete al
mov ebx, eax
xor ebx, 3
lea eax, [ebx + eax*2]
bt esi, eax
jae 0x7f386e
jmp 0x7f399d
xor eax, eax
add ecx, edx
movzx edx, byte [0xbbb1bb]
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7f3971
mov eax, 0x791300
mov ecx, 0x791300
xor edx, edx
xor ecx, 2
or eax, 2
add eax, ecx
sete dl
mov eax, edx
xor eax, 0xd85a4043
lea ecx, [eax + edx*2 + 0x1000]
mov eax, dword [0xbbb1a0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbbb1a0], eax
not eax
imul edx, eax
mov eax, dword [0xbbb1a4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbbb1a4], eax
or esi, edx
not eax
mov edx, dword [0xbbb1a8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbbb1a8], edx
or esi, eax
not edx
mov eax, dword [0xbbb1ac]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbbb1ac], eax
or esi, edx
not eax
mov edx, dword [0xbbb1b0]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbbb1b0], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbbb1b4], edx
mov dl, 1
shl dl, cl
or byte [0xbbb1bb], dl
mov eax, 0x791300
mov ecx, 0x791300
xor edx, edx
xor ecx, 2
or eax, 2
add eax, ecx
sete dl
mov eax, edx
xor eax, 3
lea ecx, [eax + edx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbbb1bb], al
push 0
mov esi, dword [esp + 8]
push esi
push 0xbbb1a0
mov edi, dword [esp + 0x14]
push edi
call fcn.0078de60
add esp, 0x10
mov byte [edi + 0x11], 1
jmp 0x7f39e7
mov esi, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, esi
call fcn.00810e30
mov byte [esi + 0x11], 1
mov ecx, dword [esp]
mov esi, dword [esp + 4]
jmp 0x7f39ea
mov ecx, dword [esp + 8]
mov edx, eax
call fcn.00811eb0
mov esi, dword [esp + 4]
mov ecx, dword [esp]
mov edx, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.007cbc20