Function at 0x78bd40
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [ecx + 0x14]
mov dword [esp + 4], ecx
mov ecx, fcn.007fc590
mov edi, 3
mov dword [esp], edx
sub edi, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov ecx, edi
xor eax, eax
movzx edx, byte [0xbb66f7]
xor ecx, fcn.007fc590
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x78bf03
mov al, byte [0xbb66f7]
mov edx, edi
xor ecx, ecx
xor edx, fcn.007fc590
sete cl
mov edx, ecx
xor edx, 1
lea ecx, [ecx + edx*2 + 6]
mov dl, 1
and cl, 7
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb66f7], dl
jne 0x78bd95
mov edx, edi
xor ecx, ecx
movzx eax, al
xor edx, fcn.007fc590
sete cl
mov edx, ecx
xor edx, 1
lea ecx, [ecx + edx*2 + 6]
and cl, 7
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x78be14
mov ecx, edi
xor eax, eax
movzx edx, byte [0xbb66f7]
xor ecx, fcn.007fc590
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jae 0x78bde8
jmp 0x78bf03
mov ecx, edi
xor eax, eax
movzx edx, byte [0xbb66f7]
xor ecx, fcn.007fc590
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x78bedd
mov ecx, edi
xor eax, eax
xor ecx, fcn.007fc590
sete al
mov ecx, eax
not ecx
and ecx, 0x491
lea ecx, [eax + ecx*2 - 0x36bfd492]
mov eax, dword [0xbb66e0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb66e0], eax
not eax
imul edx, eax
mov eax, dword [str.8HL]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [str.8HL], eax
or esi, edx
not eax
mov edx, dword [0xbb66e8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb66e8], edx
or esi, eax
not edx
mov eax, dword [0xbb66ec]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb66ec], eax
or esi, edx
not eax
mov dl, 1
imul eax, esi
shl dl, cl
xor dword [0xbb66f0], eax
or byte [0xbb66f7], dl
mov ecx, edi
xor eax, eax
xor ecx, fcn.007fc590
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb66f7], al
mov edi, dword [esp + 8]
xor esi, esi
test edi, edi
jle 0x78bf61
mov eax, dword [esp + 4]
xor ebx, ebx
cmp esi, 2
setb bl
xor ebx, esi
cmp dword [esp + 0x24], 0
mov ebp, dword [eax + 0x10]
je 0x78bf3b
mov eax, ebx
mov ecx, dword [esp + 0x24]
shl eax, 4
mov edx, dword [ebp + eax]
call fcn.00777e20
test eax, eax
jne 0x78bf5c
shl ebx, 4
mov edx, dword [esp]
mov ecx, dword [ebp + ebx + 0xc]
add ecx, 8
call fcn.007bf720
test eax, eax
jne 0x78c0cb
mov eax, dword [esp + 4]
mov edi, dword [eax + 0x14]
inc esi
cmp esi, edi
jl 0x78bf0d
mov ebp, 0x790bd0
mov edx, 0x790bd0
mov dword [esp + 8], edi
or ebp, 2
xor edx, 2
movzx ecx, byte [0xbb66d3]
mov eax, ebp
add eax, edx
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x78c08d
mov al, byte [0xbb66d3]
mov ecx, ebp
mov ah, 1
add ecx, edx
sete cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb66d3], ah
jne 0x78bf96
mov ecx, ebp
movzx eax, al
add ecx, edx
sete cl
or cl, 4
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x78bfe8
mov eax, ebp
movzx ecx, byte [0xbb66d3]
add eax, edx
sete al
or al, 4
movzx eax, al
bt ecx, eax
jae 0x78bfcb
jmp 0x78c08d
mov eax, ebp
movzx ecx, byte [0xbb66d3]
add eax, edx
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x78c078
mov eax, ebp
xor ecx, ecx
add eax, edx
mov eax, dword [0xbb66c0]
sete cl
or ecx, 0xc966b2a8
add ecx, 0x824
mov ebx, ecx
xor eax, ecx
shr ebx, 0x1f
mov dword [0xbb66c0], eax
not eax
or ebx, ecx
and cl, 7
imul ebx, eax
mov eax, dword [0xbb66c4]
lea edi, [ebx + ebx]
xor eax, ebx
shr ebx, 0x1e
mov dword [0xbb66c4], eax
or edi, ebx
not eax
mov esi, dword [0xbb66c8]
imul eax, edi
lea ebx, [eax*4]
xor esi, eax
shr eax, 0x1d
mov dword [0xbb66c8], esi
or ebx, eax
not esi
mov al, 1
imul esi, ebx
shl al, cl
xor dword [0xbb66cc], esi
or byte [0xbb66d3], al
add ebp, edx
mov al, 0xfe
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb66d3], al
mov ecx, dword [esp]
mov edx, 0xbb66c0
call fcn.00777e20
mov edi, dword [esp + 0xc]
xor ebp, ebp
test eax, eax
jne 0x78c0cd
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
push dword [eax + 0x10]
push dword [esp + 0x28]
call fcn.00777e00
add esp, 8
test eax, eax
mov dword [esp], 0xbb66e0
je 0x78bd65
jmp 0x78c0cd
mov ebp, eax
mov eax, ebp
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret