joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b580
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00425d30
test eax, eax
je 0x42b66f
mov ecx, edi
call fcn.00425d30
mov ecx, eax
call fcn.004233a0
test eax, eax
jne 0x42b66f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42b66f
mov eax, dword [0x4a0dd0]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42b5e2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00425d30
mov ecx, eax
call fcn.004235d0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42b66f
cmp ebx, eax
jne 0x42b66f
cmp dword [esp + 0x10], eax
jne 0x42b655
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x42e290
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46f238
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42e2c9
inc eax
mov dword [esi + 0x10], eax
jmp 0x42e3dc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42e2dd
mov eax, 0xffffffc7
jmp 0x42e3de
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42e2ee
cmp dword [esi + 8], eax
jne 0x42e2dd
cmp dword [esi + 8], eax
jne 0x42e307
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42e307
mov eax, 0xffffffc7
jmp 0x42e3de
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42e31b
push eax
mov ecx, ebx
call fcn.0042dac0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004018a0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42e34c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004018c0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042d230
test eax, eax
mov dword [esp + 0x38], eax
je 0x42e37f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x472f68
call fcn.00401aa0
mov eax, dword [esp + 0x38]
jmp 0x42e3de
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042e0f0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42e3c3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042e110
mov esi, eax
test esi, esi
jne 0x42e3f3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042e0f0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42e395
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x472f68
call fcn.00401aa0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x472f68
call fcn.00401aa0
mov eax, esi
jmp 0x42e3de

Function at 0x4314b0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x431510
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x431510
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x431510
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x431510
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x431550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x437660
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46f868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00466b51
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00437000
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00466a7f
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00463266
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00463266
push 1
push 0
push 0
mov ecx, esi
call fcn.0046320e
push 1
push 0
push 1
mov ecx, esi
call fcn.0046320e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00466bc3
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4377e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46f888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00466b51
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00437000
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00466a7f
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4378a4
cmp dword [esp + 0x40], 1
jne 0x4378a2
cmp ecx, eax
jge 0x4378a4
mov eax, ecx
cmp eax, 0xc8
jge 0x4378b0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00437660
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00466bc3
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x438030
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46f8f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00461686
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00466df9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00468351
test eax, eax
je 0x43814c
mov ecx, dword [esp + 0x3c]
call fcn.00466e26
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x438110
push edi
mov ecx, esi
call fcn.004643ea
mov ecx, esi
call fcn.004382b0
cmp dword [esp + 0x38], 1
jne 0x438145
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00464554
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43ab60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43ab93
push esi
call fcn.0043dc50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43ab8c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43ac19
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43ac02
mov eax, dword [esi + 8]
test eax, eax
je 0x43abb7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43abfe
cmp eax, 2
je 0x43ac02
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43abaa
cmp eax, 3
je 0x43abdd
cmp eax, 1
jne 0x43abaa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43abaa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43abaa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043ac40
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43ac28
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043ac40
add esp, 4
pop esi
ret

Function at 0x46247c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4624b4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00460533
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046050b
jmp 0x4624c0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x463b6e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x463bb0
call fcn.0046985d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x463bb0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x463ba7
xor eax, eax
jmp 0x463bb8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00463bbe
pop edi
pop esi
pop ebx
ret 4

Function at 0x469d8d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x469dbb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x469dd9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00469cf3
jmp 0x469dd9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x469dd9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00469cf3
test edi, edi
mov eax, edi
jne 0x469dc3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x40a410
mov ecx, dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40a40a
push esi
mov esi, dword [0x40c0fd]
call esi
test eax, eax
jne 0x40a445
pop esi
pop ebp
ret 0xc508
mov eax, 0x4e3b
inc edx
or byte [eax], al
test eax, 0xd900890
nop
nop
inc eax
add byte [ebp + 0x45], al
xchg byte [eax + 0x20], ch
push edi
inc eax
add byte [ebx + 0x40a470], dh
lodsd eax, dword [esi]
dec ebp
pop ecx
push eax
add byte [eax - 0x18], dl
mov eax, dword [0xf8ffffb1]
rcr byte [ebp - 0x3d], 0x90
Function at 0x10cdc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00011f90
mov eax, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov ecx, dword [eax]
mov edx, dword [0x12738]
lea eax, [ecx + edx*4]
mov dword [0x12754], eax
mov ecx, dword [0x12754]
mov edx, dword [ecx]
mov dword [0x12b80], edx
mov eax, dword [0x12754]
mov ecx, dword [eax]
mov dword [0x12b84], ecx
mov edx, dword [0x12b80]
push edx
push 0x10c70
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [0x12754]
mov dword [eax], 0x113c0
mov ecx, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov edx, dword [ecx]
mov eax, dword [0x12730]
lea ecx, [edx + eax*4]
mov dword [0x12be8], ecx
mov edx, dword [0x12be8]
mov eax, dword [edx]
mov dword [0x12bec], eax
mov ecx, dword [0x12be8]
mov edx, dword [ecx]
mov dword [0x12960], edx
mov eax, dword [0x12bec]
push eax
push 0x10c8c
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov ecx, dword [0x12be8]
mov dword [ecx], 0x11550
mov edx, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov eax, dword [edx]
mov ecx, dword [0x12734]
lea edx, [eax + ecx*4]
mov dword [0x12bf0], edx
mov eax, dword [0x12bf0]
mov ecx, dword [eax]
mov dword [0x12b90], ecx
mov edx, dword [0x12bf0]
mov eax, dword [edx]
mov dword [0x12750], eax
mov ecx, dword [0x12b90]
push ecx
push 0x10ca4
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov edx, dword [0x12bf0]
mov dword [edx], 0x11630
mov eax, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov ecx, dword [eax]
mov edx, dword [0x12744]
lea eax, [ecx + edx*4]
mov dword [0x12c38], eax
mov ecx, dword [0x12c38]
mov edx, dword [ecx]
mov dword [0x12758], edx
mov eax, dword [0x12c38]
mov ecx, dword [eax]
mov dword [0x12b8c], ecx
mov edx, dword [0x12758]
push edx
push 0x10cc4
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [0x12c38]
mov dword [eax], 0x116b0
mov ecx, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov edx, dword [ecx]
mov eax, dword [0x1273c]
lea ecx, [edx + eax*4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [0x12c60], eax
push 0
push 0
push 0x11480
mov ecx, dword [0x12b88]
push ecx
call fcn.00012030
call fcn.00011fb0
mov esp, ebp
pop ebp
ret
Function at 0x11818
Capabilities:
Get system information on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0xc]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
push 0x206b6444
mov edx, dword [ebp - 0xc]
push edx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x11865
push 0x11740
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor eax, eax
jmp 0x11940
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x11894
push 0x11770
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor eax, eax
jmp 0x11940
mov edx, dword [ebp - 0x10]
add edx, 4
mov dword [ebp - 8], edx
mov dword [ebp - 4], 0
jmp 0x118af
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx]
jae 0x1191a
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x11c
mov edx, dword [ebp - 8]
add edx, ecx
mov eax, dword [ebp - 4]
imul eax, eax, 0x11c
mov ecx, dword [ebp - 8]
movzx eax, word [ecx + eax + 0x1a]
lea ecx, [edx + eax + 0x1c]
push ecx
call dword [sym.imp.ntoskrnl.exe__stricmp]
add esp, 8
test eax, eax
jne 0x11918
mov edx, dword [ebp - 4]
imul edx, edx, 0x11c
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x117a8
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
jmp 0x1191a
jmp 0x118a6
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0x18], 0
jne 0x1193d
mov edx, dword [ebp + 8]
push edx
push 0x117d8
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 4
Function at 0x11fe7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea edx, [ebp - 8]
push edx
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x11fd0
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x120d9
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x12640
push 0x12536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jge 0x12129
push 0x120a0
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor eax, eax
jmp 0x121ea
push 0x537973
mov edx, dword [ebp + 0xc]
push edx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x12157
push 0x120c0
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor eax, eax
jmp 0x121ea
mov eax, dword [ebp - 0x38]
mov dword [eax], 1
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call sub.ntoskrnl.exe_KeStackAttachProcess
mov dword [ebp - 4], 0
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x38]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x34]
push eax
call sub.ntoskrnl.exe_KeUnstackDetachProcess
mov dword [ebp - 4], 0xffffffff
jmp 0x121c6
push 4
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_memmove]
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x12239
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x12650
push 0x12536
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jge 0x12289
push 0x12200
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor eax, eax
jmp 0x12337
push 0x537973
mov edx, dword [ebp + 0xc]
push edx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x122b7
push 0x12220
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor eax, eax
jmp 0x12337
mov eax, dword [ebp - 0x38]
mov dword [eax], 1
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call sub.ntoskrnl.exe_KeStackAttachProcess
mov dword [ebp - 4], 0
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x34]
push eax
call sub.ntoskrnl.exe_KeUnstackDetachProcess
mov dword [ebp - 4], 0xffffffff
jmp 0x12326
push 0
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x13004
Capabilities:
Create device object
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x38], 0x12d5a
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x40], 0x12da9
mov edx, dword [ebp + 8]
mov dword [edx + 0x70], 0x12df6
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], 0x12ce1
push section.INIT
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0x22
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x13088
mov edx, dword [ebp - 0x1c]
push edx
push 0x12f28
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 0x1c]
jmp 0x13104
push 0x10
push 1
call dword [sym.imp.ntoskrnl.exe_IoIsWdmVersionAvailable]
movzx eax, al
test eax, eax
je 0x130aa
push 0x12f54
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
jmp 0x130b9
push 0x12f8c
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x130f0
mov edx, dword [ebp - 0x1c]
push edx
push 0x12fb4
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [ebp - 0x1c]
jmp 0x13104
call fcn.00010468
push 0x12fe4
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret 8