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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502fed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x590
mov dword [ebp - 4], 2
mov ecx, 0x546d80
call fcn.00501f54
lea eax, [ebx + 0x20]
push eax
lea ecx, [ebp - 0x114]
call fcn.0040c450
mov byte [ebp - 4], 3
lea ecx, [ebx + 0x20]
push ecx
lea ecx, [ebp - 0xfc]
call fcn.0040c450
mov byte [ebp - 4], 4
lea edx, [ebx + 0x20]
push edx
lea ecx, [ebp - 0xe4]
call fcn.0040c450
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.Application
lea ecx, [ebp - 0x114]
call fcn.0040c410
mov ecx, eax
call fcn.004050e0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40a3dd
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe4]
call fcn.00405130
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xfc]
call fcn.00405130
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x114]
call fcn.00405130
mov byte [ebp - 4], 1
lea ecx, [ebx + 8]
call fcn.00405130
mov byte [ebp - 4], 0
lea ecx, [ebx + 0x20]
call fcn.00405130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0x38]
call fcn.00405130
jmp 0x40aa60
xor edx, edx
mov byte [ebp - 0x15], dl
xor eax, eax
mov byte [ebp - 0x16], al
xor ecx, ecx
mov byte [ebp - 0x17], cl
movzx edx, byte [ebp - 0x15]
push edx
movzx eax, byte [ebp - 0x16]
push eax
movzx ecx, byte [ebp - 0x17]
push ecx
lea ecx, [ebp - 0x180]
call fcn.0040f420
mov ecx, eax
call fcn.0040bce0
push eax
lea ecx, [ebp - 0x64]
call fcn.0040d1a0
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x54], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x54]
push eax
push str.The
lea ecx, [ebp - 0x60]
push ecx
call fcn.0040c920
add esp, 0xc
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 7
push str._Authors
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0040c9e0
add esp, 0xc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x60]
call fcn.0040d100
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x64]
call fcn.0040d100
lea ecx, [ebp - 0x3c]
call fcn.0040d300
lea edx, [eax + eax + 2]
mov dword [ebp - 0x68], edx
lea ecx, [ebp - 0x3c]
call fcn.0040d2e0
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
push 1
push 0
push str.ApplicationCompany
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [0x52c5c4]
mov dword [ebp - 0x5a0], ecx
mov edx, dword [0x52c5c8]
mov dword [ebp - 0x59c], edx
mov eax, dword [0x52c5cc]
mov dword [ebp - 0x598], eax
push 0x1f2
push 0
lea ecx, [ebp - 0x594]
push ecx
call fcn.004d75f0
add esp, 0xc
lea edx, [ebp - 0x5a0]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x24]
mov dx, word [ecx]
mov word [ebp - 0x3e], dx
add dword [ebp - 0x24], 2
cmp word [ebp - 0x3e], 0
jne 0x40a4f8
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x74]
sar eax, 1
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
lea edx, [ecx + ecx + 2]
push edx
lea eax, [ebp - 0x5a0]
push eax
push 1
push 0
push 0x52c5d0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebx + 8]
call fcn.004050e0
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
add edx, 2
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x28]
mov cx, word [eax]
mov word [ebp - 0x46], cx
add dword [ebp - 0x28], 2
cmp word [ebp - 0x46], 0
jne 0x40a54e
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x7c]
sar edx, 1
mov dword [ebp - 0x80], edx
lea ecx, [ebx + 8]
call fcn.004050e0
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x80]
lea edx, [ecx + ecx + 2]
push edx
mov eax, dword [ebp - 0x84]
push eax
push 1
push 0
push 0x52c600
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
mov byte [ebp - 0x18], dl
xor eax, eax
mov byte [ebp - 0x19], al
xor ecx, ecx
mov byte [ebp - 0x1a], cl
movzx edx, byte [ebp - 0x18]
push edx
movzx eax, byte [ebp - 0x19]
push eax
movzx ecx, byte [ebp - 0x1a]
push ecx
lea ecx, [ebp - 0x1a0]
call fcn.0040f420
mov ecx, eax
call fcn.0040bce0
push eax
lea ecx, [ebp - 0x38]
call fcn.0040d1a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x38]
call fcn.0040d300
lea edx, [eax + eax + 2]
mov dword [ebp - 0x8c], edx
lea ecx, [ebp - 0x38]
call fcn.0040d2e0
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0x90]
push edx
push 1
push 0
push 0x52c620
mov eax, dword [ebp - 0x94]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [0x52c640]
mov dword [ebp - 0x3a0], ecx
mov edx, dword [0x52c644]
mov dword [ebp - 0x39c], edx
mov eax, dword [0x52c648]
mov dword [ebp - 0x398], eax
mov ecx, dword [0x52c64c]
mov dword [ebp - 0x394], ecx
mov edx, dword [0x52c650]
mov dword [ebp - 0x390], edx
push 0x1ea
push 0
lea eax, [ebp - 0x38c]
push eax
call fcn.004d75f0
add esp, 0xc
lea ecx, [ebp - 0x3a0]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 2
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x20]
mov cx, word [eax]
mov word [ebp - 0x40], cx
add dword [ebp - 0x20], 2
cmp word [ebp - 0x40], 0
jne 0x40a69a
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x98]
sar edx, 1
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x9c]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x3a0]
push edx
push 1
push 0
push str.AppUserModelId
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x52c674
lea ecx, [ebp - 0xfc]
call fcn.0040c410
mov ecx, eax
call fcn.004050e0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40a797
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x38]
call fcn.0040d100
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.0040d100
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe4]
call fcn.00405130
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xfc]
call fcn.00405130
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x114]
call fcn.00405130
mov byte [ebp - 4], 1
lea ecx, [ebx + 8]
call fcn.00405130
mov byte [ebp - 4], 0
lea ecx, [ebx + 0x20]
call fcn.00405130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0x38]
call fcn.00405130
jmp 0x40aa60
lea ecx, [ebx + 8]
call fcn.004050e0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add eax, 2
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0x2c]
mov dx, word [ecx]
mov word [ebp - 0x42], dx
add dword [ebp - 0x2c], 2
cmp word [ebp - 0x42], 0
jne 0x40a7ae
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0xa0]
sar eax, 1
mov dword [ebp - 0xa4], eax
lea ecx, [ebx + 8]
call fcn.004050e0
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0xa4]
lea eax, [edx + edx + 2]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
push 1
push 0
push 0x52c690
mov edx, dword [ebp - 0xac]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str._shellopencommand
lea ecx, [ebp - 0xe4]
call fcn.0040c410
mov ecx, eax
call fcn.004050e0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40a8c5
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x38]
call fcn.0040d100
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.0040d100
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe4]
call fcn.00405130
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xfc]
call fcn.00405130
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x114]
call fcn.00405130
mov byte [ebp - 4], 1
lea ecx, [ebx + 8]
call fcn.00405130
mov byte [ebp - 4], 0
lea ecx, [ebx + 0x20]
call fcn.00405130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0x38]
call fcn.00405130
jmp 0x40aa60
lea edx, [ebx + 0x38]
push edx
push 0x52c6ec
lea eax, [ebp - 0x15c]
push eax
call fcn.0040f4b0
add esp, 0xc
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], ecx
mov byte [ebp - 4], 0xc
push 0x52c6e8
mov edx, dword [ebp - 0xb4]
push edx
lea eax, [ebp - 0x144]
push eax
call fcn.0040f1e0
add esp, 0xc
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], ecx
mov byte [ebp - 4], 0xd
push str.___single_argument__1
mov edx, dword [ebp - 0xbc]
push edx
lea eax, [ebp - 0x12c]
push eax
call fcn.0040f1e0
add esp, 0xc
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x144]
call fcn.00405130
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x15c]
call fcn.00405130
lea ecx, [ebp - 0x12c]
call fcn.004050e0
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov dword [ebp - 0xc0], ecx
mov edx, dword [ebp - 0x34]
mov ax, word [edx]
mov word [ebp - 0x44], ax
add dword [ebp - 0x34], 2
cmp word [ebp - 0x44], 0
jne 0x40a977
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0xc0]
sar ecx, 1
mov dword [ebp - 0xc4], ecx
lea ecx, [ebp - 0x12c]
call fcn.004050e0
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0xc4]
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp - 0xc8]
push edx
push 1
push 0
push 0x52c6f0
mov eax, dword [ebp - 0xcc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x12c]
call fcn.00405130
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x38]
call fcn.0040d100
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.0040d100
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe4]
call fcn.00405130
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xfc]
call fcn.00405130
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x114]
call fcn.00405130
mov byte [ebp - 4], 1
lea ecx, [ebx + 8]
call fcn.00405130
mov byte [ebp - 4], 0
lea ecx, [ebx + 0x20]
call fcn.00405130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0x38]
call fcn.00405130
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret