Function at 0x796b90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x170
mov eax, dword [0x94bd40]
xor eax, esp
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x17c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x180]
mov dword [esp], eax
push esi
mov esi, dword [esp + 0x178]
push edi
mov edi, dword [esp + 0x180]
mov dword [esp + 0x60], edi
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x30], eax
lea eax, [esi + 0x2c]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x24], edx
mov edx, 1
lea edi, [eax + ecx]
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x60]
sub eax, ecx
mov dword [esp + 0xc], edi
mov ecx, dword [esi + 0xb8]
mov dword [esp + 0x5c], eax
mov edi, dword [esp + 0x5c]
shl edx, cl
mov ecx, dword [esi + 0x10]
sub edi, edx
sub eax, ecx
mov dword [esp + 0x48], 3
cmp eax, edx
mov dword [esp + 0x40], 0xf
mov edx, dword [esi + 0x50]
mov eax, edi
cmovbe eax, ecx
mov edi, dword [esp + 0x60]
cmp dword [esi + 0x18], 0
mov dword [esp + 0x3c], edx
cmovne eax, ecx
mov ecx, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xc4]
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x20], eax
mov eax, 1
shl eax, cl
mov ecx, esi
mov dword [esp + 0x10], eax
cmp dword [ecx + 0xdc], 0
jne 0x796efc
mov eax, dword [esp + 0x34]
mov esi, dword [ecx + 0x1c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x5c]
sub eax, esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], edx
mov dword [esp + 0x38], 0x18
cmp eax, 0x180
jbe 0x796e35
mov eax, dword [esp + 0x34]
lea edx, [esi + 0x60]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x58], edx
mov dword [esp + 0x70], eax
cmp esi, edx
jae 0x796d8b
mov esi, dword [esp + 0x38]
sub esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x54], esi
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x50]
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 + 0x44]
shr edx, cl
mov ecx, dword [esi + eax*4]
mov dword [esi + eax*4], edx
mov eax, ecx
mov edx, dword [esp + 0x30]
shr eax, 4
mov dword [esp + 0x68], ecx
and eax, 0xffffff0
mov ecx, dword [esp + 0x34]
add edx, eax
lea esi, [ecx + eax*4]
movzx ecx, byte [edx]
dec ecx
mov eax, 0
and ecx, 0xf
cmove eax, dword [esp + 0x40]
add ecx, eax
mov eax, dword [esp + 0x68]
mov byte [edx], cl
mov byte [ecx + edx], al
mov dword [esi + ecx*4], edi
inc edi
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x54]
cmp edi, dword [esp + 0x58]
jb 0x796d00
mov eax, dword [ecx + 0x5c]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 0x24]
lea edx, [edi + 1]
mov esi, dword [esp + 0x5c]
add esi, 0xffffffe0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x50]
add eax, esi
mov dword [esp + 0x68], esi
cmp eax, edx
jbe 0x796dae
xor edx, edx
jmp 0x796db5
sub edx, dword [esp + 0x50]
sub edx, esi
inc edx
mov eax, 8
cmp edx, eax
cmova edx, eax
add edx, esi
mov dword [esp + 0x20], edx
cmp esi, edx
jae 0x796e31
mov eax, dword [esp + 0x38]
mov edi, esi
sub eax, dword [esp + 0x58]
mov dword [esp + 0x54], eax
nop word [eax + eax]
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
imul edx, dword [eax + edi], 0x9e3779b1
mov eax, edi
and eax, 7
inc edi
xor edx, dword [ecx + 0x50]
mov ecx, dword [esp + 0x54]
shr edx, cl
mov ecx, dword [esp + 0x64]
mov dword [ecx + eax*4 + 0x2c], edx
cmp edi, dword [esp + 0x20]
jb 0x796de0
mov eax, dword [ecx + 0x5c]
mov edx, dword [ecx + 4]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x58], eax
mov dword [esp + 0x70], edx
jmp 0x796e35
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x5c]
cmp esi, eax
jae 0x796ec9
mov esi, dword [esp + 0x38]
sub esi, dword [esp + 0x58]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x58], esi
imul edx, dword [edi + edx + 8], 0x9e3779b1
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x20], eax
mov eax, edi
and eax, 7
xor edx, dword [ecx + 0x50]
mov ecx, esi
mov esi, dword [esp + 0x44]
shr edx, cl
mov ecx, dword [esi + eax*4]
mov dword [esi + eax*4], edx
mov eax, ecx
mov edx, dword [esp + 0x54]
shr eax, 4
and eax, 0xffffff0
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
add edx, eax
lea esi, [ecx + eax*4]
movzx ecx, byte [edx]
dec ecx
mov eax, 0
and ecx, 0xf
cmove eax, dword [esp + 0x40]
add ecx, eax
mov eax, dword [esp + 0x20]
mov byte [edx], cl
mov byte [ecx + edx], al
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x70]
mov dword [esi + ecx*4], edi
inc edi
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x58]
cmp edi, eax
jb 0x796e51
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x6c]
mov dword [esi + 0x1c], eax
imul edx, dword [edi + 8], 0x9e3779b1
mov eax, dword [esp + 0x5c]
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 eax, ecx
mov dword [esp + 0x6c], ecx
jmp 0x796f1a
imul eax, dword [edi], 0x9e3779b1
mov ecx, 0x18
sub ecx, dword [esp + 0x6c]
xor eax, edx
shr eax, cl
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x6c], eax
mov dword [esi + 0x1c], ecx
add dword [esi + 0x58], eax
xor edx, edx
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
shr eax, 4
and eax, 0xffffff0
mov dword [esp + 0x68], edx
add esi, eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x3c], esi
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x6c]
movsx eax, al
mov dword [esp + 0x44], ecx
movzx ecx, byte [esi]
mov edx, ecx
mov dword [esp + 0x40], ecx
movd xmm0, eax
and edx, 0xf
punpcklbw xmm0, xmm0
mov ecx, edx
punpcklwd xmm0, xmm0
neg ecx
pshufd xmm1, xmm0, 0
and ecx, 0xf
movups xmm0, xmmword [esi]
pcmpeqb xmm0, xmm1
pmovmskb esi, xmm0
mov ax, si
shl ax, cl
mov cx, dx
shr si, cl
or ax, si
movzx eax, ax
cdq
mov esi, eax
test edx, edx
jne 0x796f9b
test esi, esi
je 0x796ff9
xor edi, edi
nop dword [eax]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x796ff5
test esi, esi
jne 0x796fb4
bsf eax, edx
add eax, 0x20
jmp 0x796fb7
bsf eax, esi
add eax, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
and eax, 0xf
mov eax, dword [edi + eax*4]
mov edi, dword [esp + 0x70]
je 0x796fdf
cmp eax, dword [esp + 0x2c]
jb 0x796ff5
mov dword [esp + edi*4 + 0x74], eax
inc edi
dec ecx
mov dword [esp + 0x70], edi
mov dword [esp + 0x10], ecx
mov ecx, esi
mov eax, edx
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
and edx, eax
ja 0x796fa0
jb 0x796ff5
test esi, esi
jne 0x796fa0
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x40]
mov edx, 0xf
mov esi, dword [esp + 0x44]
dec ecx
and ecx, 0xf
mov eax, 0
cmove eax, edx
mov edx, dword [esp + 0x3c]
add ecx, eax
mov eax, dword [esp + 0x6c]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 0x1c]
mov dword [esi + ecx*4], eax
inc dword [edx + 0x1c]
cmp dword [esp + 0x70], 0
jbe 0x7971ca
mov edx, dword [esp + 0x70]
xor eax, eax
nop
mov eax, dword [esp + eax*4 + 0x74]
cmp eax, dword [esp + 0x28]
jb 0x7970df
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
add edx, eax
mov eax, dword [edx + ecx - 3]
cmp eax, dword [ecx + edi - 3]
jne 0x79717b
mov esi, dword [esp + 0x4c]
mov eax, edi
add esi, 0xfffffffd
cmp edi, esi
jae 0x7970a2
mov eax, dword [edx]
xor eax, dword [edi]
je 0x797088
mov esi, dword [esp + 0x4c]
bsf ecx, eax
shr ecx, 3
jmp 0x797151
lea eax, [edi + 4]
add edx, 4
cmp eax, esi
jae 0x7970a2
mov ecx, dword [edx]
xor ecx, dword [eax]
jne 0x7970cf
add eax, 4
add edx, 4
cmp eax, esi
jb 0x797092
mov esi, dword [esp + 0x4c]
lea ecx, [esi - 1]
cmp eax, ecx
jae 0x7970bb
mov cx, word [edx]
cmp cx, word [eax]
jne 0x7970bb
add eax, 2
add edx, 2
cmp eax, esi
jae 0x7970c6
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x7970c6
inc eax
mov ecx, eax
sub ecx, edi
jmp 0x797151
mov esi, dword [esp + 0x4c]
bsf ecx, ecx
shr ecx, 3
sub ecx, edi
add ecx, eax
jmp 0x797151
mov esi, dword [esp + 0x24]
add esi, eax
mov eax, dword [esi]
cmp eax, dword [edi]
jne 0x7971a9
mov ecx, dword [esp + 0x28]
lea eax, [edi + 4]
add ecx, dword [esp + 0x24]
add esi, 4
sub eax, esi
add eax, ecx
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [esp + 0x60]
push ecx
add eax, 4
push esi
push eax
call fcn.00782bc0
mov edx, dword [esp + 0x34]
add esp, 0xc
add edx, dword [esp + 0x24]
mov edi, dword [esp + 0x60]
lea ecx, [eax + esi]
mov dword [esp + 0x3c], eax
mov esi, dword [esp + 0x4c]
cmp ecx, edx
jne 0x79714e
push esi
push dword [esp + 0x10]
add eax, 4
add eax, edi
push eax
call fcn.00782bc0
add esp, 0xc
add eax, dword [esp + 0x3c]
lea ecx, [eax + 4]
cmp ecx, dword [esp + 0x48]
jbe 0x797177
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x48], ecx
sub eax, dword [esp + edx*4 + 0x74]
mov edx, dword [esp + 8]
add eax, 3
mov dword [edx], eax
lea eax, [ecx + edi]
cmp eax, esi
je 0x7971af
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x68]
inc eax
mov dword [esp + 0x68], eax
cmp eax, edx
jb 0x797040
pop edi
mov eax, ecx
pop esi
mov ecx, dword [esp + 0x16c]
xor ecx, esp
call fcn.007bcf1e
add esp, 0x170
ret
mov ecx, dword [esp + 0x48]
jmp 0x79717f
mov eax, dword [esp + 0x48]
pop edi
pop esi
mov ecx, dword [esp + 0x16c]
xor ecx, esp
call fcn.007bcf1e
add esp, 0x170
ret
mov ecx, dword [esp + 0x174]
mov eax, 3
pop edi
pop esi
xor ecx, esp
call fcn.007bcf1e
add esp, 0x170
ret