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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x46b180]
cmp byte [eax + 0xc], 0
je 0x43f971
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43f96a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46cbbc], 0
jne 0x43f858
push 0x43f978
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43f980
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cbbc], eax
cmp dword [0x46aa30], 0
jne 0x43f953
push 0x43f990
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46aa30], eax
cmp dword [0x46aa30], 0
je 0x43f953
push 0x43f99c
mov eax, dword [0x46aa30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cbc0], eax
push 0x43f9ac
mov eax, dword [0x46aa30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cbc4], eax
push 0x43f9c0
mov eax, dword [0x46aa30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cbc8], eax
push 0x43f9d8
mov eax, dword [0x46aa30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cbcc], eax
push 0x43f9f0
mov eax, dword [0x46aa30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cbd0], eax
push 0x43fa04
mov eax, dword [0x46aa30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cbd4], eax
push 0x43fa1c
mov eax, dword [0x46aa30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cbd8], eax
push 0x43fa34
mov eax, dword [0x46aa30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cbdc], eax
push 0x43fa50
mov eax, dword [0x46aa30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cbe0], eax
push 0x43fa5c
mov eax, dword [0x46aa30]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cbe4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f971
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x443584
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.004043cc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4435d3
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.00404634
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44b414
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b464]
test si, 4
je 0x44b428
or bl, 1
test si, 8
je 0x44b432
or bl, 4
test si, 1
je 0x44b43c
or bl, 8
test si, 2
je 0x44b446
or bl, 0x10
test si, 0x10
je 0x44b450
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b45f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44b468
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b4a0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b481
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b490
or bl, 4
test esi, 0x20000000
je 0x44b49b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x451aa4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x451ab6
add esp, 0xfffffff0
call fcn.00403940
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bdac
mov eax, dword [0x46ae84]
mov dword [eax + 4], ebx
mov dword [eax], 0x451e48
mov eax, dword [0x46ae90]
mov dword [eax + 4], ebx
mov dword [eax], 0x451e54
mov eax, ebx
call fcn.00451e60
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411850]
call fcn.004035ac
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411850]
call fcn.004035ac
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411850]
call fcn.004035ac
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411850]
call fcn.004035ac
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411850]
call fcn.004035ac
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, 0x44e328
push eax
push 0
push 0
mov eax, dword [0x46afb4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41d77c]
call fcn.0041ee50
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41d77c]
call fcn.0041ee50
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41d77c]
call fcn.0041ee50
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00452280
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45215c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45215c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45215c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451bf3
call fcn.00403998
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x451f40
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 0x4520eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4520cc
mov dl, 1
mov eax, dword [0x411d40]
call fcn.004035ac
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043cc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4520bb
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.0043fb64
test al, al
je 0x4520ae
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, 0x4520fc
lea eax, [ebp - 0x254]
call fcn.0040922c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4520ae
xor eax, eax
push ebp
push 0x4520a7
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 0x452134
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x452090
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404634
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 0x452090
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404634
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4520ae
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x451fb1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415ee4
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 0x4520f2
lea eax, [ebp - 0x260]
call fcn.004043cc
ret

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

Disassembly:
push ecx
mov eax, dword [0x46cc00]
cmp byte [eax + 0xa5], 0
jne 0x452a91
cmp dword [0x46cc18], 0
jne 0x452a52
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4529dc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46cc18], eax
cmp dword [0x46cc14], 0
jne 0x452a6d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46cc14], eax
cmp dword [0x46cc1c], 0
jne 0x452a91
push esp
push 0
push 0
push 0x452980
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x46cc1c], eax
pop edx
ret
Function at 0x452b88
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x452b9f
add esp, 0xfffffff0
call fcn.00403940
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bdac
mov eax, dword [0x46afa4]
cmp word [eax + 2], 0
jne 0x452bc7
mov eax, dword [0x46afa4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004541bc
mov eax, dword [0x46b030]
cmp word [eax + 2], 0
jne 0x452be1
mov eax, dword [0x46b030]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004543b4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411850]
call fcn.004035ac
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411850]
call fcn.004035ac
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 [0x41e1fc]
call fcn.00425898
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x452d68
mov eax, dword [0x46aedc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00425c68
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x454924
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46aedc]
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.0040ab70
test eax, eax
je 0x452cd6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408b88
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ab98
test eax, eax
je 0x452cea
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.00404634
mov eax, dword [0x46adec]
cmp byte [eax], 0
jne 0x452d1e
mov eax, ebx
call fcn.00452e90
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.00454b00
mov eax, ebx
call fcn.00455440
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452d5e
call fcn.00403998
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453104
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46cc00]
cmp dword [eax + 0x30], 0
je 0x4531ae
cmp dword [ebx + 0x94], 0
jne 0x4531a8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453094
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4531a8
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 0x45316e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4531a8
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.00413f4c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45317d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453c8c
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 0x453cc1
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.004044bc
jmp 0x453cce
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404420
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454cdc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454d1d
mov eax, esi
call fcn.0043b2e0
test al, al
je 0x454d1d
mov eax, dword [ebx + 0x84]
call fcn.0043afdc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454d1d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043afdc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x456b7c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x456bcd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x456bb4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x456ba4
jmp 0x456bcd
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x456bb5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464884
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040487c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4648dc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46b18c]
mov dl, 1
mov eax, dword [0x46443c]
call fcn.0040a1b4
call fcn.00403da8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00464544
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x464d58
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040486c
xor eax, eax
push ebp
push 0x464da8
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040487c
push eax
push 0x464db4
push ebx
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464daf
lea eax, [ebp - 4]
call fcn.004043cc
ret
Function at 0x4651f0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe1c
push ebx
xor ecx, ecx
mov dword [ebp - 0x1e4], ecx
mov dword [ebp - 0x1e0], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040486c
mov eax, dword [ebp - 8]
call fcn.0040486c
xor eax, eax
push ebp
push 0x4653e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x46449c]
call fcn.0046456c
mov ebx, eax
mov edx, 0x80000001
mov eax, ebx
call fcn.0046460c
mov cl, 1
mov edx, 0x4653fc
mov eax, ebx
call fcn.00464670
test al, al
je 0x46526d
lea ecx, [ebp - 0xc]
mov edx, 0x465448
mov eax, ebx
call fcn.0046480c
mov eax, ebx
call fcn.004645dc
mov dl, 1
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 4]
cmp dword [ebp - 0xc], 0
je 0x4653ba
push dword [ebp - 0xc]
push 0x46545c
push dword [ebp - 4]
push 0x465468
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404744
xor eax, eax
push ebp
push 0x4653b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x1dc]
call fcn.00402c78
lea eax, [ebp - 0x1dc]
call fcn.00402a14
mov edx, 0x46547c
lea eax, [ebp - 0x1dc]
call fcn.00404a6c
call fcn.004030a8
push 0x465490
push dword [ebp - 8]
push 0x4654a8
lea eax, [ebp - 0x1e0]
mov edx, 3
call fcn.00404744
mov edx, dword [ebp - 0x1e0]
lea eax, [ebp - 0x1dc]
call fcn.00404a6c
call fcn.004030a8
mov edx, 0x4654b4
lea eax, [ebp - 0x1dc]
call fcn.00404a6c
call fcn.004030a8
push 0x4654d0
push dword [ebp - 8]
push 0x4654e4
lea eax, [ebp - 0x1e4]
mov edx, 3
call fcn.00404744
mov edx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1dc]
call fcn.00404a6c
call fcn.004030a8
mov edx, 0x4654f0
lea eax, [ebp - 0x1dc]
call fcn.00404a6c
call fcn.004030a8
mov edx, 0x465518
lea eax, [ebp - 0x1dc]
call fcn.00404a6c
call fcn.004030a8
mov edx, 0x465560
lea eax, [ebp - 0x1dc]
call fcn.00404a6c
call fcn.004030a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4653ba
lea eax, [ebp - 0x1dc]
call fcn.00402d40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4653ec
lea eax, [ebp - 0x1e4]
mov edx, 2
call fcn.004043f0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004043f0
ret
Function at 0x465570
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe18
push ebx
xor ecx, ecx
mov dword [ebp - 0x1e8], ecx
mov dword [ebp - 0x1e4], ecx
mov dword [ebp - 0x1e0], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040486c
mov eax, dword [ebp - 8]
call fcn.0040486c
xor eax, eax
push ebp
push 0x46579e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x46449c]
call fcn.0046456c
mov ebx, eax
mov edx, 0x80000001
mov eax, ebx
call fcn.0046460c
mov cl, 1
mov edx, 0x4657b4
mov eax, ebx
call fcn.00464670
test al, al
je 0x4655f3
lea ecx, [ebp - 0xc]
mov edx, 0x465800
mov eax, ebx
call fcn.0046480c
mov eax, ebx
call fcn.004645dc
mov dl, 1
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 4]
cmp dword [ebp - 0xc], 0
je 0x465773
push dword [ebp - 0xc]
push 0x465814
push dword [ebp - 4]
push 0x465814
lea eax, [ebp - 0x1e0]
mov edx, 4
call fcn.00404744
mov eax, dword [ebp - 0x1e0]
call fcn.004028f8
push dword [ebp - 0xc]
push 0x465814
push dword [ebp - 4]
push 0x465814
push dword [ebp - 4]
push 0x465820
lea eax, [ebp - 0x10]
mov edx, 6
call fcn.00404744
xor eax, eax
push ebp
push 0x46576c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x1dc]
call fcn.00402c78
lea eax, [ebp - 0x1dc]
call fcn.00402a14
mov edx, 0x465834
lea eax, [ebp - 0x1dc]
call fcn.00404a6c
call fcn.004030a8
push 0x465848
push dword [ebp - 8]
push 0x465860
lea eax, [ebp - 0x1e4]
mov edx, 3
call fcn.00404744
mov edx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1dc]
call fcn.00404a6c
call fcn.004030a8
mov edx, 0x46586c
lea eax, [ebp - 0x1dc]
call fcn.00404a6c
call fcn.004030a8
push 0x465888
push dword [ebp - 8]
push 0x46589c
lea eax, [ebp - 0x1e8]
mov edx, 3
call fcn.00404744
mov edx, dword [ebp - 0x1e8]
lea eax, [ebp - 0x1dc]
call fcn.00404a6c
call fcn.004030a8
mov edx, 0x4658a8
lea eax, [ebp - 0x1dc]
call fcn.00404a6c
call fcn.004030a8
mov edx, 0x4658d0
lea eax, [ebp - 0x1dc]
call fcn.00404a6c
call fcn.004030a8
mov edx, 0x465918
lea eax, [ebp - 0x1dc]
call fcn.00404a6c
call fcn.004030a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465773
lea eax, [ebp - 0x1dc]
call fcn.00402d40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4657a5
lea eax, [ebp - 0x1e8]
mov edx, 3
call fcn.004043f0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004043f0
ret
Function at 0x401300
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2ff4
call fcn.00412750
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
push edi
mov dword [esp + 0x10], esi
push esi
lea eax, [esp + 0x28]
push str..PhysicalDrive_d
push eax
call fcn.0041269a
add esp, 0xc
lea ecx, [esp + 0x24]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40150f
xor edx, edx
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0x8f4]
mov dword [esp + 0x18], edx
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x20], edx
push eax
lea ecx, [esp + 0x8fc]
mov dword [esp + 0x28], edx
push 0x2710
push ecx
lea edx, [esp + 0x28]
push 0xc
push edx
push 0x2d1400
push ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401438
mov eax, dword [esp + 0x90c]
lea ecx, [esp + eax + 0x8f4]
push ecx
call fcn.00401140
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x50c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [0x431678]
and ecx, 3
cmp al, bl
rep movsb byte es:[edi], byte [esi]
jne 0x40143e
movsx ecx, byte [esp + 0x50c]
push ecx
call fcn.00412719
add esp, 4
test eax, eax
jne 0x40140f
movsx edx, byte [esp + 0x51f]
push edx
call fcn.00412719
add esp, 4
test eax, eax
je 0x40143e
lea edi, [esp + 0x50c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x431678
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40143e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0x8f4]
push ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x8f8]
push ecx
push 0x2710
push edx
push ebx
push ebx
push 0x2d0c10
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4014fe
lea edi, [esp + 0x904]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x124]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [0x431678]
and ecx, 3
cmp al, bl
rep movsb byte es:[edi], byte [esi]
jne 0x401504
movsx ecx, byte [esp + 0x124]
push ecx
call fcn.00412719
add esp, 4
test eax, eax
jne 0x4014d5
movsx edx, byte [esp + 0x137]
push edx
call fcn.00412719
add esp, 4
test eax, eax
je 0x401504
lea edi, [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x431678
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x401504
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
inc esi
cmp esi, 4
mov dword [esp + 0x10], esi
jl 0x401316
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2ff4
ret