Function at 0x50d350
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 0x56cd98
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x200
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18c], edi
mov esi, dword [ebx + 8]
mov dword [ebp - 0x190], 0
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
mov eax, dword [0x5d70cc]
cmp eax, dword [edx + 4]
jle 0x50d415
push 0x5d70cc
call fcn.00520e0e
add esp, 4
cmp dword [0x5d70cc], 0xffffffff
jne 0x50d415
mov dword [ebp - 4], 0
xor eax, eax
push 0x5705b0
mov dword [0x5d70e0], 0
mov dword [0x5d70e4], 7
mov word [0x5d70d0], ax
call fcn.0052116a
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x5d70cc
call fcn.00520dc4
add esp, 4
push ecx
push str._.______._
lea ecx, [ebp - 0x1d4]
call fcn.0050e8e0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20c]
call fcn.0050e7b0
mov byte [ebp - 4], 2
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x50d446
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
mov ecx, esi
jb 0x50d452
mov ecx, dword [esi]
sub esp, 8
lea edx, [ebp - 0x1d4]
push eax
push ecx
lea ecx, [ebp - 0x20c]
call fcn.0050fc50
add esp, 0x10
test al, al
jne 0x50d55d
push 3
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x5c]
push 0x594de4
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
call fcn.004079c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x50d4df
cmp eax, dword [esi + 0x10]
ja 0x50d4df
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x5c]
mov edx, esi
cmovae ecx, dword [ebp - 0x5c]
cmp dword [esi + 0x14], 8
jb 0x50d4c9
mov edx, dword [esi]
push eax
push ecx
push edx
call fcn.0052b417
add esp, 0xc
test eax, eax
setne byte [ebp - 0x17d]
jmp 0x50d4e6
mov byte [ebp - 0x17d], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00407c80
cmp byte [ebp - 0x17d], 0
jne 0x50de66
push esi
lea eax, [ebp - 0x8c]
push eax
call fcn.0050e170
mov esi, eax
mov byte [ebp - 4], 5
cmp esi, 0x5d70d0
je 0x50d54e
mov ecx, 0x5d70d0
call fcn.00407c80
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [0x5d70d0], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x5d70e0], 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 0x50de5c
cmp esi, 0x5d70d0
je 0x50d57c
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x50d570
mov esi, dword [esi]
push eax
push esi
mov ecx, 0x5d70d0
call fcn.004079c0
lea eax, [edi + 0x1ac]
mov dword [ebp - 0x1a0], eax
nop dword [eax + eax]
push ecx
push 1
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x184], 1
call fcn.0048e280
mov byte [ebp - 4], 7
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x200]
mov esi, dword [ebp - 0x204]
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x1e0]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jbe 0x50d5d8
lea ecx, [esi + 0x18]
lea eax, [ebp - 0x2c]
push eax
call fcn.0050eac0
mov byte [ebp - 4], 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 9
lea esi, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov edx, 0x811c9dc5
cmp dword [ebp - 0x18], 8
cmovae esi, dword [ebp - 0x2c]
xor ecx, ecx
lea edi, [eax + eax]
test edi, edi
je 0x50d638
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x50d627
mov ecx, dword [ebp - 0x18c]
mov eax, dword [ecx + 0x1c4]
mov edi, dword [ecx + 0x1b8]
and eax, edx
mov ecx, dword [ecx + 0x1b0]
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0x1a4], ecx
mov edx, dword [edi + eax*8]
lea eax, [eax*8 + 4]
mov dword [ebp - 0x1a8], edx
mov esi, edx
mov dword [ebp - 0x1b0], eax
cmp edx, ecx
jne 0x50d67e
mov eax, ecx
jmp 0x50d683
mov eax, dword [eax + edi]
mov eax, dword [eax]
cmp esi, eax
je 0x50d715
cmp dword [ebp - 0x18], 8
lea edi, [esi + 8]
mov eax, dword [edi + 0x10]
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
mov ecx, edi
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x188], eax
jb 0x50d6ac
mov ecx, dword [edi]
cmp eax, dword [ebp - 0x1c]
jne 0x50d6be
push eax
call fcn.00406f00
add esp, 4
test eax, eax
je 0x50d6da
mov esi, dword [esi]
mov ecx, dword [ebp - 0x1a4]
mov edx, dword [ebp - 0x1a8]
mov edi, dword [ebp - 0x1ac]
mov eax, dword [ebp - 0x1b0]
jmp 0x50d676
cmp dword [edi + 0x14], 8
jb 0x50d6e2
mov edi, dword [edi]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x188]
jne 0x50d707
push eax
mov edx, edi
call fcn.00406f00
add esp, 4
test eax, eax
je 0x50d717
mov edi, dword [ebp - 0x18c]
mov esi, dword [edi + 0x1b0]
jmp 0x50d71d
mov esi, ecx
mov edi, dword [ebp - 0x18c]
cmp esi, dword [edi + 0x1b0]
je 0x50d748
add esi, 0x20
lea eax, [ebp - 0x44]
cmp eax, esi
je 0x50dc28
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x50d73e
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x44]
jmp 0x50dc23
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.004079c0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x11c]
mov ecx, edi
push eax
call esi
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov ecx, dword [eax + 0x10]
cmovae edx, dword [ebp - 0x2c]
cmp dword [eax + 0x14], 8
jb 0x50d7c2
mov eax, dword [eax]
cmp ecx, dword [ebp - 0x1c]
jne 0x50d7dd
push ecx
mov ecx, eax
call fcn.00406f00
add esp, 4
mov byte [ebp - 0x17d], 1
test eax, eax
je 0x50d7e4
mov byte [ebp - 0x17d], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x11c]
call fcn.00407c80
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa4]
call fcn.00407c80
cmp byte [ebp - 0x17d], 0
je 0x50d9cb
mov eax, dword [ebp - 0x18c]
lea ecx, [ebp - 0xd4]
push 0xe
push 0x5807e0
mov edi, dword [eax + 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.004079c0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x17c]
mov ecx, edi
push eax
call esi
mov dword [ebp - 0x188], eax
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x18c]
push 0xb
push 0x5833f0
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.004079c0
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x164]
mov ecx, edi
push eax
call esi
mov byte [ebp - 4], 0xf
mov edx, eax
push 0x57fde0
lea ecx, [ebp - 0x14c]
call fcn.0042db50
add esp, 4
mov byte [ebp - 4], 0x10
mov edx, eax
push dword [ebp - 0x188]
lea ecx, [ebp - 0x134]
call fcn.0042dcd0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x44]
cmp eax, esi
je 0x50d950
mov ecx, eax
call fcn.00407c80
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x134]
call fcn.00407c80
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x14c]
call fcn.00407c80
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x164]
call fcn.00407c80
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xbc]
call fcn.00407c80
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x17c]
call fcn.00407c80
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd4]
call fcn.00407c80
mov ecx, dword [ebp - 0x1a0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1b8]
push eax
call fcn.00426870
mov ecx, dword [ebp - 0x1b8]
jmp 0x50dc0d
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x184]
mov edi, dword [sym.imp.msi.dll_MsiGetPropertyW]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push ecx
push dword [ebp - 0x19c]
push str.InstalledProductName
push eax
call edi
cmp eax, 0xea
jne 0x50da42
mov eax, dword [ebp - 0x184]
lea ecx, [ebp - 0x188]
inc eax
mov dword [ebp - 0x188], 0
push ecx
push eax
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x184], eax
call fcn.004df930
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x184]
push ecx
push dword [ebp - 0x19c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push str.InstalledProductName
push eax
call edi
mov edx, dword [ebp - 0x19c]
xor eax, eax
mov word [ebp - 0x5c], ax
mov eax, edx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50da70
sub eax, esi
lea ecx, [ebp - 0x5c]
sar eax, 1
push eax
push edx
call fcn.004079c0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x44]
call fcn.00407c80
movups xmm0, xmmword [ebp - 0x5c]
xor eax, eax
mov word [ebp - 0x5c], ax
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [ebp - 0x4c]
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x5c]
call fcn.00407c80
cmp dword [ebp - 0x34], 0
je 0x50dcd7
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x184]
push ecx
push dword [ebp - 0x19c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push str.VersionString
push eax
call edi
cmp eax, 0xea
jne 0x50db42
mov eax, dword [ebp - 0x184]
lea ecx, [ebp - 0x188]
inc eax
mov dword [ebp - 0x188], 0
push ecx
push eax
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x184], eax
call fcn.004df930
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x184]
push ecx
push dword [ebp - 0x19c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push str.VersionString
push eax
call edi
mov edx, dword [ebp - 0x19c]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50db80
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xec]
call fcn.004079c0
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0xec]
push eax
mov edx, 0x57fde0
lea ecx, [ebp - 0x104]
call fcn.00425bd0
add esp, 4
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x50dbc9
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00419f20
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x104]
call fcn.00407c80
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xec]
call fcn.00407c80
mov ecx, dword [ebp - 0x1a0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c0]
push eax
call fcn.00426870
mov ecx, dword [ebp - 0x1c0]
lea eax, [ebp - 0x44]
add ecx, 0x20
cmp ecx, eax
je 0x50dc28
cmp dword [ebp - 0x30], 8
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.004079c0
cmp dword [ebp - 0x34], 0
je 0x50dcd7
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x8c]
push 0x5d70d0
call fcn.00406d00
mov esi, dword [ebp - 0x190]
lea eax, [ebp - 0x44]
or esi, 4
lea edx, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x190], esi
call fcn.00490460
and esi, 0xfffffffb
add esp, 4
mov dword [ebp - 0x190], esi
mov dword [ebp - 4], 0x15
or esi, 2
mov ecx, 0x5d70d0
mov dword [ebp - 0x190], esi
call fcn.00407c80
movups xmm0, xmmword [ebp - 0x8c]
xor eax, eax
and esi, 0xfffffffd
mov word [ebp - 0x8c], ax
movups xmmword [0x5d70d0], xmm0
movq xmm0, qword [ebp - 0x7c]
movq qword [0x5d70e0], xmm0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x190], esi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x8c]
call fcn.00407c80
cmp dword [0x5d70e4], 8
mov edi, 0x5d70d0
mov ecx, dword [ebp - 0x200]
mov eax, 0x2aaaaaab
cmovae edi, dword [0x5d70d0]
mov esi, dword [ebp - 0x204]
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
lea eax, [ebp - 0x1e0]
jbe 0x50dd16
lea eax, [esi + 0x18]
mov eax, dword [eax]
sub eax, dword [ebp - 0x20c]
sar eax, 1
lea esi, [edi + eax*2]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
call fcn.00407c80
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call fcn.00407c80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x19c]
call fcn.0048e490
sub esp, 8
lea edx, [ebp - 0x1d4]
lea ecx, [ebp - 0x20c]
push esi
push edi
call fcn.0050fc50
add esp, 0x10
test al, al
jne 0x50d590
push 3
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x74]
push 0x594de4
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
call fcn.004079c0
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x64]
test edx, edx
je 0x50dde3
cmp edx, dword [0x5d70e0]
ja 0x50dde3
cmp dword [ebp - 0x60], 8
lea ecx, [ebp - 0x74]
push edx
cmovae ecx, dword [ebp - 0x74]
mov eax, 0x5d70d0
cmp dword [0x5d70e4], 8
push ecx
cmovae eax, dword [0x5d70d0]
push eax
call fcn.0052b417
add esp, 0xc
test eax, eax
sete byte [ebp - 0x17d]
jmp 0x50ddea
mov byte [ebp - 0x17d], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
call fcn.00407c80
cmp byte [ebp - 0x17d], 0
je 0x50de61
push 0x5d70d0
lea eax, [ebp - 0x104]
push eax
call fcn.0050e170
mov esi, eax
mov byte [ebp - 4], 0x18
cmp esi, 0x5d70d0
je 0x50de52
mov ecx, 0x5d70d0
call fcn.00407c80
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [0x5d70d0], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x5d70e0], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x104]
call fcn.00407c80
mov esi, 0x5d70d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x204]
call fcn.0050ec10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1d4]
call fcn.0050e850
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.00520c02
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4