joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4050a1
Capabilities:
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xbc]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], 0x80
xor ebx, ebx
xor esi, esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4050d7
movzx esi, word [ebp - 0xbc]
xor eax, eax
cmp si, 0x17
mov esi, dword [sym.imp.WS2_32.dll_recv]
sete al
push ebx
push 7
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call esi
cmp eax, 7
jne 0x40526c
xor edi, edi
inc edi
jmp 0x405108
cmp byte [ebp - 5], bl
je 0x405117
push ebx
push edi
lea eax, [ebp - 5]
push eax
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x405103
mov ecx, dword [ebp - 0x19]
mov eax, ecx
and eax, 0xff0000
mov edx, ecx
shr edx, 0x10
or eax, edx
mov edx, ecx
and edx, 0xff00
mov edi, ecx
shl edi, 0x10
or edx, edi
shr eax, 8
shl edx, 8
or eax, edx
dec eax
mov byte [ebp - 0xa], 0x5a
cmp eax, 0xfe
ja 0x40518a
mov byte [ebp - 5], 0x5a
xor edi, edi
push ebx
push 1
lea eax, [ebp - 6]
push eax
push dword [ebp + 8]
call esi
cmp eax, 1
jne 0x405179
mov al, byte [ebp - 6]
mov byte [ebp + edi - 0x13c], al
cmp al, bl
je 0x40519e
inc edi
cmp edi, 0xff
jle 0x405151
mov byte [ebp - 0xa], 0x5b
cmp byte [ebp - 0xa], 0x5a
jne 0x40526c
mov ecx, dword [ebp - 0x19]
movzx eax, byte [ebp - 0x1c]
dec eax
mov byte [ebp - 5], 1
je 0x4051f0
mov byte [ebp - 0xa], 0x5b
jmp 0x405259
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0x13c]
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4051e4
mov esi, dword [ebp - 0x14]
cmp esi, ebx
je 0x4051d7
cmp dword [esi + 4], 2
je 0x4051ce
mov esi, dword [esi + 0x1c]
cmp esi, ebx
jne 0x4051bf
jmp 0x4051d7
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x19], eax
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp esi, ebx
jne 0x4051e8
mov byte [ebp - 5], 0x5b
mov al, byte [ebp - 5]
mov byte [ebp - 0xa], al
jmp 0x40517d
push 2
pop eax
mov word [ebp - 0x38], ax
mov ax, word [ebp - 0x1b]
mov word [ebp - 0x36], ax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x34], ecx
call fcn.00402829
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x405195
push dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
push 0x5a
push esi
call fcn.0040502f
add esp, 0xc
cmp eax, 1
jne 0x40523f
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x20], 0
call fcn.00402ceb
pop ecx
jmp 0x40524e
cmp eax, 0xffffffff
jne 0x40524a
mov byte [ebp - 0xa], 0x5b
jmp 0x40524e
mov byte [ebp - 5], 0
call fcn.0040288f
cmp byte [ebp - 5], 0
je 0x40526c
push dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
push dword [ebp - 0xa]
push 0xffffffffffffffff
call fcn.0040502f
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405333
Capabilities:
Check for peb beingdebugged flag
Get common file path

Disassembly:
push ebx
push esi
push edi
mov edi, dword fs:[0x30]
push 0x104
mov esi, 0x42a570
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.explorer.exe
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
call dword [sym.imp.ntdll.dll_RtlAcquirePebLock]
mov eax, dword [edi + 0x10]
mov ecx, esi
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, 2
test bx, bx
jne 0x405368
sub ecx, edx
sar ecx, 1
add ecx, ecx
mov word [eax + 0x38], cx
add ecx, 2
mov word [eax + 0x3a], cx
push 0x18
mov dword [eax + 0x3c], esi
mov eax, dword [edi + 0x10]
pop ecx
push 0x1a
mov word [eax + 0x40], cx
pop ecx
mov word [eax + 0x42], cx
mov dword [eax + 0x44], 0x407dfc
call dword [sym.imp.ntdll.dll_RtlReleasePebLock]
push 0
push 0x4052cb
push 0
call dword [sym.imp.ntdll.dll_LdrEnumerateLoadedModules]
pop edi
pop esi
pop ebx
ret

Function at 0x405568
Capabilities:
Create thread

Disassembly:
push ebx
xor ebx, ebx
cmp byte [0x40a34c], bl
je 0x4055c0
call fcn.00405cd4
test al, al
je 0x4055c0
push esi
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
push ebx
push ebx
push 0x405438
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
push ebx
push ebx
push 3
push 6
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
pop esi
pop ebx
ret
Function at 0x4055ee
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
mov edi, 0xfffe
call fcn.00402307
mov esi, eax
xor edi, edi
mov dword [ebp - 4], esi
cmp esi, edi
je 0x4057a4
cmp dword [ebp + 0x10], edi
je 0x40579b
cmp dword [ebp + 8], edi
je 0x40579b
cmp dword [ebp + 0xc], edi
je 0x40579b
cmp dword [ebp + 0x18], edi
je 0x40579b
push dword [ebp + 8]
mov eax, 0x4080a0
push esi
call fcn.004055c2
pop ecx
pop ecx
test al, al
je 0x40579b
push 0x250
lea eax, [ebp - 0x258]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push esi
mov dword [ebp - 0x25c], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40579b
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
mov ebx, dword [ebp + 0x14]
cmp word [ebp - 0x22c], 0x2e
jne 0x4056c1
cmp word [ebp - 0x22a], 0
je 0x405770
cmp word [ebp - 0x22a], 0x2e
jne 0x4056c1
cmp word [ebp - 0x228], 0
je 0x405770
mov eax, dword [ebp - 0x258]
and eax, 0x10
je 0x4056d1
test bl, 2
jne 0x4056da
test eax, eax
jne 0x405722
test bl, 4
je 0x405722
xor esi, esi
cmp dword [ebp + 0x10], esi
jbe 0x405722
mov eax, dword [ebp + 0xc]
push dword [eax + esi*4]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x405700
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x4056e1
jmp 0x405722
push dword [ebp + 0x1c]
lea eax, [ebp - 0x25c]
push eax
push dword [ebp + 8]
call dword [ebp + 0x18]
add esp, 0xc
test eax, eax
je 0x40578a
cmp dword [ebp + 0x24], 0
je 0x405722
push dword [ebp + 0x24]
call edi
test byte [ebp - 0x258], 0x10
je 0x405770
test bl, 1
je 0x405770
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
push dword [ebp - 4]
call fcn.004055c2
pop ecx
pop ecx
test al, al
je 0x405770
cmp dword [ebp + 0x20], 0
je 0x405752
push dword [ebp + 0x20]
call edi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.004055ee
add esp, 0x20
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405691
jmp 0x405791
and dword [ebp - 0x25c], 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
push dword [ebp - 4]
call fcn.004023f0
pop ecx
pop edi
pop esi
leave
ret
Function at 0x4057a8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, 0xfffe
xor ebx, ebx
call fcn.00402307
mov esi, eax
cmp esi, ebx
je 0x405827
push ebx
push esi
push 0x7fff
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x405820
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0x405820
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ntdll.dll_ZwDeleteFile]
test eax, eax
lea eax, [ebp - 0xc]
push eax
setns bl
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
push esi
call fcn.004023f0
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x40582e
Capabilities:
Set file attributes

Disassembly:
push edi
push 0x80
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x40585f
mov ecx, edi
inc edi
cmp ecx, 0x14
jg 0x405873
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
neg eax
sbb eax, eax
inc eax
jne 0x405873
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.004057a8
pop ecx
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
test eax, eax
je 0x40583f
pop edi
ret

Function at 0x405875
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1414
call fcn.00406000
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
xor ebx, ebx
call fcn.00402307
mov edi, eax
cmp edi, esi
je 0x405915
push edi
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x4080ac
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push edi
call esi
cmp dword [ebp - 4], 4
jb 0x40590e
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x4080e0
push ecx
push eax
lea eax, [ebp - 0x1414]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1414]
push eax
push edi
call esi
test eax, eax
je 0x40590e
push dword [ebp - 0xc]
call fcn.00402966
pop ecx
mov ebx, eax
push edi
call fcn.004023f0
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x405966
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor eax, eax
push esi
push edi
cmp dword [ebp + 8], eax
jne 0x40597d
xor eax, eax
jmp 0x4059ff
cmp dword [ebp + 0xc], eax
je 0x405976
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
mov edi, 0x2000000
push edi
push 3
push eax
push 1
push closesocket
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4059fc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
xor eax, eax
push eax
push edi
push 3
push eax
push eax
push 0x100
push dword [ebp + 0xc]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x4059fc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
neg eax
sbb eax, eax
neg eax
push esi
mov dword [ebp - 4], eax
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405a69
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push esi
push edi
lea eax, [ebp - 0x428]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x405b2a
lea eax, [ebp - 0x218]
push eax
push 0
push 0x4080a4
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x405b2a
lea esi, [ebp - 0x218]
call fcn.0040582e
mov eax, esi
push eax
call fcn.00402966
mov esi, eax
pop ecx
mov dword [ebp - 4], esi
test esi, esi
je 0x405b2a
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x405b23
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x405b1b
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edi, eax
test edi, edi
je 0x405b14
push edi
push 0x405a04
push 0xa
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 4]
call fcn.0040582e
push esi
call fcn.004023f0
pop ecx
pop edi
pop esi
leave
ret

Function at 0x405c05
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0x24], 0
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor eax, eax
cmp word [ebp - 0x24], 9
pop edi
sete al
leave
ret
Function at 0x405e1b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, 0x40a350
push edi
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
jne 0x405e35
mov esi, edi
movzx eax, word [esi]
cmp eax, 0x5c
je 0x405e47
cmp eax, 0x2f
je 0x405e47
test ax, ax
jne 0x405e73
mov ebp, eax
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405e67
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x405e69
test al, 0x10
je 0x405e7a
test bp, bp
je 0x405e78
mov word [esi], bp
add esi, 2
jmp 0x405e35
mov bl, 1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x21c07141
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x42f314
nop
mov ecx, 0x14eb5e42
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x73a8e7
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0073a966
jae 0x73a8f3
xor ecx, ecx
call fcn.0073a966
jae 0x73a91d
xor eax, eax
call fcn.0073a966
jae 0x73a92e
mov al, 0x10
call fcn.0073a966
adc al, al
jae 0x73a90f
jne 0x73a95b
stosb byte es:[edi], al
jmp 0x73a8f4
call fcn.0073a972
dec ecx
loop 0x73a93a
mov eax, ebp
call fcn.0073a970
jmp 0x73a95c
lodsb al, byte [esi]
shr eax, 1
je 0x73a982
adc ecx, 2
mov ebp, eax
jmp 0x73a95c
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0073a970
cmp eax, 0x7d00
jae 0x73a95a
cmp eax, 0x500
jae 0x73a95b
cmp eax, 0x7f
ja 0x73a95c
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x73a8f4
pop ebp
ret 8
Function at 0x10390
Capabilities:
Find process by pid

Disassembly:
push esi
push edi
call dword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 0xc]
mov eax, dword [0x12164]
test eax, eax
push esi
push dword [esi]
je 0x103af
call eax
jmp 0x103b5
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test edi, edi
jl 0x103cd
mov eax, dword [esp + 0x14]
mov dword [eax], 4
mov ecx, dword [esi]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
call dword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
mov eax, edi
pop edi
pop esi
ret 0xc

Function at 0x10532
Capabilities:
Find process by pid

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0xc]
and dword [ebp + 0xc], 0
mov dword [ebp - 4], 0xc0000001
mov ebx, 0x40010004
call dword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
mov eax, dword [0x12164]
test eax, eax
je 0x10568
lea ecx, [ebp + 0xc]
push ecx
push dword [esi]
call eax
jmp 0x10574
lea eax, [ebp + 0xc]
push eax
push dword [esi]
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x1059e
push dword [ebp + 0xc]
and dword [ebp - 4], 0
call fcn.00011eb2
test al, al
je 0x10595
push dword [ebp + 0xc]
mov ebx, 0x103
call fcn.00011ece
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [edi + 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], 4
call dword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x106a4
Capabilities:
Find process by pid

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], 0xc0000001
push esi
push ebx
call fcn.000103da
call dword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
mov esi, dword [esi + 0xc]
mov eax, dword [0x12164]
test eax, eax
push esi
push dword [esi]
je 0x106df
call eax
jmp 0x106e5
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x106fb
and dword [ebp - 4], 0
mov dword [edi], 4
mov eax, dword [ebx + 0x28]
mov ecx, dword [esi]
mov dword [eax + 0x20], ecx
call dword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1070c
Capabilities:
Attach user process memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0xc]
push dword [esi]
call sub.ntoskrnl.exe_PsGetProcessExitProcessCalled
test al, al
je 0x1072c
mov eax, 0xc0000001
jmp 0x1075d
lea eax, [ebp - 0x18]
push eax
push dword [esi]
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
push dword [esi + 4]
push dword [ebp + 8]
call fcn.00010652
mov ecx, dword [edi + 0xc]
mov dword [ecx], eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, dword [ebp + 0x14]
mov dword [eax], 4
xor eax, eax
pop edi
pop esi
leave
ret 0x10
Function at 0x10764
Capabilities:
Attach user process memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0xc]
push dword [esi]
call sub.ntoskrnl.exe_PsGetProcessExitProcessCalled
test al, al
je 0x10784
mov eax, 0xc0000001
jmp 0x107b5
lea eax, [ebp - 0x18]
push eax
push dword [esi]
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
push dword [esi + 4]
push dword [ebp + 8]
call fcn.00010638
mov ecx, dword [edi + 0xc]
mov dword [ecx], eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, dword [ebp + 0x14]
mov dword [eax], 4
xor eax, eax
pop edi
pop esi
leave
ret 0x10
Function at 0x10c2c
Capabilities:
Create device object
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push edi
mov edi, dword [ebp + 8]
push 0x10a5c
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [edi + 0x34], 0x10330
call esi
push 0x10a84
lea eax, [ebp - 0x1c]
push eax
call esi
lea eax, [ebp - 4]
push eax
push ebx
push 0x100
push 0x22
lea eax, [ebp - 0x14]
push eax
push 0x28
push edi
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
cmp eax, ebx
mov dword [ebp + 8], eax
jl 0x10cb7
mov eax, dword [ebp - 4]
mov dword [edi + 0x38], 0x10376
mov dword [edi + 0x40], 0x10674
mov dword [edi + 0x70], 0x107bc
mov edi, dword [eax + 0x28]
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_KeInitializeMutex]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
push 0x12124
mov dword [0x12174], ebx
call dword [sym.imp.ntoskrnl.exe_KeInitializeSpinLock]
mov eax, cr4
test al, 0x20
je 0x10cf9
mov dword [0x12168], 8
mov dword [0x12170], 0x200000
mov dword [0x1213c], 0xc0604000
mov dword [0x12144], 0xc0600000
jmp 0x10d21
mov dword [0x12168], 4
mov dword [0x12170], 0x400000
mov dword [0x1213c], 0xc0301000
mov dword [0x12144], 0xc0300000
push 0x10ab4
lea eax, [ebp - 0xc]
push eax
call esi
mov edi, dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
lea eax, [ebp - 0xc]
push eax
call edi
mov dword [0x1215c], eax
push 0x10ad0
lea eax, [ebp - 0xc]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call edi
mov dword [0x12178], eax
push 0x10aec
lea eax, [ebp - 0xc]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call edi
mov dword [0x12164], eax
push 0x10b24
lea eax, [ebp - 0xc]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call edi
mov dword [0x12148], eax
push 0x10b5c
lea eax, [ebp - 0xc]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call edi
mov dword [0x12140], eax
push 0x10b90
lea eax, [ebp - 0xc]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call edi
mov dword [0x12150], eax
push 0x10bbc
lea eax, [ebp - 0xc]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call edi
mov dword [0x1214c], eax
push 0x10bec
lea eax, [ebp - 0xc]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call edi
mov dword [0x12154], eax
push 0x10c0c
lea eax, [ebp - 0xc]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call edi
push 0x206b6444
push 0x20000
push ebx
mov dword [0x1216c], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [0x12160], eax
mov eax, dword [ebp + 8]
mov dword [0x12158], ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x11ab2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [eax + 0xc]
push edi
xor edi, edi
cmp dword [esi + 8], edi
mov ebx, 0xc0000001
mov dword [ebp - 0x48], 0x1215c
mov dword [ebp - 0x44], 0x119dc
mov dword [ebp - 0x40], 0x12178
mov dword [ebp - 0x3c], 0x119ec
mov dword [ebp - 0x38], 0x12164
mov dword [ebp - 0x34], 0x119fc
mov dword [ebp - 0x30], 0x12148
mov dword [ebp - 0x2c], 0x11a18
mov dword [ebp - 0x28], 0x12140
mov dword [ebp - 0x24], 0x11a34
mov dword [ebp - 0x20], 0x12150
mov dword [ebp - 0x1c], 0x11a50
mov dword [ebp - 0x18], 0x1214c
mov dword [ebp - 0x14], 0x11a68
mov dword [ebp - 0x10], 0x12154
mov dword [ebp - 0xc], 0x11a80
mov dword [ebp - 8], 0x1216c
mov dword [ebp - 4], 0x11a90
jbe 0x11b82
mov eax, dword [esi]
mov edx, dword [eax + edi*4]
xor ecx, ecx
mov eax, dword [ebp + ecx*8 - 0x48]
cmp dword [eax], edx
je 0x11b62
inc ecx
cmp ecx, 9
jb 0x11b52
jmp 0x11b7c
mov edx, dword [esi + 4]
push dword [ebp + ecx*8 - 0x44]
mov edx, dword [edx + edi*4]
push 0x11aa0
mov dword [eax], edx
xor ebx, ebx
call sub.ntoskrnl.exe_DbgPrint
pop ecx
pop ecx
inc edi
cmp edi, dword [esi + 8]
jb 0x11b4b
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10

Function at 0x11dd0
Capabilities:
Find process by pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 0x14]
push eax
mov esi, 0x12124
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.00010e5a
cmp dword [0x12128], ebx
jne 0x11e01
call fcn.00011d44
cmp dword [0x12128], ebx
je 0x11e3e
push edi
call fcn.00011bb0
mov edi, dword [ebp + 8]
push 0x1212c
push edi
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jge 0x11e22
mov dword [0x1212c], ebx
jmp 0x11e3d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov dword [0x12130], edi
mov dword [0x12134], eax
mov dword [0x12138], ebx
pop edi
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00010e5a
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8