joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b93c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40b984
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.0040492c
jmp 0x40b98f
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00404890
mov esp, ebp
pop ebp
ret 4

Function at 0x40b998
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b9c6
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x40b9cc
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x40c154
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040bf9c
mov eax, dword [0x434810]
cmp byte [eax], 0
je 0x40c1e7
mov eax, dword [0x434704]
call fcn.004031fc
call fcn.00402b70
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x44c]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.00408d70
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40c22c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c21d
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x4346d8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x435660]
call fcn.0040588c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov esp, ebp
pop ebp
ret

Function at 0x40d3b4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40d41e
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.00404aac
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408208
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d425
lea eax, [ebp - 0x14]
call fcn.0040483c
ret
Function at 0x4164a8
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
setge dl
mov eax, dword [ebp - 4]
call fcn.004162b0
cmp dword [ebp - 8], 1
jne 0x4164dc
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 0
pop ecx
pop ecx
pop ebp
ret

Function at 0x417ae8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 8
call fcn.00403344
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404cd8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0xd]
mov eax, dword [ebp - 0x14]
call fcn.004175fc
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret

Function at 0x417d04
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
call fcn.004175ac
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404cd8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x417d6c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [0x434788]
mov dl, 1
mov eax, dword [0x417488]
call fcn.0040c350
call fcn.004041ac
mov esp, ebp
pop ebp
ret 8

Function at 0x417d74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404cd8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x417dd6
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [0x4348b4]
mov dl, 1
mov eax, dword [0x417488]
call fcn.0040c350
call fcn.004041ac
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.004175fc
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x418740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
mov dword [ebp - 4], eax
push 0
push 0x1a
lea eax, [ebp - 0x109]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
test eax, eax
je 0x418777
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00404aac
jmp 0x41878d
mov ecx, 0x41879c
mov dl, 1
mov eax, dword [0x406dc4]
call fcn.0040c230
call fcn.004041ac
mov esp, ebp
pop ebp
ret

Function at 0x4187c8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
mov dword [ebp - 4], eax
push 0
push 0x23
lea eax, [ebp - 0x109]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
test eax, eax
je 0x4187ff
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00404aac
jmp 0x418815
mov ecx, 0x418824
mov dl, 1
mov eax, dword [0x406dc4]
call fcn.0040c230
call fcn.004041ac
mov esp, ebp
pop ebp
ret

Function at 0x418a0c
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov byte [ebp - 1], al
mov byte [ebp - 2], 0
lea eax, [ebp - 8]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x418a7d
lea eax, [ebp - 0x14]
push eax
push 0x418a94
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x418a7d
mov dword [ebp - 0x18], 1
cmp byte [ebp - 1], 0
je 0x418a58
mov dword [ebp - 0xc], 2
jmp 0x418a5f
mov dword [ebp - 0xc], 1
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
cmp dword [ebp - 8], 0xffffffff
je 0x418a8c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, byte [ebp - 2]
mov esp, ebp
pop ebp
ret
Function at 0x41a894
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ecx
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x41aa74
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040483c
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.00402e10
mov eax, dword [ebp - 0x20]
call fcn.00404cd8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x41aa51
mov eax, dword [ebp - 0xc]
call fcn.004029e4
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x41aa4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00402e10
mov eax, dword [ebp - 0x24]
call fcn.00404cd8
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x41aa80
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
call fcn.004069f8
movzx eax, ax
lea edx, [ebp - 0x28]
call fcn.0040808c
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.00404ae0
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
push dword [eax]
push 0x41aa8c
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 8]
call fcn.0040808c
push dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.00404b98
cmp byte [ebp - 1], 0
je 0x41a9d4
mov eax, dword [ebp - 8]
push dword [eax]
push 0x41aa8c
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
call fcn.004069f8
movzx eax, ax
lea edx, [ebp - 0x30]
call fcn.0040808c
push dword [ebp - 0x30]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.00404b98
cmp byte [ebp - 2], 0
je 0x41aa14
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0xc]
call fcn.0040808c
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
lea edx, [ebp - 0x3c]
xor ecx, ecx
mov eax, 0x41aa98
call fcn.0040947c
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.00404ae0
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x1c]
and eax, dword [edx + 0x1c]
test al, 1
je 0x41aa34
mov eax, dword [ebp - 8]
mov edx, 0x41aaa4
call fcn.00404ae0
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41aa51
mov eax, dword [ebp - 0x14]
call fcn.00402a14
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41aa7b
lea eax, [ebp - 0x40]
call fcn.0040483c
lea eax, [ebp - 0x34]
mov edx, 6
call fcn.00404860
ret
Function at 0x41aac4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov byte [0x43597d], 0
push 0x41abb0
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebp - 4], eax
push 0x41abc0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41ab67
lea eax, [ebp - 0x34]
push eax
call dword [ebp - 8]
push 0x41abd4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41ab70
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call dword [ebp - 0xc]
test eax, eax
je 0x41ab70
cmp dword [ebp - 0x10], 0
je 0x41ab70
call fcn.0041aab0
test al, al
je 0x41ab70
push 0x41abe4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x41ab70
push 0x41ac00
push 0x41ac10
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x41ab70
mov byte [0x43597d], 1
jmp 0x41ab70
lea eax, [ebp - 0x34]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ax, word [ebp - 0x34]
sub ax, 1
jb 0x41ab88
sub ax, 5
je 0x41ab91
sub ax, 3
je 0x41ab9a
jmp 0x41aba3
mov byte [0x434460], 1
jmp 0x41abaa
mov byte [0x434460], 3
jmp 0x41abaa
mov byte [0x434460], 2
jmp 0x41abaa
mov byte [0x434460], 0
mov esp, ebp
pop ebp
ret

Function at 0x41cb28
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41cc17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40], 0xffffffff
je 0x41cc01
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x44]
lea eax, [ebp - 0x14]
mov edx, 0x41cc2c
call fcn.00404b24
mov eax, dword [ebp - 0x14]
call fcn.00404ad8
inc eax
call fcn.004029e4
mov dword [ebp - 0xc], eax
mov eax, 0x64
call fcn.004029e4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00408dfc
xor eax, eax
push ebp
push 0x41cbe4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x64
lea eax, [ebp - 8]
push eax
push 0x64
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404ad8
inc eax
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.00404cd8
push eax
call sub.kernel32.dll_CallNamedPipeA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cbeb
mov eax, dword [ebp - 0xc]
call fcn.00402a14
mov eax, dword [ebp - 0x10]
call fcn.00402a14
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cc1e
lea eax, [ebp - 0x14]
call fcn.0040483c
ret
Function at 0x41cc3c
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 4], eax
push 0x64
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.00404cd8
push eax
call sub.kernel32.dll_WaitNamedPipeA
test eax, eax
je 0x41cc72
mov ecx, 0x41cd68
mov dl, 1
mov eax, dword [0x41c734]
call fcn.0040c230
call fcn.004041ac
push 0x14
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41cc9a
mov ecx, 0x41cd90
mov dl, 1
mov eax, dword [0x41c734]
call fcn.0040c230
call fcn.004041ac
push 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
test eax, eax
jne 0x41ccc8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LocalFree_1
mov ecx, 0x41cdb8
mov dl, 1
mov eax, dword [0x41c734]
call fcn.0040c230
call fcn.004041ac
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
test eax, eax
jne 0x41ccfa
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LocalFree_1
mov ecx, 0x41ce00
mov dl, 1
mov eax, dword [0x41c734]
call fcn.0040c230
call fcn.004041ac
mov dword [ebp - 0x14], 0xc
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 0x14]
push eax
push 0
push 0x4c4b40
push 0x4c4b40
push 0x64
push 6
push 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.00404cd8
push eax
call sub.kernel32.dll_CreateNamedPipeA
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40], 0xffffffff
jne 0x41cd5a
mov ecx, 0x41ce44
mov dl, 1
mov eax, dword [0x41c734]
call fcn.0040c230
call fcn.004041ac
mov esp, ebp
pop ebp
ret

Function at 0x41e324
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x40
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x41e382
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x41e382
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x41e382
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0xf8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x41e37d
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x41e382
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret
Function at 0x4296cc
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cc8
xor eax, eax
push ebp
push 0x42987d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x429894
mov eax, dword [0x4365dc]
call fcn.0041f338
mov byte [ebp - 9], 0
xor eax, eax
push ebp
push 0x429860
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404ad8
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
jne 0x429737
mov eax, dword [ebp - 4]
call fcn.00404ad8
mov edx, eax
dec edx
lea eax, [ebp - 4]
call fcn.00404e08
push 1
lea eax, [ebp - 0x268]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
mov dword [ebp - 0x254], 0xc
lea eax, [ebp - 0x268]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], 0xffffffff
push 0
push 0x80
push 3
lea eax, [ebp - 0x254]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404cd8
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x42979a
call fcn.00404258
jmp 0x429867
xor eax, eax
push ebp
push 0x42983c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
mov edx, 0xc
call fcn.00406a14
lea eax, [ebp - 0x248]
mov edx, 0x224
call fcn.00406a14
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x244], 0x224
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x244]
push eax
lea eax, [ebp - 0x248]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_DeviceIoControl
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x429816
call fcn.00404258
call fcn.00404258
jmp 0x429867
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x22c]
mov dword [eax], edx
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429843
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429884
lea eax, [ebp - 4]
call fcn.0040483c
ret
Function at 0x429bf4
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cc8
xor eax, eax
push ebp
push 0x429d27
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0xffffffff
mov byte [ebp - 9], 0
push 1
lea eax, [ebp - 0x38]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
mov dword [ebp - 0x24], 0xc
lea eax, [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0xffffffff
push 0
push 0x80
push 3
push 0
push 0
push 0
lea eax, [ebp - 4]
call fcn.00404d30
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x429d01
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0xc
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
lea eax, [ebp - 0x3c]
mov ecx, 0x429d40
mov edx, dword [ebp - 4]
call fcn.00404b24
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0042bdc8
lea ecx, [ebp - 0x18]
pop edx
call fcn.0042c084
call fcn.0042bdc8
mov edx, dword [ebp - 0x18]
call fcn.0042c208
test al, al
jne 0x429cef
call fcn.0042bdc8
mov edx, dword [ebp - 4]
call fcn.0042c28c
test al, al
je 0x429cf8
mov eax, dword [ebp - 8]
mov dword [eax], 0x9c40
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429d2e
lea eax, [ebp - 0x3c]
call fcn.0040483c
lea eax, [ebp - 0x18]
call fcn.0040483c
lea eax, [ebp - 4]
call fcn.0040483c
ret
Function at 0x429d44
Capabilities:
Enumerate disk volumes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x429f97
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x429fb0
mov eax, dword [0x4365dc]
call fcn.0041f338
xor eax, eax
push ebp
push 0x429f75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.00404cd8
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.00404a34
lea eax, [ebp - 0x14]
mov edx, 0x104
call fcn.00404e08
mov cl, 1
mov dl, 1
mov eax, dword [0x416a08]
call fcn.00416adc
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x429f41
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.00404ad8
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404cd8
push eax
call sub.kernel32.dll_FindFirstVolumeA
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x429f30
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
jne 0x429e1f
mov ecx, 0x429fd4
mov dl, 1
mov eax, dword [0x406dc4]
call fcn.0040c230
call fcn.004041ac
call fcn.00404258
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00404258
jmp 0x429f7c
lea eax, [ebp - 0x18]
call fcn.0040483c
mov eax, dword [ebp - 0x14]
call fcn.00404cd8
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.00404a34
call fcn.0042bdc8
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
call fcn.0042c084
mov byte [ebp - 0x19], 1
cmp byte [ebp - 0x19], 0
je 0x429edc
mov eax, dword [ebp - 0xc]
call fcn.00404ad8
test eax, eax
jle 0x429e8e
mov eax, dword [ebp - 0xc]
call fcn.00404ad8
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax - 1], 0x5c
jne 0x429e8e
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404ad8
mov ecx, eax
dec ecx
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00404d38
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
call fcn.00429bf4
mov dl, 1
mov eax, dword [0x42942c]
call fcn.00403aa4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 4
mov edx, dword [ebp - 0xc]
call fcn.00404890
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00416a70
mov eax, dword [ebp - 0x14]
call fcn.00404ad8
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404cd8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextVolumeA
test eax, eax
jne 0x429e1f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429f37
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindVolumeClose
test eax, eax
jne 0x429f2f
mov ecx, 0x42a01c
mov dl, 1
mov eax, dword [0x406dc4]
call fcn.0040c230
call fcn.004041ac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429f9e
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404860
ret