Function at 0x40fa67
Capabilities:
Set registry value

Disassembly:
mov eax, 0x523aca
call fcn.004f70e4
sub esp, 0xe68
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x562835
call fcn.004f6dfd
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x20]
add eax, 4
push eax
call fcn.0040406a
and dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
push 0x52b2e8
call fcn.00402403
push ecx
xor ebx, ebx
mov dword [ebp - 0x24], esp
mov ecx, esp
mov esi, str.GptChrome
inc ebx
push esi
mov byte [ebp - 4], bl
call fcn.004041e9
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.004029d0
push ecx
mov ecx, esp
push eax
call fcn.00404194
mov eax, reloc.WS2_32.dll_bind
mov byte [ebp - 4], bl
push eax
call fcn.004067e6
pop ecx
pop ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push esi
call fcn.004041e9
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 3
call fcn.004029d0
push ecx
mov ecx, esp
push eax
call fcn.00404194
mov esi, reloc.WS2_32.dll_accept
mov byte [ebp - 4], bl
push esi
call fcn.004067e6
push 0x400
lea eax, [ebp - 0x674]
push 0
push eax
call fcn.004fa2f0
push 0x400
lea eax, [ebp - 0xa74]
push 0
push eax
call fcn.004fa2f0
push 0x400
lea eax, [ebp - 0xe74]
push 0
push eax
call fcn.004fa2f0
push 0x529994
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404829
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1c]
push str.GptBrowser.exe
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00404829
add esp, 0x48
push str.uninstall.exe
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00404829
push dword [ebp - 0x34]
lea eax, [ebp - 0x674]
mov byte [ebp - 4], 6
push 0x52b350
push eax
call fcn.004100aa
push dword [ebp - 0x20]
lea eax, [ebp - 0xa74]
push 0x52b350
push eax
call fcn.004100aa
push dword [ebp - 0x30]
lea eax, [ebp - 0xe74]
push str.__s___uninsgpt
push eax
call fcn.004100aa
add esp, 0x30
lea ecx, [ebp - 0x18]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
call fcn.004041e9
push str.GptChrome
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.00404a8e
push 0x208
lea eax, [ebp - 0x274]
push 0
push eax
call fcn.004fa2f0
add esp, 0xc
lea eax, [ebp - 0x274]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x14]
call fcn.004041e9
push 0x5c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00405fe8
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
sub eax, ecx
lea ecx, [ebp - 0x14]
dec eax
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00406016
mov byte [ebp - 4], 9
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
mov ecx, edi
lea eax, [esi + 1]
cmovne esi, eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0040ddab
mov byte [ebp - 4], 0xa
mov ecx, eax
call fcn.004029d0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404194
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xc
call fcn.00402a3c
push 0x52b06c
lea ecx, [ebp - 0x28]
call fcn.00404194
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x10]
push eax
xor eax, eax
push eax
push 0x20106
push eax
push eax
push eax
push dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [ebp - 0x24]
test eax, eax
jne 0x40fe1d
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x674]
push eax
push ebx
push 0
push str.DisplayIcon
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40fe1d
push str.GPT_Chrome
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push str.GPT_Chrome
push ebx
push 0
push str.DisplayName
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40fe1d
lea eax, [ebp - 0xa74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0xa74]
push eax
push ebx
push 0
push str.InstallLocation
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40fe1d
push 0x52b438
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 0x52b438
push ebx
push 0
push str.Publisher
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40fe1d
lea eax, [ebp - 0xe74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0xe74]
push eax
push ebx
push 0
push str.UninstallString
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40fe1d
mov eax, dword [edi - 0xc]
lea eax, [eax*2 + 2]
push eax
push edi
push ebx
push 0
push str.PackageName
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40fe1d
mov esi, dword [ebp - 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push 0
push str.DisplayVersion
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40fe1d
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push ebx
push 0
push str.InstallDate
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40fe1d
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40fe1f
xor bl, bl
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00405e10
lea ecx, [edi - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00405e10
lea ecx, [ebp - 0x54]
call fcn.00402a3c
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret