joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407979
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4271f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
test byte [0x4297cc], 1
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], edi
jne 0x4079d2
or dword [0x4297cc], 1
xor eax, eax
push 0x41feb2
mov dword [0x4297c4], 7
mov dword [0x4297c0], edi
mov word [0x4297b0], ax
call fcn.0040befd
pop ecx
mov esi, 0x4297b0
cmp dword [0x4297c0], edi
jne 0x407a5c
push ebx
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00411bc0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.TypeEasyDatadownload
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040d6a5
add esp, 0xc
push edi
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push str.index.xml
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040d6a5
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00401329
pop ebx
push esi
mov esi, dword [ebp - 0x210]
call fcn.00402dfa
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040b365
leave
ret

Function at 0x407b79
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4271f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x214], edi
test byte [0x4297ac], 1
mov esi, ecx
jne 0x407bcc
or dword [0x4297ac], 1
xor eax, eax
push 0x41fed4
mov dword [0x4297a4], 7
mov dword [0x4297a0], edi
mov word [0x429790], ax
call fcn.0040befd
pop ecx
mov ebx, 0x429790
cmp dword [0x4297a0], edi
jne 0x407c72
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 0x210], edi
call fcn.00411bc0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x20019
push edi
push str.SoftwarekingsoftTypeEasyTypeEasyEx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407c72
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push str.DistSrc
push dword [ebp - 0x210]
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00401329
push ebx
call fcn.00402dfa
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b365
leave
ret
Function at 0x408160
Capabilities:
Delete file

Disassembly:
push 0xe8
mov eax, 0x41fa5b
call fcn.0040e3fe
mov eax, dword [ebp + 8]
and dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], cx
and dword [ebp - 4], ecx
test eax, eax
je 0x408196
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401329
jmp 0x4081be
lea eax, [ebp - 0x48]
push eax
call fcn.00407d89
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040123c
push 1
xor edi, edi
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.004013ee
push 0x423cdc
lea eax, [ebp - 0x2c]
push eax
call fcn.004026b1
lea ecx, [ebp - 0x80]
call fcn.00407b79
mov byte [ebp - 4], 2
cmp dword [ebp - 0x70], 0
mov eax, 0x423cec
ja 0x4081e8
mov eax, 0x423998
push eax
lea eax, [ebp - 0x48]
push eax
lea ebx, [ebp - 0x80]
call fcn.004095f3
pop ecx
pop ecx
push 0
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00402774
push 1
xor edi, edi
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.004013ee
push 0x423cf0
lea eax, [ebp - 0x2c]
push eax
call fcn.004026b1
lea eax, [ebp - 0x48]
push eax
lea edi, [ebp - 0x2c]
call fcn.00409661
pop ecx
mov ebx, eax
mov eax, edi
mov byte [ebp - 4], 4
call fcn.0040123c
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.004013ee
xor esi, esi
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xec], esi
lea eax, [ebp - 0xe8]
call fcn.00406a90
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 6
call fcn.0040128f
lea eax, [ebp - 0x48]
push eax
call fcn.00407979
pop ecx
mov ebx, eax
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 7
call fcn.0040123c
xor ebx, ebx
inc ebx
push ebx
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.004013ee
and dword [ebp - 0x8c], edi
cmp dword [ebp - 0xb8], 8
mov eax, dword [ebp - 0xcc]
jae 0x4082c7
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0xf4]
call fcn.0040ac3f
lea eax, [ebp - 0x64]
push eax
call fcn.00407f09
pop ecx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x54], 0
je 0x408307
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x408300
lea eax, [ebp - 0x64]
push eax
call fcn.00408160
pop ecx
push ebx
xor edi, edi
lea esi, [ebp - 0x64]
call fcn.004013ee
push ebx
lea esi, [ebp - 0xb0]
call fcn.004013ee
push ebx
lea esi, [ebp - 0xcc]
call fcn.004013ee
push ebx
lea esi, [ebp - 0xe8]
call fcn.004013ee
lea eax, [ebp - 0xf4]
call fcn.0040abe2
push ebx
lea esi, [ebp - 0x80]
call fcn.004013ee
push ebx
lea esi, [ebp - 0x2c]
call fcn.004013ee
call fcn.0040e481
ret
Function at 0x40837d
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push 0x228
mov eax, 0x41fbf1
call fcn.0040e3fe
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
xor ebx, ebx
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00411bc0
mov eax, dword [0x4298b0]
add esp, 0xc
cmp dword [0x4298c4], 0x10
jae 0x4083bf
mov eax, 0x4298b0
push 0x104
push dword [0x4298c0]
lea esi, [ebp - 0x218]
push eax
call fcn.00406c41
add esp, 0xc
cmp byte [ebp + 8], bl
je 0x4083ee
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.00408160
pop ecx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408445
lea eax, [ebp - 0x234]
push eax
call fcn.00407f09
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x224], ebx
je 0x408434
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40842d
lea eax, [ebp - 0x234]
push eax
call fcn.00408160
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x234]
call fcn.004013ee
jmp 0x40844c
push ebx
call fcn.00408160
pop ecx
call fcn.0040e481
ret

Function at 0x408452
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x4271f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
test byte [0x4298cc], 1
push esi
push edi
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x320], ebx
jne 0x4084aa
or dword [0x4298cc], 1
push 0x41fef6
mov dword [0x4298c4], 0xf
mov dword [0x4298c0], ebx
mov byte [0x4298b0], bl
call fcn.0040befd
pop ecx
mov edi, 0x4298b0
cmp dword [0x4298c0], ebx
jne 0x408581
xor eax, eax
push 0x206
mov word [ebp - 0x318], ax
lea eax, [ebp - 0x316]
push ebx
push eax
call fcn.00411bc0
add esp, 0xc
lea eax, [ebp - 0x318]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.TypeEasyDatadownload
mov esi, 0x104
lea eax, [ebp - 0x318]
push esi
push eax
call fcn.0040d6a5
add esp, 0xc
push ebx
lea eax, [ebp - 0x318]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push str.index.xml
lea eax, [ebp - 0x318]
push esi
push eax
call fcn.0040d6a5
add esp, 0xc
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.00411bc0
add esp, 0xc
push esi
push esi
lea eax, [ebp - 0x318]
push eax
lea esi, [ebp - 0x110]
call fcn.00406ad1
mov eax, esi
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408560
sub eax, esi
push eax
lea eax, [ebp - 0x110]
push eax
mov ecx, edi
call fcn.00404b91
push dword [ebp + 0xc]
call fcn.0040837d
pop ecx
mov esi, dword [ebp - 0x31c]
push edi
call fcn.004093e5
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b365
leave
ret
Function at 0x408879
Capabilities:
Get common file path

Disassembly:
push 0x4e4
mov eax, 0x41f7e3
call fcn.0040e3fe
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4d8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4e0], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x4dc], esi
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push esi
push eax
mov dword [ebp - 0x4f0], ebx
call fcn.00411bc0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x423d58
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.0040d6a5
add esp, 0xc
mov dword [ebp - 0x4ec], esi
mov dword [ebp - 0x4e8], esi
mov dword [ebp - 0x4e4], esi
xor edi, edi
inc edi
lea eax, [ebp - 0x284]
mov dword [ebp - 4], edi
call fcn.00406a90
mov eax, dword [ebp - 0x4d8]
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 2
call fcn.0040128f
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00401329
mov eax, dword [ebp - 0x4e0]
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x24c]
call fcn.0040128f
xor eax, eax
mov dword [ebp - 0x228], esi
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], esi
mov word [ebx], ax
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x4ec]
mov dword [ebp - 0x4dc], edi
call fcn.0040ac3f
cmp eax, 9
je 0x408987
cmp eax, 0xb
jne 0x4089c3
lea eax, [ebp - 0x4d4]
push eax
push esi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4089c3
test byte [ebp - 0x4d4], 0x10
jne 0x4089c3
mov eax, dword [ebp - 0x4b4]
shr eax, 0xa
cmp eax, esi
je 0x4089c3
lea eax, [ebp - 0x21c]
push eax
push ebx
call fcn.00401329
push edi
xor edi, edi
lea esi, [ebp - 0x24c]
call fcn.004013ee
push 1
lea esi, [ebp - 0x268]
call fcn.004013ee
push 1
lea esi, [ebp - 0x284]
call fcn.004013ee
lea eax, [ebp - 0x4ec]
call fcn.0040abe2
mov eax, ebx
call fcn.0040e481
ret
Function at 0x4097b5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4097cf
test al, 0x10
jne 0x4097cf
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40986d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or eax, 0xffffffff
cmp dword [ebp + 8], eax
je 0x4098ea
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x409886
xor eax, eax
jmp 0x4098e9
push ebx
mov ebx, 0x80000
push edi
cmp esi, ebx
jbe 0x409893
mov esi, ebx
push esi
call fcn.0040b0f0
push esi
xor esi, esi
mov edi, eax
push esi
push edi
call fcn.00411bc0
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, ebx
jbe 0x4098b7
mov eax, ebx
push esi
lea ecx, [ebp - 8]
push ecx
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
cmp eax, esi
jbe 0x4098d6
sub dword [ebp - 4], eax
jne 0x4098ae
cmp edi, esi
je 0x4098e1
push edi
call fcn.0040b811
pop ecx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40a31f
Capabilities:
Resume thread

Disassembly:
push esi
lea esi, [eax + 0x6a0]
cmp dword [esi], 0
je 0x40a33a
push dword [eax + 0x67c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
and dword [esi], 0
pop esi
ret
Function at 0x40b365
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4271f0]
jne 0x40b36f
repz ret
jmp fcn.0040f695

Function at 0x41b552
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4271f0]
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.004139c5
and dword [ebp - 0x14], 0
cmp dword [0x429708], 0
mov dword [ebp - 0x18], eax
jne 0x41b605
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41b6ad
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41b6ad
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x429708], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42970c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x429710], eax
call edi
push eax
call esi
mov dword [0x429718], eax
test eax, eax
je 0x41b605
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x429714], eax
mov eax, dword [0x429714]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41b65e
cmp dword [0x429718], ecx
je 0x41b65e
push eax
call esi
push dword [0x429718]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41b65e
test ebx, ebx
je 0x41b65e
call edi
test eax, eax
je 0x41b655
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41b655
test byte [ebp - 8], 1
jne 0x41b65e
or dword [ebp + 0x10], 0x200000
jmp 0x41b691
mov eax, dword [0x42970c]
cmp eax, dword [ebp - 0x18]
je 0x41b691
push eax
call esi
test eax, eax
je 0x41b691
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41b691
mov eax, dword [0x429710]
cmp eax, dword [ebp - 0x18]
je 0x41b691
push eax
call esi
test eax, eax
je 0x41b691
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x429708]
call esi
test eax, eax
je 0x41b6ad
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41b6af
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b365
leave
ret

Function at 0x1001f08d
Capabilities:
Encrypt data using speck

Disassembly:
pushfd
push eax
lea esp, [esp + 0xc]
je 0x1001f238
test bp, bx
jmp 0x10033b23
bswap bx
mov bx, word [esi]
cmc
jmp 0x1003097d
xor bl, ah
mov bx, si
mov bx, word [esi]
test bh, ch
clc
cmc
and ebx, 0xfff
je 0x10027ea6
stc
add dword [edi + ebx], edx
stc
and ebx, 0xfff
pushfd
mov byte [esp], bl
jmp 0x10031ed5
add word [edi + ebx], dx
mov dword [esp], 0x44294686
lea esp, [esp + 4]
jmp 0x1002f6d8
jmp 0x10031a26
clc
cmp ebx, 3
pushal
mov byte [esp], 0x9f
pushal
lea esp, [esp + 0x40]
je 0x10033e93
pushfd
push 0x82b92f04
mov word [esp + 4], dx
lea esp, [esp + 8]
jmp 0x1002f6d8
btr bx, 0xa
jmp 0x1002f6bc
Function at 0x100012a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x230
mov eax, dword [0x1000e060]
xor eax, esp
mov dword [esp + 0x22c], eax
push 0x104
lea eax, [esp + 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x24]
push ecx
call fcn.10001260
lea edx, [esp + 0x28]
add esp, 4
cmp eax, edx
jb 0x100013cc
push eax
call fcn.100010f0
add esp, 4
test eax, eax
je 0x100013cc
push 0x10029650
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x100013cc
push str.DllGetClassObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100013cc
mov ecx, 0xc3e8
mov word [esp + 0x18], cx
mov edx, 0x4cce
mov word [esp + 0x1a], dx
mov ecx, 0x8265
mov word [esp + 8], cx
mov edx, 0x47e9
lea ecx, [esp]
push ecx
mov word [esp + 0xe], dx
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0xcad5567c
mov byte [esp + 0x28], 0xac
mov byte [esp + 0x29], 0x64
mov byte [esp + 0x2a], 0x70
mov byte [esp + 0x2b], 0xb2
mov byte [esp + 0x2c], 0x9d
mov byte [esp + 0x2d], 0x20
mov byte [esp + 0x2e], 0xe1
mov byte [esp + 0x2f], 0x51
mov dword [esp + 0x10], 0x317c742a
mov byte [esp + 0x18], 0x81
mov byte [esp + 0x19], 0x39
mov byte [esp + 0x1a], 0x5a
mov byte [esp + 0x1b], 0xb7
mov byte [esp + 0x1c], 0xc6
mov byte [esp + 0x1d], 0x9b
mov byte [esp + 0x1e], 0x60
mov byte [esp + 0x1f], 0xae
mov dword [esp + 0xc], 0
call eax
test eax, eax
jne 0x100013cc
mov eax, dword [esp]
test eax, eax
je 0x100013cc
mov edx, dword [esp + 0x234]
push edx
call eax
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.10002925
add esp, 0x230
ret

Function at 0x10001470
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100014a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_fail:_code__d
push 0x1000ed68
call fcn.10001020
add esp, 0xc
xor al, al
add esp, 0x1c
ret
lea edx, [esp + 4]
push edx
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x100014e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LookupPrivilegeValue_fail:_code__d
push 0x1000ed68
call fcn.10001020
add esp, 0xc
xor al, al
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
xor edx, edx
cmp byte [esp + 0x20], dl
push 0
push 0
sete dl
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x10]
push 0
lea edx, [edx + edx + 2]
push ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10001542
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AdjustTokenPrivileges_fail:_code__d
push 0x1000ed68
call fcn.10001020
add esp, 0xc
xor al, al
add esp, 0x1c
ret
mov al, 1
add esp, 0x1c
ret
Function at 0x10001900
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x1000a588
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1000e060]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 1
mov dword [esp + 0x18], 0
call fcn.10001470
mov eax, dword [esp + 0x28]
add esp, 4
cmp dword [esp + 0x38], 0x10
jae 0x10001943
lea eax, [esp + 0x24]
push eax
push str.Teminate2:__s_....
push 0x1000ed68
call fcn.10001020
mov edi, dword [esp + 0x28]
add esp, 0xc
push edi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100019ba
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x10001997
push edi
push str.TerminateProcess_:_d_ok.
push 0x1000ed68
call fcn.10001020
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100019d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.TerminateProcess_:_d_fail_code_d.
push 0x1000ed68
call fcn.10001020
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100019d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.OpenProcess_:_d_fail_code_d.
push 0x1000ed68
call fcn.10001020
add esp, 0x10
push 0
call fcn.10001470
add esp, 4
cmp dword [esp + 0x38], 0x10
jb 0x100019f2
mov eax, dword [esp + 0x24]
push eax
call fcn.100023d5
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret

Function at 0x10002925
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000e060]
jne 0x1000292f
repz ret
jmp fcn.1000517d
Function at 0x10009bb7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10004b2f
and dword [ebp - 4], 0
cmp dword [0x1000f7a4], 0
mov ebx, eax
jne 0x10009c68
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10009d19
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10009d19
push eax
call fcn.10004abd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1000f7a4], eax
call esi
push eax
call fcn.10004abd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1000f7a8], eax
call esi
push eax
call fcn.10004abd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1000f7ac], eax
call esi
push eax
call fcn.10004abd
pop ecx
mov dword [0x1000f7b4], eax
test eax, eax
je 0x10009c68
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10004abd
pop ecx
mov dword [0x1000f7b0], eax
mov eax, dword [0x1000f7b0]
cmp eax, ebx
je 0x10009cc0
cmp dword [0x1000f7b4], ebx
je 0x10009cc0
push eax
call fcn.10004b38
push dword [0x1000f7b4]
mov esi, eax
call fcn.10004b38
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10009cc0
test edi, edi
je 0x10009cc0
call esi
test eax, eax
je 0x10009cb7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10009cb7
test byte [ebp - 0xc], 1
jne 0x10009cc0
or dword [ebp + 0x10], 0x200000
jmp 0x10009cf9
mov eax, dword [0x1000f7a8]
cmp eax, ebx
je 0x10009cf9
push eax
call fcn.10004b38
pop ecx
test eax, eax
je 0x10009cf9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10009cf9
mov eax, dword [0x1000f7ac]
cmp eax, ebx
je 0x10009cf9
push eax
call fcn.10004b38
pop ecx
test eax, eax
je 0x10009cf9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1000f7a4]
call fcn.10004b38
pop ecx
test eax, eax
je 0x10009d19
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10009d1b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x15000
Capabilities:
Create device object
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push esi
push edi
push eax
push str.07:55:51
push str.Oct_26_2015
push str._HookDriver__EasySys_Sample_Driver_r_n_HookDriver__Compiled__s__s_r_n_HookDriver__In_DriverEntry_:__wZ_r_n
call sub.ntoskrnl.exe_DbgPrint
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
add esp, 0x10
push str.DevicedevHookDriver
lea ecx, [ebp - 8]
push ecx
mov dword [esi + 0x38], 0x14050
mov dword [esi + 0x40], 0x14080
mov dword [esi + 0x70], 0x140b0
mov dword [esi + 0x34], 0x14000
call edi
lea edx, [ebp + 0xc]
push edx
push 0
push 0
push 0x22
lea eax, [ebp - 8]
push eax
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov esi, eax
test esi, esi
jge 0x15088
push esi
push str._HookDriver__Error__IoCreateDevice__0x_x_r_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x10
push 1
call dword [sym.imp.ntoskrnl.exe_IoIsWdmVersionAvailable]
test al, al
je 0x150a1
push str.DosDevicesGlobalHookDriver
lea ecx, [ebp - 0x10]
push ecx
jmp 0x150aa
push str.DosDevicesHookDriver
lea edx, [ebp - 0x10]
push edx
call edi
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov esi, eax
test esi, esi
jge 0x150e2
push esi
push str._HookDriver__Error__IoCreateSymbolicLink__0x_x_r_n
call sub.ntoskrnl.exe_DbgPrint
mov edx, dword [ebp + 0xc]
add esp, 8
push edx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
push str._HookDriver__DriverEntry_Success_r_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
push 0x110e0
call dword [sym.imp.ntoskrnl.exe_PsSetLoadImageNotifyRoutine]
test eax, eax
jl 0x15112
push section..data
push 0
push section..text
call dword [sym.imp.ntoskrnl.exe_CmRegisterCallback]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8