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

Disassembly:
push ebp
lea ebp, [esp - 0x498]
sub esp, 0x498
push 0xffffffffffffffff
push 0x561768
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp + 0x494], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0x4a0]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x84]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4ce4e0
lea eax, [ebp + 0x28c]
push eax
push 0
push 0x58f758
lea eax, [ebp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4ce4e0
lea eax, [ebp + 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4ce505
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 0x28c]
test eax, 0xffff0000
jne 0x4ce30e
movzx eax, ax
lea ecx, [ebp - 0x10]
push eax
call fcn.00412350
jmp 0x4ce336
lea ecx, [ebp + 0x28c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ce317
sub ecx, edx
lea eax, [ebp + 0x28c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004126c0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 4
push str..url
call fcn.00416df0
mov esi, dword [ebp - 0x10]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x24], 0x57dd34
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 2
or ebx, 0xffffffff
cmp edi, ebx
je 0x4ce4a7
lea ecx, [ebp - 0x18]
call fcn.00411710
mov byte [ebp - 4], 4
lea ecx, [ebp]
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.004acd50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
push dword [eax]
call fcn.00495210
mov byte [ebp - 4], 7
lea ecx, [ebp + 4]
mov eax, dword [ebp]
cmp eax, ecx
je 0x4ce3c1
push eax
call fcn.005269c4
add esp, 4
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push str._InternetShortcut__r_nURL_s_r_n
push eax
call fcn.0047d4b0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
add esp, 0xc
push 0
push ecx
push dword [eax - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
test edi, edi
je 0x4ce3ff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4ce417
push 5
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x5c
push esi
call fcn.00522f4c
add esp, 8
test eax, eax
jne 0x4ce42b
or eax, 0xffffffff
jmp 0x4ce42f
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00409d90
mov byte [ebp - 4], 8
mov ecx, eax
mov edx, dword [ebp - 0x2c]
add edx, 0x1c
call fcn.00494480
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ce46b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ce489
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ce4a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x57dd34
test edi, edi
je 0x4ce4c4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4ce4e0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x494]
xor ecx, ebp
call fcn.005214e1
lea esp, [ebp + 0x498]
pop ebp
ret 4
push 0x80004005
call fcn.004126a0
int3