Function at 0x4063a0
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e747e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push esi
push edi
mov ecx, 0x524e73
mov dword [ebp - 4], 2
call fcn.004e6414
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00407640
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x8c]
call fcn.00407640
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x74]
call fcn.00407640
push 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa4]
push str.Application
mov dword [ebp - 0x10], 0
call fcn.004087c0
cmp dword [eax + 0x14], 8
jb 0x406429
mov eax, dword [eax]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push connect
call edi
test eax, eax
jne 0x4067a7
push str.GPT_Chrome
lea ecx, [ebp - 0x24]
call fcn.00408580
push eax
mov edx, str.The
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00407840
push str._Authors
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x20]
call fcn.004079d0
add esp, 8
mov edx, dword [ebp - 0x2c]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4064a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, esi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4064c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push str.ApplicationCompany
push dword [ebp - 0x10]
call ebx
push 0x50fda8
lea ecx, [ebp - 0x1c]
call fcn.00408580
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push str.ApplicationDescription
push dword [ebp - 0x10]
call ebx
cmp dword [ebp + 0x1c], 8
lea edx, [ebp + 8]
cmovae edx, dword [ebp + 8]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x406523
sub edx, ecx
lea ecx, [ebp + 8]
sar edx, 1
cmp dword [ebp + 0x1c], 8
cmovae ecx, dword [ebp + 8]
lea eax, [edx*2 + 2]
push eax
push ecx
push 1
push 0
push str.ApplicationIcon
push dword [ebp - 0x10]
call ebx
push str.GPT_Chrome
lea ecx, [ebp - 0x18]
call fcn.00408580
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push str.ApplicationName
push dword [ebp - 0x10]
call ebx
push str.TSBrowser
lea ecx, [ebp - 0x14]
call fcn.00408580
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push str.AppUserModelId
push dword [ebp - 0x10]
call ebx
push 0xc
push 0x50fe58
lea ecx, [ebp - 0x8c]
call fcn.004087c0
cmp dword [eax + 0x14], 8
jb 0x4065ca
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push connect
call edi
test eax, eax
jne 0x406741
mov ebx, dword [ebp + 0x1c]
lea edx, [ebp + 8]
cmp ebx, 8
cmovae edx, dword [ebp + 8]
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x406600
sub edx, ecx
lea ecx, [ebp + 8]
sar edx, 1
cmp ebx, 8
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmovae ecx, dword [ebp + 8]
lea eax, [edx*2 + 2]
push eax
push ecx
push 1
push 0
push 0x50facc
push dword [ebp - 0x10]
call ebx
push 0x13
push str._shellopencommand
lea ecx, [ebp - 0x74]
call fcn.004087c0
cmp dword [eax + 0x14], 8
jb 0x40664d
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push connect
call edi
test eax, eax
jne 0x406741
mov ecx, dword [ebp + 0x48]
mov eax, accept
sub eax, ecx
cmp eax, 1
jb 0x4067ee
cmp dword [ebp + 0x4c], 8
lea eax, [ebp + 0x38]
push ecx
cmovae eax, dword [ebp + 0x38]
lea ecx, [ebp - 0x5c]
push eax
push 1
push 0x50fc24
lea eax, [ebp + 0x38]
push eax
push dword [ebp - 0x24]
call fcn.00409310
push 0x50fc24
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xbc]
call fcn.00408fb0
push str.___single_argument__1
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x44]
call fcn.00408fb0
add esp, 8
lea ecx, [ebp - 0xbc]
call fcn.00403830
lea ecx, [ebp - 0x5c]
call fcn.00403830
mov edi, dword [ebp - 0x30]
lea edx, [ebp - 0x44]
cmp edi, 8
cmovae edx, dword [ebp - 0x44]
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x406700
sub edx, ecx
lea ecx, [ebp - 0x44]
sar edx, 1
cmp edi, 8
cmovae ecx, dword [ebp - 0x44]
lea eax, [edx*2 + 2]
push eax
push ecx
push 1
push 0
push 0x50facc
push dword [ebp - 0x10]
call ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x44]
call fcn.00403830
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40675b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406775
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40678f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4067a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x74]
call fcn.00403830
lea ecx, [ebp - 0x8c]
call fcn.00403830
lea ecx, [ebp - 0xa4]
call fcn.00403830
lea ecx, [ebp + 8]
call fcn.00403830
lea ecx, [ebp + 0x20]
call fcn.00403830
lea ecx, [ebp + 0x38]
call fcn.00403830
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00402650
int3