Function at 0x418890
Capabilities:
Create process on windows
Delete file
Get common file path
Move file
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2488
call fcn.0040ada0
mov eax, dword [0x422010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp - 8], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x224], 0
push 0x4010
call fcn.00404845
add esp, 4
mov dword [ebp - 0x246c], eax
mov eax, dword [ebp - 0x246c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x22c], 0
jmp 0x418915
cmp dword [ebp - 0x22c], 1
jge 0x419530
lea edx, [ebp - 0x218]
push edx
call fcn.00418740
add esp, 4
test eax, eax
jne 0x418944
mov dword [0x427398], 1
jmp 0x419530
mov dword [ebp - 0x2440], 0x1000
lea eax, [ebp - 0x2440]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.00417930
add esp, 0xc
test eax, eax
jne 0x418995
lea eax, [ebp - 0x218]
push eax
push str.Downloading_header_of__s_failed
push 0x4273a0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [0x427398], 2
jmp 0x419530
mov ecx, dword [ebp - 0x2440]
shr ecx, 1
mov edx, dword [ebp - 0xc]
mov word [edx + ecx*2 + 2], 0
mov eax, dword [ebp - 0x2440]
shr eax, 1
mov ecx, dword [ebp - 0xc]
mov word [ecx + eax*2], 0
push str._ncontentversion
mov edx, dword [ebp - 0xc]
push edx
call fcn.004181f0
add esp, 8
mov dword [ebp - 0x5a4], eax
cmp dword [ebp - 0x5a4], 0
jne 0x4189fa
push str.no_contentversion
push 0x4273a0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [0x427398], 3
jmp 0x419530
push 0x3d
mov eax, dword [ebp - 0x5a4]
push eax
call fcn.00404515
add esp, 8
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp - 0x5a4]
add ecx, 2
push ecx
call fcn.00404181
add esp, 4
mov dword [ebp - 0x564], eax
push str._noffset
mov edx, dword [ebp - 0xc]
push edx
call fcn.004181f0
add esp, 8
mov dword [ebp - 0x5a4], eax
cmp dword [ebp - 0x5a4], 0
jne 0x418a6b
push str.no_offset
push 0x4273a0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [0x427398], 3
jmp 0x419530
push 0x3d
mov eax, dword [ebp - 0x5a4]
push eax
call fcn.00404515
add esp, 8
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp - 0x5a4]
add ecx, 2
push ecx
call fcn.00404181
add esp, 4
mov dword [ebp - 0x1284], eax
push str._ncrc
mov edx, dword [ebp - 0xc]
push edx
call fcn.004181f0
add esp, 8
mov dword [ebp - 0x5a4], eax
cmp dword [ebp - 0x5a4], 0
jne 0x418adc
push str.no_crc
push 0x4273a0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [0x427398], 3
jmp 0x419530
push 0x3d
mov eax, dword [ebp - 0x5a4]
push eax
call fcn.00404515
add esp, 8
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp - 0x5a4]
add ecx, 2
push ecx
call fcn.00404186
add esp, 4
mov dword [ebp - 0x21c], eax
push str._ncrc2
mov edx, dword [ebp - 0xc]
push edx
call fcn.004181f0
add esp, 8
mov dword [ebp - 0x5a4], eax
cmp dword [ebp - 0x5a4], 0
jne 0x418b4d
push str.no_crc2
push 0x4273a0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [0x427398], 3
jmp 0x419530
push 0x3d
mov eax, dword [ebp - 0x5a4]
push eax
call fcn.00404515
add esp, 8
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp - 0x5a4]
add ecx, 2
push ecx
call fcn.00404186
add esp, 4
mov dword [ebp - 0x224], eax
push str._nlen
mov edx, dword [ebp - 0xc]
push edx
call fcn.004181f0
add esp, 8
mov dword [ebp - 0x5a4], eax
cmp dword [ebp - 0x5a4], 0
jne 0x418bbe
push str.no_len
push 0x4273a0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [0x427398], 3
jmp 0x419530
push 0x3d
mov eax, dword [ebp - 0x5a4]
push eax
call fcn.00404515
add esp, 8
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp - 0x5a4]
add ecx, 2
push ecx
call fcn.00404181
add esp, 4
mov dword [ebp - 4], eax
push str._norignial
mov edx, dword [ebp - 0xc]
push edx
call fcn.004181f0
add esp, 8
mov dword [ebp - 0x5a4], eax
cmp dword [ebp - 0x5a4], 0
jne 0x418c2c
push str.no_orignial
push 0x4273a0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [0x427398], 3
jmp 0x419530
push 0x3d
mov eax, dword [ebp - 0x5a4]
push eax
call fcn.00404515
add esp, 8
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp - 0x5a4]
add ecx, 2
push ecx
call fcn.00404181
add esp, 4
mov dword [ebp - 0x228], eax
lea edx, [ebp - 0x1280]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x1280]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp + eax*2 - 0x1282]
mov dword [ebp - 0x1428], ecx
mov edx, dword [ebp - 0x1428]
movzx eax, word [edx]
cmp eax, 0x5c
je 0x418ca4
mov ecx, dword [ebp - 0x1428]
add ecx, 2
mov dword [ebp - 0x1428], ecx
push str.Startpage24
mov edx, dword [ebp - 0x1428]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
lea eax, [ebp - 0x1280]
push eax
call fcn.004048af
add esp, 4
mov ecx, dword [ebp - 4]
add ecx, 0x4000
mov dword [ebp - 0x230], ecx
mov edx, dword [ebp - 0x230]
push edx
call fcn.00404845
add esp, 4
mov dword [ebp - 0x2470], eax
mov eax, dword [ebp - 0x2470]
mov dword [ebp - 0x1424], eax
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x1424]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.00417930
add esp, 0xc
test eax, eax
jne 0x418d42
lea ecx, [ebp - 0x218]
push ecx
push str.Downloading_full__s_failed
push 0x4273a0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [0x427398], 4
jmp 0x419530
push 0xffffffffffffffff
mov edx, dword [ebp - 0x230]
sub edx, 0x50
push edx
mov eax, dword [ebp - 0x1424]
add eax, 0x50
push eax
call fcn.00418110
add esp, 0xc
mov dword [ebp - 0x1430], eax
mov ecx, dword [ebp - 0x1430]
cmp ecx, dword [ebp - 0x21c]
je 0x418d96
push str.Wrong_crc
push 0x4273a0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [0x427398], 5
jmp 0x419530
mov dword [ebp - 0x2444], 0
jmp 0x418db1
mov edx, dword [ebp - 0x2444]
add edx, 1
mov dword [ebp - 0x2444], edx
cmp dword [ebp - 0x2444], 0x64
jge 0x418dcd
mov eax, dword [ebp - 0x2444]
mov dword [ebp + eax*4 - 0x1418], 0
jmp 0x418da2
mov dword [ebp - 0x243c], 0
mov dword [ebp - 0x1434], 1
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1420], ecx
cmp dword [ebp - 0x1434], 0
je 0x418fe5
mov edx, dword [ebp - 0x1420]
movzx eax, word [edx]
cmp eax, 0xa
je 0x418e21
mov ecx, dword [ebp - 0x1420]
movzx edx, word [ecx]
cmp edx, 0xd
je 0x418e21
mov eax, dword [ebp - 0x1420]
movzx ecx, word [eax]
cmp ecx, 0x20
jne 0x418e32
mov edx, dword [ebp - 0x1420]
add edx, 2
mov dword [ebp - 0x1420], edx
jmp 0x418df7
push 0xa
mov eax, dword [ebp - 0x1420]
push eax
call fcn.00401000
add esp, 8
mov dword [ebp - 0x1288], eax
cmp dword [ebp - 0x1288], 0
je 0x418f0b
mov ecx, dword [ebp - 0x1288]
movzx edx, word [ecx]
cmp edx, 0xa
je 0x418e80
mov eax, dword [ebp - 0x1288]
movzx ecx, word [eax]
cmp ecx, 0xd
je 0x418e80
mov edx, dword [ebp - 0x1288]
movzx eax, word [edx]
cmp eax, 0x20
jne 0x418e91
mov ecx, dword [ebp - 0x1288]
sub ecx, 2
mov dword [ebp - 0x1288], ecx
jmp 0x418e56
mov edx, dword [ebp - 0x1288]
add edx, 2
mov dword [ebp - 0x1288], edx
mov eax, dword [ebp - 0x1288]
sub eax, dword [ebp - 0x1420]
sar eax, 1
mov dword [ebp - 0x2448], eax
cmp dword [ebp - 0x2448], 1
jge 0x418ec2
jmp 0x418fe5
cmp dword [ebp - 0x2448], 0x7d0
jle 0x418eda
mov dword [ebp - 0x2448], 0
jmp 0x418ef9
mov ecx, dword [ebp - 0x2448]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x1420]
push edx
lea eax, [ebp - 0x2438]
push eax
call fcn.004041b0
add esp, 0xc
mov ecx, dword [ebp - 0x2448]
mov word [ebp + ecx*2 - 0x2438], 0
jmp 0x418f1f
mov edx, dword [ebp - 0x1420]
push edx
lea eax, [ebp - 0x2438]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
movzx ecx, word [ebp - 0x2438]
test ecx, ecx
je 0x418fc9
push 0x2c
lea edx, [ebp - 0x2438]
push edx
call fcn.00401000
add esp, 8
mov dword [ebp - 0x244c], eax
cmp dword [ebp - 0x244c], 0
je 0x418fc9
lea eax, [ebp - 0x2438]
push eax
call fcn.00404181
add esp, 4
mov dword [ebp - 0x2450], eax
push 0x208
call fcn.00404845
add esp, 4
mov dword [ebp - 0x2474], eax
mov ecx, dword [ebp - 0x243c]
mov edx, dword [ebp - 0x2474]
mov dword [ebp + ecx*4 - 0x1418], edx
mov eax, dword [ebp - 0x244c]
add eax, 2
push eax
mov ecx, dword [ebp - 0x243c]
mov edx, dword [ebp + ecx*4 - 0x1418]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x243c]
mov ecx, dword [ebp - 0x2450]
mov dword [ebp + eax*4 - 0xb48], ecx
mov edx, dword [ebp - 0x243c]
add edx, 1
mov dword [ebp - 0x243c], edx
cmp dword [ebp - 0x1288], 0
jne 0x418fd4
jmp 0x418fe5
mov eax, dword [ebp - 0x1288]
mov dword [ebp - 0x1420], eax
jmp 0x418dea
mov ecx, dword [ebp - 0x1284]
mov dword [ebp - 0x1438], ecx
mov edx, dword [ebp - 0x243c]
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x228]
add eax, 0x400
push eax
call fcn.00404845
add esp, 4
mov dword [ebp - 0x2478], eax
mov ecx, dword [ebp - 0x2478]
mov dword [ebp - 0x23c], ecx
mov edx, dword [ebp - 0x228]
add edx, 0x400
mov dword [ebp - 0x141c], edx
cmp dword [ebp - 4], 6
jle 0x419049
mov eax, dword [ebp - 4]
sub eax, 6
mov dword [ebp - 0x2488], eax
jmp 0x419053
mov dword [ebp - 0x2488], 0
mov ecx, dword [ebp - 0x2488]
mov dword [ebp - 0x142c], ecx
mov edx, dword [ebp - 0x1284]
mov eax, dword [ebp - 0x1424]
lea ecx, [eax + edx + 1]
mov edx, dword [ebp - 0x1284]
mov eax, dword [ebp - 0x1424]
lea edx, [eax + edx + 6]
push edx
lea eax, [ebp - 0x141c]
push eax
mov eax, 5
lea esi, [ebp - 0x142c]
mov edx, dword [ebp - 0x23c]
call fcn.00401290
mov dword [ebp - 0xe6c], eax
cmp dword [ebp - 0xe6c], 0
jne 0x4190ba
mov ecx, dword [ebp - 0x141c]
cmp ecx, dword [ebp - 0x228]
jge 0x4190e3
lea edx, [ebp - 0x218]
push edx
push str.LzmaUncompress_failed
push 0x4273a0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [0x427398], 4
jmp 0x419530
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x141c], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call fcn.00418110
add esp, 0xc
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp - 0x224]
je 0x41913d
push str.Wrong_crc2
push 0x4273a0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [0x427398], 4
jmp 0x419530
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x2454], 0
jmp 0x419164
mov edx, dword [ebp - 0x2454]
add edx, 1
mov dword [ebp - 0x2454], edx
mov eax, dword [ebp - 0x2454]
cmp eax, dword [ebp - 0x240]
jge 0x419354
mov ecx, dword [ebp - 0x2454]
mov edx, dword [ebp + ecx*4 - 0x1418]
push edx
lea eax, [ebp - 0x9b8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x2460], 0
movzx ecx, word [ebp - 0x9b8]
cmp ecx, 0x2a
jne 0x4191d6
mov dword [ebp - 0x2460], 1
lea edx, [ebp - 0x9b6]
push edx
lea eax, [ebp - 0x1280]
push eax
push 0x41fb6c
lea ecx, [ebp - 0x7b0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x4191f9
lea edx, [ebp - 0x9b8]
push edx
lea eax, [ebp - 0x1280]
push eax
push str._s_s
lea ecx, [ebp - 0x7b0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov edx, dword [ebp - 0x2454]
mov eax, dword [ebp + edx*4 - 0xb48]
mov dword [ebp - 0x245c], eax
push str..exe
lea ecx, [ebp - 0x9b8]
push ecx
call fcn.004181f0
add esp, 8
test eax, eax
je 0x41929b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x384
div ecx
mov dword [ebp - 0x2464], edx
lea edx, [ebp - 0x7b0]
push edx
call fcn.00418090
add esp, 4
test eax, eax
je 0x419287
mov eax, dword [ebp - 0x2464]
add eax, 1
mov dword [ebp - 0x2464], eax
lea ecx, [ebp - 0x9b8]
push ecx
mov edx, dword [ebp - 0x2464]
push edx
lea eax, [ebp - 0x1280]
push eax
push str._s_u__s
lea ecx, [ebp - 0x7b0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x419239
lea edx, [ebp - 0x7b0]
push edx
lea eax, [ebp - 0x1078]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0x10000000
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x7b0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2458], eax
cmp dword [ebp - 0x2458], 0xffffffff
je 0x419317
mov dword [ebp - 0x2468], 0
push 0
lea edx, [ebp - 0x2468]
push edx
mov eax, dword [ebp - 0x245c]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x2458]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x2458]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 4
push 0
lea ecx, [ebp - 0x7b0]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x41933d
mov dword [0x427398], 8
lea edx, [ebp - 0x7b0]
push edx
push str.Could_not_create__s
push 0x4273a0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x419354
mov eax, dword [ebp - 0x234]
add eax, dword [ebp - 0x245c]
mov dword [ebp - 0x234], eax
jmp 0x419155
cmp dword [ebp - 0x1424], 0
je 0x419378
mov ecx, dword [ebp - 0x1424]
mov dword [ebp - 0x247c], ecx
mov edx, dword [ebp - 0x247c]
push edx
call fcn.0040416b
add esp, 4
mov dword [ebp - 0x1424], 0
cmp dword [ebp - 0x23c], 0
je 0x4193a6
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x2480], eax
mov ecx, dword [ebp - 0x2480]
push ecx
call fcn.0040416b
add esp, 4
mov dword [ebp - 0x23c], 0
cmp dword [0x427398], 0
je 0x4193be
jmp 0x419530
cmp dword [ebp - 0x1434], 0
jne 0x4193e4
push str.No_file_found_in_zip
push 0x4273a0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov dword [0x427398], 7
lea edx, [ebp - 0x1078]
push edx
lea eax, [ebp - 0xe68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str..tmp
lea ecx, [ebp - 0xe68]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0xe68]
push edx
call fcn.00418500
add esp, 4
test eax, eax
je 0x419445
lea eax, [ebp - 0xe68]
push eax
push 0x427208
push 0x427788
push str._s__sku_s__themefile_s
lea ecx, [ebp - 0x560]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x419464
push 0x427208
push 0x427788
push str._s__sku_s
lea edx, [ebp - 0x560]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x3c
push 0
lea eax, [ebp - 0x5a0]
push eax
call fcn.00404790
add esp, 0xc
mov dword [ebp - 0x5a0], 0x3c
mov dword [ebp - 0x59c], 0x40
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x598], eax
mov dword [ebp - 0x594], str.open
lea ecx, [ebp - 0x1078]
mov dword [ebp - 0x590], ecx
lea edx, [ebp - 0x560]
mov dword [ebp - 0x58c], edx
mov dword [ebp - 0x584], 1
mov dword [ebp - 0x580], 0
lea eax, [ebp - 0x5a0]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41950a
push str._wait
lea ecx, [ebp - 0x560]
push ecx
call fcn.004181f0
add esp, 8
test eax, eax
je 0x419508
push 0x927c0
mov edx, dword [ebp - 0x568]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x419529
mov dword [0x427398], 6
push str.Could_not_start_Startpage24_Install.exe
push 0x4273a0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
jmp 0x419530
jmp 0x419530
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2484], eax
mov ecx, dword [ebp - 0x2484]
push ecx
call fcn.0040416b
add esp, 4
cmp dword [0x427398], 0
jle 0x41956e
cmp dword [0x427398], 6
je 0x41956e
push 0x10
push str.Startpage24_installer
push 0x4273a0
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404197
mov esp, ebp
pop ebp
ret