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, 0xb
push 0
push 0
dec ecx
jne 0x4152d0
push ebx
push esi
push edi
mov eax, dword [0x416c14]
mov byte [eax], 1
mov eax, 0x414e50
call fcn.00405f6c
xor eax, eax
push ebp
push 0x415b2a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x416aa0]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x18]
call fcn.004063f0
mov edx, dword [ebp - 0x18]
mov eax, 0x41c9e8
call fcn.00404390
lea edx, [ebp - 0x1c]
mov eax, dword [0x41c9e8]
call fcn.00406304
mov edx, dword [ebp - 0x1c]
mov eax, 0x41c9e8
call fcn.00404390
mov byte [0x41c9e4], 1
push 0xa
push 0x415b3c
mov eax, dword [0x4197f0]
push eax
call sub.kernel32.dll_FindResourceA
mov edi, eax
push edi
mov eax, dword [0x4197f0]
push eax
call sub.kernel32.dll_LoadResource
mov dword [0x41c9f4], eax
cmp dword [0x41c9f4], 0
je 0x415489
mov byte [0x41c9e4], 1
mov eax, dword [0x41c9f4]
push eax
call sub.kernel32.dll_LockResource
mov ebx, eax
push edi
mov eax, dword [0x4197f0]
push eax
call sub.kernel32.dll_SizeofResource
call fcn.00402dc4
mov dword [0x41c9f8], eax
mov esi, dword [0x41c9f8]
mov eax, 0x415b4c
call fcn.0040cb18
call fcn.0040ca44
mov dword [0x41ca0c], 0
mov dword [0x41ca10], 0
push edi
mov eax, dword [0x4197f0]
push eax
call sub.kernel32.dll_SizeofResource
xor edx, edx
mov dword [0x41ca14], eax
mov dword [0x41ca18], edx
jmp 0x41541a
mov edx, 0x41c9fc
mov eax, ebx
mov ecx, 0x10
call fcn.00402f80
mov eax, 0x41c9fc
call fcn.0040cb94
mov edx, esi
mov eax, 0x41c9fc
mov ecx, 0x10
call fcn.00402f80
add dword [0x41ca0c], 0x10
adc dword [0x41ca10], 0
add ebx, 0x10
add esi, 0x10
mov eax, dword [0x41ca14]
mov edx, dword [0x41ca18]
sub eax, dword [0x41ca0c]
sbb edx, dword [0x41ca10]
cmp edx, 0
jne 0x41543e
cmp eax, 0x10
jae 0x4153da
jmp 0x415440
jge 0x4153da
call fcn.0040cb88
mov eax, dword [0x41c9f8]
xor edx, edx
add eax, dword [0x41ca14]
adc edx, dword [0x41ca18]
sub eax, 1
sbb edx, 0
mov ebx, eax
movzx ebx, byte [ebx]
movzx eax, bl
mov ecx, dword [0x41ca14]
sub ecx, eax
dec ecx
mov edx, 0x41c9c4
mov eax, dword [0x41c9f8]
call fcn.00402f80
mov eax, dword [0x41c9f4]
push eax
call sub.kernel32.dll_FreeResource
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.004077f4
mov edx, dword [ebp - 0x20]
mov eax, 0x41ca44
call fcn.00404390
call fcn.00403080
mov eax, 0x2b
call fcn.004030a8
mov ebx, eax
add ebx, 0x2f
mov eax, dword [0x41ca44]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4154cf
sub eax, 4
mov eax, dword [eax]
cmp eax, 8
jne 0x4154f0
lea eax, [ebp - 0x28]
mov edx, 0x41c9c4
call fcn.004045a0
mov edx, dword [ebp - 0x28]
mov eax, 0x41ca44
call fcn.004045e4
jmp 0x415515
mov eax, ebx
add al, 0xd0
sub al, 0xa
jb 0x4154fe
add al, 0xf9
sub al, 0x1a
jae 0x415515
lea eax, [ebp - 0x2c]
mov edx, ebx
call fcn.00404524
mov edx, dword [ebp - 0x2c]
mov eax, 0x41ca44
call fcn.004045e4
mov eax, dword [0x41ca44]
call fcn.004045d8
cmp eax, 0xc
jne 0x4154ac
lea eax, [ebp - 0x30]
mov ecx, dword [0x41ca44]
mov edx, dword [0x41c9e8]
call fcn.00404630
mov eax, dword [ebp - 0x30]
call fcn.004061bc
test al, al
jne 0x415489
mov eax, 0x41ca44
mov ecx, dword [0x41ca44]
mov edx, dword [0x41c9e8]
call fcn.00404630
mov eax, 0x41c9ec
mov edx, dword [0x41ca44]
call fcn.00404390
push 0xa
push 0x415b68
mov eax, dword [0x4197f0]
push eax
call sub.kernel32.dll_FindResourceA
mov edi, eax
push edi
mov eax, dword [0x4197f0]
push eax
call sub.kernel32.dll_LoadResource
mov dword [0x41c9f4], eax
cmp dword [0x41c9f4], 0
je 0x415711
cmp byte [0x41c9e4], 0
jne 0x4155ad
xor eax, eax
jmp 0x4155af
mov al, 1
mov byte [0x41c9e4], al
mov eax, dword [0x41c9f4]
push eax
call sub.kernel32.dll_LockResource
mov ebx, eax
push edi
mov eax, dword [0x4197f0]
push eax
call sub.kernel32.dll_SizeofResource
call fcn.00402dc4
mov dword [0x41c9f8], eax
mov esi, dword [0x41c9f8]
mov eax, 0x415b4c
call fcn.0040cb18
call fcn.0040ca44
mov dword [0x41ca0c], 0
mov dword [0x41ca10], 0
push edi
mov eax, dword [0x4197f0]
push eax
call sub.kernel32.dll_SizeofResource
xor edx, edx
mov dword [0x41ca14], eax
mov dword [0x41ca18], edx
jmp 0x41565c
mov edx, 0x41c9fc
mov eax, ebx
mov ecx, 0x10
call fcn.00402f80
mov eax, 0x41c9fc
call fcn.0040cb94
mov edx, esi
mov eax, 0x41c9fc
mov ecx, 0x10
call fcn.00402f80
add dword [0x41ca0c], 0x10
adc dword [0x41ca10], 0
add ebx, 0x10
add esi, 0x10
mov eax, dword [0x41ca14]
mov edx, dword [0x41ca18]
sub eax, dword [0x41ca0c]
sbb edx, dword [0x41ca10]
cmp edx, 0
jne 0x415680
cmp eax, 0x10
jae 0x41561c
jmp 0x415682
jge 0x41561c
call fcn.0040cb88
mov eax, dword [0x41c9f8]
xor edx, edx
add eax, dword [0x41ca14]
adc edx, dword [0x41ca18]
sub eax, 1
sbb edx, 0
mov ebx, eax
movzx ebx, byte [ebx]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [0x41c9ec]
call fcn.004047a8
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
push 0
push 0x41ca1c
movzx eax, bl
mov edx, dword [0x41ca14]
sub edx, eax
dec edx
push edx
mov eax, dword [0x41c9f8]
push eax
mov edi, esi
push edi
call sub.kernel32.dll_WriteFile_1
push edi
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x41c9f4]
push eax
call sub.kernel32.dll_FreeResource
push 0x102
mov eax, dword [0x41c9ec]
call fcn.004047a8
push eax
call sub.kernel32.dll_SetFileAttributesA
cmp byte [0x41c9e4], 0
je 0x415b02
lea eax, [ebp - 0x34]
call fcn.00414db8
mov edx, dword [ebp - 0x34]
mov eax, 0x41ca3c
call fcn.00404390
push dword [0x41ca3c]
push 0x415b78
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x38]
mov eax, 6
call fcn.00407844
push dword [ebp - 0x38]
push 0x415b84
mov eax, 0xff
call fcn.004030a8
lea ecx, [ebp - 0x3c]
mov edx, 2
call fcn.0040781c
push dword [ebp - 0x3c]
mov eax, 0x41ca38
mov edx, 5
call fcn.004046ac
mov eax, dword [0x41ca38]
call fcn.00407ce4
mov eax, dword [0x41ca38]
call fcn.004047a8
push eax
push 0x415b88
call sub.kernel32.dll_SetEnvironmentVariableA
mov dl, 1
mov eax, dword [0x413be0]
call fcn.00413c7c
mov dword [0x41ca20], eax
mov eax, dword [0x41ca20]
mov byte [eax + 4], 1
mov eax, dword [0x41ca20]
mov byte [eax + 5], 1
mov eax, dword [0x41ca20]
add eax, 8
mov edx, 0x415b4c
call fcn.00404390
xor eax, eax
mov dword [0x41ca30], eax
mov byte [0x41c9e4], 1
xor eax, eax
push ebp
push 0x41581f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x415b98
push 0xa
mov ecx, dword [0x416b30]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4106e4]
call fcn.00412e90
mov dword [0x41ca30], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x415830
cmp byte [0x41c9e4], 0
je 0x41597e
mov dl, 1
mov eax, dword [0x410668]
call fcn.00403758
mov dword [0x41ca24], eax
mov dl, 1
mov eax, dword [0x410668]
call fcn.00403758
mov dword [0x41ca28], eax
xor eax, eax
push ebp
push 0x415977
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x41ca30]
mov eax, dword [0x41ca20]
call fcn.00413dd4
mov eax, dword [0x41ca20]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x415955
inc eax
mov dword [ebp - 0x14], eax
mov dword [0x41ca34], 0
mov dl, 1
mov eax, dword [0x410668]
call fcn.00403758
mov dword [0x41ca2c], eax
xor eax, eax
push ebp
push 0x41593f
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x40]
mov eax, dword [0x41ca20]
mov eax, dword [eax + 0x20]
mov edx, dword [0x41ca34]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x40]
mov ecx, dword [0x41ca2c]
mov eax, dword [0x41ca20]
call fcn.00413d00
push dword [0x41ca38]
push 0x415ba8
lea ecx, [ebp - 0x48]
mov eax, dword [0x41ca20]
mov eax, dword [eax + 0x20]
mov edx, dword [0x41ca34]
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 [0x41ca2c]
call fcn.00412cd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415946
mov eax, dword [0x41ca2c]
call fcn.00403788
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41597e
mov eax, dword [0x41ca28]
call fcn.00403788
mov eax, dword [0x41ca24]
call fcn.00403788
ret
mov eax, dword [0x41ca30]
call fcn.00403788
lea eax, [ebp - 0x4c]
call fcn.00406500
mov eax, dword [ebp - 0x4c]
call fcn.004047a8
push eax
push 0x415bac
call sub.kernel32.dll_SetEnvironmentVariableA
push 0x415bbc
push dword [0x41c9ec]
push 0x415bd4
lea eax, [ebp - 0x50]
mov edx, dword [0x416bd0]
mov edx, dword [edx]
call fcn.00404534
push dword [ebp - 0x50]
push 0x415be0
mov eax, 0x41c9f0
mov edx, 5
call fcn.004046ac
mov eax, 0x41ca4c
xor ecx, ecx
mov edx, 0x44
call fcn.0040318c
mov dword [0x41ca4c], 0x44
mov dword [0x41ca78], 1
mov word [0x41ca7c], 0
push 0x41ca90
push 0x41ca4c
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [0x41c9f0]
call fcn.004047a8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x415a67
push 0xffffffffffffffff
mov eax, dword [0x41ca90]
push eax
call sub.kernel32.dll_WaitForSingleObject
push 0x41ca48
mov eax, dword [0x41ca90]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [0x41ca90]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x41ca94]
push eax
call sub.kernel32.dll_CloseHandle
mov ebx, dword [0x41ca48]
mov eax, dword [0x41c9ec]
call fcn.004047a8
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [0x41ca20]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x415ae7
inc eax
mov dword [ebp - 0x14], eax
mov dword [0x41ca34], 0
push dword [0x41ca38]
push 0x415ba8
lea ecx, [ebp - 0x58]
mov eax, dword [0x41ca20]
mov eax, dword [eax + 0x20]
mov edx, dword [0x41ca34]
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 [0x41ca34]
dec dword [ebp - 0x14]
jne 0x415a9d
mov eax, dword [0x41ca20]
call fcn.00403788
mov eax, dword [0x41ca38]
call fcn.00407d00
mov eax, dword [0x416aa0]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415b31
lea eax, [ebp - 0x58]
mov edx, 0xd
call fcn.00404360
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404360
ret