Function at 0x49a256
Capabilities:
Create process on windows
Create process suspended
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xdc
push esi
mov esi, ecx
lea ecx, [ebp - 0x64]
call fcn.0042d83a
lea eax, [ebp - 0x64]
push eax
lea ecx, [esi + 0x18]
lea edx, [ebp + 0x54]
call fcn.0040b914
test al, al
jne 0x49a28c
lea ecx, [ebp - 0x64]
call fcn.0042d65b
or eax, 0xffffffff
jmp 0x49a2fc
mov eax, dword [ebp + 0x54]
mov ecx, dword [eax + 0x168]
mov eax, dword [ebp - 8]
imul eax, eax, 0x70
add eax, dword [ecx]
push edi
push eax
call fcn.00440ed3
lea ecx, [esi + 0x28]
push eax
mov dword [ebp + 0x6c], eax
call fcn.0048ea75
lea ecx, [ebp + 0x6c]
call fcn.0048e75f
mov eax, dword [ebp + 0x54]
mov ecx, dword [eax + 0x28]
lea eax, [ebp - 0x64]
push eax
call fcn.0048e7f2
push dword [eax + 0xb0]
lea edi, [esi + 0x24]
mov ecx, edi
call fcn.0048ea75
mov ecx, edi
call fcn.0048ea50
mov ecx, eax
call fcn.00472429
test al, al
je 0x49a302
or dword [esi + 4], 0xffffffff
lea ecx, [ebp - 0x64]
mov byte [esi], 1
call fcn.0042d65b
or eax, 0xffffffff
pop edi
pop esi
add ebp, 0x78
leave
ret
push ebx
mov ecx, edi
call fcn.0048ea50
push 0x5c
push eax
call sub.MSVCRT.dll_wcsrchr
mov edi, eax
xor ebx, ebx
pop ecx
pop ecx
cmp edi, ebx
jne 0x49a32c
or ebx, 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0042d65b
mov eax, ebx
pop ebx
jmp 0x49a2fb
lea eax, [edi + 2]
push eax
lea ecx, [esi + 0x24]
call fcn.0048ea50
sub edi, eax
sar edi, 1
push edi
push ebx
lea ecx, [esi + 0x24]
call fcn.0048ea50
push eax
lea ecx, [ebp + 0x70]
call fcn.0048e9fb
mov ecx, eax
call fcn.0048ea50
push eax
lea eax, [ebp + 0x6c]
push str._s_s
push eax
call fcn.0048f08b
add esp, 0x10
push dword [eax]
lea ecx, [esi + 0x20]
call fcn.0048ea75
lea ecx, [ebp + 0x6c]
call fcn.0048e75f
lea ecx, [ebp + 0x70]
call fcn.0048e75f
lea ecx, [esi + 0x28]
call fcn.0048ea50
push eax
mov edi, 0x4fa324
lea eax, [ebp + 0x68]
push edi
push eax
call fcn.0048f08b
add esp, 0xc
lea ecx, [esi + 0x20]
call fcn.0048ea50
push eax
lea eax, [ebp + 0x58]
push edi
push eax
call fcn.0048f08b
add esp, 0xc
lea ecx, [ebp + 0x58]
call fcn.0048ea50
push eax
lea ecx, [ebp + 0x68]
call fcn.0048ea50
push eax
lea ecx, [esi + 0x1c]
call fcn.0048ea50
push eax
lea eax, [ebp + 0x74]
push eax
call fcn.0048f08b
add esp, 0x10
lea ecx, [ebp + 0x74]
call fcn.0048ea50
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.00499bef
mov ecx, eax
call fcn.0048ea50
push eax
lea eax, [ebp + 0x70]
push 0x4ffde4
push eax
call fcn.0048f08b
add esp, 0x10
push dword [eax]
lea ecx, [ebp + 0x74]
call fcn.0048ea75
lea ecx, [ebp + 0x70]
call fcn.0048e75f
lea ecx, [ebp + 0x6c]
call fcn.0048e75f
lea eax, [ebp + 0x60]
push eax
call fcn.00499bef
lea ecx, [esi + 0x20]
call fcn.0048ea50
push eax
lea eax, [ebp + 0x70]
push str._s.log
push eax
call fcn.0048f08b
add esp, 0xc
push dword [eax]
lea edi, [esi + 0x2c]
mov ecx, edi
call fcn.0048ea75
lea ecx, [ebp + 0x70]
call fcn.0048e75f
mov ecx, edi
call fcn.0047277e
mov ecx, edi
call fcn.0048ea50
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push eax
call edi
lea ecx, [esi + 0x20]
call fcn.0048ea50
push eax
call edi
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
lea ecx, [esi + 0x2c]
call fcn.0048ea50
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 2
push 1
push ebx
lea eax, [ebp + 0x5c]
push eax
call edi
push eax
push dword [esi + 0x30]
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push 2
push 1
push ebx
lea eax, [ebp + 0x64]
push eax
call edi
push eax
push dword [esi + 0x30]
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
lea ecx, [esi + 0x2c]
call fcn.0048ea50
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
push 0x44
mov dword [esi + 0x30], eax
lea eax, [ebp]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
xor eax, eax
lea edi, [ebp + 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x64]
push 0xfffffffffffffff6
mov dword [ebp], 0x44
mov dword [ebp + 0x3c], eax
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [ebp + 0x38], eax
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x8004000
push 1
push ebx
push ebx
lea ecx, [ebp + 0x74]
mov dword [ebp + 0x2c], 0x100
mov byte [esi], 1
call fcn.0048ea50
push eax
lea ecx, [ebp + 0x60]
call fcn.0048ea50
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
push dword [ebp + 0x5c]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x49a5b6
call edi
push dword [ebp + 0x64]
call edi
mov eax, dword [ebp + 0x4c]
push dword [ebp + 0x48]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x44]
mov dword [esi + 8], eax
call edi
lea ecx, [ebp + 0x60]
call fcn.0048e75f
lea ecx, [ebp + 0x74]
call fcn.0048e75f
lea ecx, [ebp + 0x58]
call fcn.0048e75f
lea ecx, [ebp + 0x68]
call fcn.0048e75f
jmp 0x49a31f
call edi
push dword [ebp + 0x64]
call edi
push dword [esi + 0x30]
call edi
or dword [esi + 0x30], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
jmp 0x49a591