joyce8/EMBER2024-capa huggingface dataset:
Function at 0x185de
Capabilities:
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 6
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [esi + 0x14], edi
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
push 0x18
pop ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push 8
push esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
cmp eax, edi
jl 0x186d0
mov eax, dword [ebp + 8]
push edi
push edi
push 0x20
push 1
push 3
push 0x80
push edi
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x20], eax
lea eax, [esi + 4]
push 0x80000000
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0x240
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
cmp eax, edi
mov dword [ebp + 0xc], eax
jl 0x186c3
push dword [esi + 4]
lea eax, [ebp - 0x28]
push 0x1000000
push 2
push edi
push eax
push 4
lea ebx, [esi + 8]
push ebx
mov dword [ebp - 0x20], edi
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
cmp eax, edi
mov dword [ebp + 0xc], eax
jl 0x186c3
push 2
push edi
push 2
lea eax, [esi + 0x10]
push eax
push edi
push edi
push edi
lea eax, [esi + 0xc]
push eax
push dword [esi]
push dword [ebx]
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
cmp eax, edi
mov dword [ebp + 0xc], eax
jge 0x186ce
push esi
call fcn.000183d8
mov eax, dword [ebp + 0xc]
jmp 0x186d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x18b54
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
movzx edx, word [esi]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [edx - 2]
mov dword [ebp + 0x10], eax
jmp 0x18b87
cmp ecx, edi
jbe 0x18b94
dec ecx
dec ecx
mov ebx, ecx
shr ebx, 1
cmp word [eax + ebx*2], 0x5c
jne 0x18b81
cmp ecx, edi
jne 0x18b9c
mov word [ebp + 0xc], dx
jmp 0x18ba3
add ecx, 2
mov word [ebp + 0xc], cx
mov ax, word [esi + 2]
mov word [ebp + 0xe], ax
push 1
lea eax, [ebp + 0xc]
push eax
call fcn.00018aa2
mov ebx, eax
cmp ebx, edi
jne 0x18bc3
mov esi, 0xc0000001
jmp 0x18c39
push ebx
push 0x800
push edi
push edi
push edi
push edi
push 0x60
push 3
push 1
push 0x80
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x80000000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
mov esi, eax
cmp esi, edi
jl 0x18c39
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push dword [ebp + 0x14]
push eax
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov esi, eax
cmp esi, edi
jne 0x18c39
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp - 4], edi
je 0x18c47
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp ebx, edi
je 0x18c53
mov ecx, ebx
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x18d94
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
movzx edx, word [esi]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [edx - 2]
mov dword [ebp + 0x10], eax
jmp 0x18dc7
cmp ecx, edi
jbe 0x18dd4
dec ecx
dec ecx
mov ebx, ecx
shr ebx, 1
cmp word [eax + ebx*2], 0x5c
jne 0x18dc1
cmp ecx, edi
jne 0x18ddc
mov word [ebp + 0xc], dx
jmp 0x18de3
add ecx, 2
mov word [ebp + 0xc], cx
mov ax, word [esi + 2]
mov word [ebp + 0xe], ax
push 1
lea eax, [ebp + 0xc]
push eax
call fcn.00018aa2
mov ebx, eax
cmp ebx, edi
jne 0x18e03
mov esi, 0xc0000001
jmp 0x18e79
push ebx
push 0x800
push edi
push edi
push edi
push edi
push 0x60
push 1
push 1
push 0x80
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0xc0000000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
mov esi, eax
cmp esi, edi
jl 0x18e79
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push dword [ebp + 0x14]
push eax
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov esi, eax
cmp esi, edi
jne 0x18e79
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp - 4], edi
je 0x18e87
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp ebx, edi
je 0x18e93
mov ecx, ebx
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18

Function at 0x18fb4
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
mov edi, dword [ebp + 8]
push 1
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.00018aa2
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x18fdc
mov edi, 0xc0000001
jmp 0x19044
push eax
push 0x800
push esi
push esi
push esi
push esi
push 0x21
push 1
push 1
push 0x80
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x10000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], 0x40
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
mov edi, eax
cmp edi, esi
jl 0x19044
push 0xd
push 1
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
mov byte [ebp + 0xb], 1
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov edi, eax
cmp dword [ebp - 4], esi
je 0x19052
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 8]
cmp ecx, esi
je 0x1905f
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x1a514
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
mov byte [ebp - 1], bl
mov dword [ebp - 0xc], ebx
mov byte [ebp - 8], bl
mov byte [ebp - 7], bl
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
cmp dword [ebp + 8], eax
je 0x1a558
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x1a5a7
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [ebp - 1], 1
push ebx
push 2
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwQueryObject]
test eax, eax
jne 0x1a586
cmp byte [ebp - 7], bl
je 0x1a586
push 2
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp + 0xc]
mov byte [ebp - 7], bl
call sub.ntoskrnl.exe_ZwSetInformationObject
push dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp byte [ebp - 1], bl
je 0x1a5a7
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
pop ebx
leave
ret 8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
cmp dword [ebp + 8], eax
je 0x1a5f3
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x1a622
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [ebp - 1], 1
push ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [sym.imp.ntoskrnl.exe_IoFileObjectType]
push ebx
push dword [eax]
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
cmp byte [ebp - 1], bl
je 0x1a622
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 8
Function at 0x1a6d0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x37910]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x12b
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x12f]
push ebx
push eax
mov byte [ebp - 0x131], bl
mov dword [ebp - 0x138], ebx
mov byte [ebp - 0x130], bl
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov dword [ebp - 0x140], ebx
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
cmp esi, eax
je 0x1a760
lea eax, [ebp - 0x138]
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jge 0x1a746
xor eax, eax
jmp 0x1a7c2
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x138]
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [ebp - 0x131], 1
lea eax, [ebp - 0x140]
push eax
push 0x12c
lea eax, [ebp - 0x130]
push eax
push 2
push edi
call dword [sym.imp.ntoskrnl.exe_ZwQueryObject]
test eax, eax
jne 0x1a79d
push 1
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x13c]
call dword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
movzx esi, word [ebp + 0x10]
test al, al
jne 0x1a79f
mov esi, ebx
cmp byte [ebp - 0x131], bl
je 0x1a7c0
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [ebp - 0x138]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00016ce5
leave
ret 0x10

Function at 0x1a998
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0001a8e6
Function at 0x1ad3e
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
lea eax, [ebp - 0x10]
push eax
push 0x1aaf4
push esi
push esi
lea eax, [ebp - 0x28]
push eax
mov edi, 0x1fffff
push edi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 0xc0000001
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
cmp eax, esi
jne 0x1adfe
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [sym.imp.ntoskrnl.exe_PsThreadType]
push esi
push dword [eax]
push edi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov edi, eax
cmp edi, esi
jl 0x1adf3
push esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov ecx, dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov edi, dword [ebp - 0xc]
cmp edi, esi
jl 0x1adf3
cmp dword [ebp - 0x10], esi
je 0x1adf3
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0001ac9a
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x1b162
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push esi
push edi
push 9
pop ecx
xor eax, eax
and dword [ebp - 0x34], eax
push 7
lea edi, [ebp - 8]
stosd dword es:[edi], eax
push 0x100100
push dword [ebp + 8]
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
call fcn.0001afda
mov esi, eax
test esi, esi
jl 0x1b1d4
push 4
push 0x28
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov esi, eax
test esi, esi
jl 0x1b1d4
and dword [ebp - 0x14], 0xfffffffe
push 4
push 0x28
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov esi, eax
cmp dword [ebp - 4], 0
je 0x1b1e3
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x1b372
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push edi
xor eax, eax
push 0xd
lea edi, [ebp - 8]
stosd dword es:[edi], eax
push 1
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 1], 1
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
pop edi
leave
ret 4
Function at 0x1b476
Capabilities:
Attach user process memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], bl
mov byte [ebp - 3], bl
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
push ebx
push 2
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_ZwQueryObject]
mov esi, eax
cmp esi, ebx
jl 0x1b4d6
cmp byte [ebp - 3], bl
je 0x1b4d6
push 2
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 0xc]
mov byte [ebp - 3], bl
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationObject]
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x1b576
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x1b665
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.0001b40a
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x1b665
mov esi, dword [sym.imp.ntoskrnl.exe_ZwDuplicateObject]
push ebx
push 2
mov edi, 0x200
push edi
mov ebx, 0x80000000
push ebx
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
mov dword [ebp - 4], eax
test eax, eax
jl 0x1b662
push dword [ebp - 0xc]
call fcn.0001b4ee
test al, al
jne 0x1b602
mov dword [ebp - 4], 0xc0000001
jmp 0x1b662
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [sym.imp.ntoskrnl.exe_IoFileObjectType]
push 0
push dword [eax]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov dword [ebp - 4], eax
test eax, eax
jl 0x1b662
push dword [ebp - 0x18]
call fcn.0001b3a8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1b662
push 1
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
je 0x1b5f9
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
call fcn.0001b476
push 1
push edi
push 0
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
mov dword [ebp - 4], eax
xor edi, edi
pop ebx
mov esi, dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 8], edi
je 0x1b675
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x10], edi
je 0x1b684
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0xc], edi
je 0x1b68e
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x14], edi
je 0x1b698
push dword [ebp - 0x14]
call esi
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp ecx, edi
je 0x1b6a7
call esi
mov ecx, dword [ebp - 0x1c]
cmp ecx, edi
je 0x1b6b0
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0xc
Function at 0x1b8f0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push fcn.0001b6be
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
mov edi, 0x1fffff
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 0xc0000001
mov byte [ebp - 0xc], 1
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x200
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
jl 0x1b989
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [sym.imp.ntoskrnl.exe_PsThreadType]
push esi
push dword [eax]
push edi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
jl 0x1b989
push esi
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
cmp dword [ebp - 4], esi
je 0x1b997
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 8]
pop edi
cmp ecx, esi
pop esi
je 0x1b9a6
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x1c0b2
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x37910]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x3953c]
test eax, eax
jne 0x1c1ae
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
jge 0x1c0f6
xor eax, eax
jmp 0x1c1ae
cmp dword [ebp - 0x11c], 5
movzx eax, word [ebp - 0xc]
jne 0x1c13e
cmp dword [ebp - 0x118], 1
jne 0x1c1a9
cmp eax, 2
jne 0x1c124
mov dword [0x3953c], 0x200
jmp 0x1c1a9
cmp eax, 3
jne 0x1c135
mov dword [0x3953c], 0x201
jmp 0x1c1a9
and dword [0x3953c], 0
jmp 0x1c1a9
cmp dword [ebp - 0x11c], 6
jne 0x1c18c
mov ecx, dword [ebp - 0x118]
test ecx, ecx
je 0x1c156
cmp ecx, 1
jne 0x1c162
mov dword [0x3953c], 0x262
jmp 0x1c1a9
cmp ecx, 2
jne 0x1c177
test eax, eax
jne 0x1c1a9
mov dword [0x3953c], 0x26c
jmp 0x1c1a9
cmp ecx, 3
jne 0x1c1a9
test eax, eax
jne 0x1c1a9
mov dword [0x3953c], 0x276
jmp 0x1c1a9
cmp dword [ebp - 0x11c], 0xa
jne 0x1c1a9
cmp dword [ebp - 0x118], 0
jne 0x1c1a9
mov eax, dword [ebp - 0x114]
mov dword [0x3953c], eax
mov eax, dword [0x3953c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00016ce5
leave
ret

Function at 0x1c1c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push edi
xor eax, eax
mov word [ebp - 0xc], ax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
stosw word es:[edi], ax
test ecx, ecx
jne 0x1c1e6
mov eax, 0xc000000d
jmp 0x1c286
mov ax, word [ebp + 0xc]
test ax, ax
je 0x1c1dc
push ebx
push esi
mov ebx, 0x3954614b
push ebx
push 0x38
xor edx, edx
push 1
mov word [ebp - 0xc], dx
mov word [ebp - 0xa], ax
mov dword [ebp - 8], ecx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
mov edi, 0x25692
test esi, esi
jne 0x1c222
mov dword [ebp - 4], 0xc000009a
jmp 0x1c265
push 0x38
push 0
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 0xc]
mov dword [esi + 0xc], eax
xor eax, eax
push eax
push eax
push esi
push 0x25612
push eax
mov dword [esi + 4], 0x20
mov dword [esi + 8], 0x255fc
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], edi
call dword [sym.imp.ntoskrnl.exe_RtlQueryRegistryValues]
mov dword [ebp - 4], eax
test eax, eax
jge 0x1c275
movzx eax, word [ebp + 0xc]
push edi
shr eax, 1
push eax
push dword [ebp + 8]
call fcn.0001c024
test esi, esi
je 0x1c281
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x1c7de
Capabilities:
Find process by pid

Disassembly:
push 0x24
push 0x36de8
call fcn.00016d34
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x1c], 0x104
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, esi
jl 0x1c935
cmp dword [ebp - 0x24], esi
je 0x1c935
mov dword [ebp - 4], esi
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push esi
push esi
push 0x200
push dword [ebp - 0x24]
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov dword [ebp - 0x28], eax
cmp eax, esi
jge 0x1c844
push eax
call dword [sym.imp.ntoskrnl.exe_ExRaiseStatus]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push 0x1b
push dword [ebp - 0x20]
mov ebx, dword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
call ebx
mov dword [ebp - 0x28], eax
cmp eax, 0xc0000004
jne 0x1c83d
push 0x3954614b
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
mov dword [ebp - 0x30], edi
cmp edi, esi
jne 0x1c880
push 0xc000009a
jmp 0x1c83e
push dword [ebp - 0x1c]
push esi
push edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push edi
push 0x1b
push dword [ebp - 0x20]
call ebx
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp ebx, esi
jge 0x1c8a8
push ebx
jmp 0x1c83e
mov eax, edi
mov dword [ebp - 0x2c], eax
cmp dword [edi + 4], esi
je 0x1c8c0
cmp word [edi], si
je 0x1c8c0
mov dword [ebp - 4], 0xfffffffe
jmp 0x1c8f0
push 0xc0000001
jmp 0x1c83e
cmp ebx, esi
jl 0x1c908
movzx ecx, word [eax]
push ecx
push dword [eax + 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0001c404
mov ebx, eax
cmp edi, esi
je 0x1c918
push 0x3954614b
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0x20], esi
je 0x1c926
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 0x24]
cmp ecx, esi
je 0x1c933
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
call fcn.00016d79
ret 0xc