Function at 0x287e1
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x24]
cmp edi, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 2], bl
mov esi, 0x4fb80
jne 0x3213f
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0xc], ebx
call fcn.0005a542
test eax, eax
je 0x3232d
push dword [ebp + 0x10]
lea eax, [ebp - 0x7c]
push dword [ebp - 0x10]
push eax
call fcn.0005a88b
test eax, eax
je 0x28e78
push 0x28e96
call sub.ntoskrnl.exe_wcslen
mov edi, eax
shl edi, 1
mov dword [ebp - 0x20], edi
mov dword [esp], 0x28eb6
call sub.ntoskrnl.exe_wcslen
pop ecx
mov ecx, dword [ebp + 8]
movzx esi, word [ecx]
shl eax, 1
sub esi, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
movzx eax, word [eax]
add eax, dword [0x51848]
add esi, edi
lea edi, [eax + esi + 4]
push edi
call fcn.00026e0b
mov ebx, eax
test ebx, ebx
je 0x28e78
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x32170
push ebx
call fcn.00026d9e
mov edi, dword [sym.imp.ntoskrnl.exe_KeInitializeSpinLock]
lea eax, [ebx + 0x100]
push eax
call edi
xor eax, eax
xor ecx, ecx
cmp dword [ebp - 0x7c], ecx
mov dword [ebx + 0x1ac], ecx
setne al
mov dword [ebx + 0x1a0], ecx
dec eax
mov dword [ebx + 0xa8], eax
lea eax, [ebx + 0x198]
mov dword [eax], eax
mov dword [ebx + 0x19c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebx + 0x1a4], eax
lea eax, [ebx + 0x1b0]
push eax
mov dword [ebx + 0x1a8], ecx
call edi
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax + 0x14]
mov dword [ebx + 8], ecx
mov ecx, dword [eax + 0x18]
mov dword [ebx + 0xc], ecx
mov ecx, dword [eax + 0x20]
mov dword [ebx + 0x14], ecx
mov ecx, dword [eax + 0x2c]
mov dword [ebx + 0x20], ecx
mov ecx, dword [eax]
mov dword [ebx + 4], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebx + 0x18], ecx
mov ecx, dword [eax + 0x28]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [eax + 0x34]
mov dword [ebx + 0x28], ecx
mov ecx, dword [eax + 0x38]
mov dword [ebx + 0x2c], ecx
mov ecx, dword [eax + 0x3c]
mov dword [ebx + 0x30], ecx
mov ecx, dword [eax + 0x64]
mov dword [ebx + 0x38], ecx
mov ecx, dword [eax + 0x68]
mov dword [ebx + 0x3c], ecx
mov ecx, dword [eax + 0x40]
mov dword [ebx + 0x34], ecx
mov ecx, dword [eax + 0x60]
mov dword [ebx + 0x40], ecx
mov ecx, dword [eax + 0x6c]
mov dword [ebx + 0x44], ecx
mov ecx, dword [eax + 0x78]
mov dword [ebx + 0x48], ecx
mov ecx, dword [eax + 0x7c]
mov dword [ebx + 0x4c], ecx
mov ecx, dword [eax + 0x88]
mov dword [ebx + 0x178], ecx
xor edi, edi
mov dword [ebx + 0x84], edi
mov ecx, dword [eax + 4]
sub ecx, 0x14
mov dword [ebx + 0xac], ecx
mov ecx, dword [eax + 8]
mov dword [ebx + 0xb0], ecx
mov ecx, dword [eax + 0x44]
shr ecx, 1
and ecx, 1
mov dword [ebx + 0xb4], ecx
mov ecx, dword [eax + 0x84]
mov dword [ebx + 0x148], ecx
test byte [eax + 0x44], 0x20
jne 0x32195
push 4
pop edx
test byte [eax + 0x44], dl
jne 0x321a5
test byte [eax + 0x44], 8
jne 0x321b0
mov ecx, dword [eax + 0x80]
mov dword [ebx + 0x140], ecx
mov ecx, dword [eax + 0x48]
mov dword [ebx + 0xb8], ecx
mov ecx, dword [eax + 0x4c]
mov dword [ebx + 0xbc], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebx + 0xd8], ecx
mov ecx, dword [eax + 0x44]
inc dword [ebx + 0xd0]
mov dword [ebx + 0xe0], ecx
mov byte [ebx + 0x92], 1
mov byte [ebx + 0x93], 0
mov dword [ebx + 0x98], edi
mov dword [ebx + 0x9c], edi
mov ecx, dword [eax + 0x50]
mov dword [ebx + 0x10c], ecx
mov ecx, dword [eax + 0x54]
mov dword [ebx + 0x110], ecx
mov ecx, dword [eax + 0x70]
mov dword [ebx + 0x114], ecx
mov ecx, dword [eax + 0x74]
mov dword [ebx + 0x118], ecx
mov ecx, dword [eax + 0x58]
mov dword [ebx + 0x104], ecx
mov eax, dword [eax + 0x5c]
mov dword [ebx + 0x108], eax
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x12c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x130], eax
mov al, byte [ebp - 0x30]
mov byte [ebx + 0x134], al
mov al, byte [ebp - 0x2f]
mov byte [ebx + 0x135], al
mov al, byte [ebp - 0x2e]
mov byte [ebx + 0x13b], al
lea eax, [ebx + 0xc0]
mov dword [eax], edx
mov ecx, dword [0x51890]
cmp ecx, edx
jb 0x321d8
mov eax, dword [0x51848]
mov ecx, dword [ebp + 0x10]
add eax, ebx
mov dword [ebx + 0xe8], eax
lea eax, [ebx + 0xe4]
and word [eax], 0
mov dx, word [ecx]
push ecx
add dx, 2
lea edi, [ebx + 0xe6]
push eax
mov word [edi], dx
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
movzx eax, word [edi]
add eax, dword [0x51848]
mov word [ebx + 0xf4], si
add esi, 2
mov word [ebx + 0xf6], si
add eax, ebx
mov esi, 0x4fb80
mov ecx, esi
mov dword [ebx + 0xf8], eax
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x18]
shr eax, 1
lea eax, [ecx + eax*2]
push eax
call fcn.00029263
mov dl, byte [ebp - 1]
mov ecx, esi
mov dword [ebx + 0x17c], eax
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov edi, dword [ebx + 0xf8]
mov ecx, dword [ebp - 0x20]
mov eax, ecx
shr ecx, 2
mov esi, 0x28eca
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx ecx, word [eax]
sub ecx, dword [ebp - 0x18]
mov esi, dword [eax + 4]
add esi, dword [ebp - 0x18]
mov edi, dword [ebx + 0xf8]
add edi, dword [ebp - 0x20]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x70]
mov dword [ebx + 0x50], eax
mov ecx, dword [ebp - 0x70]
lea esi, [ebp - 0x6c]
lea edi, [ebx + 0x54]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x70]
lea esi, [ebp - 0x58]
lea edi, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x7c], eax
cmp dword [ebp - 0x44], 0
jne 0x28e61
push dword [ebx + 0xb0]
mov byte [ebx + 0x13a], 1
call fcn.00025ea7
mov dword [ebx + 0x7c], eax
cmp dword [ebp + 0xc], 0
jne 0x321f3
mov al, byte [ebp - 0x40]
push dword [ebp + 0x10]
mov byte [ebx + 0x80], al
mov al, byte [ebp - 0x3f]
mov byte [ebx + 0x81], al
mov al, byte [ebx + 0xb4]
and al, 1
mov byte [ebp + 8], al
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
xor esi, esi
mov word [ebx + 0x82], si
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.0005ac15
cmp eax, esi
mov dword [ebp - 8], eax
je 0x28e6d
mov eax, dword [ebp + 0x28]
mov dword [ebx + 0x8c], eax
mov al, byte [ebp + 0x2c]
mov byte [ebx + 0x90], al
mov al, byte [ebp + 0x30]
mov byte [ebx + 0x91], al
mov eax, dword [sym.imp.ntoskrnl.exe_KeNumberProcessors]
movsx eax, byte [eax]
mov dword [ebx + 0x180], eax
mov eax, dword [ebp + 0x24]
cmp eax, esi
jne 0x28c47
push esi
push 1
push 0x51aa8
call dword [sym.imp.ntoskrnl.exe_RtlFindClearBitsAndSet]
cmp eax, 0xffffffff
je 0x28e6d
mov ecx, dword [0x4fe8c]
inc eax
shl ecx, 0x10
or eax, ecx
mov dword [ebx + 0x88], eax
cmp dword [ebp - 0x14], esi
jbe 0x28e85
xor eax, eax
test esi, esi
sete al
push 0
mov dword [ebp + 0x2c], eax
push dword [ebp + 0x2c]
mov eax, dword [ebp - 8]
lea eax, [eax + esi*8]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
bswap ecx
push ecx
bswap eax
push eax
push ebx
push dword [ebp + 0x20]
lea eax, [ebp - 0x7c]
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push eax
call fcn.00027825
mov edi, eax
test edi, edi
je 0x32261
push dword [ebp + 0x2c]
xor eax, eax
mov ax, word [edi + 0x16]
push eax
push dword [ebp - 0x10]
call fcn.0002912f
test eax, eax
jl 0x3223d
cmp dword [ebp + 0x2c], 0
je 0x28cb6
mov dword [ebp - 0x1c], edi
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x28c56
push dword [ebp - 0x10]
call fcn.0005a6ab
mov esi, 0x4fb80
mov ecx, esi
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ecx, dword [0x51ab4]
test ecx, ecx
mov byte [ebp - 1], al
mov edx, ecx
je 0x28cf6
mov eax, dword [ebx + 0x88]
cmp dword [ecx + 0x88], eax
ja 0x28cf6
mov edx, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x28ce6
mov dword [ebx], ecx
mov dword [edx], ebx
mov dl, byte [ebp - 1]
mov ecx, esi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
inc dword [0x51ab0]
lea eax, [ebx + 0xdc]
push eax
lea eax, [ebx + 0xf4]
push eax
call sub.TDI.SYS_TdiRegisterDeviceObject
mov eax, dword [ebp + 0x20]
push dword [eax]
call dword [eax + 0x30]
mov ecx, esi
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
cmp byte [ebp - 0x2d], 0
mov edx, 0x200
jne 0x28d4c
mov ecx, dword [ebx + 0xb4]
test cl, 1
jne 0x28d4c
or ecx, edx
mov dword [ebx + 0xb4], ecx
test dword [ebx + 0xb4], edx
mov dword [ebx + 0x144], 1
je 0x28da0
cmp dword [ebx + 0x34], 0
je 0x28da0
mov dl, al
mov ecx, esi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
push 1
push 0
push 4
lea eax, [ebp - 0x2c]
push eax
push 0x10114
push 0
push dword [ebx + 4]
call dword [ebx + 0x34]
mov ecx, esi
mov dword [ebp + 0x2c], eax
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
cmp dword [ebp + 0x2c], 0
jne 0x28da0
cmp dword [ebp - 0x2c], 1
je 0x32337
mov dl, al
mov ecx, esi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
cmp byte [ebp - 2], 0
jne 0x32343
test byte [ebx + 0xb4], 4
jne 0x32422
and dword [ebp + 0x2c], 0
cmp dword [ebp - 0x14], 0
mov edi, dword [ebx + 0xa4]
jbe 0x28e19
test edi, edi
je 0x28e19
push 1
lea eax, [ebx + 0xf4]
push eax
lea eax, [ebx + 0xe4]
push eax
lea eax, [edi + 0xa8]
push eax
xor eax, eax
mov ax, word [edi + 0x16]
push eax
push dword [edi + 0x1c]
push dword [edi + 8]
push dword [edi + 4]
call fcn.000232be
cmp dword [edi + 4], 0
jne 0x3248e
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
cmp eax, dword [ebp - 0x14]
mov edi, dword [edi + 0x10]
jb 0x28dd1
xor edi, edi
push edi
push dword [ebp - 8]
mov dword [ebx + 0x13c], edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0x1c], edi
je 0x28e47
cmp dword [ebx + 0x144], edi
je 0x32499
push 0x2b12
push ebx
call fcn.00025ef3
cmp dword [ebp - 0x24], edi
je 0x28e8d
cmp dword [ebx + 0x144], edi
je 0x3250b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x2c
mov byte [ebx + 0x13a], 0
jmp 0x28ba3
mov esi, dword [ebx + 0xa4]
jmp 0x322c4
push dword [ebp - 0x10]
call fcn.0005a6ab
jmp 0x3230a
mov edi, dword [ebp - 0x28]
jmp 0x28cbc
push ebx
call fcn.0002346d
jmp 0x28e58
mov ecx, esi
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov ecx, dword [0x51ab4]
jmp 0x3215d
cmp dword [ecx + 0x88], edi
je 0x321df
mov ecx, dword [ecx]
cmp ecx, ebx
jne 0x3214f
mov dl, al
mov ecx, esi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
jmp 0x28807
movzx eax, word [eax]
push 0x10
inc eax
push 0x77494354
inc eax
push eax
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTagPriority]
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x288ab
jmp 0x28e6d
or byte [ebx + 0xb5], 1
mov byte [ebp - 2], 1
jmp 0x289b8
or dword [ebx + 0xb4], edx
jmp 0x289c4
or dword [ebx + 0xb4], 8
test byte [eax + 0x44], 0x10
mov ecx, dword [ebx + 0xb4]
je 0x289ce
or ecx, 0x80
mov dword [ebx + 0xb4], ecx
jmp 0x289ce
mov dword [eax], ecx
jmp 0x28a97
mov dl, al
mov ecx, esi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
mov eax, 0xc000000d
jmp 0x28e5a
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0xc]
mov dword [ebx + 0xf0], edi
mov cx, word [eax]
mov word [ebx + 0xec], cx
mov cx, word [eax]
add cx, 2
mov word [ebx + 0xee], cx
movzx ecx, word [eax]
mov esi, dword [eax + 4]
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]
movzx eax, word [eax]
mov ecx, dword [ebp - 0xc]
shr eax, 1
and word [ecx + eax*2], 0
jmp 0x28bad
push 0
push 0
lea eax, [ebx + 0xf8]
push eax
push 1
push 1
push 0xc0001068
push dword [0x516a4]
call sub.TDI.SYS_CTELogEvent
jmp 0x28cad
cmp dword [ebp - 0x1c], 0
je 0x28e6d
push dword [ebx + 4]
call dword [ebx + 0x14]
jmp 0x28e6d
mov edi, 0x4fb80
mov ecx, edi
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
test esi, esi
mov byte [ebp - 1], al
je 0x322cf
mov eax, dword [esi + 0x10]
mov dword [ebp + 0x2c], eax
xor eax, eax
push eax
push eax
mov dword [esi + 0x88], eax
lea eax, [esi + 0x8c]
push eax
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
lea eax, [ebp - 1]
push eax
lea edi, [esi + 0xb3]
push esi
mov byte [edi], 1
call fcn.00043847
or byte [esi + 0x15], 1
mov esi, dword [ebp + 0x2c]
mov byte [edi], 0
cmp dword [ebx + 0xa0], 0
je 0x322d9
jmp 0x32276
mov dl, al
mov ecx, edi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
xor edi, edi
push edi
push ebx
or esi, 0xffffffff
push esi
push esi
push esi
call fcn.00041361
push edi
push ebx
push esi
push esi
push edi
call fcn.00041361
cmp dword [ebp - 0xc], edi
je 0x28e78
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x28e78
xor esi, esi
cmp dword [ebp - 8], esi
je 0x3231b
push esi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push ebx
call fcn.0002346d
cmp ebx, esi
je 0x3232d
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0x2b2a
jmp 0x28e5a
and dword [ebx + 0x144], 0
jmp 0x28da0
mov ecx, esi
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
movzx ecx, byte [edi + 6]
mov byte [ebp - 1], al
movzx eax, byte [edi + 7]
add eax, ecx
movzx ecx, byte [edi + 4]
add eax, ecx
movzx ecx, byte [edi + 5]
add eax, ecx
mov ecx, dword [0x51bb4]
dec ecx
and eax, ecx
mov ecx, dword [0x51bb8]
lea edx, [ecx + eax*4]
mov ecx, dword [edx]
jmp 0x32382
cmp ecx, edi
je 0x32388
mov edx, ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x3238c
jmp 0x3237a
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ebx + 0x88]
or byte [edi + 0x14], 1
or dword [edi + 8], 0xffffffff
bswap eax
mov dword [edi + 4], eax
movzx ecx, byte [edi + 6]
movzx eax, byte [edi + 7]
mov edx, dword [0x51bb8]
add eax, ecx
movzx ecx, byte [edi + 4]
add eax, ecx
movzx ecx, byte [edi + 5]
add ecx, eax
mov eax, dword [0x51bb4]
dec eax
and eax, ecx
mov eax, dword [edx + eax*4]
mov dl, byte [ebp - 1]
mov dword [edi], eax
mov eax, dword [0x51bb4]
dec eax
and eax, ecx
mov ecx, dword [0x51bb8]
mov dword [ecx + eax*4], edi
mov ecx, esi
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
push dword [edi + 4]
call fcn.000233f4
push edi
call fcn.00024a04
cmp dword [ebx + 0x144], 0
je 0x32402
push 0x2b12
jmp 0x32407
push 0x2b11
push ebx
call fcn.00025ef3
call fcn.0002397a
push 0
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x28e8d
push 1
or byte [edi + 0x14], 1
or dword [edi + 8], 0xffffffff
lea eax, [ebx + 0xf4]
push eax
lea eax, [ebx + 0xe4]
push eax
lea eax, [edi + 0xa8]
push eax
xor eax, eax
mov ax, word [edi + 0x16]
mov dword [edi + 0xc], ebx
push eax
push dword [edi + 0x1c]
push 0xffffffffffffffff
push dword [edi + 4]
call fcn.000232be
push edi
call fcn.00024a04
cmp dword [ebx + 0x144], 0
je 0x3246e
push 0x2b12
jmp 0x32473
push 0x2b11
push ebx
call fcn.00025ef3
push 0
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call fcn.0002397a
jmp 0x28e8d
push edi
call fcn.00024a04
jmp 0x28e0b
xor eax, eax
cmp dword [0x51bb4], edi
mov dword [ebp + 0x30], eax
jbe 0x28e47
mov ecx, dword [0x51bb8]
mov edi, dword [ecx + eax*4]
jmp 0x324f2
mov ax, word [edi + 0x14]
test al, 1
je 0x324f0
cmp dword [edi + 0xc], ebx
jne 0x324f0
movzx ecx, ax
test ecx, 0xffffffef
je 0x324f0
test al, 8
je 0x324f0
mov ecx, esi
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
or byte [edi + 0x14], 0x40
mov byte [ebp + 0x2f], al
xor eax, eax
push eax
push eax
lea ecx, [ebp + 0x2f]
push ecx
push eax
push eax
push edi
call fcn.00025a00
mov edi, dword [edi]
test edi, edi
jne 0x324b5
mov eax, dword [ebp + 0x30]
inc eax
cmp eax, dword [0x51bb4]
mov dword [ebp + 0x30], eax
jae 0x28e47
jmp 0x324aa
cmp byte [ebx + 0x137], 0
je 0x28e8d
call fcn.0002846f
test al, al
jne 0x28e8d
push ebx
call fcn.00041c94
test eax, eax
je 0x28e8d
mov word [ebx + 0x152], 0xf0
jmp 0x28e58