Function at 0x40ab90
Capabilities:
Check if file exists
Create process on windows
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427448
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x434040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push str.SoftwareKuGouUpgrade
push 0x80000001
mov dword [ebp - 0x60], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b040
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x70], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push str.NewUpKugoo
lea ecx, [ebp - 0x70]
call fcn.0040b840
mov esi, dword [ebp - 0x70]
test eax, eax
jne 0x40afe7
cmp dword [ebp - 0x18], 0
je 0x40afd0
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40afd0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
mov byte [ebp - 0xe4], al
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
sub esp, 0x18
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00409080
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0040c360
mov byte [ebp - 4], 2
mov edi, eax
mov ecx, dword [ebp - 0xe0]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ecx, ecx
je 0x40ad10
push ecx
call esi
mov eax, dword [ebp - 0xdc]
test eax, eax
je 0x40ad1d
push eax
call esi
cmp edi, 2
je 0x40ad81
mov esi, dword [ebp - 0x70]
push 2
push 0x430118
push 1
push 0
push str.NewUpKugoo
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor bl, bl
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x40afe9
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ad72
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b060
push ecx
push edx
call fcn.0040f14c
add esp, 8
jmp 0x40afe9
mov ecx, ebx
call fcn.0040a800
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.0040a800
mov esi, dword [ebp - 0x70]
mov ebx, eax
cmp edi, ebx
jge 0x40ad25
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x64], 4
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x5c], 4
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x60], 0
push eax
push 0
push str.FromVersion
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ad25
mov eax, dword [ebp - 0x64]
cmp eax, 4
je 0x40ade3
cmp eax, 3
jne 0x40ad25
cmp dword [ebp - 0x5c], 4
jne 0x40ad25
lea eax, [ebp - 0x64]
mov dword [ebp - 0x5c], 4
push eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x64], 4
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x68], 0
push eax
push 0
push str.ToVersion
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ad25
mov eax, dword [ebp - 0x5c]
cmp eax, 4
je 0x40ae35
cmp eax, 3
jne 0x40ad25
cmp dword [ebp - 0x64], 4
jne 0x40ad25
cmp edi, dword [ebp - 0x60]
jne 0x40ad25
mov edi, dword [ebp - 0x68]
cmp ebx, edi
jne 0x40ad25
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
mov dword [ebp - 0xa8], 0
cmova eax, dword [ebp - 0x28]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0xb0], 0x3c
mov dword [ebp - 0x94], 1
mov dword [ebp - 0xac], 0x800140
mov dword [ebp - 0xa4], str.open
mov dword [ebp - 0x9c], str._NoFinishPage
mov dword [ebp - 0x74], 0xfffffff6
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 2
push 0x430118
push 1
push 0
push str.NewUpKugoo
push esi
mov dword [ebp - 0x5c], eax
call ebx
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x40af3d
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x58]
push edi
call fcn.0040a8b0
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x58]
add esp, 4
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x44], 7
lea eax, [ebp - 0x68]
cmova ecx, dword [ebp - 0x58]
push 4
push eax
push 4
push 0
push ecx
push esi
call ebx
cmp dword [ebp - 0x5c], 0
je 0x40af7b
cmp dword [ebp - 0x74], 0
jne 0x40af7b
mov bl, 1
jmp 0x40af7d
xor bl, bl
mov ecx, dword [ebp - 0x44]
cmp ecx, 7
jbe 0x40afb7
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40afad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b060
push ecx
push edx
call fcn.0040f14c
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
jmp 0x40ad3e
push 2
push 0x430118
push 1
push 0
push str.NewUpKugoo
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor bl, bl
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x40b01f
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b015
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b060
push ecx
push edx
call fcn.0040f14c
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x40b042
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b042
xor bl, bl
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f104
mov esp, ebp
pop ebp
ret
call fcn.00417f31
int3