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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push esi
cmp dword [ebp + 8], ebx
je 0x16abb
cmp dword [ebp + 0xc], ebx
je 0x16abb
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x16abb
cmp dword [ebp + 0x14], ebx
je 0x16abb
cmp dword [ebp + 0x18], ebx
je 0x16abb
push edi
push dword [ebp + 8]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
mov byte [ebp + 0x13], bl
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
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
push ebx
stosd dword es:[edi], eax
push ebx
push 0x60
push 1
xor eax, eax
push 1
push 0x80
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push ebx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 0xa0000000
push edi
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], 0x240
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jne 0x16ab5
push dword [edi]
lea eax, [ebp - 0x28]
push 0x1000000
push 0x20
push ebx
push eax
push 8
push esi
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
test eax, eax
jne 0x16ab5
push 4
push ebx
push 1
push dword [ebp + 0x18]
push ebx
push ebx
push ebx
push dword [ebp + 0x14]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
jl 0x16ab5
mov byte [ebp + 0x13], 1
mov al, byte [ebp + 0x13]
pop edi
jmp 0x16abd
xor al, al
pop esi
pop ebx
leave
ret 0x14
Function at 0x16b16
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x30f04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x16b3b
sub eax, ecx
mov dword [ebp - 0x28], eax
xor eax, eax
mov byte [ebp - 0x10], dl
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0x10]
push eax
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp dword [ebp - 0x14], esi
je 0x16c32
test dword [ebp - 0x14], 0xfff
je 0x16b87
mov eax, dword [ebp - 0x14]
and eax, 0xfffff000
add eax, 0x2000
mov dword [ebp - 0x14], eax
jmp 0x16b8e
add dword [ebp - 0x14], 0x1000
push ebx
push dword [ebp - 0x14]
push esi
call fcn.0001762c
mov ebx, eax
cmp ebx, esi
je 0x16c31
push dword [ebp - 0x14]
push esi
push ebx
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push ebx
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jne 0x16c29
mov eax, dword [ebx]
lea edi, [ebx + 4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], esi
cmp edi, esi
je 0x16c27
lea eax, [edi + 0x1c]
mov dword [ebp - 0x18], eax
mov esi, 0x11c
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x1c], eax
jae 0x16c27
push 0x5c
push dword [ebp - 0x18]
call dword [sym.imp.ntoskrnl.exe_strrchr]
pop ecx
pop ecx
test eax, eax
je 0x16bf8
inc eax
jmp 0x16bfb
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x16c13
push dword [ebp - 0x28]
push dword [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe__strnicmp]
add esp, 0xc
test eax, eax
je 0x16c21
add dword [ebp - 0x18], esi
add edi, esi
inc dword [ebp - 0x1c]
test edi, edi
jne 0x16bdc
jmp 0x16c27
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], eax
xor esi, esi
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
pop edi
xor ecx, ebp
pop esi
call fcn.0002738c
leave
ret 4
Function at 0x16c4a
Capabilities:
Get system information on windows

Disassembly:
push 0x1c
push 0x2cda8
call fcn.00027774
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
xor ebx, ebx
cmp eax, ebx
jne 0x16c69
xor al, al
jmp 0x16d44
mov byte [ebp - 0x21], bl
mov dword [ebp - 0x20], ebx
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp dword [ebp - 0x20], ebx
jne 0x16c98
mov dword [ebp - 4], 0xfffffffe
jmp 0x16d35
test dword [ebp - 0x20], 0xfff
je 0x16cb3
mov eax, dword [ebp - 0x20]
and eax, 0xfffff000
add eax, 0x2000
mov dword [ebp - 0x20], eax
jmp 0x16cba
add dword [ebp - 0x20], 0x1000
push dword [ebp - 0x20]
push ebx
call fcn.0001762c
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
je 0x16c8c
push dword [ebp - 0x20]
push ebx
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, ebx
jne 0x16c8c
lea edi, [esi + 0x20]
push 0x5c
push edi
call dword [sym.imp.ntoskrnl.exe_strrchr]
pop ecx
pop ecx
cmp eax, ebx
je 0x16d01
inc eax
jmp 0x16d03
mov eax, edi
cmp eax, ebx
je 0x16c8c
mov ecx, dword [ebp + 0xc]
dec ecx
push ecx
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ntoskrnl.exe_strncpy]
add esp, 0xc
mov byte [ebp - 0x21], 1
jmp 0x16c8c
cmp esi, ebx
je 0x16d41
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, byte [ebp - 0x21]
call fcn.000277bc
ret 8

Function at 0x16e1a
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0xffffffff
jne 0x16e2f
xor eax, eax
jmp 0x16ee0
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
xor edi, edi
mov dword [ebp - 4], esi
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x16ec1
cmp dword [ebp - 0xc], esi
je 0x16ec1
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push esi
push 0x200
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
test eax, eax
jl 0x16ec1
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1b
push dword [ebp - 8]
call sub.ntoskrnl.exe_ZwQueryInformationProcess
cmp eax, 0xc0000004
jne 0x16ec1
push dword [ebp - 4]
push esi
call fcn.0001762c
mov edi, eax
cmp edi, esi
je 0x16ec1
push dword [ebp - 4]
push esi
push edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 0x1b
push dword [ebp - 8]
call sub.ntoskrnl.exe_ZwQueryInformationProcess
test eax, eax
jge 0x16ec1
push esi
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edi, edi
cmp dword [ebp - 8], esi
je 0x16ecf
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 0xc]
cmp ecx, esi
je 0x16edc
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x16eea
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0xffffffff
push ebx
je 0x16fcf
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x16fcf
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 1], bl
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x16faf
cmp dword [ebp - 0xc], ebx
je 0x16faf
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x200
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
test eax, eax
jl 0x16faf
push esi
push edi
push 0x5a5a4d4d
mov esi, 0x800
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, ebx
je 0x16fad
push esi
push ebx
push edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp + 8]
push eax
push esi
push edi
push 0x1b
push dword [ebp - 8]
mov dword [ebp + 8], ebx
call sub.ntoskrnl.exe_ZwQueryInformationProcess
test eax, eax
jl 0x16fa5
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x16fa1
cmp word [edi], bx
jbe 0x16fa1
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_wcsncpy]
add esp, 0xc
mov byte [ebp - 1], 1
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
pop esi
cmp dword [ebp - 8], ebx
je 0x16fbd
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 0xc]
cmp ecx, ebx
je 0x16fca
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, byte [ebp - 1]
jmp 0x16fd1
xor al, al
pop ebx
leave
ret 0xc

Function at 0x16fdc
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x1c], esi
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
mov dword [ebp - 4], esi
mov ebx, 0xc000000d
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
test al, al
ja 0x1707f
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x1707f
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x1707f
cmp dword [eax + 4], esi
je 0x1707f
cmp dword [edi + 4], esi
je 0x1707f
xor ecx, ecx
cmp cx, word [eax]
je 0x1707f
cmp cx, word [edi]
je 0x1707f
cmp dword [ebp + 0x14], esi
je 0x1707f
cmp dword [ebp + 0x18], esi
je 0x1707f
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0x20006
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0x240
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
cmp ebx, esi
jl 0x1707f
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov ebx, eax
cmp dword [ebp - 4], esi
je 0x1708d
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
Function at 0x1709c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
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
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0xc000000d
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
test al, al
ja 0x171f0
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x171f0
push esi
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x171ef
cmp dword [eax + 4], ebx
je 0x171ef
cmp dword [esi + 4], ebx
je 0x171ef
xor ecx, ecx
cmp cx, word [eax]
je 0x171ef
cmp cx, word [esi]
je 0x171ef
cmp dword [ebp + 0x10], ebx
je 0x171ef
cmp dword [ebp + 0x14], ebx
je 0x171ef
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push 1
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 0x240
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x171ef
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 2
push esi
push dword [ebp - 8]
call edi
mov dword [ebp - 4], eax
cmp eax, 0xc0000023
je 0x17176
cmp eax, 0x80000005
jne 0x171ef
mov eax, dword [ebp - 0xc]
push 0x6b76715a
push eax
push 1
mov dword [ebp + 8], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
cmp esi, ebx
jne 0x17199
mov dword [ebp - 4], 0xc000009a
jmp 0x171e3
push dword [ebp + 8]
push ebx
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push esi
push 2
push dword [ebp + 0xc]
push dword [ebp - 8]
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x171e3
mov eax, dword [esi + 8]
cmp dword [ebp + 0x14], eax
jb 0x171dc
push eax
lea eax, [esi + 0xc]
push eax
push dword [ebp + 0x10]
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov dword [ebp - 4], ebx
jmp 0x171e3
mov dword [ebp - 4], 0xc0000023
cmp esi, ebx
je 0x171ef
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop esi
cmp dword [ebp - 8], ebx
pop edi
pop ebx
je 0x17200
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 4]
leave
ret 0x10

Function at 0x17eb2
Capabilities:
Find process by pid

Disassembly:
push 0x10
push 0x2cde8
call fcn.00027450
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jne 0x17f0d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x17f0d
cmp dword [0x34308], 2
jne 0x17f04
and dword [ebp - 4], 0
mov eax, dword [eax + 0x1a0]
mov dword [ebp - 0x20], eax
jmp 0x17efd
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x1c]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp - 0x20]
call fcn.00027495
ret 4
Function at 0x17f5e
Capabilities:
Find process by pid

Disassembly:
push 0x1c
push 0x2ce08
call fcn.00027450
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 0xc], ebx
je 0x18091
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
lea edi, [ebp - 0x2a]
stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [ebp + 8], 4
je 0x18081
cmp dword [ebp + 8], ebx
je 0x18081
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, ebx
jne 0x18081
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x18081
mov ecx, dword [0x34310]
mov edi, dword [ecx + eax]
mov dword [ebp - 4], ebx
push 1
push 4
mov eax, dword [0x34324]
add eax, edi
push eax
mov esi, dword [sym.imp.ntoskrnl.exe_ProbeForRead]
call esi
mov eax, dword [0x34324]
mov eax, dword [eax + edi]
cmp eax, ebx
je 0x18078
lea ebx, [eax + 0xc]
mov dword [ebp + 8], ebx
push 4
push 8
push ebx
call esi
mov edi, dword [ebx]
mov dword [ebp - 0x24], edi
test edi, edi
je 0x18078
cmp edi, ebx
je 0x18078
cmp dword [ebp + 0x10], 0
lea ebx, [edi + 0x24]
jne 0x1801d
lea ebx, [edi + 0x2c]
push 1
push 8
push ebx
call esi
push 1
movzx eax, word [ebx]
push eax
push dword [ebx + 4]
call esi
push 1
push ebx
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
jne 0x18066
lea ebx, [edi + 0x18]
push 1
push 4
push ebx
call esi
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x18078
add edi, 0x20
push 1
push 4
push edi
call esi
mov eax, dword [edi]
mov dword [ebx], eax
jmp 0x18078
mov edi, dword [edi]
mov ebx, dword [ebp + 8]
jmp 0x18006
mov dword [ebp - 4], 0xfffffffe
xor ebx, ebx
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x1808e
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp - 0x20]
call fcn.00027495
ret 0x10

Function at 0x18564
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
jne 0x18577
xor al, al
jmp 0x185e5
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 5
mov byte [ebp + 0xb], bl
mov dword [ebp - 4], ebx
call sub.ntoskrnl.exe_ZwQuerySystemInformation
push dword [ebp - 4]
push ebx
call fcn.0001762c
mov esi, eax
cmp esi, ebx
je 0x185e0
push dword [ebp - 4]
push ebx
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jne 0x185d8
mov eax, esi
cmp edi, dword [esi + 0x44]
je 0x185d1
mov ecx, dword [eax]
cmp ecx, ebx
je 0x185d8
add eax, ecx
cmp edi, dword [eax + 0x44]
jne 0x185c4
cmp dword [eax + 4], ebx
sete byte [ebp + 0xb]
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, byte [ebp + 0xb]
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x18694
Capabilities:
Attach user process memory

Disassembly:
push 0x2c
push 0x2ce28
call fcn.00027450
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 0xa4]
mov dword [ebp - 0x3c], ebx
xor eax, eax
lea edi, [ebp - 0x38]
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
cmp dword [0x340cc], ebx
je 0x187fb
mov eax, dword [ecx + 0xb0]
cmp dword [0x340d0], eax
je 0x186f9
cmp dword [0x340d8], eax
je 0x186f9
cmp dword [0x340d4], eax
je 0x186f4
cmp dword [0x340dc], eax
jne 0x187fb
xor edi, edi
inc edi
jmp 0x186fb
xor edi, edi
cmp esi, ebx
je 0x187fb
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_ExGetPreviousMode]
movzx eax, al
push eax
mov eax, dword [sym.imp.ntoskrnl.exe_PsProcessType]
push dword [eax]
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
cmp eax, ebx
jne 0x187fb
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x1875d
push 2
push 2
push esi
call dword [sym.imp.ntoskrnl.exe_ProbeForRead]
push dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push esi
call dword [sym.imp.ntoskrnl.exe_wcsncpy]
add esp, 0xc
jmp 0x18785
mov dword [ebp + 0xc], ebx
push 1
push 1
push esi
call dword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov eax, dword [ebp + 0x14]
push eax
push esi
lea ecx, [ebp + 0xc]
push ecx
add eax, eax
push eax
mov esi, dword [ebp + 0x10]
push esi
call dword [sym.imp.ntoskrnl.exe_RtlMultiByteToUnicodeN]
cmp eax, ebx
jne 0x187ea
mov dword [ebp - 0x24], esi
push 4
push 0x291a6
push esi
call dword [sym.imp.ntoskrnl.exe__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x187a3
add esi, 8
mov dword [ebp - 0x24], esi
movzx eax, word [esi]
cmp ax, 0x41
jb 0x187b2
cmp ax, 0x5a
jbe 0x187be
cmp ax, 0x61
jb 0x187ea
cmp ax, 0x7a
ja 0x187ea
cmp word [esi + 2], 0x3a
jne 0x187ea
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x187d5
cmp ax, 0x2f
jne 0x187ea
mov dword [ebp - 0x20], 1
jmp 0x187ea
mov dword [ebp - 4], 0xfffffffe
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x18808
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp - 0x20]
call fcn.00027495
ret 0x10
Function at 0x188ec
Capabilities:
Attach user process memory

Disassembly:
push 0x2c
push 0x2ce68
call fcn.00027450
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x3c], ebx
xor eax, eax
lea edi, [ebp - 0x38]
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
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x18a4a
cmp dword [0x340cc], ebx
je 0x18a4a
mov eax, dword [ebp + 0xc]
cmp dword [0x340d0], eax
je 0x18950
cmp dword [0x340d8], eax
je 0x18950
cmp dword [0x340d4], eax
je 0x1894b
cmp dword [0x340dc], eax
jne 0x18a4a
xor edi, edi
inc edi
jmp 0x18952
xor edi, edi
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_ExGetPreviousMode]
movzx eax, al
push eax
mov eax, dword [sym.imp.ntoskrnl.exe_PsProcessType]
push dword [eax]
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
cmp eax, ebx
jne 0x18a4a
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x189ac
push 2
push 2
push esi
call dword [sym.imp.ntoskrnl.exe_ProbeForRead]
push dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
push esi
call dword [sym.imp.ntoskrnl.exe_wcsncpy]
add esp, 0xc
jmp 0x189d4
mov dword [ebp + 0x10], ebx
push 1
push 1
push esi
call dword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov eax, dword [ebp + 0x18]
push eax
push esi
lea ecx, [ebp + 0x10]
push ecx
add eax, eax
push eax
mov esi, dword [ebp + 0x14]
push esi
call dword [sym.imp.ntoskrnl.exe_RtlMultiByteToUnicodeN]
cmp eax, ebx
jne 0x18a39
mov dword [ebp - 0x24], esi
push 4
push 0x291a6
push esi
call dword [sym.imp.ntoskrnl.exe__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x189f2
add esi, 8
mov dword [ebp - 0x24], esi
movzx eax, word [esi]
cmp ax, 0x41
jb 0x18a01
cmp ax, 0x5a
jbe 0x18a0d
cmp ax, 0x61
jb 0x18a39
cmp ax, 0x7a
ja 0x18a39
cmp word [esi + 2], 0x3a
jne 0x18a39
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x18a24
cmp ax, 0x2f
jne 0x18a39
mov dword [ebp - 0x20], 1
jmp 0x18a39
mov dword [ebp - 4], 0xfffffffe
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x18a57
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp - 0x20]
call fcn.00027495
ret 0x14
Function at 0x18b92
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x14
push 0x2cea8
call fcn.00027450
xor edx, edx
mov ecx, dword [ebp + 8]
cmp ecx, edx
je 0x18c1b
mov dword [ebp - 4], edx
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov esi, dword [eax + 0x78]
add esi, ecx
mov edi, dword [esi + 0x1c]
add edi, ecx
mov ebx, dword [esi + 0x20]
add ebx, ecx
mov eax, dword [esi + 0x24]
add eax, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], edx
cmp edx, dword [esi + 0x14]
jae 0x18c14
mov ecx, dword [ebx + edx*4]
add ecx, dword [ebp + 8]
movzx eax, word [eax + edx*2]
mov eax, dword [edi + eax*4]
add eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
push 0x295f8
push ecx
call dword [sym.imp.ntoskrnl.exe__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x18c02
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp + 8]
mov dword [ebp - 4], 0xfffffffe
jmp 0x18c1d
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
jmp 0x18bc9
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.00027495
ret 4

Function at 0x18c2a
Capabilities:
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
sub esp, 0x2c
push esi
xor esi, esi
cmp ecx, esi
je 0x18d42
cmp dword [ebp + 0x14], esi
je 0x18d42
push ebx
push edi
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], 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
push 0x20
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x100020
lea eax, [ebp - 8]
push eax
xor ebx, ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x240
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
jl 0x18d12
push dword [ebp - 8]
lea eax, [ebp - 0x2c]
push 0x1000000
push 0x10
push esi
push eax
push 0xf001f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x24], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
test eax, eax
jl 0x18d12
push 4
push 0x100000
push 1
lea eax, [ebp - 0xc]
push eax
push esi
push 0x3e8
push esi
lea eax, [ebp + 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
jl 0x18d12
push dword [ebp + 0x10]
call fcn.00018b92
cmp eax, esi
je 0x18d12
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00018a68
test eax, eax
je 0x18d12
inc ebx
cmp dword [ebp + 0x10], esi
je 0x18d22
push dword [ebp + 0x10]
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 4], esi
je 0x18d32
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], esi
je 0x18d3c
push dword [ebp - 8]
call edi
pop edi
mov eax, ebx
pop ebx
jmp 0x18d44
xor eax, eax
pop esi
leave
ret 0x10