Function at 0x4162c8
Capabilities:
Create process on windows
Delete file
Extract resource via kernel32 functions
Set environment variable
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x4162d0
push ebx
push esi
push edi
mov eax, dword [0x417c24]
mov byte [eax], 1
mov eax, 0x415020
call fcn.00405f6c
mov esi, 0x41d9c4
xor eax, eax
push ebp
push 0x416946
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x417ab0]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x18]
call fcn.004063f0
mov edx, dword [ebp - 0x18]
mov eax, 0x41d9e8
call fcn.00404390
lea edx, [ebp - 0x1c]
mov eax, dword [0x41d9e8]
call fcn.00406304
mov edx, dword [ebp - 0x1c]
mov eax, 0x41d9e8
call fcn.00404390
mov byte [0x41d9e4], 1
push 0xa
push 0x416958
mov eax, dword [0x41a7f0]
push eax
call sub.kernel32.dll_FindResourceA
mov dword [0x41d9f4], eax
mov eax, dword [0x41d9f4]
push eax
mov eax, dword [0x41a7f0]
push eax
call sub.kernel32.dll_LoadResource
mov dword [0x41d9f8], eax
cmp dword [0x41d9f8], 0
je 0x4163aa
call fcn.00414e80
movzx eax, byte [0x41da2c]
mov ecx, dword [0x41da24]
sub ecx, eax
dec ecx
mov edx, esi
mov eax, dword [0x41da00]
call fcn.00402f80
mov eax, dword [0x41da00]
call fcn.00402de0
mov eax, dword [0x41d9f8]
push eax
call sub.kernel32.dll_FreeResource
call sub.kernel32.dll_GetCurrentProcessId
lea edx, [ebp - 0x20]
call fcn.00414db8
mov edx, dword [ebp - 0x20]
mov eax, 0x41da54
call fcn.00404390
call fcn.00403080
mov eax, 0x2b
call fcn.004030a8
mov ebx, eax
add ebx, 0x2f
mov eax, dword [0x41da54]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4163ec
sub eax, 4
mov eax, dword [eax]
cmp eax, 8
jne 0x41640a
lea eax, [ebp - 0x28]
mov edx, esi
call fcn.004045a0
mov edx, dword [ebp - 0x28]
mov eax, 0x41da54
call fcn.004045e4
jmp 0x41642f
mov eax, ebx
add al, 0xd0
sub al, 0xa
jb 0x416418
add al, 0xf9
sub al, 0x1a
jae 0x41642f
lea eax, [ebp - 0x2c]
mov edx, ebx
call fcn.00404524
mov edx, dword [ebp - 0x2c]
mov eax, 0x41da54
call fcn.004045e4
mov eax, dword [0x41da54]
call fcn.004045d8
cmp eax, 0xc
jne 0x4163c9
lea eax, [ebp - 0x30]
mov ecx, dword [0x41da54]
mov edx, dword [0x41d9e8]
call fcn.00404630
mov eax, dword [ebp - 0x30]
call fcn.004061bc
test al, al
jne 0x4163aa
mov eax, 0x41da54
mov ecx, dword [0x41da54]
mov edx, dword [0x41d9e8]
call fcn.00404630
mov eax, 0x41d9ec
mov edx, dword [0x41da54]
call fcn.00404390
push 0xa
push 0x416960
mov eax, dword [0x41a7f0]
push eax
call sub.kernel32.dll_FindResourceA
mov dword [0x41d9f4], eax
mov eax, dword [0x41d9f4]
push eax
mov eax, dword [0x41a7f0]
push eax
call sub.kernel32.dll_LoadResource
mov dword [0x41d9f8], eax
cmp dword [0x41d9f8], 0
je 0x41653d
call fcn.00414e80
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [0x41d9ec]
call fcn.004047a8
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
push 0
push 0x41da30
movzx eax, byte [0x41da2c]
mov edx, dword [0x41da24]
sub edx, eax
dec edx
push edx
mov eax, dword [0x41da00]
push eax
mov esi, ebx
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x41da00]
call fcn.00402de0
mov eax, dword [0x41d9f8]
push eax
call sub.kernel32.dll_FreeResource
push 0x102
mov eax, dword [0x41d9ec]
call fcn.004047a8
push eax
call sub.kernel32.dll_SetFileAttributesA
cmp byte [0x41d9e4], 0
je 0x41691e
lea eax, [ebp - 0x34]
call fcn.00414e4c
push dword [ebp - 0x34]
push 0x416970
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x38]
mov eax, 6
call fcn.00407bf4
push dword [ebp - 0x38]
push 0x41697c
mov eax, 0xff
call fcn.004030a8
lea ecx, [ebp - 0x3c]
mov edx, 2
call fcn.00407bcc
push dword [ebp - 0x3c]
mov eax, 0x41da4c
mov edx, 5
call fcn.004046ac
mov eax, dword [0x41da4c]
call fcn.00408094
mov eax, dword [0x41da4c]
call fcn.004047a8
push eax
push 0x416980
call sub.kernel32.dll_SetEnvironmentVariableA
mov dl, 1
mov eax, dword [0x413be0]
call fcn.00413c7c
mov dword [0x41da34], eax
mov eax, dword [0x41da34]
mov byte [eax + 4], 1
mov eax, dword [0x41da34]
mov byte [eax + 5], 1
mov eax, dword [0x41da34]
add eax, 8
mov edx, 0x416990
call fcn.00404390
xor eax, eax
mov dword [0x41da44], eax
mov byte [0x41d9e4], 1
xor eax, eax
push ebp
push 0x41663b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4169b4
push 0xa
mov ecx, dword [0x417b40]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4106e4]
call fcn.00412e90
mov dword [0x41da44], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41664c
cmp byte [0x41d9e4], 0
je 0x41679a
mov dl, 1
mov eax, dword [0x410668]
call fcn.00403758
mov dword [0x41da38], eax
mov dl, 1
mov eax, dword [0x410668]
call fcn.00403758
mov dword [0x41da3c], eax
xor eax, eax
push ebp
push 0x416793
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x41da44]
mov eax, dword [0x41da34]
call fcn.00413dd4
mov eax, dword [0x41da34]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x416771
inc eax
mov dword [ebp - 0x14], eax
mov dword [0x41da48], 0
mov dl, 1
mov eax, dword [0x410668]
call fcn.00403758
mov dword [0x41da40], eax
xor eax, eax
push ebp
push 0x41675b
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x40]
mov eax, dword [0x41da34]
mov eax, dword [eax + 0x20]
mov edx, dword [0x41da48]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x40]
mov ecx, dword [0x41da40]
mov eax, dword [0x41da34]
call fcn.00413d00
push dword [0x41da4c]
push 0x4169c4
lea ecx, [ebp - 0x48]
mov eax, dword [0x41da34]
mov eax, dword [eax + 0x20]
mov edx, dword [0x41da48]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.004046ac
mov edx, dword [ebp - 0x44]
mov eax, dword [0x41da40]
call fcn.00412cd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416762
mov eax, dword [0x41da40]
call fcn.00403788
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41679a
mov eax, dword [0x41da3c]
call fcn.00403788
mov eax, dword [0x41da38]
call fcn.00403788
ret
mov eax, dword [0x41da44]
call fcn.00403788
lea eax, [ebp - 0x4c]
call fcn.00406500
mov eax, dword [ebp - 0x4c]
call fcn.004047a8
push eax
push 0x4169c8
call sub.kernel32.dll_SetEnvironmentVariableA
push 0x4169d8
push dword [0x41d9ec]
push 0x4169f0
lea eax, [ebp - 0x50]
mov edx, dword [0x417be0]
mov edx, dword [edx]
call fcn.00404534
push dword [ebp - 0x50]
push 0x4169fc
mov eax, 0x41d9f0
mov edx, 5
call fcn.004046ac
mov eax, 0x41da5c
xor ecx, ecx
mov edx, 0x44
call fcn.0040318c
mov dword [0x41da5c], 0x44
mov dword [0x41da88], 1
mov word [0x41da8c], 0
push 0x41daa0
push 0x41da5c
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [0x41d9f0]
call fcn.004047a8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x416883
push 0xffffffffffffffff
mov eax, dword [0x41daa0]
push eax
call sub.kernel32.dll_WaitForSingleObject
push 0x41da58
mov eax, dword [0x41daa0]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [0x41daa0]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x41daa4]
push eax
call sub.kernel32.dll_CloseHandle
mov ebx, dword [0x41da58]
mov eax, dword [0x41d9ec]
call fcn.004047a8
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [0x41da34]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x416903
inc eax
mov dword [ebp - 0x14], eax
mov dword [0x41da48], 0
push dword [0x41da4c]
push 0x4169c4
lea ecx, [ebp - 0x58]
mov eax, dword [0x41da34]
mov eax, dword [eax + 0x20]
mov edx, dword [0x41da48]
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.004046ac
mov eax, dword [ebp - 0x54]
call fcn.004047a8
push eax
call sub.kernel32.dll_DeleteFileA
inc dword [0x41da48]
dec dword [ebp - 0x14]
jne 0x4168b9
mov eax, dword [0x41da34]
call fcn.00403788
mov eax, dword [0x41da4c]
call fcn.004080b0
mov eax, dword [0x417ab0]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41694d
lea eax, [ebp - 0x58]
mov edx, 0xd
call fcn.00404360
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404360
ret