joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100080ad
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x100080cf
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x10008271
cmp edi, dword [ebp + 0x10]
jb 0x10008271
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.10007b99
inc edi
jmp 0x10008158
jmp 0x10008165
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.10007b99
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.10007b99
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x100081b9
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1000819d
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.100081e7
add dword [eax], 0x39
jle 0x100081c3
sub al, 0xf5
mov ch, al
call fcn.100081fc
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x10009ed4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x10009eea
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x10009efb
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.10009f3c
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx
Function at 0x1000c2a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x1000c1f1
add ebx, 0
push ecx
call 0x1000c206
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6c9391ed
sub ebx, dword [0x6c958a2c]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6c958a1c
call fcn.10007cd0
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.100071de
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x1000c364
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x1000c364
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x1000c31b
mov eax, 1
lock xchg dword [0x6c958a28], eax
push 0x3dd1fc71
call 0x1000c2a8
push esi
add esp, 8
cmp eax, 0
jne 0x1000c291
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x1000c2b7
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x1000c2cc
cmp ecx, edx
cmp eax, 0
je 0x1000c2f1
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x1000c2db
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.1000c30a
dec eax
loope 0x1000c30d
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6c958a28], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x1000c341
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x1000c356
jmp 0x1000c361
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x1000c24f
Function at 0x100133c9
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1001369f
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6c9456a0
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6c93c666
push 0xffffffffffffffff
call fcn.1000a5c9
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x10013433
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.1001344b
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x10013693
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x10013667
Function at 0x10022e99
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10022ebb
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10022ebb
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10022ebb
ret
cmp word [ebx + 4], 0x14c
jne 0x10022ebb
test word [ebx + 0x16], 2
je 0x10022ebb
test word [ebx + 0x16], 0x100
je 0x10022ebb
cmp word [ebx + 0x18], 0x10b
jne 0x10022ebb
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10022ebb
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10022f47
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10022edb
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10009e26
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10022ebb
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x10022f47
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10022ebb
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10022ebb
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10022ebb
ret
cmp word [ebx + 4], 0x14c
jne 0x10022ebb
test word [ebx + 0x16], 2
je 0x10022ebb
test word [ebx + 0x16], 0x100
je 0x10022ebb
cmp word [ebx + 0x18], 0x10b
jne 0x10022ebb
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10022ebb
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10022f47
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10022edb
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10009e26
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10022ebb
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x10022ffe
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10023057
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10022ffe
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1002300d
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10428cb0
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1002305e
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10009ed4
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100230fd
add edi, 4
add eax, 2
dec ecx
jne 0x10023043
call 0x100230aa
loope 0x100230a0
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100230fa
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1002310b
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100230be
cmp eax, ecx
ja 0x100230be
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10023148
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1002313e
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1000a3b3
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1002300d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10023057
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10022ffe
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1002300d
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10428cb0
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1002305e
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10009ed4
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100230fd
add edi, 4
add eax, 2
dec ecx
jne 0x10023043
call 0x100230aa
loope 0x100230a0
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100230fa
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1002310b
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100230be
cmp eax, ecx
ja 0x100230be
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10023148
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1002313e
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1000a3b3
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x11610
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
je 0x1164d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
push eax
push str.pid__d__Free_Mem__x_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
push 0x5f44555f
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [ebp + 8], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x11920
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x11942
mov eax, dword [ebp - 4]
jmp 0x119c1
lea eax, [ebp - 8]
push eax
call fcn.000112d0
add eax, 0xc
push eax
call fcn.000183b0
movzx ecx, al
cmp ecx, 1
jne 0x119be
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x119be
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 0xc]
ja 0x119be
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
push str.IpcGetAsynPacket_Free_Buffer__p_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
push 0x5f44555f
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 8]
push eax
call fcn.00011610
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x12ab0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 4], 0xc0000001
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0x240
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0x100
push 0
push 0
push 0
push 0
push 0x60
push 1
push 3
push 0x80
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x80
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x12b7e
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 0x2c], 5
jne 0x12b7e
cmp dword [ebp - 0x30], 1
jne 0x12b7e
cmp dword [ebp - 4], 0xc0000022
jne 0x12b7e
push 0
push 0
push 0x60
push 1
push 3
push 0x80
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x80
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x12b9e
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00012870
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x13460
Capabilities:
Find process by pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0xc0000001
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x1349b
jmp 0x134dd
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x1fffff
push 0
push 0x200
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x134c4
jmp 0x134dd
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwTerminateProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x134dd
mov byte [ebp - 1], 1
cmp dword [ebp - 0xc], 0
je 0x134f4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x10], 0
je 0x1350a
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x136a0
Capabilities:
Find process by pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x136d9
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00013520
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x13710
Capabilities:
Find process by pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0xc0000001
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x137ee
cmp dword [ebp - 4], 0
je 0x1375c
cmp dword [ebp + 0xc], 0
jne 0x13761
jmp 0x137ee
push 0x5f44555f
push 0x1000
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x13785
mov dword [ebp - 0x10], 0xc000009a
jmp 0x137ee
push 0x1000
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0x200
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x137be
jmp 0x137ee
push 0
push 0x1000
mov eax, dword [ebp - 0xc]
push eax
push 0x1b
mov ecx, dword [ebp - 8]
push ecx
call sub.ntoskrnl.exe_ZwQueryInformationProcess
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x137df
jmp 0x137ee
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [ebp - 0x10], 0
cmp dword [ebp - 4], 0
je 0x137fd
mov ecx, dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [ebp - 8], 0
je 0x1380d
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x15990
Capabilities:
Find process by pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x11], 0
xor eax, eax
mov word [ebp - 0x1c], ax
xor eax, eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
mov dword [ebp - 0x20], 0
push str.PsDereferencePrimaryToken
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x159f3
jmp 0x15a53
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x15a0c
jmp 0x15a53
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_PsReferencePrimaryToken]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0x200
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x15a41
jmp 0x15a53
cmp dword [ebp + 0x10], 0
je 0x15a53
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov byte [ebp - 0x11], 1
cmp dword [ebp - 4], 0
je 0x15a62
mov ecx, dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [ebp - 0xc], 0
je 0x15a75
cmp dword [ebp - 0x20], 0
je 0x15a75
mov eax, dword [ebp - 0xc]
push eax
call dword [ebp - 0x20]
mov al, byte [ebp - 0x11]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x15a90
Capabilities:
Check os version
Find process by pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x15ad9
jmp 0x15b35
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 0x14], 6
jae 0x15af1
jmp 0x15b35
lea eax, [ebp - 0x18]
push eax
push 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00015990
movzx edx, al
cmp edx, 1
jne 0x15b35
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push 4
lea ecx, [ebp - 0x1c]
push ecx
push 0x12
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationToken]
test eax, eax
jl 0x15b35
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov byte [ebp - 0xd], 1
cmp dword [ebp - 0xc], 0
je 0x15b44
mov ecx, dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [ebp - 0x18], 0
je 0x15b54
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x15b60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 0xc], 6
jae 0x15b90
jmp 0x15bb3
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00015a90
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
cmp eax, 1
jne 0x15bb3
cmp dword [ebp - 8], 3
jne 0x15bb3
mov byte [ebp - 2], 1
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x18630
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 4], 0xc0000001
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x19], 0
push str.DeviceBdHookBase
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0x80000000
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_IoGetDeviceObjectPointer]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x186be
cmp dword [ebp - 0x10], 0
je 0x186b5
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x186b5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x186b5
mov eax, dword [ebp - 0x18]
push eax
call fcn.00018560
mov byte [ebp - 0x19], al
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
movzx eax, byte [ebp - 0x19]
push eax
push str.BdHookBaseInit__bResult___d_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov al, byte [ebp - 0x19]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret