joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8e9a0
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 0x8eb4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x8eb2c
mov dl, 1
mov eax, dword [0x38cec]
call fcn.00012ee4
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00013c3c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x8eb1b
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.0007cc04
test al, al
je 0x8eb0e
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, 0x8eb5c
lea eax, [ebp - 0x254]
call fcn.000345e0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x8eb0e
xor eax, eax
push ebp
push 0x8eb07
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 0x8eb94
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x8eaf0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00013e7c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x8eaf0
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00013e7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8eb0e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x8ea11
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0003c3c8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8eb52
lea eax, [ebp - 0x260]
call fcn.00013c3c
ret

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

Disassembly:
push ecx
mov eax, dword [0x2ad1dc]
cmp byte [eax + 0x95], 0
jne 0x8f409
cmp dword [0x2ad1f8], 0
jne 0x8f3ca
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x8f354
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x2ad1f8], eax
cmp dword [0x2ad1f4], 0
jne 0x8f3e5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x2ad1f4], eax
cmp dword [0x2ad1fc], 0
jne 0x8f409
push esp
push 0
push 0
push 0x8f2f8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x2ad1fc], eax
pop edx
ret
Function at 0x8f500
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x8f517
add esp, 0xfffffff0
call fcn.00013214
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0003f8c0
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x38798]
call fcn.00012ee4
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x38798]
call fcn.00012ee4
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x62000]
call fcn.0006941c
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x8f68c
mov eax, dword [0x2a92b0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.000697ec
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x90f64
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x2a92b0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
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.0003608c
test eax, eax
je 0x8f60a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00033f80
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.000360b4
test eax, eax
je 0x8f61e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00013e7c
mov eax, dword [0x2a9050]
cmp byte [eax], 0
jne 0x8f64f
mov eax, ebx
call fcn.0008f778
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x8f681
call fcn.0001326c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x8f9e8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x2ad1dc]
cmp dword [eax + 0x24], 0
je 0x8fa8b
cmp dword [ebx + 0x84], 0
jne 0x8fa85
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x8f978
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x8fa85
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 0x8fa4e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x8fa85
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0003a1f0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x8fa5d
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x90498
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x904cd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00013d24
jmp 0x904d7
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00013c90
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x912d8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x91310
mov eax, esi
call fcn.000789bc
test al, al
je 0x91310
mov eax, dword [ebx + 0x74]
call fcn.000786c0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x91310
push 0
mov eax, dword [ebx + 0x74]
call fcn.000786c0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x92b2c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov byte [ebp - 5], 1
cmp dword [ebp - 4], 0
je 0x92b65
mov eax, dword [ebp - 4]
call fcn.00014090
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x92b5c
test byte [ebp - 0xc], 0x10
jne 0x92b60
xor eax, eax
jmp 0x92b62
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x93e48
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x93ed6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jle 0x93e7a
cmp dword [ebp - 4], 0x400
jne 0x93e81
mov dword [ebp - 4], 0x400
lea eax, [ebp - 0x10]
mov edx, 0x400
call fcn.00014200
push 0x3ff
mov eax, dword [ebp - 0x10]
call fcn.00014090
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
and eax, 0xffff
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov eax, dword [ebp - 0x10]
call fcn.00014090
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00013e04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x93edd
lea eax, [ebp - 0x10]
call fcn.00013c3c
ret
Function at 0x968dc
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00014080
mov eax, dword [ebp - 0xc]
call fcn.00014080
xor eax, eax
push ebp
push 0x96a69
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0
jne 0x9692a
lea eax, [ebp - 8]
mov edx, 0x96a80
call fcn.00013cd4
cmp dword [ebp - 0xc], 0
jne 0x9693d
lea eax, [ebp - 0xc]
mov edx, 0x96a8c
call fcn.00013cd4
xor eax, eax
push ebp
push 0x96a3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
call fcn.00013ecc
test eax, eax
jne 0x96988
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.kernel32.dll_GetTempPathA
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 0xc
call fcn.0001271c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetTempPathA
jmp 0x969e6
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
mov dl, 1
call fcn.00092c08
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add eax, 0xe4
call fcn.00013c90
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
call fcn.00013ecc
add eax, 0xd
call fcn.0001271c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
call fcn.00013ecc
mov ecx, eax
inc ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xe4]
mov eax, dword [ebp - 0x10]
call fcn.00034000
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00014090
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x96a24
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.00013e04
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00033968
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x96a41
mov eax, dword [ebp - 0x10]
call fcn.00012734
ret
Function at 0x971a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x97258
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
mov edx, dword [ebp - 8]
call fcn.00013fdc
je 0x9723d
cmp dword [ebp - 8], 0
je 0x9722d
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00033a30
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov ecx, 0x9726c
call fcn.00013f18
mov eax, dword [ebp - 0x10]
call fcn.00014090
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
je 0x9722d
cmp dword [ebp - 0xc], 6
je 0x9722d
mov eax, dword [ebp - 8]
push eax
mov ecx, 0x2b2b
mov dl, 1
mov eax, dword [0x94610]
call fcn.00094940
call fcn.0001366c
mov eax, dword [ebp - 4]
add eax, 0xe4
mov edx, dword [ebp - 8]
call fcn.00013c90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9725f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00013c60
ret
Function at 0x981b4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00014080
xor eax, eax
push ebp
push 0x984f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x100], 0
jbe 0x981fd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 4]
call fcn.00097bd0
push 3
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x983be
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00014090
push eax
call sub.kernel32.dll_LoadLibraryA
mov edx, dword [ebp - 4]
mov dword [edx + 0x100], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x100], 0x20
jbe 0x98334
push 0x98508
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x118], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x118], 0
je 0x9828a
push 0x98514
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x120], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x120], 0
je 0x982b3
push 0x98520
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x11c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x11c], 0
je 0x982dc
push 0x9852c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x110], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x110], 0
je 0x98305
push 0x9853c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0xec], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xec], 0
je 0x983a7
push 0x98548
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x108], eax
jmp 0x983a7
mov eax, dword [ebp - 4]
cmp byte [eax + 0xea], 0
jne 0x9834c
mov eax, dword [ebp - 4]
cmp byte [eax + 0xe8], 0
je 0x983a7
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
call fcn.00034cc4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x34]
mov ecx, 2
mov eax, 0x98558
call fcn.00034648
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0
xor ecx, ecx
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.00096a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x983c5
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x99790
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], 0xffffffff
push 0x998dc
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x99827
push 0x998e8
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x9981e
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
call fcn.00014090
push eax
call dword [ebp - 0xc]
test eax, eax
jne 0x9981e
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], 0xffffffff
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_FreeLibrary_1
cmp dword [ebp - 0x24], 0xffffffff
jne 0x998a1
cmp dword [ebp - 0x28], 0xffffffff
jne 0x998a1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
call fcn.00014090
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x998a1
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.00016c48
call fcn.00016c48
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.00016c48
call fcn.00016c48
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test byte [ebp - 8], 1
je 0x998bc
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x180], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x184], edx
test byte [ebp - 8], 2
je 0x998d7
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x1e8], edx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x1ec], edx
mov esp, ebp
pop ebp
ret
Function at 0x9af04
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
xor edx, edx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x9b0ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0xff
mov dword [ebp - 0x18], 0xff
mov eax, dword [ebp - 4]
mov dword [eax + 0x1e8], 0
mov dword [eax + 0x1ec], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x148], 0
mov dword [eax + 0x14c], 0
mov eax, dword [ebp - 4]
add eax, 0x20c
call fcn.00013c3c
mov byte [ebp - 0x128], 0
mov byte [ebp - 5], 0
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
call fcn.00033054
mov eax, dword [ebp - 0x12c]
mov al, byte [eax]
mov byte [ebp - 0x21], al
cmp byte [ebp - 0x21], 0x5c
je 0x9b00c
cmp byte [ebp - 0x21], 0x41
jb 0x9afab
cmp byte [ebp - 0x21], 0x5a
jbe 0x9afcb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
push eax
mov ecx, 0x2afb
mov dl, 1
mov eax, dword [0x94610]
call fcn.00094940
call fcn.0001366c
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 0x20], eax
xor eax, eax
mov al, byte [ebp - 0x21]
sub eax, 0x41
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0x1f
ja 0x9afea
bt dword [ebp - 0x20], eax
jb 0x9b00c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
push eax
mov ecx, 0x2afc
mov dl, 1
mov eax, dword [0x94610]
call fcn.00094940
call fcn.0001366c
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x10], eax
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
call fcn.00014090
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0x9b06e
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x1f
jne 0x9b063
mov eax, dword [ebp - 4]
test byte [eax + 0x12e], 2
je 0x9b063
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetErrorMode
jmp 0x9b0d1
mov eax, dword [ebp - 4]
add eax, 0x20c
lea edx, [ebp - 0x128]
mov ecx, pe_nt_image_headers32
call fcn.00013e7c
test byte [ebp - 0xa], 8
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 0x210], al
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.00099790
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetErrorMode
cmp byte [ebp - 0x21], 0x5c
je 0x9b0cd
cmp byte [ebp - 0x21], 0x5c
je 0x9b0d1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1ec], 0xffffffff
jne 0x9b0cb
cmp dword [eax + 0x1e8], 0xffffffff
je 0x9b0d1
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9b0f1
lea eax, [ebp - 0x12c]
call fcn.00013c3c
ret
Function at 0x9bb48
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00014080
xor eax, eax
push ebp
push 0x9bbac
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00014090
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
je 0x9bb91
cmp dword [ebp - 0x10], 4
je 0x9bb91
cmp dword [ebp - 0x10], 6
je 0x9bb91
xor eax, eax
jmp 0x9bb93
mov al, 1
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x9bbb3
lea eax, [ebp - 8]
call fcn.00013c3c
ret
Function at 0xad500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test dl, dl
je 0xad515
add esp, 0xfffffff0
call fcn.00013214
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 4
mov edx, ebx
call fcn.00014350
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0001d92c
test al, al
jne 0xad5e1
xor eax, eax
push ebp
push 0xad5d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xe], 0xff
mov byte [ebp - 0xd], 0xfe
mov dword [ebp - 0x14], 0xffffffff
xor eax, eax
push ebp
push 0xad5c6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00014538
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0xad5a9
push 0
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 0xe]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xad5cd
cmp dword [ebp - 0x14], 0xffffffff
je 0xad5c5
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0xad5f9
call fcn.0001326c
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xad604
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0xad700
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0xad6e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x8000
call fcn.00019248
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xad6c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebx + 4]
call fcn.00014538
push eax
mov eax, dword [ebp - 4]
call fcn.00018ad4
push eax
mov eax, dword [ebp - 4]
call fcn.00018af0
push eax
push 0
push 0
mov eax, edi
call fcn.00014538
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
test eax, eax
je 0xad6b8
mov eax, dword [ebp - 4]
call fcn.00018af0
mov ebx, eax
jmp 0xad6b2
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0001446c
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
call fcn.0001d874
inc eax
add eax, eax
add ebx, eax
cmp word [ebx], 0
jne 0xad692
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xad6cd
ret