Function at 0x4076a0
Capabilities:
Create process on windows
Set current directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
mov ecx, 0x11
push esi
mov esi, 0x46addc
push edi
lea edi, [ebp - 0xd0]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x46ae20
lea edi, [ebp - 0x8c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
push 0x46ae90
push dword [ebp + 8]
call fcn.004041f6
add esp, 0xc
test eax, eax
je 0x4076eb
pop edi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
mov edi, dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
lea ecx, [ebp - 0x7c]
push 0xc
push 0
mov dword [edi + 0x2de8], 0
push ecx
call fcn.0046071c
mov dword [ebp - 0x7c], 0xc
mov dword [ebp - 0x74], 1
add esp, 0xc
cmp dword [0x474f2c], 0
jne 0x40773e
push 0
lea edx, [ebp - 0x7c]
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [0x474f2c], eax
cmp dword [0x474f30], 0
jne 0x40775c
push 0
lea ecx, [ebp - 0x7c]
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [0x474f30], eax
cmp dword [0x474f2c], 0
jne 0x40776a
mov esi, 1
cmp dword [0x474f30], 0
jne 0x407779
or esi, 2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
or esi, eax
test esi, esi
je 0x4077ab
push 0
push dword [edi + 0x2de4]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov eax, esi
mov dword [0x47a008], 0x46ae30
mov dword [0x47a004], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x70c]
mov edx, dword [0x474f2c]
mov dword [ecx + 0xc8], edx
mov ecx, dword [esi + 0x710]
mov edx, dword [0x474f2c]
mov dword [ecx + 0xc8], edx
mov ecx, dword [esi + 0x70c]
mov edx, dword [0x474f30]
mov dword [ecx + 0xcc], edx
mov ecx, dword [esi + 0x710]
mov edx, dword [0x474f30]
mov dword [ecx + 0xcc], edx
lea edx, [esi + 0xfb4]
push edx
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov ecx, dword [esi + 0xea8]
lea eax, [ebp - 0x68]
push 0x46ae90
mov edx, dword [esi + 0xeac]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], edx
push eax
call fcn.004605d0
mov ecx, dword [ebp - 0x70]
mov edx, 0x46aea0
push dword [ecx]
lea ecx, [ebp - 0x18]
push edx
push ecx
call fcn.00460790
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x68]
push edx
push ecx
call fcn.00460190
mov edx, dword [ebp - 0x6c]
mov ecx, 0x46aea0
push dword [edx]
lea edx, [ebp - 0x18]
push ecx
push edx
call fcn.00460790
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x68]
push ecx
push edx
call fcn.00460190
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0xd0], 0x44
add esp, 0x30
lea edx, [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0x68]
push edx
push 0
push 0
push 0x8000090
push 1
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x4078bf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
mov eax, esi
mov dword [0x47a008], 0x46ae4c
mov dword [0x47a004], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xfa
push dword [0x474f30]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov esi, eax
test eax, eax
je 0x407914
mov dword [0x47a004], esi
mov dword [0x47a008], 0x46ae70
push edi
call fcn.00403bf0
push 0xbb8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
add esp, 4
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x8c]
xor eax, eax
mov dword [edi + 0x2de4], ebx
mov esi, dword [ebp - 0x84]
mov dword [edi + 0x2de8], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret