Function at 0x40128d
Capabilities:
Create process on windows
Delete file
Download url
Get common file path
Move file
Receive data

Disassembly:
push 0x6e8
mov eax, 0x41c7c5
call fcn.0041b973
mov bl, dl
mov byte [ebp - 0x6f1], bl
mov edi, ecx
xor esi, esi
inc esi
test bl, bl
jne 0x40139d
push 0x64
lea eax, [ebp - 0x6b4]
push 0
push eax
call fcn.0040c2a0
pop ecx
pop ecx
lea ecx, [ebp - 0x6b4]
call fcn.00401c2a
mov dword [ebp - 0x63c], esi
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x638], str.Install
mov dword [ebp - 0x630], str.Cancel
mov dword [ebp - 0x68c], eax
push 2
pop ecx
mov dword [ebp - 0x634], ecx
mov dword [ebp - 0x690], ecx
cmp edi, 6
jl 0x40130d
push 0x75
pop eax
jmp 0x401318
xor eax, eax
cmp edi, 3
setge al
add eax, 0x6a
movzx eax, ax
mov dword [ebp - 0x698], eax
cmp edi, 6
jl 0x40132b
push 0x74
pop eax
jmp 0x401337
push 0x6c
pop eax
push 0x6e
cmp edi, 3
pop ecx
cmovge eax, ecx
and dword [ebp - 0x6a8], 0xfffffffd
movzx eax, ax
mov dword [ebp - 0x694], eax
mov dword [ebp - 0x69c], 0xfffd
cmp edi, 6
jl 0x40135b
push 0x73
pop eax
jmp 0x401366
xor eax, eax
cmp edi, 3
setge al
add eax, 0x6f
movzx eax, ax
push ecx
mov dword [ebp - 0x674], eax
lea eax, [ebp - 0x644]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x6b4]
call fcn.004019da
test eax, eax
js 0x401396
cmp dword [ebp - 0x644], esi
je 0x40139d
mov eax, esi
jmp 0x4016e8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0040c2a0
xor eax, eax
mov esi, eax
mov dword [ebp - 0x64c], esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x640], eax
push 0x38
push eax
lea eax, [ebp - 0x6ec]
mov dword [ebp - 0x6f0], 0x3c
push eax
call fcn.0040c2a0
mov eax, dword [0x4287d0]
add esp, 0x18
mov dword [ebp - 0x648], eax
mov byte [ebp - 4], 2
cmp edi, 6
jl 0x4013f8
push 0x76
pop eax
jmp 0x401403
xor eax, eax
cmp edi, 3
setge al
add eax, 0x68
push eax
lea ecx, [ebp - 0x648]
call fcn.00401f5b
lea eax, [ebp - 0x62c]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x401430
call fcn.00401c13
jmp 0x40168a
cmp eax, edi
jbe 0x40143e
mov edi, 0x80020013
jmp 0x40168c
lea eax, [ebp - 0x424]
push eax
push 0
push 0x422b64
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401426
xor eax, eax
mov word [ebp - 0x21e], ax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0040d1de
add esp, 0xc
test eax, eax
je 0x40148b
mov edi, 0x80004005
jmp 0x40168c
lea eax, [ebp - 0x218]
push 0x2e
push eax
call fcn.0040b9f1
pop ecx
pop ecx
mov ecx, eax
push str..exe
test ecx, ecx
jne 0x401669
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0040d242
add esp, 0xc
test eax, eax
jne 0x401481
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x401426
test bl, bl
jne 0x401598
lea eax, [ebp - 0x640]
push eax
push 0x422fd0
push 0x17
push 0
push 0x41d2a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x640]
test eax, eax
je 0x401598
mov ecx, dword [eax]
push str.Downloading
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x640]
push 0
push 0
push str.Downloading_the_.NET_Framework_installer
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x28]
mov eax, dword [ebp - 0x640]
xor edx, edx
push edx
push edx
push edx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
and dword [ebp - 0x644], 0
lea ecx, [ebp - 0x644]
call fcn.00401aa8
test eax, eax
js 0x401598
mov edi, dword [ebp - 0x644]
mov ebx, dword [ebp - 0x640]
cmp dword [edi + 0x24], ebx
je 0x401580
test ebx, ebx
je 0x401570
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov eax, dword [edi + 0x24]
mov dword [edi + 0x24], ebx
test eax, eax
je 0x401580
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test edi, edi
je 0x401592
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov esi, edi
mov dword [ebp - 0x64c], esi
mov bl, byte [ebp - 0x6f1]
push esi
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x648]
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov edi, eax
mov eax, dword [ebp - 0x640]
test eax, eax
je 0x4015c2
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test edi, edi
jne 0x40168c
lea eax, [ebp - 0x218]
mov dword [ebp - 0x6ec], 0x40
mov dword [ebp - 0x6e0], eax
mov ecx, str._passive__norestart__showrmui
test bl, bl
mov dword [ebp - 0x6e4], str.open
mov eax, str._q__norestart
mov dword [ebp - 0x6d4], 5
cmove eax, ecx
mov dword [ebp - 0x6dc], eax
lea eax, [ebp - 0x6f0]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x401426
push 0xffffffffffffffff
push dword [ebp - 0x6b8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x650]
push eax
push dword [ebp - 0x6b8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401426
mov edi, dword [ebp - 0x650]
cmp edi, 0x669
je 0x401683
cmp edi, 0xbc2
je 0x401683
neg edi
sbb edi, edi
and edi, 0x80004005
jmp 0x40168c
mov eax, ecx
lea edx, [ebp - 0x218]
sub eax, edx
sar eax, 1
sub edi, eax
push edi
push ecx
call fcn.0040d1de
jmp 0x4014b7
mov cl, bl
call fcn.004016ee
mov edi, eax
mov eax, dword [ebp - 0x6b8]
test eax, eax
je 0x4016a2
cmp eax, 0xffffffff
je 0x4016a2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 0x218], 0
je 0x4016b9
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x648]
call fcn.00401e59
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x640]
test eax, eax
je 0x4016d8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4016e6
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, edi
call fcn.0041b91d
ret