joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eade
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4013d8
push 0x417d6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x45c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x260], 1
or dword [ebp - 0x264], 0xffffffff
push 0x404c70
push dword [ebp + 8]
mov ebx, 0x404b40
push ebx
mov edi, 0x104
push edi
lea eax, [ebp - 0x25c]
push eax
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
call esi
add esp, 0x14
and byte [ebp - 0x159], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
jne 0x40eb72
or dword [ebp - 4], eax
xor eax, eax
jmp 0x40eca4
push 0x404c6c
lea eax, [ebp - 0x12c]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x40ec1f
push 0x404c68
lea eax, [ebp - 0x12c]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x40ec1f
test byte [ebp - 0x158], 0x10
je 0x40ebed
test byte [ebp + 0xc], 3
je 0x40ec1f
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 8]
push 0x404c60
push edi
lea eax, [ebp - 0x368]
push eax
call esi
and byte [ebp - 0x265], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x368]
push eax
call fcn.0040eade
add esp, 0x1c
mov dword [ebp - 0x260], eax
jmp 0x40ec1f
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 8]
push ebx
push edi
lea eax, [ebp - 0x46c]
push eax
call esi
add esp, 0x14
and byte [ebp - 0x369], 0
test byte [ebp + 0xc], 1
je 0x40ec1f
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40eb72
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x264], 0xffffffff
test byte [ebp + 0xc], 3
je 0x40ec9a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x260], eax
test eax, eax
jne 0x40ec9a
test byte [ebp + 0xc], 8
je 0x40ec9a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40ec9a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fb88
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 8]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jne 0x40fb97
ret
mov eax, dword [esp + 4]
push ebp
push esi
push 0x404ca8
push dword [esp + 0x14]
xor ebp, ebp
mov dword [eax], ebp
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
cmp esi, ebp
pop ecx
je 0x40fc19
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 2
push ebp
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push ebp
push ebp
push esi
mov edi, eax
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
push edi
push ebp
push ebx
call sub.MSVCRT.dll_memset
push esi
push edi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x3c
cmp eax, edi
jne 0x40fc07
push edi
push ebx
push dword [esp + 0x1c]
call fcn.0040faba
add esp, 0xc
mov ebp, eax
push ebx
call dword [sym.imp.MSVCRT.dll_free]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop ecx
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret

Function at 0x40fc1e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40fc76
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40fc76
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40fc6f
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push dword [ebp + 8]
call fcn.0040faba
add esp, 0xc
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x40fe35
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41814c
call fcn.00417cf0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x401428
mov dword [esi + 4], 0x401414
mov dword [esi + 8], 0x401400
mov dword [esi + 0xc], 0x4013f0
lea ecx, [esi + 0x3c]
mov dword [ebp - 4], 3
call fcn.0040c21b
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 2
call fcn.0040c21b
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 1
call fcn.0040c21b
and byte [ebp - 4], 0
lea ecx, [esi + 0x30]
call fcn.0040c21b
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x2c]
call fcn.0040c21b
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x41057c
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x4181d0
call fcn.00417cf0
sub esp, 0x55c
push ebx
push esi
push edi
lea eax, [ebp - 0x568]
mov dword [ebp - 0x10], esp
push 0
push 0x103
push eax
push dword [0x42c490]
mov dword [ebp - 0x18], ecx
call fcn.0040d7bb
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x568]
mov ebx, 0x104
push 0x404c70
push eax
push 0x404cf8
lea eax, [ebp - 0x360]
push ebx
push eax
call esi
and byte [ebp - 0x25d], 0
and dword [ebp - 4], 0
add esp, 0x14
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x410608
xor eax, eax
jmp 0x4106ee
lea eax, [ebp - 0x230]
push 0x404c6c
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x4106be
lea eax, [ebp - 0x230]
push 0x404c68
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x4106be
test byte [ebp - 0x25c], 0x10
je 0x4106be
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x568]
push eax
push 0x404ce0
lea eax, [ebp - 0x11c]
push ebx
push eax
call esi
and byte [ebp - 0x464], 0
add esp, 0x14
xor eax, eax
lea edi, [ebp - 0x463]
push 0x40
and byte [ebp - 0x19], 0
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x464]
push 0x103
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0040e44b
pop ecx
test eax, eax
pop ecx
je 0x4106be
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x11c]
push eax
call fcn.004108e1
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410608
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.00410fd5
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x411761
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor esi, esi
push 0x1e
lea eax, [ebp - 0x20]
push esi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x14], esi
mov word [ebp - 0x10], 0x50
mov dword [ebp - 0xe], esi
mov dword [ebp - 0xa], esi
mov dword [ebp - 6], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x4117b7
push dword [ebp - 0xa]
call dword [sym.imp.SHELL32.dll_SHFreeNameMappings]
mov eax, esi
pop esi
leave
ret
Function at 0x415821
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and byte [ebp - 0x10c], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
and byte [ebp - 0x210], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x20f]
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 4]
push eax
push 0x418a34
push 0x405948
push 0x80000000
mov dword [ebp - 4], edi
mov dword [ebp - 8], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4158c9
push 0x405938
lea eax, [ebp - 0x210]
push 0x104
push eax
push dword [0x42c490]
call fcn.0040d7bb
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 0x18
test eax, eax
jne 0x4158c9
mov eax, edi
jmp 0x4158cb
xor eax, eax
pop edi
leave
ret

Function at 0x41592e
Capabilities:
Get common file path
Get program files directory

Disassembly:
xor eax, eax
push esi
mov esi, dword [esp + 8]
push eax
push 0x26
push esi
push eax
mov byte [esi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x4059ac
push esi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
pop esi
ret

Function at 0x415951
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
lea eax, [ebp - 0x208]
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x208]
push 0x4059d8
push eax
call sub.MSVCRT.dll_strcat
mov ax, word [0x4059d4]
add esp, 0x10
mov word [ebp - 0x104], ax
xor eax, eax
push 0x40
lea edi, [ebp - 0x102]
pop ecx
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
rep stosd dword es:[edi], eax
push 5
push 0x404040
mov ebx, 0x418a34
push 1
push ebx
push dword [ebp + 8]
stosw word es:[edi], ax
mov edi, 0x80000000
push edi
call esi
cmp dword [ebp + 0xc], 0
je 0x415a15
cmp dword [ebp + 0x10], 0
je 0x4159db
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
jmp 0x4159f3
lea eax, [ebp - 0x103]
push 0x103
push eax
push dword [0x42c490]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0x4059cc
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0xc
jmp 0x415a46
lea eax, [ebp - 0x103]
push 0x104
push eax
call fcn.0041592e
lea eax, [ebp - 0x104]
push 0x4059cc
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x14
push eax
lea eax, [ebp - 0x104]
push eax
push 1
lea eax, [ebp - 0x208]
push ebx
push eax
push edi
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41782d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0x10c], ebx
je 0x41792d
push edi
push 0
push ebx
push 0x130c
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 4], eax
mov eax, ebx
shl eax, 4
lea edi, [eax + esi]
mov eax, dword [eax + esi + 0x14]
test eax, eax
je 0x417883
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x417903
push 0x3e9
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call ebx
mov eax, dword [ebp + 8]
push 0
inc eax
shl eax, 4
push dword [eax + esi]
push dword [ebp - 4]
push dword [edi + 0xc]
push dword [0x42c490]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
sub edx, ecx
sub edx, 4
push 0x40
push edx
mov edx, dword [ebp - 0x14]
sub ebx, edx
add ecx, 2
sub ebx, 4
add edx, 2
push ebx
push ecx
push edx
push 0
push eax
mov dword [edi + 0x14], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ebx, dword [ebp + 8]
push 5
push dword [edi + 0x14]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
mov eax, dword [esi + 0x10c]
cmp eax, 0xffffffff
je 0x417926
shl eax, 4
push 0
push dword [eax + esi + 0x14]
call edi
mov dword [esi + 0x10c], ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x417b68
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
mov ebp, 0x104
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, 0x4199cc
push ebp
push ebx
push 1
push esi
mov dword [0x42c490], esi
call edi
mov dword [esp + 0x10], 0x14
push 0
push 0x405984
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
mov dword [esp + 0x14], eax
je 0x417bf9
lea eax, [esp + 0x18]
push ebp
push eax
push 0xc
push esi
call edi
push 0x41
lea eax, [esp + 0x1c]
push ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
push 1
je 0x417c3b
push 0
push 2
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0
jg 0x417b9e
mov edi, dword [esp + 0x128]
push 0x405d6c
push 1
mov ecx, 0x42c488
push dword [esp + 0x134]
push edi
push esi
call fcn.00405dbc
mov esi, 0x4191cc
mov ebx, eax
push esi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x417c3e
xor eax, eax
push 5
push eax
push eax
push esi
push 0x404040
push eax
jmp 0x417c6f
pop eax
jmp 0x417c77
xor esi, esi
cmp dword [0x418498], esi
jne 0x417c75
cmp edi, esi
je 0x417c75
push edi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x417c75
push esi
push edi
call fcn.0040e44b
pop ecx
test eax, eax
pop ecx
je 0x417c75
push 0xa
push esi
push esi
push edi
push 0x404040
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0x10
Function at 0x41a96f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x1e4dc
mov dword [ebp - 0xc], 0x3000
mov dword [ebp - 4], 0x40
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
mov esp, ebp
pop ebp
ret

Function at 0x41aabf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 8], 0x11cb
mov dword [ebp - 0x10], 0
jmp 0x41aade
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jae 0x41aba5
mov dword [ebp - 8], 0x4189
cmp dword [ebp - 0x10], 0
jne 0x41ab47
push 0x104
push 0x41da34
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
push str.SYSTEM32CABINET.DLL
push 0x41da34
call dword [sym.imp.kernel32.dll_lstrcatA]
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push 1
push 0x41da34
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x41ab40
cmp dword [ebp - 4], 0
jne 0x41ab47
push 0x42
pop eax
nop
nop
jmp 0x41aba5
mov edx, dword [ebp - 0x10]
add edx, 0x1eed7
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
xor edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov dword [eax], edx
jmp 0x41aad5
mov esp, ebp
pop ebp
ret
Function at 0x405f30
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], str.hid.dll
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
push str.HidD_GetHidGuid
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1c], eax
push str.HidD_GetPreparsedData
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
push str.HidD_FreePreparsedData
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
push str.HidD_GetAttributes
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], eax
push str.HidD_GetProductString
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], eax
push str.HidD_SetFeature
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], eax
push str.HidD_GetFeature
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x407140
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov esp, ebp
pop ebp
ret
Function at 0x409060
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5ff438
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x72d150]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x30]
call fcn.0040e630
mov eax, dword [esi + 0x78]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x54], 0
call fcn.0040e890
test al, al
je 0x4091f5
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x34]
call fcn.0040e5e0
cmp dword [esi + 0x7c], 0
jge 0x4090c9
mov dword [esi + 0x7c], 0
cmp dword [esi + 0x80], 0
jge 0x4090dc
mov dword [esi + 0x80], 0
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x84], eax
jle 0x4090ee
mov dword [esi + 0x84], eax
mov eax, dword [esp + 0x14]
cmp dword [esi + 0x88], eax
jle 0x409100
mov dword [esi + 0x88], eax
mov ecx, dword [esi + 0x84]
sub ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x88]
sub eax, dword [esi + 0x80]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ecx
push edx
lea ecx, [esi + 0x8c]
mov dword [esp + 0x18], eax
call fcn.0040e870
test al, al
je 0x4091f5
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.00408dc0
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
push 1
mov ebx, eax
call edi
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
sub eax, ecx
cdq
push 0x14
sub eax, edx
push ecx
sar eax, 1
push edi
push eax
mov eax, ebx
sub eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
push 0
mov ecx, esi
call fcn.005c45b3
mov eax, dword [esi + 0x20]
push 0
push 0
mov ebx, dword [esi + 0xa4]
push eax
push 0x64
push 0x64
push 0
push 0
push 0
push str.Layered
push 0
push 0
push 0
lea edi, [esi + 0xa4]
push 0
call fcn.005c3d73
mov edx, dword [ebx + 0x5c]
push eax
push 0x80000
mov ecx, edi
call edx
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.0040cca0
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x20]
sub ecx, dword [esi + 0x7c]
mov eax, dword [esp + 0x24]
sub eax, dword [esi + 0x80]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ecx
push edx
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.0040cc30
lea ecx, [esp + 0x30]
mov dword [esp + 0x50], 0xffffffff
call fcn.0040e780
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x44
ret

Function at 0x40a480
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
call fcn.005c4527
test eax, eax
jne 0x40a496
xor eax, eax
pop esi
add esp, 0x18
ret
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 4]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x40a48f
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, 0
setne al
pop esi
inc eax
add esp, 0x18
ret
Function at 0x40e890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], ecx
test edi, edi
jne 0x40e8a5
xor al, al
pop edi
pop ecx
ret 4
push esi
call fcn.005c7115
mov esi, dword [eax + 0xc]
test esi, esi
je 0x40e8e3
movzx eax, di
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40e8e3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40e8e3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40e8e3
cmp word [esi + 0xe], 0x20
je 0x40e8eb
pop esi
xor al, al
pop edi
pop ecx
ret 4
mov edi, dword [esi]
push ebx
mov ebx, dword [esi + 4]
push ebp
mov ebp, dword [esi + 8]
add edi, esi
test ebp, ebp
setg al
mov byte [esp + 0x18], al
test al, al
jne 0x40e906
neg ebp
mov ecx, dword [esp + 0x10]
push ebp
push ebx
call fcn.0040e7b0
test al, al
jne 0x40e91d
pop ebp
pop ebx
pop esi
pop edi
pop ecx
ret 4
cmp byte [esp + 0x18], 0
mov edx, dword [esp + 0x10]
jne 0x40e943
mov ecx, dword [esi + 0x14]
mov eax, dword [edx + 0xc]
push ecx
push edi
push eax
call fcn.005cdef0
add esp, 0xc
pop ebp
pop ebx
pop esi
mov al, 1
pop edi
pop ecx
ret 4
lea ecx, [ebp - 1]
imul ecx, ebx
lea esi, [ebx*4]
mov ebx, dword [edx + 0xc]
lea edi, [edi + ecx*4]
test ebp, ebp
jle 0x40e974
lea ebx, [ebx]
push esi
push edi
push ebx
call fcn.005cdef0
add esp, 0xc
sub edi, esi
add ebx, esi
sub ebp, 1
jne 0x40e960
pop ebp
pop ebx
pop esi
mov al, 1
pop edi
pop ecx
ret 4

Function at 0x40f0d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5ffda8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x72d150]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.00402410
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40f130
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00402330
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00402410
cmp dword [esp + 0x28], 8
jb 0x40f17d
mov eax, dword [esp + 0x14]
push eax
call fcn.005be738
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret