Function at 0x78b07f
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
test ebp, ebp
jne 0x78b127
mov dword [esp], 0x6f0ae0
call fcn.0077e2fe
mov dword [esp + 0x1c], 0x6f0cb9
mov dword [esp + 0x18], 0x6f10f3
mov dword [esp + 0x14], 0x41f
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6f0b0c
mov dword [esp + 8], 0x6f10e8
mov dword [esp + 4], 0x1000
mov dword [esp], 3
call fcn.0077d2e6
mov dword [esp], 0x6f0ae0
call fcn.0077e2fe
mov dword [esp + 0x14], 0x6f0cb9
mov dword [esp + 0x10], 0x6f10f3
mov dword [esp + 0xc], 0x41f
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6f0b38
mov eax, dword [0x79e604]
add eax, 0x40
mov dword [esp], eax
call 0x911fa0
call 0x911fa8
test edi, edi
jne 0x78b1c0
mov dword [esp], 0x6f0ae0
call fcn.0077e2fe
mov dword [esp + 0x1c], 0x6f0cbd
mov dword [esp + 0x18], 0x6f10f3
mov dword [esp + 0x14], 0x420
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6f0b0c
mov dword [esp + 8], 0x6f10e8
mov dword [esp + 4], 0x1000
mov dword [esp], 3
call fcn.0077d2e6
mov dword [esp], 0x6f0ae0
call fcn.0077e2fe
mov dword [esp + 0x14], 0x6f0cbd
mov dword [esp + 0x10], 0x6f10f3
mov dword [esp + 0xc], 0x420
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6f0b38
mov eax, dword [0x79e604]
add eax, 0x40
mov dword [esp], eax
call 0x911fa0
call 0x911fa8
cmp dword [esp + 0x58], 0
jne 0x78b25c
mov dword [esp], 0x6f0ae0
call fcn.0077e2fe
mov dword [esp + 0x1c], 0x6f0cc1
mov dword [esp + 0x18], 0x6f10f3
mov dword [esp + 0x14], 0x421
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6f0b0c
mov dword [esp + 8], 0x6f10e8
mov dword [esp + 4], 0x1000
mov dword [esp], 3
call fcn.0077d2e6
mov dword [esp], 0x6f0ae0
call fcn.0077e2fe
mov dword [esp + 0x14], 0x6f0cc1
mov dword [esp + 0x10], 0x6f10f3
mov dword [esp + 0xc], 0x421
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6f0b38
mov eax, dword [0x79e604]
add eax, 0x40
mov dword [esp], eax
call 0x911fa0
call 0x911fa8
mov cl, byte [edi]
movzx eax, cl
shl eax, 7
test cl, cl
je 0x78b292
mov ebx, edi
lea edx, [eax + eax*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
shl edx, 5
add edx, eax
lea edx, [eax + edx*2]
movzx eax, cl
xor eax, edx
inc ebx
mov cl, byte [ebx]
test cl, cl
jne 0x78b26a
jmp 0x78b294
mov ebx, edi
mov ecx, dword [ebp]
test ecx, ecx
je 0x78b2e4
sub ebx, edi
xor eax, ebx
mov edx, 0
div dword [ebp + 4]
lea esi, [ecx + edx*4]
mov ebx, dword [esi]
test ebx, ebx
je 0x78b2cb
mov dword [esp + 4], edi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call 0x912008
test eax, eax
je 0x78b2cb
mov esi, ebx
mov ebx, dword [ebx]
test ebx, ebx
jne 0x78b2b0
test esi, esi
je 0x78b2e4
mov edx, dword [esi]
test edx, edx
je 0x78b2e4
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x58]
mov dword [edx + 8], ecx
jmp 0x78b4ae
mov dword [esp], 0x10
call fcn.00780eb8
mov dword [esp + 0x2c], eax
mov dword [esp], edi
call fcn.00781092
mov esi, eax
mov eax, dword [esp + 0x2c]
mov dword [eax + 0xc], esi
mov edx, dword [esp + 0x58]
mov dword [eax + 8], edx
mov cl, byte [esi]
movzx eax, cl
shl eax, 7
test cl, cl
je 0x78b342
mov ebx, esi
lea edx, [eax + eax*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
shl edx, 5
add edx, eax
lea edx, [eax + edx*2]
movzx eax, cl
xor eax, edx
inc ebx
mov cl, byte [ebx]
test cl, cl
jne 0x78b31a
jmp 0x78b344
mov ebx, esi
sub ebx, esi
xor eax, ebx
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 4], eax
mov ecx, dword [ebp]
test ecx, ecx
je 0x78b430
mov edx, 0
div dword [ebp + 4]
lea edi, [ecx + edx*4]
mov ebx, dword [edi]
test ebx, ebx
je 0x78b386
mov dword [esp + 4], esi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call 0x912008
test eax, eax
je 0x78b386
mov edi, ebx
mov ebx, dword [ebx]
test ebx, ebx
jne 0x78b36b
test edi, edi
je 0x78b428
cmp dword [edi], 0
je 0x78b428
mov dword [esp], 0x6f0ae0
call fcn.0077e2fe
mov dword [esp + 0x1c], 0x6f0cc8
mov dword [esp + 0x18], 0x6f10f3
mov dword [esp + 0x14], 0x42c
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6f0b0c
mov dword [esp + 8], 0x6f10e8
mov dword [esp + 4], 0x1000
mov dword [esp], 3
call fcn.0077d2e6
mov dword [esp], 0x6f0ae0
call fcn.0077e2fe
mov dword [esp + 0x14], 0x6f0cc8
mov dword [esp + 0x10], 0x6f10f3
mov dword [esp + 0xc], 0x42c
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6f0b38
mov eax, dword [0x79e604]
add eax, 0x40
mov dword [esp], eax
call 0x911fa0
call 0x911fa8
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 8], eax
jb 0x78b440
mov eax, dword [ebp + 8]
inc eax
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.0078a896
inc dword [ebp + 8]
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + 0xc]
mov cl, byte [esi]
movzx eax, cl
shl eax, 7
test cl, cl
je 0x78b480
mov ebx, esi
lea edx, [eax + eax*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
shl edx, 5
add edx, eax
lea edx, [eax + edx*2]
movzx eax, cl
xor eax, edx
inc ebx
mov cl, byte [ebx]
test cl, cl
jne 0x78b458
jmp 0x78b482
mov ebx, esi
sub ebx, esi
xor eax, ebx
mov edx, dword [esp + 0x2c]
mov dword [edx + 4], eax
mov edx, 0
div dword [ebp + 4]
lea eax, [edx*4]
add eax, dword [ebp]
mov edx, dword [eax]
mov ecx, dword [esp + 0x2c]
mov dword [ecx], edx
mov dword [eax], ecx
mov eax, 0
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret