Function at 0x50ad40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cf96
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1d8
mov eax, dword [0x5cf024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x188], ecx
mov esi, dword [ebx + 8]
mov dword [ebp - 0x184], 0
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
mov eax, dword [0x5d5d40]
cmp eax, dword [edx + 4]
jle 0x50ae03
push 0x5d5d40
call fcn.0051dec2
add esp, 4
cmp dword [0x5d5d40], 0xffffffff
jne 0x50ae03
mov dword [ebp - 4], 0
xor eax, eax
push 0x5708b0
mov dword [0x5d5d54], 0
mov dword [0x5d5d58], 7
mov word [0x5d5d44], ax
call fcn.0051dd7a
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x5d5d40
call fcn.0051de78
add esp, 4
push ecx
push str._.______._
lea ecx, [ebp - 0x19c]
call fcn.0050c2f0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1d4]
call fcn.0050c1c0
mov byte [ebp - 4], 2
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x50ae34
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
mov ecx, esi
jb 0x50ae40
mov ecx, dword [esi]
sub esp, 8
lea edx, [ebp - 0x19c]
push eax
push ecx
lea ecx, [ebp - 0x1d4]
call fcn.0050d610
add esp, 0x10
test al, al
jne 0x50aef2
cmp dword [esi + 0x14], 8
mov ecx, esi
mov edx, dword [esi + 0x10]
jb 0x50ae6e
mov ecx, dword [esi]
sub esp, 8
mov eax, esp
push edx
push ecx
mov cl, 1
mov dword [eax], 0x593f6c
mov dword [eax + 4], 3
call fcn.00485630
add esp, 0x10
test al, al
je 0x50b7c8
push esi
lea eax, [ebp - 0x8c]
push eax
call fcn.0050bb40
mov esi, eax
mov byte [ebp - 4], 4
cmp esi, 0x5d5d44
je 0x50aee3
mov ecx, 0x5d5d44
call fcn.00407e00
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [0x5d5d44], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x5d5d54], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c]
jmp 0x50b7be
cmp esi, 0x5d5d44
je 0x50af11
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x50af05
mov esi, dword [esi]
push eax
push esi
mov ecx, 0x5d5d44
call fcn.00407b80
push ecx
push 1
lea ecx, [ebp - 0x180]
mov dword [ebp - 0x16c], 1
call fcn.0048e7c0
mov byte [ebp - 4], 6
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x1c8]
mov esi, dword [ebp - 0x1cc]
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x1a8]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jbe 0x50af59
lea ecx, [esi + 0x18]
lea eax, [ebp - 0x44]
push eax
call fcn.0050c130
mov byte [ebp - 4], 7
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 8
lea esi, [ebp - 0x44]
mov eax, dword [ebp - 0x34]
mov edx, 0x811c9dc5
cmp dword [ebp - 0x30], 8
cmovae esi, dword [ebp - 0x44]
xor ecx, ecx
lea edi, [eax + eax]
test edi, edi
je 0x50afb9
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x50afa8
mov edi, dword [ebp - 0x188]
lea eax, [ebp - 0x44]
push edx
push eax
lea eax, [ebp - 0x1dc]
push eax
lea ecx, [edi + 0x1ac]
call fcn.0040b020
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x50afe5
mov eax, dword [edi + 0x1b0]
jmp 0x50afed
mov ecx, dword [edi + 0x1b0]
mov eax, ecx
cmp ecx, eax
je 0x50b014
lea eax, [ecx + 0x20]
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x50b590
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x50b00a
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
jmp 0x50b58b
mov edi, dword [edi + 4]
lea ecx, [ebp - 0xa4]
push 0xb
push str.ProductCode
mov eax, dword [edi]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x94], 0
mov esi, dword [eax]
xor eax, eax
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
call fcn.00407b80
mov byte [ebp - 4], 9
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x104]
mov ecx, edi
push eax
call esi
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
mov ecx, dword [eax + 0x10]
cmovae edx, dword [ebp - 0x44]
cmp dword [eax + 0x14], 8
jb 0x50b08e
mov eax, dword [eax]
cmp ecx, dword [ebp - 0x34]
jne 0x50b0a9
push ecx
mov ecx, eax
call fcn.00407580
add esp, 4
mov byte [ebp - 0x165], 1
test eax, eax
je 0x50b0b0
mov byte [ebp - 0x165], 0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x104]
call fcn.00407e00
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa4]
call fcn.00407e00
cmp byte [ebp - 0x165], 0
je 0x50b276
mov edi, dword [ebp - 0x188]
lea ecx, [ebp - 0xd4]
push 0xe
push 0x57f698
mov edi, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xc4], 0
mov esi, dword [eax]
xor eax, eax
mov dword [ebp - 0xc0], 7
mov word [ebp - 0xd4], ax
call fcn.00407b80
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x164]
mov ecx, edi
push eax
call esi
mov dword [ebp - 0x174], eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x188]
push 0xb
push 0x5822b8
mov edi, dword [eax + 4]
xor eax, eax
mov ecx, dword [edi]
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
mov esi, dword [ecx]
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
call fcn.00407b80
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x14c]
mov ecx, edi
push eax
call esi
mov byte [ebp - 4], 0xe
mov edx, eax
push 0x57ec98
lea ecx, [ebp - 0x134]
call fcn.00408760
add esp, 4
mov byte [ebp - 4], 0xf
mov edx, eax
push dword [ebp - 0x174]
lea ecx, [ebp - 0x11c]
call fcn.0042dd10
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x50b21c
mov ecx, eax
call fcn.00407e00
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x11c]
call fcn.00407e00
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x134]
call fcn.00407e00
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x14c]
call fcn.00407e00
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xbc]
call fcn.00407e00
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x164]
call fcn.00407e00
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xd4]
jmp 0x50b55c
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x16c]
mov edi, dword [sym.imp.msi.dll_MsiGetPropertyW]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ecx
push dword [ebp - 0x180]
push str.InstalledProductName
push eax
call edi
cmp eax, 0xea
jne 0x50b357
mov edi, dword [ebp - 0x17c]
mov ecx, edi
mov edx, dword [ebp - 0x16c]
mov esi, dword [ebp - 0x180]
inc edx
sub ecx, esi
mov dword [ebp - 0x16c], edx
sar ecx, 1
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x170], edi
cmp edx, ecx
jae 0x50b2e5
lea eax, [esi + edx*2]
mov dword [ebp - 0x17c], eax
jmp 0x50b336
jbe 0x50b336
mov eax, dword [ebp - 0x178]
sub eax, esi
sar eax, 1
cmp edx, eax
jbe 0x50b310
lea eax, [ebp - 0x174]
push eax
push edx
lea ecx, [ebp - 0x180]
call fcn.004db840
mov esi, dword [ebp - 0x180]
jmp 0x50b336
sub edx, ecx
je 0x50b330
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x170]
mov esi, dword [ebp - 0x180]
lea edi, [edi + edx*2]
mov dword [ebp - 0x17c], edi
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x16c]
mov edi, dword [sym.imp.msi.dll_MsiGetPropertyW]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ecx
push esi
push str.InstalledProductName
push eax
call edi
mov edx, dword [ebp - 0x180]
xor eax, eax
mov word [ebp - 0x74], ax
mov eax, edx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50b384
sub eax, esi
lea ecx, [ebp - 0x74]
sar eax, 1
push eax
push edx
call fcn.00407b80
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2c]
call fcn.00407e00
movups xmm0, xmmword [ebp - 0x74]
xor eax, eax
mov word [ebp - 0x74], ax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [ebp - 0x64]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x74]
call fcn.00407e00
cmp dword [ebp - 0x1c], 0
je 0x50b590
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x16c]
push ecx
push dword [ebp - 0x180]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push str.VersionString
push eax
call edi
cmp eax, 0xea
jne 0x50b4be
mov edi, dword [ebp - 0x17c]
mov ecx, edi
mov edx, dword [ebp - 0x16c]
mov esi, dword [ebp - 0x180]
inc edx
sub ecx, esi
mov dword [ebp - 0x16c], edx
sar ecx, 1
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x174], edi
cmp edx, ecx
jae 0x50b44e
lea eax, [esi + edx*2]
mov dword [ebp - 0x17c], eax
jmp 0x50b49f
jbe 0x50b49f
mov eax, dword [ebp - 0x178]
sub eax, esi
sar eax, 1
cmp edx, eax
jbe 0x50b479
lea eax, [ebp - 0x170]
push eax
push edx
lea ecx, [ebp - 0x180]
call fcn.004db840
mov esi, dword [ebp - 0x180]
jmp 0x50b49f
sub edx, ecx
je 0x50b499
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x174]
mov esi, dword [ebp - 0x180]
lea edi, [edi + edx*2]
mov dword [ebp - 0x17c], edi
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x16c]
push ecx
push esi
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push str.VersionString
push eax
call dword [sym.imp.msi.dll_MsiGetPropertyW]
mov edx, dword [ebp - 0x180]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50b4f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x8c]
call fcn.00407b80
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x8c]
push eax
mov edx, 0x57ec98
lea ecx, [ebp - 0xec]
call fcn.00425f30
add esp, 4
mov byte [ebp - 4], 0x13
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x50b539
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004084f0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xec]
call fcn.00407e00
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
call fcn.00407e00
mov ecx, dword [ebp - 0x188]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ecx + 0x1ac]
call fcn.004255c0
lea ecx, [ebp - 0x2c]
cmp eax, ecx
je 0x50b590
cmp dword [ebp - 0x18], 8
push dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.00407b80
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x170], eax
test eax, eax
je 0x50b692
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
lea edi, [ebp - 0x44]
cmovae eax, dword [ebp - 0x2c]
mov ecx, 0x5d5d44
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x174], eax
cmovae edi, dword [ebp - 0x44]
cmp dword [0x5d5d58], 8
mov eax, dword [0x5d5d54]
cmovae ecx, dword [0x5d5d44]
mov byte [ebp - 4], 0x15
xor edx, edx
push eax
push ecx
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], dx
call fcn.00407b80
or dword [ebp - 0x184], 4
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x170]
push dword [ebp - 0x174]
push esi
push edi
call fcn.00485de0
mov esi, dword [ebp - 0x184]
add esp, 0x10
and esi, 0xfffffffb
mov dword [ebp - 0x184], esi
mov dword [ebp - 4], 0x14
or esi, 2
mov ecx, 0x5d5d44
mov dword [ebp - 0x184], esi
call fcn.00407e00
movups xmm0, xmmword [ebp - 0x5c]
xor eax, eax
and esi, 0xfffffffd
mov word [ebp - 0x5c], ax
movups xmmword [0x5d5d44], xmm0
movq xmm0, qword [ebp - 0x4c]
movq qword [0x5d5d54], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x184], esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5c]
call fcn.00407e00
cmp dword [0x5d5d58], 8
mov edi, 0x5d5d44
mov ecx, dword [ebp - 0x1c8]
mov eax, 0x2aaaaaab
cmovae edi, dword [0x5d5d44]
mov esi, dword [ebp - 0x1cc]
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
lea eax, [ebp - 0x1a8]
jbe 0x50b6d1
lea eax, [esi + 0x18]
mov eax, dword [eax]
sub eax, dword [ebp - 0x1d4]
sar eax, 1
lea esi, [edi + eax*2]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call fcn.00407e00
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x44]
call fcn.00407e00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x180]
call fcn.0048e9e0
sub esp, 8
lea edx, [ebp - 0x19c]
lea ecx, [ebp - 0x1d4]
push esi
push edi
call fcn.0050d610
add esp, 0x10
test al, al
jne 0x50af11
cmp dword [0x5d5d58], 8
mov edx, 0x5d5d44
mov ecx, dword [0x5d5d54]
cmovae edx, dword [0x5d5d44]
sub esp, 8
mov eax, esp
push ecx
push edx
mov cl, 1
mov dword [eax], 0x593f6c
mov dword [eax + 4], 3
call fcn.00485630
add esp, 0x10
test al, al
je 0x50b7c3
push 0x5d5d44
lea eax, [ebp - 0xec]
push eax
call fcn.0050bb40
mov esi, eax
mov byte [ebp - 4], 0x16
cmp esi, 0x5d5d44
je 0x50b7b4
mov ecx, 0x5d5d44
call fcn.00407e00
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [0x5d5d44], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x5d5d54], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xec]
call fcn.00407e00
mov esi, 0x5d5d44
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1cc]
call fcn.0050c470
mov dword [ebp - 4], 0x18
lea ecx, [ebp - 0x19c]
call fcn.0050c510
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x198]
mov dword [ebp - 0x170], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18c]
test ecx, ecx
je 0x50b820
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x50b820
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051dacc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4