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, 0x414db8
call fcn.00405f6c
xor eax, eax
push ebp
push 0x415afb
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 0x415b0c
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, 0x415b1c
call fcn.00404390
xor eax, eax
mov dword [0x41ca1c], eax
mov byte [0x41c9d0], 1
xor eax, eax
push ebp
push 0x4153cf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x415b40
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 0x4153e0
cmp byte [0x41c9d0], 0
je 0x41552e
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 0x415527
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 0x415505
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 0x4154ef
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 0x415b50
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 0x4154f6
mov eax, dword [0x41ca18]
call fcn.00403788
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41552e
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 0x415b54
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 0x415691
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, 0x415b1c
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 0x415622
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 0x415646
cmp eax, 0x10
jae 0x4155e2
jmp 0x415648
jge 0x4155e2
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 0x4156d7
sub eax, 4
mov eax, dword [eax]
cmp eax, 8
jne 0x4156f8
lea eax, [ebp - 0x38]
mov edx, 0x41c9c4
call fcn.004045a0
mov edx, dword [ebp - 0x38]
mov eax, 0x41ca2c
call fcn.004045e4
jmp 0x41571d
mov eax, ebx
add al, 0xd0
sub al, 0xa
jb 0x415706
add al, 0xf9
sub al, 0x1a
jae 0x41571d
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 0x4156b4
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 0x415691
mov eax, 0x41c9d8
mov edx, dword [0x41ca2c]
call fcn.00404390
push 0xa
push 0x415b5c
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 0x415905
cmp byte [0x41c9d0], 0
jne 0x41579f
xor eax, eax
jmp 0x4157a1
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, 0x415b1c
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 0x415850
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 0x415874
cmp eax, 0x10
jae 0x415810
jmp 0x415876
jge 0x415810
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 0x415ad3
lea eax, [ebp - 0x44]
call fcn.004064e8
mov eax, dword [ebp - 0x44]
call fcn.004047a8
push eax
push 0x415b64
call sub.kernel32.dll_SetEnvironmentVariableA
push 0x415b74
push dword [0x41c9d8]
push 0x415b8c
lea eax, [ebp - 0x48]
mov edx, dword [0x416bcc]
mov edx, dword [edx]
call fcn.00404534
push dword [ebp - 0x48]
push 0x415b98
mov eax, 0x41c9dc
mov edx, 5
call fcn.004046ac
cmp dword [0x41c9cc], 0x8000
jne 0x415983
push 0x30
push 0x415b9c
push 0x415bb4
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, 0x41ca40
xor ecx, ecx
mov edx, 0x44
call fcn.0040318c
mov dword [0x41ca40], 0x44
mov dword [0x41ca6c], 1
mov word [0x41ca70], 0
mov eax, 0x41ca34
xor ecx, ecx
mov edx, 0xc
call fcn.0040318c
mov dword [0x41ca34], 0xc
mov dword [0x41ca3c], 0xffffffff
xor eax, eax
mov dword [0x41ca38], eax
push 0x41ca84
push 0x41ca40
push 0
push 0
push 0x20
push 0xffffffffffffffff
push 0x41ca34
push 0x41ca34
mov eax, dword [0x41c9dc]
call fcn.004047a8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x415a42
push 0xffffffffffffffff
mov eax, dword [0x41ca84]
push eax
call sub.kernel32.dll_WaitForSingleObject
push 0x41ca30
mov eax, dword [0x41ca84]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [0x41ca84]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x41ca88]
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 0x415ac2
inc eax
mov dword [ebp - 0x14], eax
mov dword [0x41ca20], 0
push dword [0x41ca24]
push 0x415b50
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 0x415a78
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 0x415b02
lea eax, [ebp - 0x50]
mov edx, 7
call fcn.00404360
lea eax, [ebp - 0x30]
mov edx, 7
call fcn.00404360
ret