Function at 0x4152c8
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, 0xa
push 0
push 0
dec ecx
jne 0x4152d0
push ebx
push esi
push edi
mov eax, dword [0x416c10]
mov byte [eax], 1
mov eax, 0x414db8
call fcn.00405f6c
xor eax, eax
push ebp
push 0x415ac8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x416a9c]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x18]
call fcn.004063d8
mov edx, dword [ebp - 0x18]
mov eax, 0x41c9d4
call fcn.00404390
lea edx, [ebp - 0x1c]
mov eax, dword [0x41c9d4]
call fcn.004062ec
mov edx, dword [ebp - 0x1c]
mov eax, 0x41c9d4
call fcn.00404390
lea eax, [ebp - 0x20]
call fcn.00414d28
mov edx, dword [ebp - 0x20]
mov eax, 0x41ca24
call fcn.00404390
mov eax, dword [0x41ca24]
call fcn.004047a8
push eax
push 0x415ad8
call sub.kernel32.dll_SetEnvironmentVariableA
mov dl, 1
mov eax, dword [0x413b50]
call fcn.00413bec
mov dword [0x41ca0c], eax
mov eax, dword [0x41ca0c]
mov byte [eax + 4], 1
mov eax, dword [0x41ca0c]
mov byte [eax + 5], 1
mov eax, dword [0x41ca0c]
add eax, 8
mov edx, 0x415ae8
call fcn.00404390
xor eax, eax
mov dword [0x41ca1c], eax
mov byte [0x41c9d0], 1
xor eax, eax
push ebp
push 0x4153d7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x415b0c
push 0xa
mov ecx, dword [0x416b2c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x410654]
call fcn.00412e00
mov dword [0x41ca1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4153e8
cmp byte [0x41c9d0], 0
je 0x415536
mov dl, 1
mov eax, dword [0x4105d8]
call fcn.00403758
mov dword [0x41ca10], eax
mov dl, 1
mov eax, dword [0x4105d8]
call fcn.00403758
mov dword [0x41ca14], eax
xor eax, eax
push ebp
push 0x41552f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x41ca1c]
mov eax, dword [0x41ca0c]
call fcn.00413d44
mov eax, dword [0x41ca0c]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x41550d
inc eax
mov dword [ebp - 0x14], eax
mov dword [0x41ca20], 0
mov dl, 1
mov eax, dword [0x4105d8]
call fcn.00403758
mov dword [0x41ca18], eax
xor eax, eax
push ebp
push 0x4154f7
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x24]
mov eax, dword [0x41ca0c]
mov eax, dword [eax + 0x20]
mov edx, dword [0x41ca20]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x24]
mov ecx, dword [0x41ca18]
mov eax, dword [0x41ca0c]
call fcn.00413c70
push dword [0x41ca24]
push 0x415b1c
lea ecx, [ebp - 0x2c]
mov eax, dword [0x41ca0c]
mov eax, dword [eax + 0x20]
mov edx, dword [0x41ca20]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004046ac
mov edx, dword [ebp - 0x28]
mov eax, dword [0x41ca18]
call fcn.00412c40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4154fe
mov eax, dword [0x41ca18]
call fcn.00403788
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415536
mov eax, dword [0x41ca14]
call fcn.00403788
mov eax, dword [0x41ca10]
call fcn.00403788
ret
mov eax, dword [0x41ca1c]
call fcn.00403788
mov byte [0x41c9d0], 1
push 0xa
push 0x415b20
mov eax, dword [0x4197f0]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
push ebx
mov eax, dword [0x4197f0]
push eax
call sub.kernel32.dll_LoadResource
mov dword [0x41c9e0], eax
cmp dword [0x41c9e0], 0
je 0x415699
mov byte [0x41c9d0], 1
mov eax, dword [0x41c9e0]
push eax
call sub.kernel32.dll_LockResource
mov esi, eax
push ebx
mov eax, dword [0x4197f0]
push eax
call sub.kernel32.dll_SizeofResource
call fcn.00402dc4
mov dword [0x41c9e4], eax
mov edi, esi
mov esi, dword [0x41c9e4]
mov eax, 0x415ae8
call fcn.0040ca88
call fcn.0040c9b4
mov dword [0x41c9f8], 0
mov dword [0x41c9fc], 0
push ebx
mov eax, dword [0x4197f0]
push eax
call sub.kernel32.dll_SizeofResource
xor edx, edx
mov dword [0x41ca00], eax
mov dword [0x41ca04], edx
jmp 0x41562a
mov edx, 0x41c9e8
mov eax, edi
mov ecx, 0x10
call fcn.00402f80
mov eax, 0x41c9e8
call fcn.0040cb04
mov edx, esi
mov eax, 0x41c9e8
mov ecx, 0x10
call fcn.00402f80
add dword [0x41c9f8], 0x10
adc dword [0x41c9fc], 0
add edi, 0x10
add esi, 0x10
mov eax, dword [0x41ca00]
mov edx, dword [0x41ca04]
sub eax, dword [0x41c9f8]
sbb edx, dword [0x41c9fc]
cmp edx, 0
jne 0x41564e
cmp eax, 0x10
jae 0x4155ea
jmp 0x415650
jge 0x4155ea
call fcn.0040caf8
mov eax, dword [0x41c9e4]
xor edx, edx
add eax, dword [0x41ca00]
adc edx, dword [0x41ca04]
sub eax, 1
sbb edx, 0
mov edi, eax
movzx ebx, byte [edi]
movzx eax, bl
mov ecx, dword [0x41ca00]
sub ecx, eax
dec ecx
mov edx, 0x41c9c4
mov eax, dword [0x41c9e4]
call fcn.00402f80
mov eax, dword [0x41c9e0]
push eax
call sub.kernel32.dll_FreeResource
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.004077dc
mov edx, dword [ebp - 0x30]
mov eax, 0x41ca2c
call fcn.00404390
call fcn.00403080
mov eax, 0x2b
call fcn.004030a8
mov ebx, eax
add ebx, 0x2f
mov eax, dword [0x41ca2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4156df
sub eax, 4
mov eax, dword [eax]
cmp eax, 8
jne 0x415700
lea eax, [ebp - 0x38]
mov edx, 0x41c9c4
call fcn.004045a0
mov edx, dword [ebp - 0x38]
mov eax, 0x41ca2c
call fcn.004045e4
jmp 0x415725
mov eax, ebx
add al, 0xd0
sub al, 0xa
jb 0x41570e
add al, 0xf9
sub al, 0x1a
jae 0x415725
lea eax, [ebp - 0x3c]
mov edx, ebx
call fcn.00404524
mov edx, dword [ebp - 0x3c]
mov eax, 0x41ca2c
call fcn.004045e4
mov eax, dword [0x41ca2c]
call fcn.004045d8
cmp eax, 0xc
jne 0x4156bc
lea eax, [ebp - 0x40]
mov ecx, dword [0x41ca2c]
mov edx, dword [0x41c9d4]
call fcn.00404630
mov eax, dword [ebp - 0x40]
call fcn.004061a4
test al, al
jne 0x415699
mov eax, 0x41ca2c
mov ecx, dword [0x41ca2c]
mov edx, dword [0x41c9d4]
call fcn.00404630
mov eax, 0x41c9d8
mov edx, dword [0x41ca2c]
call fcn.00404390
push 0xa
push 0x415b28
mov eax, dword [0x4197f0]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
push ebx
mov eax, dword [0x4197f0]
push eax
call sub.kernel32.dll_LoadResource
mov dword [0x41c9e0], eax
cmp dword [0x41c9e0], 0
je 0x415923
cmp byte [0x41c9d0], 0
jne 0x4157bd
xor eax, eax
jmp 0x4157bf
mov al, 1
mov byte [0x41c9d0], al
mov eax, dword [0x41c9e0]
push eax
call sub.kernel32.dll_LockResource
mov esi, eax
push ebx
mov eax, dword [0x4197f0]
push eax
call sub.kernel32.dll_SizeofResource
call fcn.00402dc4
mov dword [0x41c9e4], eax
mov edi, esi
mov esi, dword [0x41c9e4]
mov eax, 0x415ae8
call fcn.0040ca88
call fcn.0040c9b4
mov dword [0x41c9f8], 0
mov dword [0x41c9fc], 0
push ebx
mov eax, dword [0x4197f0]
push eax
call sub.kernel32.dll_SizeofResource
xor edx, edx
mov dword [0x41ca00], eax
mov dword [0x41ca04], edx
jmp 0x41586e
mov edx, 0x41c9e8
mov eax, edi
mov ecx, 0x10
call fcn.00402f80
mov eax, 0x41c9e8
call fcn.0040cb04
mov edx, esi
mov eax, 0x41c9e8
mov ecx, 0x10
call fcn.00402f80
add dword [0x41c9f8], 0x10
adc dword [0x41c9fc], 0
add edi, 0x10
add esi, 0x10
mov eax, dword [0x41ca00]
mov edx, dword [0x41ca04]
sub eax, dword [0x41c9f8]
sbb edx, dword [0x41c9fc]
cmp edx, 0
jne 0x415892
cmp eax, 0x10
jae 0x41582e
jmp 0x415894
jge 0x41582e
call fcn.0040caf8
mov eax, dword [0x41c9e4]
xor edx, edx
add eax, dword [0x41ca00]
adc edx, dword [0x41ca04]
sub eax, 1
sbb edx, 0
mov edi, eax
movzx ebx, byte [edi]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [0x41c9d8]
call fcn.004047a8
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
push 0
push 0x41ca08
movzx eax, bl
mov edx, dword [0x41ca00]
sub edx, eax
dec edx
push edx
mov eax, dword [0x41c9e4]
push eax
mov edi, esi
push edi
call sub.kernel32.dll_WriteFile_1
push edi
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x41c9e0]
push eax
call sub.kernel32.dll_FreeResource
push 0x102
mov eax, dword [0x41c9d8]
call fcn.004047a8
push eax
call sub.kernel32.dll_SetFileAttributesA
cmp byte [0x41c9d0], 0
je 0x415aa0
lea eax, [ebp - 0x44]
call fcn.004064e8
mov eax, dword [ebp - 0x44]
call fcn.004047a8
push eax
push 0x415b30
call sub.kernel32.dll_SetEnvironmentVariableA
push 0x415b40
push dword [0x41c9d8]
push 0x415b58
lea eax, [ebp - 0x48]
mov edx, dword [0x416bcc]
mov edx, dword [edx]
call fcn.00404534
push dword [ebp - 0x48]
push 0x415b64
mov eax, 0x41c9dc
mov edx, 5
call fcn.004046ac
mov eax, 0x41ca34
xor ecx, ecx
mov edx, 0x44
call fcn.0040318c
mov dword [0x41ca34], 0x44
mov dword [0x41ca60], 1
mov word [0x41ca64], 0
push 0x41ca78
push 0x41ca34
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [0x41c9dc]
call fcn.004047a8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x415a0f
push 0xffffffffffffffff
mov eax, dword [0x41ca78]
push eax
call sub.kernel32.dll_WaitForSingleObject
push 0x41ca30
mov eax, dword [0x41ca78]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [0x41ca78]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x41ca7c]
push eax
call sub.kernel32.dll_CloseHandle
mov ebx, dword [0x41ca30]
mov eax, dword [0x41c9d8]
call fcn.004047a8
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [0x41ca0c]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x415a8f
inc eax
mov dword [ebp - 0x14], eax
mov dword [0x41ca20], 0
push dword [0x41ca24]
push 0x415b1c
lea ecx, [ebp - 0x50]
mov eax, dword [0x41ca0c]
mov eax, dword [eax + 0x20]
mov edx, dword [0x41ca20]
mov esi, dword [eax]
call dword [esi + 0xc]
push dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.004046ac
mov eax, dword [ebp - 0x4c]
call fcn.004047a8
push eax
call sub.kernel32.dll_DeleteFileA
inc dword [0x41ca20]
dec dword [ebp - 0x14]
jne 0x415a45
mov eax, dword [0x41ca0c]
call fcn.00403788
mov eax, dword [0x416a9c]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415acf
lea eax, [ebp - 0x50]
mov edx, 7
call fcn.00404360
lea eax, [ebp - 0x30]
mov edx, 7
call fcn.00404360
ret