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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4ab0e8]
cmp byte [eax + 0xc], 0
je 0x450311
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45030a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4acbc8], 0
jne 0x4501f8
push 0x450318
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x450320
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbc8], eax
cmp dword [0x4a9c7c], 0
jne 0x4502f3
push 0x450330
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4a9c7c], eax
cmp dword [0x4a9c7c], 0
je 0x4502f3
push 0x45033c
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbcc], eax
push 0x45034c
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbd0], eax
push 0x450360
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbd4], eax
push 0x450378
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbd8], eax
push 0x450390
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbdc], eax
push 0x4503a4
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbe0], eax
push 0x4503bc
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbe4], eax
push 0x4503d4
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbe8], eax
push 0x4503f0
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbec], eax
push 0x4503fc
mov eax, dword [0x4a9c7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4acbf0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450311
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4545d4
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.004045c4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x454623
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.0040482c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45c4b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45c500]
test si, 4
je 0x45c4c4
or bl, 1
test si, 8
je 0x45c4ce
or bl, 4
test si, 1
je 0x45c4d8
or bl, 8
test si, 2
je 0x45c4e2
or bl, 0x10
test si, 0x10
je 0x45c4ec
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45c4fb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45c504
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45c53c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45c51d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45c52c
or bl, 4
test esi, 0x20000000
je 0x45c537
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x462b58
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x462b6a
add esp, 0xfffffff0
call fcn.00403bbc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004231f4
mov eax, dword [0x4aad1c]
mov dword [eax + 4], ebx
mov dword [eax], 0x462efc
mov eax, dword [0x4aad28]
mov dword [eax + 4], ebx
mov dword [eax], 0x462f08
mov eax, ebx
call fcn.00462f14
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x418a58]
call fcn.00403828
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x418a58]
call fcn.00403828
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x418a58]
call fcn.00403828
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x418a58]
call fcn.00403828
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x418a58]
call fcn.00403828
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, 0x45f3dc
push eax
push 0
push 0
mov eax, dword [0x4aaea4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x424c4c]
call fcn.00426360
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x424c4c]
call fcn.00426360
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x424c4c]
call fcn.00426360
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046337c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x463258
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x463258
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x463258
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x462ca7
call fcn.00403c14
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46303c
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 0x4631e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4631c8
mov dl, 1
mov eax, dword [0x4190bc]
call fcn.00403828
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004045c4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4631b7
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.00450504
test al, al
je 0x4631aa
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, 0x4631f8
lea eax, [ebp - 0x254]
call fcn.00409c5c
push eax
push reloc.GBL.dll_Ordinal_2
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4631aa
xor eax, eax
push ebp
push 0x4631a3
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 0x463230
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46318c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040482c
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 0x46318c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040482c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4631aa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4630ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041d760
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 0x4631ee
lea eax, [ebp - 0x260]
call fcn.004045c4
ret

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

Disassembly:
push ecx
mov eax, dword [0x4acc0c]
cmp byte [eax + 0xa5], 0
jne 0x463b8d
cmp dword [0x4acc24], 0
jne 0x463b4e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x463ad8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4acc24], eax
cmp dword [0x4acc20], 0
jne 0x463b69
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4acc20], eax
cmp dword [0x4acc28], 0
jne 0x463b8d
push esp
push 0
push 0
push 0x463a7c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4acc28], eax
pop edx
ret
Function at 0x463cb4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x463ccb
add esp, 0xfffffff0
call fcn.00403bbc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004231f4
mov eax, dword [0x4aae90]
cmp word [eax + 2], 0
jne 0x463cf3
mov eax, dword [0x4aae90]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004652e8
mov eax, dword [0x4aaf54]
cmp word [eax + 2], 0
jne 0x463d0d
mov eax, dword [0x4aaf54]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004654e0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x418a58]
call fcn.00403828
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x418a58]
call fcn.00403828
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], Ordinal_27
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 [0x4256cc]
call fcn.0042d26c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x463e94
mov eax, dword [0x4aad94]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042d63c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x465a60
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4aad94]
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.0040d5b4
test eax, eax
je 0x463e02
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004095a4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d5dc
test eax, eax
je 0x463e16
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.0040482c
mov eax, dword [0x4aac38]
cmp byte [eax], 0
jne 0x463e4a
mov eax, ebx
call fcn.00463fbc
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.00465c3c
mov eax, ebx
call fcn.004665ec
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x463e8a
call fcn.00403c14
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464230
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4acc0c]
cmp dword [eax + 0x30], 0
je 0x4642da
cmp dword [ebx + 0x94], 0
jne 0x4642d4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4641c0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4642d4
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 0x46429a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4642d4
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.0041b288
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4642a9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x464db8
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 0x464ded
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.004046b4
jmp 0x464dfa
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404618
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x465e18
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x465e59
mov eax, esi
call fcn.0044bbfc
test al, al
je 0x465e59
mov eax, dword [ebx + 0x84]
call fcn.0044b8f8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x465e59
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044b8f8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x470a24
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a64
xor eax, eax
push ebp
push 0x470b04
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00409210
test al, al
je 0x470aee
push 5
mov eax, dword [ebp - 4]
call fcn.00404a74
mov ebx, eax
push ebx
call sub.kernel32.dll_WinExec
mov ebx, 1
jmp 0x470aee
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470b0b
lea eax, [ebp - 4]
call fcn.004045c4
ret

Function at 0x470b14
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x470ba6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x104
call fcn.0040271c
mov ebx, eax
push 0x104
push ebx
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00409760
mov eax, ebx
call fcn.0040273c
mov eax, dword [ebp - 4]
call fcn.0040487c
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x470b71
lea eax, [ebp - 4]
mov edx, 0x470bbc
call fcn.00404884
lea eax, [ebp - 8]
mov ecx, 0x470bc8
mov edx, dword [ebp - 4]
call fcn.004048c8
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00470a24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470bad
lea eax, [ebp - 8]
mov edx, 2
call fcn.004045e8
ret

Function at 0x474198
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4741c6
mov eax, ebx
call fcn.00474c50
cmp dword [ebx + 0x3c], 0
je 0x4741bf
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x474237
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x474229
cmp dword [ebx + 8], 0
je 0x4741e8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4741fa
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x474229
cmp dword [ebx + 8], 0
je 0x4741db
cmp eax, 3
je 0x47420d
dec eax
jne 0x4741db
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4741db
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4741db
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x474255
cmp dword [ebx + 0x10], 0xcc
je 0x474255
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00474260
pop ebx
ret
Function at 0x492520
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4925f8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4ad1cc], 0
jne 0x4925dc
lea eax, [ebp - 4]
mov edx, 0x492610
call fcn.0040465c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404a74
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4925dc
mov eax, ebx
call fcn.0040271c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4925d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4925bf
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x492620
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4925bf
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4ad1cc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4925dc
mov eax, dword [ebp - 0xc]
call fcn.0040273c
ret
mov ebx, dword [0x4ad1cc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4925ff
lea eax, [ebp - 4]
call fcn.004045c4
ret

Function at 0x49cbdc
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4ad1f0], 0
jne 0x49cbff
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x49cb50
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4ad1f0], eax
ret
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push str.user32.dll
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401093
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegisterDeviceNotificationA
push esi
call edi
push str.RegisterDeviceNotificationW
push esi
mov dword [0x40ce24], eax
call edi
push str.UnregisterDeviceNotification
push esi
mov dword [0x40ce28], eax
call edi
mov ecx, dword [0x40ce24]
mov dword [0x40ce20], eax
test ecx, ecx
pop edi
je 0x40108c
mov ecx, dword [0x40ce28]
test ecx, ecx
je 0x40108c
test eax, eax
je 0x40108c
mov eax, 1
pop esi
add esp, 0x104
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop esi
add esp, 0x104
ret
Function at 0x401770
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
push str.GetRegDevNode_n
call fcn.00401100
mov ebp, dword [esp + 0x228]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
lea eax, [esp + 0x128]
push str.Config_ManagerEnum_8.8X
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 3
call ebx
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x120]
push ecx
push 0xf003f
push 0
push edx
push 0x80000006
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push str.HardWareKey
push eax
mov dword [esp + 0x30], 0xfe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
lea edx, [esp + 0x24]
push str.SCSI
push edx
call fcn.00403600
add esp, 0xc
test eax, eax
jne 0x4019a8
mov dl, byte [esp + 0x3c]
cmp dl, 1
jb 0x401838
cmp dl, 9
ja 0x401838
add dl, 0x30
mov byte [esp + 0x3c], dl
cmp dl, 0x5f
jne 0x401845
mov dl, 0x31
mov byte [esp + 0x3c], dl
jmp 0x40184f
cmp dl, 0x31
jb 0x4018b6
cmp dl, 0x39
ja 0x4018b6
mov esi, dword [esp + 0x228]
mov ecx, 0x121
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
sub dl, 0x30
lea eax, [esp + 0x25]
push 8
lea ecx, [esi + 0x402]
and edx, 0xff
push eax
push ecx
mov word [esi + 0x482], dx
call fcn.00403500
lea edx, [esp + 0x39]
push 0x10
lea eax, [esi + 0x442]
push edx
push eax
call fcn.00403500
push ebp
add esi, 2
push str._8.8X_
push esi
call ebx
add esp, 0x24
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
mov esi, dword [esp + 0x228]
mov ecx, 0x121
xor eax, eax
mov edi, esi
mov byte [esp + 0x11], dl
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x3b]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push edx
push 0x40c108
mov byte [esp + 0x18], cl
mov byte [esp + 0x1a], al
call edi
test eax, eax
jne 0x4018f9
mov word [esi + 0x482], 1
jmp 0x401963
lea eax, [esp + 0x10]
push eax
push 0x40c104
call edi
test eax, eax
jne 0x401914
mov word [esi + 0x482], 2
jmp 0x401963
lea ecx, [esp + 0x10]
push ecx
push 0x40c100
call edi
test eax, eax
jne 0x40192f
mov word [esi + 0x482], 3
jmp 0x401963
lea edx, [esp + 0x10]
push edx
push 0x40c0fc
call edi
test eax, eax
jne 0x40194a
mov word [esi + 0x482], 4
jmp 0x401963
lea eax, [esp + 0x10]
push eax
push 0x40c0f8
call edi
test eax, eax
jne 0x4019a8
mov word [esi + 0x482], 5
lea ecx, [esp + 0x25]
push 8
lea edx, [esi + 0x402]
push ecx
push edx
call fcn.00403500
lea eax, [esp + 0x39]
push 0x10
lea ecx, [esi + 0x442]
push eax
push ecx
call fcn.00403500
push ebp
add esi, 2
push str._8.8X_
push esi
call ebx
add esp, 0x24
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret
Function at 0x401f60
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x100
push ebx
push esi
push edi
push str.DelDriveIcon_n
call fcn.00401100
mov eax, dword [esp + 0x114]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
and eax, 0xffff
lea ecx, [esp + 0x10]
lea esi, [eax + 0x41]
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerDriveIcons_cDefaultIcon
push ecx
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
push 0x80000002
call ebx
push esi
lea eax, [esp + 0x10]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerDriveIcons_cDefaultLabel
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x80000002
call ebx
push esi
lea edx, [esp + 0x10]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerDriveIcons_c
push edx
call edi
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x80000002
call ebx
push esi
lea ecx, [esp + 0x10]
push str.ApplicationsExplorer.exeDrives_cDefaultIcon
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x80000001
call ebx
push esi
lea eax, [esp + 0x10]
push str.ApplicationsExplorer.exeDrives_cDefaultLabel
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x80000001
call ebx
push esi
lea edx, [esp + 0x10]
push str.ApplicationsExplorer.exeDrives_c
push edx
call edi
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x80000001
call ebx
pop edi
pop esi
pop ebx
add esp, 0x100
ret