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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d86a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
mov ecx, 0x5100a3
mov dword [ebp - 4], 2
call fcn.004b532d
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0xb4]
call fcn.00403940
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x9c]
call fcn.00403940
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x84]
call fcn.00403940
push str.Application
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 5
mov dword [ebp - 0x10], 0
call fcn.0040a630
cmp dword [eax + 0x14], 8
jb 0x4090f7
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409609
call fcn.00405240
mov ecx, eax
test ecx, ecx
je 0x409650
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x4dff5c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00404300
test al, al
jne 0x40915e
push 0xa
push 0x4dff5c
lea ecx, [ebp - 0x14]
call fcn.00406280
push ebx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x34]
push str.The
push eax
call fcn.00403ed0
push str._Authors
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 8
push eax
call fcn.00403e00
add esp, 0x18
mov edx, dword [ebp - 0x34]
or ebx, 0xffffffff
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4091ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov byte [ebp - 4], 0xb
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4091ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
push edi
mov edi, 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 edi
call fcn.00405240
mov ecx, eax
test ecx, ecx
je 0x40965a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x4dffa8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call fcn.00404300
test al, al
jne 0x40922c
push 5
push 0x4dffa8
lea ecx, [ebp - 0x14]
call fcn.00406280
push esi
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xd
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push 0x4dffb4
push dword [ebp - 0x10]
call edi
mov esi, dword [ebp + 0x1c]
lea edx, [ebp + 8]
cmp esi, 8
cmovae edx, dword [ebp + 8]
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x409260
sub edx, ecx
lea ecx, [ebp + 8]
sar edx, 1
cmp esi, 8
cmovae ecx, dword [ebp + 8]
lea eax, [edx*2 + 2]
push eax
push ecx
push 1
push 0
push 0x4dffe4
push dword [ebp - 0x10]
call edi
call fcn.00405240
mov ecx, eax
test ecx, ecx
je 0x409664
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0x4e0004
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xe
call fcn.00404300
test al, al
jne 0x4092ce
push 0xa
push 0x4e0004
lea ecx, [ebp - 0x18]
call fcn.00406280
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 0xf
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push 0x4e001c
push dword [ebp - 0x10]
call edi
call fcn.00405240
mov ecx, eax
test ecx, ecx
je 0x40966e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x4e003c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x10
call fcn.00404300
test al, al
jne 0x40932d
push 9
push 0x4e003c
lea ecx, [ebp - 0x1c]
call fcn.00406280
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x11
mov eax, dword [edi - 0xc]
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push 0
push str.AppUserModelId
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4e0070
lea ecx, [ebp - 0x9c]
call fcn.0040a630
cmp dword [eax + 0x14], 8
jb 0x40936a
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409596
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 0x4093a1
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 0x4e008c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str._shellopencommand
lea ecx, [ebp - 0x84]
call fcn.0040a630
cmp dword [eax + 0x14], 8
jb 0x4093ee
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409596
mov ecx, dword [ebp + 0x48]
mov eax, SysReAllocString
sub eax, ecx
mov dword [ebp - 0x38], ecx
cmp eax, 1
jb 0x409678
cmp dword [ebp + 0x4c], 8
lea eax, [ebp + 0x38]
lea edx, [ecx + 1]
mov dword [ebp - 0x54], 0
cmovae eax, dword [ebp + 0x38]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x3c], eax
mov eax, 7
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
cmp edx, eax
jbe 0x40949d
mov eax, edx
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x409478
mov eax, SysReAllocString
jmp 0x409482
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x54]
inc eax
push eax
call fcn.00403210
mov edx, dword [ebp - 0x30]
mov ecx, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x40], eax
mov eax, 0x22
mov dword [ebp - 0x44], edx
mov word [ecx], ax
add ecx, 2
mov eax, dword [ebp - 0x38]
add eax, eax
push eax
push dword [ebp - 0x3c]
push ecx
call fcn.004b7e80
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov ecx, dword [ebp - 0x30]
mov word [eax + ecx*2], dx
push 0x4e00e4
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.004033c0
push str.___single_argument__1
push eax
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 0x13
push eax
call fcn.004033c0
add esp, 0x24
lea ecx, [ebp - 0xcc]
call fcn.00402e60
mov edx, dword [ebp - 0x40]
mov byte [ebp - 4], 0x11
cmp edx, 8
jb 0x409541
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409537
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40967d
push edx
push ecx
call fcn.004b531f
add esp, 8
cmp dword [ebp - 0x58], 8
lea edx, [ebp - 0x6c]
cmovae edx, dword [ebp - 0x6c]
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x409550
sub edx, ecx
lea ecx, [ebp - 0x6c]
sar edx, 1
cmp dword [ebp - 0x58], 8
cmovae ecx, dword [ebp - 0x6c]
lea eax, [edx*2 + 2]
push eax
push ecx
push 1
push 0
push 0x4e00ec
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x6c]
call fcn.00402e60
mov eax, ebx
mov byte [ebp - 4], 0xf
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4095b1
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov byte [ebp - 4], 0xd
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4095cc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0xb
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4095ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x409606
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop esi
pop edi
pop ebx
lea ecx, [ebp - 0x84]
call fcn.00402e60
lea ecx, [ebp - 0x9c]
call fcn.00402e60
lea ecx, [ebp - 0xb4]
call fcn.00402e60
lea ecx, [ebp + 8]
call fcn.00402e60
lea ecx, [ebp + 0x20]
call fcn.00402e60
lea ecx, [ebp + 0x38]
call fcn.00402e60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004042d0
push 0x80004005
call fcn.004042d0
push 0x80004005
call fcn.004042d0
push 0x80004005
call fcn.004042d0
call fcn.004027e0
call fcn.004bba0f
int3