Function at 0x408c90
Capabilities:
Delete registry value
Encode data using xor
Set registry value

Disassembly:
mov eax, dword [0x41f354]
sub esp, 0x17c
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x408cb1
cmp dword [0x41f0dc], ebx
je 0x408cb1
call fcn.00408a00
jmp 0x408cb6
call fcn.004089b0
mov eax, dword [0x41a2bc]
cmp eax, 0xffffffff
je 0x408cc9
push eax
call fcn.004013c0
add esp, 4
cmp dword [0x41f354], ebx
jne 0x4091b3
mov eax, dword [0x41f0b8]
push ebp
push edi
cmp byte [eax], 0
je 0x409018
push esi
push 2
push eax
call fcn.00401140
mov ebp, eax
push ebx
push ebp
call fcn.004012a0
push ebp
call fcn.00401240
mov esi, eax
mov eax, dword [0x41f340]
push eax
mov word [esp + 0x34], 0x1235
mov word [esp + 0x36], bx
mov dword [esp + 0x38], ebx
call fcn.00402110
lea ecx, [esp + 0x2c]
push 4
push ecx
push ebp
mov dword [esp + 0x38], ebx
call fcn.00401200
mov eax, dword [0x41f100]
mov edi, dword [0x41f0fc]
add esp, 0x24
cmp eax, ebx
mov dword [esp + 0x18], ebx
jbe 0x408df8
push edi
call fcn.00409260
mov edx, dword [0x41f0c0]
add esp, 4
cmp byte [edx], 0
je 0x408dd7
mov ecx, dword [edi + 8]
test ch, 2
je 0x408d64
push ebx
jmp 0x408dc5
mov ax, word [edi + 4]
cmp ax, 0x17
je 0x408d80
cmp ax, 0x19
je 0x408d80
cmp ax, 0x1f4
je 0x408d80
cmp ax, 0x1f5
jne 0x408dd7
test cl, cl
js 0x408dd7
mov eax, dword [edi + 0x10]
mov byte [esp + 0x10], 0
cmp eax, ebx
je 0x408d9a
test ch, 4
je 0x408d9a
mov byte [esp + 0x10], 1
test cl, 1
je 0x408da4
or byte [esp + 0x10], 8
cmp eax, 3
jne 0x408dae
or byte [esp + 0x10], 2
test ch, 0x10
je 0x408dc0
mov eax, dword [edi + 0xc]
test ah, 0x60
jne 0x408dc0
or byte [esp + 0x10], 4
mov eax, dword [esp + 0x10]
push eax
push ebp
call fcn.00407490
mov eax, dword [esp + 0x1c]
add esp, 8
inc eax
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x18]
push edi
inc edx
mov dword [esp + 0x1c], edx
call fcn.00403b10
mov edi, eax
mov eax, dword [0x41f100]
add esp, 4
cmp edx, eax
jb 0x408d45
push ebp
call fcn.00401240
sub eax, esi
add esi, 0xfffffff8
push esi
push ebp
mov dword [esp + 0x2c], eax
call fcn.00401260
lea ecx, [esp + 0x28]
push 8
push ecx
push ebp
call fcn.00401200
lea edx, [esp + 0x2c]
push 4
push edx
push ebp
call fcn.00401200
mov eax, dword [esp + 0x44]
add eax, 0xfffffffc
push eax
push ebp
call fcn.00401280
push ebp
call fcn.00407960
mov eax, dword [0x41f248]
add esp, 0x30
mov ebx, dword [eax + 0xa]
test ebx, ebx
je 0x408fbe
cmp byte [ebx], 0
je 0x408fbe
test byte [eax], 0x20
je 0x408fbe
mov edi, 0x41a354
or ecx, 0xffffffff
xor eax, eax
mov dl, 0xbf
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
xor edi, edi
test ecx, ecx
lea esi, [esp + 0x24]
jle 0x408e97
mov al, dl
shl al, 7
shr dl, 1
add dl, al
mov al, byte [edi + 0x41a354]
xor al, dl
mov byte [esi], al
inc esi
inc edi
cmp edi, ecx
jl 0x408e7e
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov byte [esi], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x41f2dc]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test eax, eax
mov esi, 0x80000002
je 0x408f30
mov eax, dword [0x41f248]
test byte [eax + 1], 0x10
jne 0x408f30
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
mov esi, 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408f30
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.DisplayName
push eax
call edi
mov ecx, dword [esp + 0x10]
push str.UninstallString
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
lea ecx, [esp + 0x3c]
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x408f6d
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push edx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x408fbe
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push 1
push eax
push str.DisplayName
push ecx
call esi
mov edx, dword [0x41f0b8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
push str.UninstallString
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x41f33c]
pop esi
mov eax, dword [ecx*4 + 0x41f148]
test eax, eax
je 0x408fe2
mov ecx, dword [ecx*4 + 0x41f108]
push ecx
push eax
push ebp
call fcn.00401200
add esp, 0xc
push ebp
call fcn.00401240
lea edx, [esp + 0x1c]
push 8
push edx
push ebp
mov word [esp + 0x28], 0x7f7f
mov word [esp + 0x2a], 2
mov dword [esp + 0x2c], 0
call fcn.00401200
push ebp
call fcn.004013c0
add esp, 0x14
xor ebx, ebx
jmp 0x409022
push 0xffffffffffffffff
call fcn.00407960
add esp, 4
cmp dword [0x41f348], ebx
jne 0x4091a1
mov eax, dword [0x41f340]
push eax
call fcn.00402150
mov edx, dword [0x41f248]
add esp, 4
test byte [edx], 4
je 0x409157
cmp dword [edx + 0x16], ebx
je 0x409157
mov edi, dword [0x41f340]
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [0x41a2c4]
repne scasb al, byte es:[edi]
mov eax, dword [edx + 0x12]
not ecx
dec ecx
mov ebp, ecx
inc ebp
cmp eax, 0x14
jae 0x40907c
mov ebx, dword [eax*4 + 0x41a2c0]
xor edi, edi
cmp eax, 4
jne 0x4090a0
mov ecx, dword [edx + 0x1a]
push 0x5c
push ecx
call fcn.00413180
mov edi, eax
add esp, 8
test edi, edi
je 0x40909a
mov byte [edi], 0
mov edx, dword [0x41f248]
mov ecx, dword [0x41f2dc]
xor eax, eax
test ecx, ecx
je 0x4090b7
test byte [edx + 1], 0x40
je 0x4090b7
mov eax, 0x100
mov edx, dword [edx + 0x16]
lea ecx, [esp + 0x10]
push 0
push ecx
or eax, 0xf003f
push 0
push eax
push 0
push 0
push 0
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4090f2
mov eax, dword [0x41f340]
mov ecx, dword [0x41f248]
push ebp
push eax
mov edx, dword [ecx + 0x1a]
push 1
push 0
push edx
jmp 0x40912c
mov edx, dword [0x41f248]
cmp dword [edx + 0x12], 4
jne 0x409148
mov ebx, dword [edx + 0x1a]
test edi, edi
je 0x409108
lea ebx, [edi + 1]
mov ecx, dword [edx + 0x16]
lea eax, [esp + 0x10]
push eax
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x409142
mov edx, dword [0x41f340]
push ebp
push edx
push 1
push eax
push ebx
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x41f248]
xor ebx, ebx
test edi, edi
je 0x409157
mov byte [edi], 0x5c
mov edx, dword [0x41f248]
test byte [edx], 8
je 0x409192
mov ecx, dword [edx + 0x26]
cmp ecx, ebx
je 0x409192
mov eax, dword [edx + 0x2a]
cmp eax, ebx
je 0x409192
mov edx, dword [edx + 0x2e]
cmp edx, ebx
je 0x409192
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ecx
mov ecx, dword [0x41f340]
push ecx
push edx
push eax
call edi
mov edx, dword [0x41f248]
mov eax, dword [edx + 0x26]
push eax
push ebx
push ebx
push ebx
call edi
mov ecx, dword [0x41f340]
push ecx
call fcn.00402110
add esp, 4
push 1
push ebx
push 0x1000000
call fcn.00403b20
add esp, 0xc
pop edi
pop ebp
cmp word [0x41a2a6], 0xffff
jne 0x4091d3
mov al, byte [esp + 0x184]
test al, al
jne 0x4091d3
push 6
call fcn.004091f0
add esp, 4
mov dword [0x41f0dc], ebx
pop ebx
add esp, 0x17c
ret