Function at 0x42d598
Capabilities:
Create process on windows
Get common file path
Self delete

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x42d5a0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x42d953
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [esi + 4]
lea edx, [edx + edx*8]
mov eax, dword [0x443ca8]
mov eax, dword [eax + edx*4 + 8]
mov ecx, dword [0x443ca8]
mov edx, dword [ecx + edx*4 + 0x1c]
mov dword [ebp - 8], edx
mov ebx, 1
test eax, eax
jne 0x42d5ea
or edi, 0xffffffff
jmp 0x42d92d
shr eax, 1
inc ebx
test al, 1
je 0x42d5e7
cmp ebx, 0x1d
jle 0x42d5fd
mov edi, 0xfffffffe
jmp 0x42d92d
lea edi, [ebx + ebx*8]
mov eax, dword [0x443b18]
cmp byte [eax + edi*4 - 4], 0
je 0x42d750
cmp dword [ebp - 8], 1
jne 0x42d6b5
mov eax, dword [0x443b18]
mov edx, dword [eax + edi*4 - 0x1c]
lea eax, [ebp - 0x6c]
mov ecx, 0x42d970
call fcn.00407064
mov eax, dword [ebp - 0x6c]
mov dl, 1
call fcn.00414d78
test al, al
jne 0x42d67a
mov edi, 0xfffffffd
push 0x42d99c
lea eax, [ebp - 0x70]
mov edx, dword [esi + 4]
lea edx, [edx + edx*8]
mov ecx, dword [0x443ca8]
mov edx, dword [ecx + edx*4 + 4]
call fcn.00406ee4
push dword [ebp - 0x70]
push 0x42da00
lea eax, [esi + 0x10]
mov edx, 3
call fcn.004070ec
jmp 0x42d92d
mov eax, dword [0x443b18]
push dword [eax + edi*4 - 0x1c]
push 0x42da1c
lea eax, [ebp - 0x74]
mov edx, dword [esi + 4]
lea edx, [edx + edx*8]
mov ecx, dword [0x443ca8]
mov edx, dword [ecx + edx*4 + 4]
call fcn.00406ee4
push dword [ebp - 0x74]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004070ec
jmp 0x42d7f8
mov eax, dword [0x443b18]
mov edx, dword [eax + edi*4 - 0x1c]
lea eax, [ebp - 0x78]
mov ecx, 0x42da48
call fcn.00407064
mov eax, dword [ebp - 0x78]
mov dl, 1
call fcn.00414d78
test al, al
jne 0x42d715
mov edi, 0xfffffffd
push 0x42da74
lea eax, [ebp - 0x7c]
mov edx, dword [esi + 4]
lea edx, [edx + edx*8]
mov ecx, dword [0x443ca8]
mov edx, dword [ecx + edx*4 + 4]
call fcn.00406ee4
push dword [ebp - 0x7c]
push 0x42dad8
lea eax, [esi + 0x10]
mov edx, 3
call fcn.004070ec
jmp 0x42d92d
mov eax, dword [0x443b18]
push dword [eax + edi*4 - 0x1c]
push 0x42daf4
lea eax, [ebp - 0x80]
mov edx, dword [esi + 4]
lea edx, [edx + edx*8]
mov ecx, dword [0x443ca8]
mov edx, dword [ecx + edx*4 + 4]
call fcn.00406ee4
push dword [ebp - 0x80]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004070ec
jmp 0x42d7f8
mov eax, dword [0x443b18]
mov edx, dword [eax + edi*4 - 0x1c]
lea eax, [ebp - 0x84]
mov ecx, 0x42db20
call fcn.00407064
mov eax, dword [ebp - 0x84]
mov dl, 1
call fcn.00414d78
test al, al
jne 0x42d7bc
mov edi, 0xfffffffc
push 0x42db48
lea eax, [ebp - 0x88]
mov edx, dword [esi + 4]
lea edx, [edx + edx*8]
mov ecx, dword [0x443ca8]
mov edx, dword [ecx + edx*4 + 4]
call fcn.00406ee4
push dword [ebp - 0x88]
push 0x42dba8
lea eax, [esi + 0x10]
mov edx, 3
call fcn.004070ec
jmp 0x42d92d
mov eax, dword [0x443b18]
push dword [eax + edi*4 - 0x1c]
push 0x42dbc4
lea eax, [ebp - 0x8c]
mov edx, dword [esi + 4]
lea edx, [edx + edx*8]
mov ecx, dword [0x443ca8]
mov edx, dword [ecx + edx*4 + 4]
call fcn.00406ee4
push dword [ebp - 0x8c]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004070ec
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.004048f4
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 0
mov eax, dword [0x443b8c]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
push 0x14
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov ebx, eax
test ebx, ebx
jne 0x42d844
mov edi, 0xfffffffb
jmp 0x42d92d
push 1
push ebx
call sub.advapi32.dll_InitializeSecurityDescriptor
test eax, eax
jne 0x42d860
mov edi, 0xfffffffa
push ebx
call sub.kernel32.dll_LocalFree_1
jmp 0x42d92d
push 0
push 0
push 0xffffffffffffffff
push ebx
call sub.advapi32.dll_SetSecurityDescriptorDacl
test eax, eax
jne 0x42d880
mov edi, 0xfffffff9
push ebx
call sub.kernel32.dll_LocalFree_1
jmp 0x42d92d
mov dword [ebp - 0x68], 0xc
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], 0xffffffff
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 4]
call fcn.00406e8c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x42d8cd
call sub.kernel32.dll_GetLastError_2
mov edi, eax
jmp 0x42d92d
push 0xafc8
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
push ebx
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor edi, edi
push 0x42dbf4
lea eax, [ebp - 0x90]
mov edx, dword [esi + 4]
lea edx, [edx + edx*8]
mov ecx, dword [0x443ca8]
mov edx, dword [ecx + edx*4 + 4]
call fcn.00406ee4
push dword [ebp - 0x90]
push 0x42dc28
lea eax, [esi + 0x10]
mov edx, 3
call fcn.004070ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d95a
lea eax, [ebp - 0x90]
mov edx, 0xa
call fcn.00406488
lea eax, [ebp - 4]
call fcn.00406428
ret