Function at 0x4028d7
Capabilities:
Create process on windows
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x103c]
mov eax, 0x103c
call fcn.00405cf0
push 0xffffffffffffffff
push 0x413472
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x41a0d0]
xor eax, ebp
mov dword [ebp + 0x1038], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Enter_RunAtasinstByService
call fcn.00404898
pop ecx
push dword [0x41a004]
xor ebx, ebx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x40294f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RunAtasinstByService_failed_to_OpenFileMapping__error:_d
call fcn.00404898
pop ecx
pop ecx
jmp 0x402ade
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x10], esi
cmp esi, ebx
jne 0x40297c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RunAtasinstByService_failed_to_MapViewOfFile__error:_d
call fcn.00404898
pop ecx
pop ecx
jmp 0x402ac7
xor eax, eax
push 0xffe
mov word [ebp + 0x38], ax
lea eax, [ebp + 0x3a]
push ebx
push eax
call fcn.00405b00
mov edi, 0x800
push edi
push esi
call fcn.00405151
push eax
push esi
lea eax, [ebp + 0x38]
push edi
push eax
call fcn.00405e88
add esp, 0x24
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp]
call fcn.004028b5
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp]
call fcn.0040246d
push 0x22
pop ecx
cmp word [eax], cx
je 0x4029d8
or dword [ebp - 4], 0xffffffff
push ebx
push 1
jmp 0x402abf
xor esi, esi
inc esi
push esi
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ecx
push eax
lea ecx, [ebp]
call fcn.00402495
cmp eax, 0xffffffff
je 0x402ab9
dec eax
push eax
push esi
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x1c]
call fcn.0040286e
mov byte [ebp - 4], 1
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x402a14
lea eax, [ebp + 0x20]
push eax
call fcn.004015eb
pop ecx
test eax, eax
jne 0x402a3a
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x402a2b
lea eax, [ebp + 0x20]
push eax
push str.RunAtasinstByService_failed_to_ValidateFile:_s
call fcn.00404898
pop ecx
pop ecx
jmp 0x402aac
push 0x40
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00405b00
xor eax, eax
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x38]
push eax
push ebx
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x40], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, ebx
je 0x402a93
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp + 0x38]
push eax
push str.RunAtasinstByService_CreateProcess:_s__bRet:_d__error:_d
call fcn.00404898
add esp, 0x10
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.0040253c
or dword [ebp - 4], 0xffffffff
push ebx
push esi
lea ecx, [ebp]
call fcn.0040253c
cmp dword [ebp - 0x10], ebx
je 0x402ad5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Leave_RunAtasinstByService
call fcn.00404898
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1038]
xor ecx, ebp
call fcn.004058f9
add ebp, 0x103c
leave
ret