joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d8e4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x457120]
cmp byte [eax + 0xc], 0
je 0x43da51
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43da4a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x458bb8], 0
jne 0x43d938
push 0x43da58
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43da60
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bb8], eax
cmp dword [0x456b30], 0
jne 0x43da33
push 0x43da70
call sub.kernel32.dll_LoadLibraryA
mov dword [0x456b30], eax
cmp dword [0x456b30], 0
je 0x43da33
push 0x43da7c
mov eax, dword [0x456b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bbc], eax
push 0x43da8c
mov eax, dword [0x456b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bc0], eax
push 0x43daa0
mov eax, dword [0x456b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bc4], eax
push 0x43dab8
mov eax, dword [0x456b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bc8], eax
push 0x43dad0
mov eax, dword [0x456b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bcc], eax
push 0x43dae4
mov eax, dword [0x456b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bd0], eax
push 0x43dafc
mov eax, dword [0x456b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bd4], eax
push 0x43db14
mov eax, dword [0x456b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bd8], eax
push 0x43db30
mov eax, dword [0x456b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bdc], eax
push 0x43db3c
mov eax, dword [0x456b30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458be0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43da51
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4417b4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004043b0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x441803
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404618
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x449650
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4496a0]
test si, 4
je 0x449664
or bl, 1
test si, 8
je 0x44966e
or bl, 4
test si, 1
je 0x449678
or bl, 8
test si, 2
je 0x449682
or bl, 0x10
test si, 0x10
je 0x44968c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44969b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4496a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4496dc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4496bd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4496cc
or bl, 4
test esi, 0x20000000
je 0x4496d7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44fcf8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44fd0a
add esp, 0xfffffff0
call fcn.004039a8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421aec
mov eax, dword [0x456e2c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45009c
mov eax, dword [0x456e38]
mov dword [eax + 4], ebx
mov dword [eax], 0x4500a8
mov eax, ebx
call fcn.004500b4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417a18]
call fcn.0040362c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417a18]
call fcn.0040362c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x417a18]
call fcn.0040362c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x417a18]
call fcn.0040362c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x417a18]
call fcn.0040362c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44c57c
push eax
push 0
push 0
mov eax, dword [0x456f58]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42347c]
call fcn.004248c0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42347c]
call fcn.004248c0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42347c]
call fcn.004248c0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004504d4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4503b0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4503b0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4503b0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44fe47
call fcn.00403a00
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x450194
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45033f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450320
mov dl, 1
mov eax, dword [0x417f08]
call fcn.0040362c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043b0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45030f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043dc44
test al, al
je 0x450302
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x450350
lea eax, [ebp - 0x254]
call fcn.00409028
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450302
xor eax, eax
push ebp
push 0x4502fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x450388
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4502e4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404618
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4502e4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450302
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450205
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c064
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450346
lea eax, [ebp - 0x260]
call fcn.004043b0
ret

Function at 0x450c74
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x458bfc]
cmp byte [eax + 0xa5], 0
jne 0x450ce5
cmp dword [0x458c14], 0
jne 0x450ca6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450c30
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x458c14], eax
cmp dword [0x458c10], 0
jne 0x450cc1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x458c10], eax
cmp dword [0x458c18], 0
jne 0x450ce5
push esp
push 0
push 0
push 0x450bd4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x458c18], eax
pop edx
ret
Function at 0x450ddc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x450df3
add esp, 0xfffffff0
call fcn.004039a8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421aec
mov eax, dword [0x456f48]
cmp word [eax + 2], 0
jne 0x450e1b
mov eax, dword [0x456f48]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004524a0
mov eax, dword [0x456fe0]
cmp word [eax + 2], 0
jne 0x450e35
mov eax, dword [0x456fe0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452698
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417a18]
call fcn.0040362c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417a18]
call fcn.0040362c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x423c2c]
call fcn.00429878
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x450fbc
mov eax, dword [0x456e88]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00429c48
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x452c18
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x456e88]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c754
test eax, eax
je 0x450f2a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408984
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c77c
test eax, eax
je 0x450f3e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404618
mov eax, dword [0x456d9c]
cmp byte [eax], 0
jne 0x450f72
mov eax, ebx
call fcn.004510e4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00452df4
mov eax, ebx
call fcn.004537a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450fb2
call fcn.00403a00
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451358
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x458bfc]
cmp dword [eax + 0x30], 0
je 0x451402
cmp dword [ebx + 0x94], 0
jne 0x4513fc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4512e8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4513fc
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4513c2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4513fc
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041a0b8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4513d1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451ee0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x451f15
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004044a0
jmp 0x451f22
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404404
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452fd0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x453011
mov eax, esi
call fcn.0043950c
test al, al
je 0x453011
mov eax, dword [ebx + 0x84]
call fcn.00439208
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x453011
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439208
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x454bec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00454968
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404860
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x454c4a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x456f5c]
mov dl, 1
mov eax, dword [0x45488c]
call fcn.0040bc28
call fcn.00403e10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10a60
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov byte [ebp - 5], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx edx, al
test edx, edx
jne 0x10aa5
push 0x11c10
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor al, al
jmp 0x10c0d
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
test ecx, ecx
je 0x10c0b
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 2]
test eax, eax
je 0x10c0b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
je 0x10c0b
movsx ecx, byte [ebp - 5]
test ecx, ecx
je 0x10bfd
mov dword [ebp - 0x10], 0x11c00
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx]
mov word [ebp - 0x16], dx
mov eax, dword [ebp - 0x10]
cmp dx, word [eax]
jne 0x10b3b
cmp word [ebp - 0x16], 0
je 0x10b32
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx + 2]
mov word [ebp - 0x18], dx
mov eax, dword [ebp - 0x10]
cmp dx, word [eax + 2]
jne 0x10b3b
add dword [ebp - 0x14], 4
add dword [ebp - 0x10], 4
cmp word [ebp - 0x18], 0
jne 0x10af6
mov dword [ebp - 0x1c], 0
jmp 0x10b43
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jne 0x10bfd
push 0x11bd0
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov dword [ebp - 0x24], 0x11bc0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x24]
mov dx, word [ecx]
mov word [ebp - 0x2e], dx
mov eax, dword [ebp - 0x28]
mov cx, word [ebp - 0x2e]
mov word [eax], cx
mov edx, dword [ebp - 0x24]
add edx, 2
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x28]
add eax, 2
mov dword [ebp - 0x28], eax
cmp word [ebp - 0x2e], 0
jne 0x10b90
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
add eax, 2
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x34]
mov dx, word [ecx]
mov word [ebp - 0x3a], dx
add dword [ebp - 0x34], 2
cmp word [ebp - 0x3a], 0
jne 0x10bcf
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
sar eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0xc]
mov dx, word [ebp - 0x40]
mov word [ecx], dx
jmp 0x10c0b
mov eax, dword [ebp - 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
jmp 0x10aa5
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x111a0
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0x100
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0x70526f63
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x111ef
push 0x11ea0
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor al, al
jmp 0x112d0
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x11232
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ecx, dword [ebp - 4]
shl ecx, 1
mov dword [ebp - 4], ecx
push 0x70526f63
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0xc], eax
jmp 0x111ef
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
add edx, dword [ecx]
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], 0x11e80
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov ax, word [edx]
mov word [ebp - 0x1a], ax
mov ecx, dword [ebp - 0x14]
cmp ax, word [ecx]
jne 0x11298
cmp word [ebp - 0x1a], 0
je 0x1128f
mov edx, dword [ebp - 0x18]
mov ax, word [edx + 2]
mov word [ebp - 0x1c], ax
mov ecx, dword [ebp - 0x14]
cmp ax, word [ecx + 2]
jne 0x11298
add dword [ebp - 0x18], 4
add dword [ebp - 0x14], 4
cmp word [ebp - 0x1c], 0
jne 0x11253
mov dword [ebp - 0x20], 0
jmp 0x112a0
sbb edx, edx
sbb edx, 0xffffffff
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x112b2
mov byte [ebp - 0xd], 1
jmp 0x112be
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0
jne 0x11238
push 0x70526f63
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x11340
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0x200
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0x1f03ff
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x113e6
mov eax, dword [ebp - 0x34]
push eax
push 0x11ee0
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
jmp 0x113fd
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push 0x11ec0
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp - 0x34]
mov esp, ebp
pop ebp
ret 4

Function at 0x115d0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0xffb3b4c0
mov dword [ebp - 4], 0xffffffff
cmp dword [0x12708], 0
je 0x115fd
lea eax, [ebp - 8]
push eax
push 0
push 0
call dword [sym.imp.ntoskrnl.exe_KeDelayExecutionThread]
push 0x1270c
call fcn.000109c0
push 0x12120
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x127be
Capabilities:
Create device object
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00012785
pop ebp
jmp fcn.00011410
Function at 0x401040
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x140c
call fcn.00434af0
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0xffc
lea eax, [ebp - 0x1400]
push esi
push eax
mov dword [ebp - 0x1404], esi
call sub.MSVCR100.dll_memset
push 0x3ff
lea ecx, [ebp - 0x403]
push esi
push ecx
mov dword [ebp - 0x1408], esi
mov byte [ebp - 0x404], 0
call sub.MSVCR100.dll_memset
add esp, 0x18
jmp 0x4010a0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x1408]
push edx
push 0x1000
lea eax, [ebp - 0x1404]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x4010a0
mov eax, dword [ebp - 0x1408]
shr eax, 2
xor ebx, ebx
mov dword [ebp - 0x140c], eax
test eax, eax
je 0x4010a0
lea ecx, [ecx]
push 0x400
lea ecx, [ebp - 0x404]
push 0
push ecx
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + ebx*4 - 0x1404]
add esp, 0xc
push eax
xor edi, edi
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40116a
push 0x400
lea edx, [ebp - 0x404]
push edx
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameA]
test eax, eax
je 0x40112e
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40116a
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401142
sub eax, edx
cmp eax, 0x15
jl 0x40116a
lea eax, [ebp + eax - 0x419]
push str.Windowsexplorer.exe
push eax
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x40117c
inc ebx
cmp ebx, dword [ebp - 0x140c]
jb 0x4010e0
jmp 0x4010a0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + ebx*4 - 0x1404]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004343fa
mov esp, ebp
pop ebp
ret