Function at 0x119aa
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
push esi
push edi
mov byte [ebp - 0x138], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x137]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov byte [ebp - 0xb], al
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x11a0a
push 0x11950
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, 0xc0000001
jmp 0x11f81
mov eax, dword [ebp - 8]
add eax, 0x138
push eax
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx ecx, al
test ecx, ecx
jne 0x11a37
push 0x11960
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, 0xc0000001
jmp 0x11f81
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x138]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x14
push ecx
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx edx, al
test edx, edx
jne 0x11a6e
push 0x11974
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, 0xc0000001
jmp 0x11f81
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
jne 0x11a9f
push 0x11984
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, 0xc0000001
jmp 0x11f81
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
add eax, 0x24
push eax
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx ecx, al
test ecx, ecx
jne 0x11ad2
push 0x11998
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, 0xc0000001
jmp 0x11f81
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], ecx
push 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByPointer]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x34]
push ecx
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlVolumeDeviceToDosName]
mov ecx, dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
push 1
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x140]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlUnicodeStringToAnsiString]
push 1
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlUnicodeStringToAnsiString]
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x144]
mov cl, byte [eax]
mov byte [ebp - 0x149], cl
inc dword [ebp - 0x144]
cmp byte [ebp - 0x149], 0
jne 0x11b57
mov edx, dword [ebp - 0x144]
sub edx, dword [ebp - 0x148]
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x154], edx
lea ecx, [ebp - 0x138]
add ecx, 0xffffffff
mov dword [ebp - 0x158], ecx
mov edx, dword [ebp - 0x158]
mov al, byte [edx + 1]
mov byte [ebp - 0x159], al
inc dword [ebp - 0x158]
cmp byte [ebp - 0x159], 0
jne 0x11ba1
mov edi, dword [ebp - 0x158]
mov esi, dword [ebp - 0x150]
mov edx, dword [ebp - 0x154]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x164], ecx
mov edx, dword [ebp - 0x160]
mov al, byte [edx]
mov byte [ebp - 0x165], al
inc dword [ebp - 0x160]
cmp byte [ebp - 0x165], 0
jne 0x11bf4
mov ecx, dword [ebp - 0x160]
sub ecx, dword [ebp - 0x164]
mov edx, dword [ebp - 0x164]
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x170], ecx
lea eax, [ebp - 0x14]
add eax, 0xffffffff
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x175], dl
inc dword [ebp - 0x174]
cmp byte [ebp - 0x175], 0
jne 0x11c3b
mov edi, dword [ebp - 0x174]
mov esi, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x170]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x140]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlFreeAnsiString]
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlFreeAnsiString]
lea eax, [ebp - 0x138]
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
inc ecx
mov dword [ebp - 0x180], ecx
mov edx, dword [ebp - 0x17c]
mov al, byte [edx]
mov byte [ebp - 0x181], al
inc dword [ebp - 0x17c]
cmp byte [ebp - 0x181], 0
jne 0x11ca9
mov ecx, dword [ebp - 0x17c]
sub ecx, dword [ebp - 0x180]
mov dword [ebp - 0x188], ecx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x18c], edx
mov eax, dword [ebp - 0x18c]
inc eax
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x18c]
mov dl, byte [ecx]
mov byte [ebp - 0x191], dl
inc dword [ebp - 0x18c]
cmp byte [ebp - 0x191], 0
jne 0x11cee
mov eax, dword [ebp - 0x18c]
sub eax, dword [ebp - 0x190]
mov dword [ebp - 0x198], eax
mov ecx, dword [ebp - 0x188]
add ecx, dword [ebp - 0x198]
cmp ecx, 0x100
jae 0x11e71
lea edx, [ebp - 0x14]
mov dword [ebp - 0x19c], edx
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x1a0], eax
mov ecx, dword [ebp - 0x19c]
mov dl, byte [ecx]
mov byte [ebp - 0x1a1], dl
inc dword [ebp - 0x19c]
cmp byte [ebp - 0x1a1], 0
jne 0x11d4a
mov eax, dword [ebp - 0x19c]
sub eax, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 0x1a0]
mov dword [ebp - 0x1a8], ecx
mov dword [ebp - 0x1ac], eax
mov edx, dword [ebp + 0xc]
add edx, 0xffffffff
mov dword [ebp - 0x1b0], edx
mov eax, dword [ebp - 0x1b0]
mov cl, byte [eax + 1]
mov byte [ebp - 0x1b1], cl
inc dword [ebp - 0x1b0]
cmp byte [ebp - 0x1b1], 0
jne 0x11d91
mov edi, dword [ebp - 0x1b0]
mov esi, dword [ebp - 0x1a8]
mov edx, dword [ebp - 0x1ac]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x138]
mov dword [ebp - 0x1b8], eax
mov ecx, dword [ebp - 0x1b8]
mov dword [ebp - 0x1bc], ecx
mov edx, dword [ebp - 0x1b8]
mov al, byte [edx]
mov byte [ebp - 0x1bd], al
inc dword [ebp - 0x1b8]
cmp byte [ebp - 0x1bd], 0
jne 0x11de7
mov ecx, dword [ebp - 0x1b8]
sub ecx, dword [ebp - 0x1bc]
mov edx, dword [ebp - 0x1bc]
mov dword [ebp - 0x1c4], edx
mov dword [ebp - 0x1c8], ecx
mov eax, dword [ebp + 0xc]
add eax, 0xffffffff
mov dword [ebp - 0x1cc], eax
mov ecx, dword [ebp - 0x1cc]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x1cd], dl
inc dword [ebp - 0x1cc]
cmp byte [ebp - 0x1cd], 0
jne 0x11e2e
mov edi, dword [ebp - 0x1cc]
mov esi, dword [ebp - 0x1c4]
mov eax, dword [ebp - 0x1c8]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x11f7f
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1d4], ecx
mov edx, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d8], edx
mov eax, dword [ebp - 0x1d4]
mov cl, byte [eax]
mov byte [ebp - 0x1d9], cl
inc dword [ebp - 0x1d4]
cmp byte [ebp - 0x1d9], 0
jne 0x11e86
mov edx, dword [ebp - 0x1d4]
sub edx, dword [ebp - 0x1d8]
mov eax, dword [ebp - 0x1d8]
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1e4], edx
mov ecx, dword [ebp + 0xc]
add ecx, 0xffffffff
mov dword [ebp - 0x1e8], ecx
mov edx, dword [ebp - 0x1e8]
mov al, byte [edx + 1]
mov byte [ebp - 0x1e9], al
inc dword [ebp - 0x1e8]
cmp byte [ebp - 0x1e9], 0
jne 0x11ecd
mov edi, dword [ebp - 0x1e8]
mov esi, dword [ebp - 0x1e0]
mov edx, dword [ebp - 0x1e4]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0x1f0]
inc ecx
mov dword [ebp - 0x1f4], ecx
mov edx, dword [ebp - 0x1f0]
mov al, byte [edx]
mov byte [ebp - 0x1f5], al
inc dword [ebp - 0x1f0]
cmp byte [ebp - 0x1f5], 0
jne 0x11f21
mov ecx, dword [ebp - 0x1f0]
sub ecx, dword [ebp - 0x1f4]
mov dword [ebp - 0x1fc], ecx
mov ecx, 0x100
sub ecx, dword [ebp - 0x1fc]
sub ecx, 1
lea esi, [ebp - 0x138]
mov edi, dword [ebp + 0xc]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x100], 0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8