Function at 0x78ee10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov edi, dword [esp + 0x40]
xor ebp, ebp
cmp dword [edi + 0x24], 0
jg 0x78f2db
mov eax, dword [edi + 0x20]
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
test eax, eax
jle 0x78ee52
mov ecx, eax
sar ecx, 0x1f
add ebx, eax
adc esi, ecx
add ebx, 0xffffffff
adc esi, 0xffffffff
push ecx
push eax
push esi
push ebx
call fcn.00980590
sub ebx, eax
sbb esi, edx
cmp dword [edi + 0x2c], 0
jne 0x78ee6a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
jmp 0x78ee78
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov ecx, edi
call fcn.00790ce0
mov ecx, edi
mov edx, ebx
push esi
call fcn.00791da0
add esp, 4
test eax, eax
jne 0x78ef46
mov ecx, fcn.00797480
mov eax, fcn.00797480
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
or ecx, 2
xor eax, 2
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
xor edx, edx
mov edi, dword [ecx*4 + 0xb4d370]
mov esi, dword [ecx*4 + 0xb4d4b0]
mov dword [esp + 0x28], ecx
add eax, dword [esp + 0x1c]
mov eax, 1
sete dl
or edx, 0xb1200224
add edx, 0xaa0
xor edx, dword [ecx*4 + 0xb4b130]
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 + esi - 1]
mov ebp, dword [esp]
bt ecx, ebp
jb 0x78f109
mov dword [esp + 0xc], eax
mov al, byte [edi + esi - 1]
mov ecx, eax
or cl, bl
lock cmpxchg byte [edi + esi - 1], cl
jne 0x78ef1d
mov ecx, dword [esp + 0xc]
movzx eax, al
test ebx, eax
je 0x78f0b0
movzx eax, byte [edi + esi - 1]
test ecx, eax
je 0x78ef38
jmp 0x78f109
mov edx, fcn.0077cc90
movzx ecx, byte [0xbacf03]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x78f089
mov al, byte [0xbacf03]
cmp edx, 2
mov ah, 1
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbacf03], ah
jne 0x78ef71
mov ecx, fcn.0077cc90
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
or dl, 6
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x78efcb
cmp ecx, 2
movzx edx, byte [0xbacf03]
sete al
or al, 6
movzx eax, al
bt edx, eax
jae 0x78efaf
jmp 0x78f089
cmp ecx, 2
movzx edx, byte [0xbacf03]
sete al
or al, 6
movzx eax, al
bt edx, eax
jb 0x78f068
mov eax, fcn.0077cc90
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
mov eax, dword [0xbacef0]
sete cl
or ecx, 0x9761ca36
add ecx, 0xa80
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbacef0], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbacef4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbacef4], eax
or esi, edx
not eax
mov edx, dword [0xbacef8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbacef8], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
shl al, cl
xor dword [0xbacefc], edx
or byte [0xbacf03], al
mov eax, fcn.0077cc90
imul eax, eax
and eax, 3
cmp eax, 2
mov al, 0xfe
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbacf03], al
mov edx, dword [edi + 0x14]
mov ebp, 0x60a
mov ecx, 0x60a
push 0x2dcf
push dword [edi + 0x1c]
push 0xbacef0
call fcn.007911b0
add esp, 0xc
jmp 0x78f2db
mov dword [esp + 0x18], ebx
movzx eax, byte [edi + esi - 1]
test ecx, eax
jne 0x78f0ff
lea ecx, [esi - 4]
shr ecx, 2
je 0x78f0f7
xor eax, eax
mov ebx, edi
mov dword [esp + 0x24], ecx
mov ebp, dword [ebx]
mov ecx, eax
mov dword [esp], edx
inc eax
shl dword [esp], cl
and cl, 0x1f
xor cl, 0x1f
xor ebp, edx
shr edx, cl
mov ecx, dword [esp + 0x24]
or edx, dword [esp]
mov dword [ebx], ebp
not ebp
add ebx, 4
imul edx, ebp
cmp eax, ecx
jne 0x78f0cd
mov eax, dword [esp + 0xc]
or byte [edi + esi - 1], al
mov eax, dword [esp + 0x18]
not al
and byte [edi + esi - 1], al
mov ecx, dword [esp + 0x28]
inc ecx
cmp ecx, 0x50
jne 0x78eeb6
mov edi, dword [esp + 0x40]
push dword [edi + 8]
call dword [0xbabd9c]
test eax, eax
jne 0x78f2a7
call dword [0xbabc58]
cmp eax, 0x4c8
je 0x78f2a7
mov esi, fcn.00810eb0
movzx ecx, byte [0xbacf23]
mov edx, eax
imul esi, esi
and esi, 3
cmp esi, 2
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x78f288
mov al, byte [0xbacf23]
cmp esi, 2
mov ah, 1
sete cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbacf23], ah
jne 0x78f16a
mov ecx, fcn.00810eb0
movzx esi, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete ah
or ah, 4
xor ah, 7
movzx eax, ah
bt esi, eax
jae 0x78f1c4
cmp ecx, 2
movzx esi, byte [0xbacf23]
sete al
or al, 4
movzx eax, al
bt esi, eax
jae 0x78f1a8
jmp 0x78f288
cmp ecx, 2
movzx esi, byte [0xbacf23]
sete al
or al, 4
movzx eax, al
bt esi, eax
jb 0x78f267
mov eax, fcn.00810eb0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
mov eax, dword [0xbacf10]
sete cl
or ecx, 0xf2485a48
add ecx, 0xa64
mov esi, ecx
xor eax, ecx
shr esi, 0x1f
mov dword [0xbacf10], eax
not eax
or esi, ecx
and cl, 7
imul esi, eax
mov eax, dword [0xbacf14]
mov ebx, esi
lea edi, [esi + esi]
shr ebx, 0x1e
or edi, ebx
xor eax, esi
mov dword [0xbacf14], eax
not eax
mov esi, dword [0xbacf18]
imul eax, edi
lea edi, [eax*4]
xor esi, eax
shr eax, 0x1d
mov dword [0xbacf18], esi
or edi, eax
not esi
mov al, 1
imul esi, edi
mov edi, dword [esp + 0x40]
shl al, cl
xor dword [0xbacf1c], esi
or byte [0xbacf23], al
mov eax, fcn.00810eb0
imul eax, eax
and eax, 3
cmp eax, 2
mov al, 0xfe
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbacf23], al
mov ebp, 0x60a
mov ecx, 0x60a
mov dword [edi + 0x14], edx
push 0x2dd4
push dword [edi + 0x1c]
push 0xbacf10
jmp 0x78f0a3
mov esi, dword [esp + 4]
mov edx, dword [esp + 8]
xor ebp, ebp
cmp edx, 1
mov eax, esi
sbb eax, 0
jl 0x78f2db
cmp dword [esp + 0x10], edx
sbb dword [esp + 0x14], esi
jge 0x78f2d0
mov ecx, edi
mov edx, 0xffffffff
push 0xffffffffffffffff
jmp 0x78f2d3
mov ecx, edi
push esi
call fcn.007920b0
add esp, 4
mov eax, ebp
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret