joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1afa0
Capabilities:
Parse pe header

Disassembly:
push ecx
test esi, esi
jne 0x1afab
xor eax, eax
pop ecx
ret 4
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1afa5
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x1afa5
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x1afa5
cmp dword [eax + 0x7c], 0
je 0x1afa5
push ebp
lea ebp, [ecx + esi]
test ebp, ebp
jne 0x1afde
xor eax, eax
pop ebp
pop ecx
ret 4
mov eax, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 0x20]
push edi
add eax, esi
xor edi, edi
add ebx, esi
mov dword [esp + 0xc], eax
cmp edi, dword [ebp + 0x18]
jae 0x1b038
mov eax, dword [ebx + edi*4]
mov ecx, dword [esp + 0x14]
add eax, esi
mov edi, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x1b020
test dl, dl
je 0x1b01c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x1b020
add ecx, 2
add eax, 2
test dl, dl
jne 0x1b000
xor eax, eax
jmp 0x1b025
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1b02f
inc edi
cmp edi, dword [ebp + 0x18]
jb 0x1aff5
mov eax, dword [esp + 0xc]
cmp edi, dword [ebp + 0x18]
jb 0x1b041
pop edi
pop ebx
xor eax, eax
pop ebp
pop ecx
ret 4
movzx ecx, word [eax + edi*2]
mov edx, dword [ebp + 0x1c]
pop edi
lea eax, [edx + ecx*4]
mov eax, dword [eax + esi]
pop ebx
add eax, esi
pop ebp
pop ecx
ret 4
Function at 0x1b350
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
xor eax, eax
push esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [0x2a684]
xor ebx, ebx
push 0x70656472
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
push 0x1000
push ebx
xor edi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], 0x18
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], 0x240
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x20], eax
call ebp
mov esi, eax
cmp esi, ebx
je ZwMapViewOfSection
push 0x1000
push ebx
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
cmp esi, ebx
je RtlInitUnicodeString
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0x1000
push esi
push 2
push ecx
push edx
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov edi, eax
cmp edi, 0xc0000023
je 0x1b407
cmp edi, 0x80000005
jne reloc.ntoskrnl.exe_IoFreeMdl
mov ebx, dword [esp + 0x10]
push ProbeForWrite
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push 0x70656472
push ebx
push 0
call ebp
mov esi, eax
test esi, esi
je 0x1b496
push ebx
push 0
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
test esi, esi
je 0x1b496
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ebx
push esi
push 2
push ecx
push edx
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jl 0x1b488
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x40]
cmp dword [ecx], eax
jb 0x1b483
push eax
mov eax, dword [esp + 0x40]
lea edx, [esi + 0xc]
push edx
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
push 0x70656472
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1b498
mov edi, 0xc0000023
push ExAllocatePool
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1b498
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx]
je 0x1b4ab
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp edi, ebx
pop edi
pop esi
pop ebp
setge al
pop ebx
add esp, 0x24
ret 0xc

Function at 0x1b4c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20
push ebx
push esi
mov esi, dword [0x2a684]
push edi
push 4
push ecx
xor eax, eax
xor edi, edi
push 3
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esi]
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x18
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0x240
mov dword [esp + 0x34], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x24], eax
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov ebx, eax
mov eax, dword [esp + 0xc]
cmp eax, dword [esi]
je 0x1b52d
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp ebx, edi
pop edi
pop esi
setge al
pop ebx
add esp, 0x20
ret
Function at 0x1b540
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [0x2a684]
mov ecx, dword [eax]
xor esi, esi
lea eax, [esp + 0xc]
push eax
push esi
push esi
push esi
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x2c], edx
push 0x20006
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x18
mov dword [esp + 0x38], 0x240
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
test eax, eax
jge 0x1b5b7
xor al, al
pop edi
pop esi
add esp, 0x20
ret 0xc
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 3
push esi
push edx
push eax
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov ecx, dword [esp + 8]
push ecx
mov edi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp edi, esi
pop edi
setge al
pop esi
add esp, 0x20
ret 0xc

Function at 0x1b5f0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x1c
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp], eax
mov eax, dword [0x2a684]
mov ecx, dword [eax]
push esi
lea eax, [esp + 8]
push eax
mov dword [esp + 0x10], ecx
push 0xf003f
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x14], 0x18
mov dword [esp + 0x20], 0x240
mov dword [esp + 0x1c], edx
mov dword [esp + PsGetVersionx24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jge 0x1b65e
xor al, al
pop esi
add esp, 0x1c
ret 4
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 4]
push edx
push eax
call dword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp esi, 0xc0000034
jne 0x1b685
xor esi, esi
test esi, esi
setge al
pop esi
add esp, 0x1c
ret 4
Function at 0x1b6a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x28
xor eax, eax
push ebx
push ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [0x2a684]
mov ecx, dword [eax]
push esi
push edi
lea eax, [esp + 0x20]
push eax
xor ebp, ebp
mov dword [esp + 0x28], ecx
push 0x20019
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
xor edi, edi
mov dword [esp + 0x2c], 0x18
mov dword [esp + 0x38], 0x240
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl IoCreateFileSpecifyDeviceObjectHint
push 0x70656472
push 0x1000
push ebp
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
cmp esi, ebp
je NtSetInformationProcess
push 0x1000
push ebp
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x1000
push ebp
push esi
call sub.ntoskrnl.exe_memset
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push PsGetCurrentProcessId
push esi
push 1
push ebp
push ecx
call ebx
cmp eax, 0x8000001a
je 0x1b7da
cmp eax, ebp
jl 0x1b7ae
cmp dword [esi + 0x10], ebp
je 0x1b7ae
mov ecx, dword [esi + 8]
xor eax, eax
mov dword [esp + 0x1a], eax
mov word [esp + 0x1e], ax
mov ax, word [esi + 0x10]
mov word [esp + 0x18], ax
mov word [esp + 0x1a], ax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esp + 0x40]
lea edx, [esi + 0x14]
add ecx, esi
mov dword [esp + 0x20], edx
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call fcn.0001bd70
test al, al
je 0x1b7da
push 0x1000
push ebp
push esi
inc edi
call sub.ntoskrnl.exe_memset
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x1000
push esi
push 1
push edi
push edx
call ebx
cmp eax, 0x8000001a
jne 0x1b768
push 0x70656472
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret 4
Function at 0x1c350
Capabilities:
Parse pe header

Disassembly:
cmp byte [0x2a688], 0
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov esi, eax
jne 0x1c371
mov edi, 0xc00000a3
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
cmp ebx, 0x138
jae 0x1c387
mov edi, 0xc000000d
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
test esi, esi
je 0x1c379
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1c379
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x1c379
mov ecx, 0x14c
cmp word [eax + 4], cx
jne 0x1c379
cmp word [eax + 0x5c], 1
jne 0x1c379
push ebx
push esi
call fcn.00026f60
test al, al
je 0x1c42b
push esi
mov eax, ebx
xor edi, edi
call fcn.00022ac0
mov ebx, eax
test ebx, ebx
je 0x1c4ca
push ebx
call fcn.00022be0
test al, al
je 0x1c4ca
push ebx
call fcn.00022f20
test al, al
je 0x1c4ca
mov edx, 0x5a4d
cmp word [ebx], dx
jne 0x1c4ca
mov ebp, dword [ebx + 0x3c]
add ebp, ebx
cmp dword [ebp], 0x4550
jne 0x1c4ca
push 0x64727665
push 0x34
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
test esi, esi
jne 0x1c439
mov edi, 0xc000009a
jmp 0x1c49e
mov edi, 0xc0000022
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x34
push 0
push esi
call sub.ntoskrnl.exe_memset
mov edi, dword [esp + 0x24]
add esp, 0xc
call fcn.0001c140
mov edi, eax
test edi, edi
jl 0x1c49e
mov dword [esi + 0x28], ebx
mov eax, dword [ebp + 0x28]
add eax, ebx
mov dword [esi + 0x24], eax
mov ecx, dword [0x2a68c]
mov dword [esi + 0x30], ecx
mov eax, dword [0x29910]
mov dword [0x2a68c], esi
test eax, eax
jne 0x1c48d
call fcn.0001c0a0
mov eax, dword [0x29910]
test eax, eax
jne 0x1c48d
mov edi, 0xc0000001
jmp 0x1c49e
push 0x1c2d0
lea edx, [esi + 0xc]
push edx
call eax
mov edi, eax
test edi, edi
jge 0x1c4ca
test esi, esi
je 0x1c4be
cmp dword [0x2a68c], esi
jne 0x1c4b2
mov eax, dword [esi + 0x30]
mov dword [0x2a68c], eax
mov dword [esi + 0x28], 0
call fcn.0001c220
push 0x70656472
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x1caf0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20
xor eax, eax
push ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
mov dword [esp + 0x18], eax
mov eax, dword [0x2a650]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], 0x240
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
cmp eax, esi
je 0x1cb64
lea ecx, [esp + 0x38]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
push 0xf003f
lea ecx, [esp + 0x54]
push ecx
jmp 0x1cb84
mov eax, dword [0x2a374]
cmp eax, esi
je 0x1cb8a
lea edx, [esp + 0x38]
push edx
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
lea edx, [esp + 0x54]
push edx
call eax
cmp eax, esi
jge 0x1cbab
lea eax, [esp + 0x38]
push eax
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp eax, esi
jl 0x1cbfa
mov ecx, dword [0x2a64c]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
cmp ecx, esi
jne 0x1cbc7
mov ecx, dword [0x2a368]
cmp ecx, esi
je 0x1cbd7
mov edx, dword [esp + 0x34]
push edi
push ebx
push ebp
push esi
push edx
push eax
call ecx
cmp eax, esi
jge 0x1cbeb
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push edi
push ebx
push ebp
push esi
push eax
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov edx, dword [esp + 0x3c]
push edx
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10

Function at 0x1d830
Capabilities:
Register minifilter driver
Start minifilter driver

Disassembly:
push ecx
push esi
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
mov ecx, dword [esp + 0xc]
mov eax, 0x2a6d8
push 0x2a6dc
push 0x11814
push ecx
mov dword [0x2a6e0], eax
mov dword [0x2a6e4], eax
mov dword [0x2a6e8], eax
mov dword [0x2a6ec], eax
mov dword [0x2a6f0], eax
mov dword [0x2a6f4], eax
call sub.FLTMGR.SYS_FltRegisterFilter
mov esi, eax
test esi, esi
jl 0x1d8a7
mov edx, dword [0x2a6dc]
push edx
call sub.FLTMGR.SYS_FltStartFiltering
mov esi, eax
test esi, esi
jge 0x1d8a7
mov eax, dword [0x2a6dc]
push eax
call sub.FLTMGR.SYS_FltUnregisterFilter
mov dword [0x2a6dc], 0
mov byte [0x2a6d8], 1
test esi, esi
jge 0x1d8b7
call fcn.0001d8d0
mov eax, esi
pop esi
pop ecx
ret 4
Function at 0x1f170
Capabilities:
Check os version

Disassembly:
sub esp, 8
push ebx
xor ebx, ebx
cmp dword [0x2a738], ebx
je 0x1f2ad
push ebp
push esi
push edi
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [esp + 0x10], 6
jae 0x1f1ad
mov ecx, dword [0x2a740]
mov eax, dword [0x2a73c]
push ecx
call fcn.00020310
jmp 0x1f1d8
mov ebp, dword [0x2a740]
mov edi, dword [0x2a73c]
push 0x29868
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov esi, eax
cmp esi, ebx
je 0x1f1d8
cmp edi, ebx
je 0x1f1d1
push edi
call esi
cmp ebp, ebx
je 0x1f1d8
push ebp
call esi
push 1
push 0x20360
call dword [sym.imp.ntoskrnl.exe_PsSetCreateProcessNotifyRoutine]
cmp dword [0x2a714], ebx
je 0x1f21d
push ebx
push ebx
push 0x2a704
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov edx, dword [0x2a714]
push ebx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov ecx, dword [0x2a714]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov dword [0x2a714], ebx
mov ecx, 0x2a718
call dword [sym.imp.HAL.dll_ExAcquireFastMutex]
mov esi, dword [sym.imp.ntoskrnl.exe_RtlIsGenericTableEmpty]
push 0x2a744
call esi
test al, al
jne 0x1f268
mov edi, dword [sym.imp.ntoskrnl.exe_RtlEnumerateGenericTableWithoutSplaying]
mov ebp, dword [sym.imp.ntoskrnl.exe_RtlDeleteElementGenericTable]
lea eax, [esp + 0x14]
push eax
push 0x2a744
mov dword [esp + 0x1c], ebx
call edi
push eax
push 0x2a744
call ebp
push 0x2a744
call esi
test al, al
je 0x1f245
mov ecx, 0x2a718
call dword [sym.imp.HAL.dll_ExReleaseFastMutex]
mov eax, dword [0x2a738]
cmp eax, 0x2a700
je 0x1f29a
mov edi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov esi, dword [eax + 0x18]
push 0x62746c74
push eax
call edi
mov eax, esi
cmp esi, 0x2a700
jne 0x1f285
pop edi
pop esi
mov dword [0x2a738], 0x2a700
mov byte [0x2a700], bl
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x1f2c0
Capabilities:
Find process by pid

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x289c0
push 0x28930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov edi, edx
mov dword [ebp - 4], 0
test edi, edi
jne 0x1f2fd
mov ebx, 0xc000000d
jmp 0x1f43f
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jl 0x1f442
lea edx, [ebp - 0x24]
push edx
push 0
push 0
push 0x1fffff
push 0
push 0x200
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jl 0x1f41e
push 0x62746c70
push 0x1000
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
test esi, esi
jne 0x1f378
mov ebx, 0xc000009a
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1f442
lea edx, [ebp - 0x2c]
push edx
push 0x1000
push esi
push 0x1b
mov eax, dword [ebp - 0x24]
push eax
call sub.ntoskrnl.exe_ZwQueryInformationProcess
mov ebx, eax
mov dword [ebp - 0x1c], ebx
push 0x62746c70
test ebx, ebx
jge 0x1f3ba
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1f442
movzx edx, word [esi]
add edx, 2
mov word [edi + 2], dx
mov ax, word [esi]
mov word [edi], ax
movzx ecx, dx
push ecx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [edi + 4], eax
test eax, eax
jne 0x1f3e7
mov ebx, 0xc000009a
mov dword [ebp - 0x1c], ebx
jmp 0x1f408
movzx edx, word [edi + 2]
push edx
push 0
push eax
call sub.ntoskrnl.exe_memset
movzx eax, word [edi]
push eax
mov ecx, dword [esi + 4]
push ecx
mov edx, dword [edi + 4]
push edx
call sub.ntoskrnl.exe_memcpy
add esp, 0x18
push 0x62746c70
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1f442
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1f900
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push ebp
mov ebp, dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
xor eax, eax
push esi
xor ecx, ecx
push edi
mov dword [esp + 0x14], eax
mov word [esp + 0x18], cx
mov dword [esp + 0x1a], eax
mov word [esp + 0x1e], ax
mov edi, 0x1000
mov edi, edi
push 0x62746c70
push edi
push 1
call ebx
mov dword [esp + 0x10], eax
test eax, eax
je 0x1f98c
lea edx, [esp + 0x14]
push edx
push edi
push eax
push 5
call ebp
mov esi, eax
test esi, esi
jge 0x1f999
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push 0x62746c70
push eax
add edi, 0x20
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp esi, 0xc0000004
je 0x1f930
mov ecx, dword [esp + 0x10]
push 0x62746c70
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, 0xc000009a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ebx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x1fa55
cmp ecx, 4
je 0x1fa55
lea edx, [esp + 0x18]
call fcn.0001f2c0
test eax, eax
jl 0x1fa55
mov esi, dword [0x2a738]
cmp esi, 0x2a700
je 0x1fa37
cmp dword [esi], 0
jne case.0x1f9f2.2
mov eax, dword [esi + 4]
cmp eax, 0x10
ja case.0x1f9f2.2
movzx edx, byte [eax + 0x1fafc]
jmp dword [edx*4 + 0x1fae8]
movzx eax, word [esi + 8]
cmp ax, word [esp + 0x18]
ja case.0x1f9f2.2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0xc]
movzx eax, ax
shr eax, 1
push eax
push ecx
push edx
call sub.ntoskrnl.exe__wcsnicmp
add esp, 0xc
test eax, eax
jne case.0x1f9f2.2
mov ecx, dword [esi + 0x20]
mov eax, dword [ebx + 0x44]
push 0x2a700
call fcn.0001f790
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1fa4b
push 0x62746c70
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
test eax, eax
je 0x1facc
add ebx, eax
jmp 0x1f9a3
mov ax, word [esp + 0x18]
cmp word [esi + 8], ax
ja case.0x1f9f2.2
movzx ecx, word [esi + 8]
movzx eax, ax
shr ecx, 1
shr eax, 1
sub eax, ecx
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [ecx + eax*2]
mov eax, dword [esi + 0xc]
push edx
push eax
jmp 0x1fa17
mov cx, word [esp + 0x18]
cmp word [esi + 8], cx
lea edi, [esi + 8]
ja case.0x1f9f2.2
lea edx, [esp + 0x18]
push edx
call fcn.000227c0
jmp 0x1fab0
push 1
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x20]
push ecx
call ebp
test al, al
jne 0x1fa27
mov esi, dword [esi + 0x18]
cmp esi, 0x2a700
jne 0x1f9d6
jmp 0x1fa37
mov edx, dword [esp + 0x10]
push 0x62746c70
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x20830
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
sub esp, 0x20
push esi
mov esi, eax
xor eax, eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
cmp esi, eax
jne 0x20871
mov ecx, edi
call fcn.000204e0
mov esi, eax
jmp 0x208a5
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x208b5
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov ecx, edi
call fcn.000204e0
mov esi, eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x208b3
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, esi
pop esi
add esp, 0x20
ret

Function at 0x208c0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
mov dword [esp + 0xc], ecx
mov eax, 0xc0000001
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
cmp esi, 0xa
jb 0x20951
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
cmp esi, eax
jne 0x2090d
push edi
push ebx
call fcn.000206b0
mov esi, eax
jmp 0x20941
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x20951
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
push edi
push ebx
call fcn.000206b0
mov esi, eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x2094f
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4