Function at 0x78e100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x198
mov eax, dword [0x94bd40]
xor eax, esp
mov dword [esp + 0x194], eax
mov eax, dword [ebp + 0x14]
mov edx, 1
mov dword [esp + 0x68], eax
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x20], esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x18], edi
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 4]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x2c], eax
lea eax, [esi + 0x2c]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x68], eax
add eax, ecx
mov dword [esp + 0x7c], eax
mov eax, edi
sub eax, ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0xb8]
shl edx, cl
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x28], eax
sub eax, ecx
mov edi, dword [esp + 0x28]
sub edi, edx
mov dword [esp + 0x20], 3
cmp eax, edx
mov eax, edi
mov edi, dword [esp + 0x18]
mov edx, 1
cmovbe eax, ecx
cmp dword [esi + 0x18], 0
cmovne eax, ecx
mov ecx, 6
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc4]
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [esi + 0x50]
shl edx, cl
mov ecx, 0x22
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x84], eax
mov eax, dword [esi + 0xb4]
mov dword [esp + 0x38], edx
imul edx, dword [edi], 0x9e3779b1
mov dword [esp + 0x6c], eax
sub ecx, dword [eax + 0xc0]
mov eax, edx
shr eax, cl
mov ecx, dword [esi + 0xc4]
shl eax, 2
mov dword [esp + 0x64], eax
cmp ecx, 6
jbe 0x78e217
add ecx, 0xfffffffa
mov eax, 1
shl eax, cl
mov dword [esp + 0x60], eax
jmp 0x78e21f
mov dword [esp + 0x60], 0
mov ecx, esi
mov dword [esp + 0x4c], 0x3f
cmp dword [ecx + 0xdc], 0
jne 0x78e4b0
mov eax, dword [esp + 0x48]
mov esi, dword [ecx + 0x1c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
sub eax, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x58], edx
mov dword [esp + 0x50], 0x18
cmp eax, 0x180
jbe 0x78e3e1
mov eax, dword [esp + 0x48]
lea edx, [esi + 0x60]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], edx
mov dword [esp + 0x58], eax
cmp esi, edx
jae 0x78e33e
mov esi, dword [esp + 0x50]
sub esi, dword [esp + 0x54]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x34], esi
nop dword [eax]
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x40]
imul edx, dword [eax + edi + 8], 0x9e3779b1
mov eax, edi
and eax, 7
xor edx, dword [ecx + 0x50]
mov ecx, esi
mov esi, dword [esp + 0x5c]
shr edx, cl
mov ecx, dword [esi + eax*4]
mov dword [esi + eax*4], edx
mov eax, ecx
mov edx, dword [esp + 0x2c]
shr eax, 2
mov dword [esp + 0x1c], ecx
and eax, 0x3fffffc0
mov ecx, dword [esp + 0x48]
add edx, eax
lea esi, [ecx + eax*4]
movzx ecx, byte [edx]
dec ecx
mov eax, 0
and ecx, 0x3f
cmove eax, dword [esp + 0x4c]
add ecx, eax
mov eax, dword [esp + 0x1c]
mov byte [edx], cl
mov byte [ecx + edx], al
mov dword [esi + ecx*4], edi
inc edi
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x34]
cmp edi, dword [esp + 0x30]
jb 0x78e2b0
mov eax, dword [ecx + 0x5c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x74], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 0x24]
lea edx, [edi + 1]
mov esi, dword [esp + 0x28]
add esi, 0xffffffe0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
add eax, esi
mov dword [esp + 0x1c], esi
cmp eax, edx
jbe 0x78e361
xor edx, edx
jmp 0x78e368
sub edx, dword [esp + 0x40]
sub edx, esi
inc edx
mov eax, 8
cmp edx, eax
cmova edx, eax
add edx, esi
mov dword [esp + 0x80], edx
cmp esi, edx
jae 0x78e3dd
mov eax, dword [esp + 0x50]
mov edi, esi
sub eax, dword [esp + 0x30]
mov dword [esp + 0x34], eax
nop dword [eax]
mov eax, dword [esp + 0x40]
imul edx, dword [eax + edi], 0x9e3779b1
mov eax, edi
and eax, 7
inc edi
xor edx, dword [ecx + 0x50]
mov ecx, dword [esp + 0x34]
shr edx, cl
mov ecx, dword [esp + 0x24]
mov dword [ecx + eax*4 + 0x2c], edx
cmp edi, dword [esp + 0x80]
jb 0x78e390
mov eax, dword [ecx + 0x5c]
mov edx, dword [ecx + 4]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x74], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x30], eax
mov dword [esp + 0x58], edx
jmp 0x78e3e1
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x28]
cmp esi, eax
jae 0x78e481
mov esi, dword [esp + 0x50]
sub esi, dword [esp + 0x30]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x30], esi
nop dword [eax]
imul edx, dword [edi + edx + 8], 0x9e3779b1
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x84], eax
mov eax, edi
and eax, 7
xor edx, dword [ecx + 0x50]
mov ecx, esi
mov esi, dword [esp + 0x5c]
shr edx, cl
mov ecx, dword [esi + eax*4]
mov dword [esi + eax*4], edx
mov eax, ecx
mov edx, dword [esp + 0x34]
shr eax, 2
and eax, 0x3fffffc0
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x74]
add edx, eax
lea esi, [ecx + eax*4]
movzx ecx, byte [edx]
dec ecx
mov eax, 0
and ecx, 0x3f
cmove eax, dword [esp + 0x4c]
add ecx, eax
mov eax, dword [esp + 0x80]
mov byte [edx], cl
mov byte [ecx + edx], al
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x58]
mov dword [esi + ecx*4], edi
inc edi
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
cmp edi, eax
jb 0x78e400
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x54]
mov dword [esi + 0x1c], eax
imul edx, dword [edi + 8], 0x9e3779b1
xor edx, dword [esp + 0x3c]
shr edx, cl
and eax, 7
mov ecx, dword [esi + eax*4 + 0x2c]
mov dword [esi + eax*4 + 0x2c], edx
mov edx, ecx
mov dword [esp + 0x1c], ecx
jmp 0x78e4ca
xor edx, dword [esp + 0x3c]
mov ecx, 0x18
sub ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x28]
shr edx, cl
mov dword [esp + 0x1c], edx
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x48]
mov eax, edx
mov edi, dword [esp + 0x2c]
add dword [esi + 0x58], edx
shr eax, 2
and eax, 0x3fffffc0
mov dword [esp + 0x2c], 0
add edi, eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], edi
lea ecx, [ecx + eax*4]
movsx eax, dl
movzx esi, byte [edi]
mov edx, edi
mov dword [esp + 0x5c], ecx
xor ecx, ecx
mov dword [esp + 0x4c], esi
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [esp + ecx*4 + 0x80], eax
inc ecx
cmp ecx, 4
jl 0x78e526
mov eax, dword [esp + 0x8c]
and esi, 0x3f
cdq
mov edi, eax
mov ecx, edx
mov eax, dword [esp + 0x88]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov eax, dword [esp + 0x84]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
or edi, eax
mov eax, dword [esp + 0x80]
shld ecx, edi, 0x10
cdq
or ecx, edx
shl edi, 0x10
mov dword [esp + 0x3c], ecx
or edi, eax
mov edx, dword [esp + 0x3c]
mov ecx, esi
neg ecx
mov eax, edi
and ecx, 0x3f
call fcn.007bcf70
mov dword [esp + 0x80], eax
mov ecx, esi
mov dword [esp + 0x54], edx
mov eax, edi
mov edx, dword [esp + 0x3c]
call fcn.007bcf90
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x54]
or esi, eax
or edi, edx
ja 0x78e5cc
test esi, esi
je 0x78e626
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x38], 0
jbe 0x78e62a
test esi, esi
jne 0x78e5e3
bsf eax, edi
add eax, 0x20
jmp 0x78e5e6
bsf eax, esi
mov ecx, dword [esp + 0x5c]
add eax, edx
and eax, 0x3f
mov eax, dword [ecx + eax*4]
je 0x78e60e
cmp eax, dword [esp + 0x14]
jb 0x78e62a
mov ecx, dword [esp + 0x2c]
mov dword [esp + ecx*4 + 0x98], eax
inc ecx
dec dword [esp + 0x38]
mov dword [esp + 0x2c], ecx
mov ecx, esi
mov eax, edi
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
and edi, eax
ja 0x78e5d0
jb 0x78e62a
test esi, esi
jne 0x78e5d0
jmp 0x78e62a
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x5c]
lea ecx, [edx - 1]
mov edi, dword [esp + 0x18]
and ecx, 0x3f
mov edx, 0x3f
mov eax, 0
cmove eax, edx
mov edx, dword [esp + 0x50]
add ecx, eax
mov eax, dword [esp + 0x1c]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x1c]
mov dword [esi + ecx*4], eax
inc dword [edx + 0x1c]
cmp dword [esp + 0x2c], 0
jbe 0x78e737
mov ecx, 3
xor eax, eax
mov eax, dword [esp + eax*4 + 0x98]
mov edx, dword [esp + 0x40]
add edx, eax
mov dword [esp + 0x80], eax
mov eax, dword [edx + ecx - 3]
cmp eax, dword [ecx + edi - 3]
jne 0x78e724
mov esi, dword [esp + 0x44]
mov eax, edi
lea ecx, [esi - 3]
cmp edi, ecx
jae 0x78e6d7
mov eax, dword [edx]
xor eax, dword [edi]
je 0x78e6b0
bsf ecx, eax
shr ecx, 3
jmp 0x78e6fb
lea eax, [edi + 4]
add edx, 4
cmp eax, ecx
jae 0x78e6d7
nop word [eax + eax]
mov ecx, dword [edx]
xor ecx, dword [eax]
jne 0x78e983
add eax, 4
lea ecx, [esi - 3]
add edx, 4
cmp eax, ecx
jb 0x78e6c0
lea ecx, [esi - 1]
cmp eax, ecx
jae 0x78e6ec
mov cx, word [edx]
cmp cx, word [eax]
jne 0x78e6ec
add eax, 2
add edx, 2
cmp eax, esi
jae 0x78e6f7
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x78e6f7
inc eax
mov ecx, eax
sub ecx, edi
cmp ecx, dword [esp + 0x20]
jbe 0x78e720
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x80]
mov edx, dword [esp + 0x70]
add eax, 3
mov dword [esp + 0x20], ecx
mov dword [edx], eax
lea eax, [ecx + edi]
cmp eax, esi
je 0x78e737
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
inc eax
mov dword [esp + 0x48], eax
cmp eax, dword [esp + 0x2c]
jb 0x78e673
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x60]
add esi, dword [esp + 0x38]
mov dword [esp + 0x38], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov dword [esp + 0x60], eax
sub eax, edx
add eax, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
mov eax, 3
cmp esi, eax
mov dword [esp + 0x18], edx
cmovb eax, esi
xor ecx, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x78e863
mov eax, dword [esp + 0x64]
lea ecx, [eax*4]
mov dword [esp + 0x14], ecx
nop dword [eax]
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x60]
mov eax, dword [eax + 0x5c]
mov eax, dword [ecx + eax]
add esi, eax
mov dword [esp + 0x80], eax
test eax, eax
je 0x78e96b
mov eax, dword [esi]
cmp eax, dword [edi]
jne 0x78e843
mov ecx, dword [esp + 0x44]
lea eax, [edi + 4]
add esi, 4
sub eax, esi
add eax, edx
cmp eax, ecx
cmovb ecx, eax
lea eax, [edi + 4]
push ecx
push esi
push eax
call fcn.00782bc0
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x68], eax
lea ecx, [eax + esi]
mov esi, dword [esp + 0x44]
cmp ecx, edx
jne 0x78e80b
push esi
push dword [esp + 0x80]
add eax, 4
add eax, edi
push eax
call fcn.00782bc0
mov edx, dword [esp + 0x24]
add esp, 0xc
add eax, dword [esp + 0x68]
lea ecx, [eax + 4]
cmp ecx, dword [esp + 0x20]
jbe 0x78e83f
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x80]
sub eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x70]
add eax, 3
mov dword [esp + 0x20], ecx
mov dword [edx], eax
lea eax, [ecx + edi]
mov edx, dword [esp + 0x18]
cmp eax, esi
je 0x78e992
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add ecx, 4
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x4c]
jb 0x78e790
mov esi, dword [esp + 0x38]
mov ecx, eax
mov eax, dword [esp + 0x6c]
sub esi, ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x64], 0
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + edx*4 + 0xc]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
shr dword [esp + 0x14], 8
movzx eax, al
cmp esi, eax
cmova esi, eax
mov dword [esp + 0x38], esi
test esi, esi
je 0x78e96b
mov eax, dword [esp + 0x14]
lea ecx, [eax*4]
mov dword [esp + 0x14], ecx
nop dword [eax]
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x60]
mov eax, dword [eax + 0x64]
mov eax, dword [ecx + eax]
add esi, eax
mov dword [esp + 0x80], eax
mov eax, dword [esi]
cmp eax, dword [edi]
jne 0x78e94d
mov ecx, dword [esp + 0x44]
lea eax, [edi + 4]
add esi, 4
sub eax, esi
add eax, edx
cmp eax, ecx
cmovb ecx, eax
lea eax, [edi + 4]
push ecx
push esi
push eax
call fcn.00782bc0
add esp, 0xc
mov dword [esp + 0x68], eax
lea ecx, [eax + esi]
mov esi, dword [esp + 0x44]
cmp ecx, dword [esp + 0x18]
jne 0x78e91d
push esi
push dword [esp + 0x80]
add eax, 4
add eax, edi
push eax
call fcn.00782bc0
add esp, 0xc
add eax, dword [esp + 0x68]
lea ecx, [eax + 4]
cmp ecx, dword [esp + 0x20]
jbe 0x78e949
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x80]
sub eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x70]
add eax, 3
mov dword [esp + 0x20], ecx
mov dword [edx], eax
lea eax, [ecx + edi]
cmp eax, esi
je 0x78e96b
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x64]
add ecx, 4
mov edx, dword [esp + 0x18]
inc eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x14], ecx
cmp eax, dword [esp + 0x38]
jb 0x78e8b0
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.007bcf1e
mov esp, ebp
pop ebp
ret
bsf ecx, ecx
shr ecx, 3
sub ecx, edi
add ecx, eax
jmp 0x78e6fb
mov eax, ecx
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
xor ecx, esp
call fcn.007bcf1e
mov esp, ebp
pop ebp
ret