joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402060
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x24
mov eax, dword [0x415004]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
push 0x40
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x4c]
push ebx
push edi
push esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], ebx
call ebp
push 0
push 0
push 0x18
lea ecx, [esp + 0x24]
push ecx
push 0x80102044
push 0x411728
call fcn.00402000
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
push eax
push ebx
push edi
push esi
call ebp
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004041a8
add esp, 0x24
ret 0x14

Function at 0x402180
Capabilities:
Allocate or change rwx memory
Terminate process

Disassembly:
sub esp, 0x240
mov eax, dword [0x415004]
xor eax, esp
mov dword [esp + 0x23c], eax
call fcn.004013f0
push 0
mov dword [0x416048], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp dword [0x416048], eax
jne 0x4022c9
push ebp
push esi
push 0x104
lea eax, [esp + 0x144]
push eax
xor esi, esi
push esi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x140]
push 0x411794
push ecx
call fcn.0040476d
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4022b6
push edi
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebp
call fcn.00401220
mov edi, dword [esp + 0xc]
test eax, eax
je 0x402283
push ebx
push edi
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004011c0
push 0x40
push 0x1000
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x402271
push esi
push edi
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
call fcn.00401030
push ebx
push esi
push edi
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00401b50
jmp 0x402282
push 0x10
push 0
push str.Allocation_failed
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop ebx
push ebp
call fcn.00404537
add esp, 4
test edi, edi
je 0x402299
push edi
call fcn.00404e51
add esp, 4
pop edi
test esi, esi
je 0x4022ac
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10
push 0
push str.Cannot_open_the_EXE_file_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4022ac
mov ecx, dword [esp + 0x23c]
xor ecx, esp
xor eax, eax
call fcn.004041a8
add esp, 0x240
ret
Function at 0x4022e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov eax, ebp
push edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4022f0
mov edi, dword [esp + 0x10]
sub eax, edx
push 4
sar eax, 1
push 0x1000
add eax, eax
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov eax, ebp
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402320
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [eax + eax]
push edx
push ebp
push esi
push edi
call fcn.00402060
test eax, eax
je 0x4023b0
push ebx
push 0x4117f0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
lea eax, [esp + 0x18]
push eax
push 0
push esi
push ebx
push 0
push 0
push edi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402381
mov ecx, dword [esp + 0x18]
push ebx
sub eax, edx
sar eax, 1
push eax
push ecx
push esi
push edi
push str.hRemoteThread:_X__baseAddress:_X__dwThreadID:_X__Len:_d__pLoadLib:_X
call fcn.00401730
add esp, 0x18
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret 8
Function at 0x402490
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
push edi
call fcn.00401d40
call fcn.00401e80
call fcn.00401880
push str.kernel32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push 0
push 0x1fffff
mov dword [0x416060], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push edi
push str.hProcess:_X_n
call fcn.00401730
add esp, 8
test edi, edi
je 0x402611
push 0x40
push 0x1000
call fcn.004018f0
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x40260a
call fcn.004018b0
mov eax, dword [0x416054]
push eax
push str.jnzAddr_X
call fcn.00401730
mov ecx, dword [0x416050]
push ecx
push str.dword_914218_X
call fcn.00401730
mov eax, dword [0x416054]
add esp, 0x10
push 0
push 4
push 0x41604c
mov edx, esi
sub edx, eax
push eax
add edx, 0xffc
push edi
mov dword [esp + 0x1c], edx
call fcn.00402110
push esi
push str.m_pDLL:_X_n
call fcn.00401730
mov ecx, dword [0x416050]
add esp, 8
lea eax, [esi + 0x40]
push 0
mov dword [0x416058], esi
mov dword [0x41605c], eax
mov dword [0x416074], 0
mov dword [0x416070], ecx
call fcn.004018f0
mov edx, dword [0x4162bc]
push eax
push edx
push esi
push edi
call fcn.00402060
test eax, eax
je 0x40260a
push str.WriteProcessMemory:1
call fcn.00401730
add esp, 4
push 0
push 4
push 0x416058
lea eax, [esi + 0x1003]
push eax
push edi
call fcn.00402060
push 0
push 0x20
push 0x416058
push esi
push edi
call fcn.00402060
test eax, eax
je 0x40260a
push str.PeekMessageHook:1
call fcn.00401730
mov edx, dword [0x416054]
add esp, 4
push 0
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
push edi
call fcn.00402060
test eax, eax
je 0x40260a
push str.PeekMessageHook:OK
call fcn.00401730
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
pop ecx
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
pop ecx
ret
Function at 0x4028e0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x48
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetMessageExtraInfo]
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendInput]
push esi
xor esi, esi
cmp dword [esp + 0x58], 2
push edi
mov edi, dword [sym.imp.USER32.dll_GetCursorPos]
je 0x402936
lea eax, [esp + 0x18]
push eax
call edi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0x8002
mov dword [esp + 0x34], esi
call ebx
push 0x1c
lea edx, [esp + 0x24]
push edx
push 1
mov dword [esp + 0x44], eax
call ebp
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x5c], 1
je 0x402979
lea eax, [esp + 0x10]
push eax
call edi
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], 0x8004
mov dword [esp + 0x50], esi
call ebx
push 0x1c
lea edx, [esp + 0x40]
push edx
push 1
mov dword [esp + 0x60], eax
call ebp
lea eax, [esp + 0x10]
push eax
call edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push str.LButton:__d___d_
call fcn.00402780
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4

Function at 0x4029b0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x48
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetMessageExtraInfo]
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendInput]
push esi
xor esi, esi
cmp dword [esp + 0x58], 2
push edi
mov edi, dword [sym.imp.USER32.dll_GetCursorPos]
je 0x402a06
lea eax, [esp + 0x18]
push eax
call edi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0x8008
mov dword [esp + 0x34], esi
call ebx
push 0x1c
lea edx, [esp + 0x24]
push edx
push 1
mov dword [esp + 0x44], eax
call ebp
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x5c], 1
je 0x402a49
lea eax, [esp + 0x10]
push eax
call edi
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], 0x8010
mov dword [esp + 0x50], esi
call ebx
push 0x1c
lea edx, [esp + 0x40]
push edx
push 1
mov dword [esp + 0x60], eax
call ebp
lea eax, [esp + 0x10]
push eax
call edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push str.RButton:__d___d_
call fcn.00402780
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4

Function at 0x4041a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415004]
jne 0x4041b2
repz ret
jmp fcn.0040664b
Function at 0x40d075
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00408fe0
and dword [ebp - 0x14], 0
cmp dword [0x4f24e0], 0
mov dword [ebp - 0x18], eax
jne 0x40d128
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d1d0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x412d08
push ebx
call edi
test eax, eax
je 0x40d1d0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4f24e0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4f24e4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4f24e8], eax
call edi
push eax
call esi
mov dword [0x4f24f0], eax
test eax, eax
je 0x40d128
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4f24ec], eax
mov eax, dword [0x4f24ec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40d181
cmp dword [0x4f24f0], ecx
je 0x40d181
push eax
call esi
push dword [0x4f24f0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40d181
test ebx, ebx
je 0x40d181
call edi
test eax, eax
je 0x40d178
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40d178
test byte [ebp - 8], 1
jne 0x40d181
or dword [ebp + 0x10], 0x200000
jmp 0x40d1b4
mov eax, dword [0x4f24e4]
cmp eax, dword [ebp - 0x18]
je 0x40d1b4
push eax
call esi
test eax, eax
je 0x40d1b4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d1b4
mov eax, dword [0x4f24e8]
cmp eax, dword [ebp - 0x18]
je 0x40d1b4
push eax
call esi
test eax, eax
je 0x40d1b4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4f24e0]
call esi
test eax, eax
je 0x40d1d0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40d1d2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041a8
leave
ret
Function at 0x16fc0
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x289d0
push 0x28920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 0x14]
mov esi, ecx
push esi
call dword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov edi, eax
test edi, edi
jne 0x17010
mov eax, 0xc000000d
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
push eax
push esi
call fcn.000183c0
test eax, eax
je 0x170c9
cmp eax, esi
jbe 0x170c9
mov ecx, dword [edi + 0x50]
lea edx, [ecx + esi]
cmp eax, edx
jae 0x170c9
cmp byte [eax], 0xb8
jne 0x170c9
mov ecx, dword [eax + 1]
cmp ecx, 0x10000000
ja 0x170c9
cmp ecx, 0xffffffff
je 0x170c9
test ebx, ebx
je 0x17057
mov dword [ebx], ecx
mov dword [ebp - 4], 0
mov eax, dword [0x2a608]
sub eax, dword [ebp + 8]
add eax, esi
cmp eax, esi
jbe 0x170aa
cmp eax, edx
jae 0x170aa
mov eax, dword [eax + ecx*4]
sub eax, dword [edi + 0x34]
add eax, esi
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp eax, esi
jbe 0x170aa
cmp eax, edx
jae 0x170aa
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp - 4], 0xffffffff
mov eax, 0xc000003e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0xc0000034
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 0x179f0
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x28aa0
push 0x28920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], esi
push 0x33
push esi
lea eax, [ebp - 0x64]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp ebx, esi
je 0x17b74
mov edi, dword [ebx + 0x34]
mov dword [ebp - 0x28], edi
mov edx, dword [ebx + 0x50]
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
push ecx
lea esi, [ebp - 0x64]
call fcn.000189c0
add esp, 4
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x17a9f
test esi, esi
jne 0x17abb
mov eax, 0xc000003e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x20]
add eax, esi
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp + 0x14]
jb 0x17ade
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor dl, dl
mov cl, byte [ebp - 0x4d]
test byte [ebp - 0x5e], 4
jne 0x17aee
cmp cl, 0xa1
jne 0x17b0e
mov eax, dword [ebp - 0x41]
cmp eax, edi
jbe 0x17b0e
mov esi, dword [ebp - 0x24]
add esi, edi
cmp eax, esi
mov esi, dword [ebp - 0x1c]
jae 0x17b0e
mov edx, dword [ebp + 8]
sub edx, dword [ebx + 0x34]
add eax, edx
mov dword [ebp - 0x41], eax
mov dl, 1
cmp cl, 0x3d
je 0x17b2c
cmp cl, 0x81
je 0x17b2c
cmp cl, 0xb8
jb 0x17b22
cmp cl, 0xbf
jbe 0x17b2c
cmp cl, 0xc7
je 0x17b2c
cmp cl, 0x68
jne 0x17b49
mov eax, dword [ebp - 0x39]
cmp eax, edi
jbe 0x17b49
mov ecx, dword [ebp - 0x24]
add ecx, edi
cmp eax, ecx
jae 0x17b49
mov edx, dword [ebp + 8]
sub edx, dword [ebx + 0x34]
add eax, edx
mov dword [ebp - 0x39], eax
jmp 0x17b4d
test dl, dl
je 0x17b63
lea ecx, [ebp - 0x64]
mov edi, dword [ebp + 0xc]
call fcn.00019490
cmp esi, eax
jne 0x17aa3
mov edi, dword [ebp - 0x28]
add dword [ebp + 0xc], esi
jmp 0x17a60
mov dword [ebp - 4], 0xffffffff
mov eax, 0xc000000d
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 0x1c350
Capabilities:
Parse pe header

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

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x28c50
push 0x28920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], 0x1000
mov dword [ebp - 0x44], esi
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x74], al
push 0x2f
push esi
lea eax, [ebp - 0x73]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
cmp dword [0x2aa64], esi
jne 0x24d05
call fcn.00024bd0
cmp dword [0x2aa64], esi
jne 0x24d05
mov eax, 0xc0000001
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov eax, dword [0x299e0]
cmp eax, esi
jne 0x24d36
call fcn.0001c0a0
mov eax, dword [0x299e0]
cmp eax, esi
jne 0x24d36
mov dword [ebp - 0x24], 0xc0000001
jmp 0x24e4c
push 0x40
push 0x3000
lea ecx, [ebp - 0x28]
push ecx
push esi
lea edx, [ebp - 0x20]
push edx
push 0xffffffffffffffff
call eax
mov dword [ebp - 0x24], eax
cmp eax, esi
jl 0x24e4c
mov dword [ebp - 0x24], 0xc0000001
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x14], 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0x10]
mov dword [ecx], edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x10], esi
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 8], edx
mov ebx, dword [ebp - 0x20]
add ebx, 0x15
mov ecx, 0xfa
mov esi, 0x24c60
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x2aa64]
mov edi, dword [ebp + 0xc]
mov byte [eax + edi + 0x16], 1
mov esi, dword [ebp - 0x20]
mov eax, dword [0x29944]
test eax, eax
jne 0x24db8
call fcn.0001c0a0
mov eax, dword [0x29944]
test eax, eax
je 0x24dcc
push esi
push 1
push ebx
push 0
push 0x24c50
push 0
push edi
lea ecx, [ebp - 0x74]
push ecx
call eax
mov eax, dword [0x29978]
test eax, eax
jne 0x24de3
call fcn.0001c0a0
mov eax, dword [0x29978]
test eax, eax
je 0x24e43
push 0
push 0
push 0
lea edx, [ebp - 0x74]
push edx
call eax
test al, al
je 0x24e43
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x14], 0
jne 0x24e08
mov eax, 0xc8
call fcn.0001b250
jmp 0x24df3
mov eax, 0x320
call fcn.0001b250
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x24e21
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x10]
mov dword [eax], edx
mov dword [ebp - 0x24], 0
jmp 0x24e43
mov dword [ebp - 4], 0xffffffff
xor esi, esi
cmp dword [ebp - 0x20], esi
je 0x24e7c
mov dword [ebp - 0x28], esi
mov eax, dword [0x29a14]
cmp eax, esi
jne 0x24e6b
call fcn.0001c0a0
mov eax, dword [0x29a14]
cmp eax, esi
je 0x24e7c
push 0x8000
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0xffffffffffffffff
call eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x265c0
Capabilities:
Create device object

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x12280
lea eax, [esp + 8]
push eax
call esi
mov edx, dword [esp + 0x18]
push 0x2ab14
push 0
push 0x100
push 0x9c40
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
jl 0x26637
push 0x122e0
lea eax, [esp + 0x10]
push eax
call esi
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov esi, eax
test esi, esi
jge 0x26635
mov eax, dword [0x2ab14]
push eax
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov dword [0x2ab14], 0
mov eax, esi
pop esi
add esp, 0x10
ret 4