joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452d08
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x48ccc8], 0
je 0x452e51
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x486e94]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x452e51
mov eax, dword [0x48cccc]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x48ccc8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x452e20
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x48ccc8]
call fcn.00415bd8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x452e18
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x452e18
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x452e18
mov eax, dword [ebp - 0x14]
call fcn.0045d5f8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452e18
push ebp
call fcn.00452cc4
pop ecx
test al, al
jne 0x452e18
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.004042e8
test al, al
je 0x452e18
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.004042e8
cmp byte [ebp - 1], 0
je 0x452e18
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x452e18
mov edx, dword [ebp - 0x14]
mov eax, dword [0x48cccc]
call fcn.00452434
inc edi
dec ebx
jne 0x452d6d
mov eax, dword [0x48cccc]
cmp dword [eax + 8], 0
jle 0x452e38
mov eax, dword [0x48cccc]
call fcn.004524ec
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x452e51
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00452b28
pop ecx
test al, al
jne 0x452e51
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a4cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00407204
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00455090
test ebx, ebx
jne 0x45a51f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0045a408
mov ebx, eax
test ebx, ebx
je 0x45a60a
cmp esi, ebx
je 0x45a548
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x45a55d
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x45a595
add eax, 0xffffff5f
sub eax, 2
jb 0x45a5ad
dec eax
sub eax, 2
jb 0x45a5c1
dec eax
sub eax, 2
jb 0x45a5b7
jmp 0x45a5cb
add eax, 0xfffffdff
sub eax, 2
jb 0x45a5ad
dec eax
sub eax, 2
jb 0x45a5c1
dec eax
sub eax, 2
jb 0x45a5b7
jmp 0x45a5cb
mov byte [esp + 0x120], 0
jmp 0x45a5d3
mov byte [esp + 0x120], 2
jmp 0x45a5d3
mov byte [esp + 0x120], 1
jmp 0x45a5d3
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004373ac
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00456838
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x45a60c
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x462a50
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x48708c]
cmp byte [eax + 0xc], 0
je 0x462bbd
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x462bb6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48ccd8], 0
jne 0x462aa4
push 0x462bc4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x462bcc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ccd8], eax
cmp dword [0x48686c], 0
jne 0x462b9f
push 0x462bdc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x48686c], eax
cmp dword [0x48686c], 0
je 0x462b9f
push 0x462be8
mov eax, dword [0x48686c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ccdc], eax
push 0x462bf8
mov eax, dword [0x48686c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48cce0], eax
push 0x462c0c
mov eax, dword [0x48686c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48cce4], eax
push 0x462c24
mov eax, dword [0x48686c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48cce8], eax
push 0x462c3c
mov eax, dword [0x48686c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ccec], eax
push 0x462c50
mov eax, dword [0x48686c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ccf0], eax
push 0x462c68
mov eax, dword [0x48686c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ccf4], eax
push 0x462c80
mov eax, dword [0x48686c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ccf8], eax
push 0x462c9c
mov eax, dword [0x48686c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ccfc], eax
push 0x462ca8
mov eax, dword [0x48686c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48cd00], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462bbd
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x463788
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov dword [ebp - 4], eax
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4637c4
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.0040525c
jmp 0x4637cc
mov eax, dword [ebp - 4]
call fcn.00404fec
mov esp, ebp
pop ebp
ret

Function at 0x466bd4
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 0x466c25
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x466c0c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x466bfc
jmp 0x466c25
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 0x466c0d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x474cc4
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040546c
xor eax, eax
push ebp
push 0x474d42
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040547c
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x474d0d
mov eax, dword [ebx + 4]
call fcn.0040547c
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
movzx eax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474d49
lea eax, [ebp - 4]
call fcn.00404fec
ret

Function at 0x475db4
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x475f59
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.004032fc
cmp word [ebx + 0xa2], 0
je 0x475dfd
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x475e11
lea esi, [ebp - 0xc]
jmp 0x475e13
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x475e20
xor edi, edi
jmp 0x475e2d
mov eax, dword [ebx + 0x80]
call fcn.0040547c
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.0040547c
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00475494
mov eax, dword [ebp - 0x14]
call fcn.0040547c
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.0040547c
push eax
mov eax, dword [ebp - 4]
call fcn.0040547c
push eax
mov eax, ebx
call fcn.004755d4
push eax
mov eax, ebx
call fcn.004755a8
push eax
mov eax, ebx
call fcn.00475560
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00475360
mov eax, dword [ebp - 0x18]
call fcn.0040547c
push eax
mov eax, dword [ebx + 8]
call fcn.0040547c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0x10], 0
jne 0x475eb6
call fcn.0040e5b8
xor edx, edx
push ebp
push 0x475f2f
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x475ef4
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x475eea
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x475f18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475f36
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x475f68
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x475f94
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0040547c
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x475fb9
call fcn.0040e5b8
xor eax, eax
push ebp
push 0x475ff0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x475fd9
call fcn.0040e5b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475ff7
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x4767ec
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
mov byte [ebp - 1], 9
cmp byte [0x48cd30], 9
je 0x476812
mov al, byte [0x48cd30]
mov byte [ebp - 1], al
jmp 0x476998
mov byte [ebp - 2], 0
xor eax, eax
push ebp
push 0x47686c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x134], 0x9c
lea eax, [ebp - 0x134]
push eax
call sub.kernel32.dll_GetVersionExA_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.kernel32.dll_GetVersionExA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 3], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x476895
cmp byte [ebp - 3], 0
jne 0x4768a5
cmp byte [ebp - 2], 0
je 0x476998
lea edx, [ebp - 0x134]
lea eax, [ebp - 0x98]
mov ecx, 0x94
call fcn.004030a0
mov eax, dword [ebp - 0x124]
dec eax
je 0x476956
dec eax
jne 0x476998
cmp dword [ebp - 0x130], 4
ja 0x4768e1
mov byte [ebp - 1], 3
jmp 0x476998
cmp dword [ebp - 0x130], 5
jne 0x4768fc
cmp dword [ebp - 0x12c], 0
jne 0x4768fc
mov byte [ebp - 1], 4
jmp 0x476998
cmp dword [ebp - 0x130], 5
jne 0x476917
cmp dword [ebp - 0x12c], 1
jne 0x476917
mov byte [ebp - 1], 5
jmp 0x476998
cmp dword [ebp - 0x130], 6
jne 0x47692f
cmp dword [ebp - 0x12c], 0
jne 0x47692f
mov byte [ebp - 1], 6
jmp 0x476998
cmp dword [ebp - 0x130], 6
jne 0x476947
cmp dword [ebp - 0x12c], 1
jne 0x476947
mov byte [ebp - 1], 7
jmp 0x476998
cmp dword [ebp - 0x130], 6
jb 0x476998
mov byte [ebp - 1], 8
jmp 0x476998
cmp dword [ebp - 0x94], 4
jne 0x47696c
cmp dword [ebp - 0x90], 0
jne 0x47696c
mov byte [ebp - 1], 0
cmp dword [ebp - 0x94], 4
jne 0x476982
cmp dword [ebp - 0x90], 0xa
jne 0x476982
mov byte [ebp - 1], 1
cmp dword [ebp - 0x94], 4
jne 0x476998
cmp dword [ebp - 0x90], 0x5a
jne 0x476998
mov byte [ebp - 1], 2
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476c44
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x476d81
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.004032fc
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0040547c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x476c95
mov eax, dword [ebp - 4]
call fcn.00404fec
jmp 0x476d5b
mov eax, dword [ebp - 8]
call fcn.00402eb0
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x476d54
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0040547c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x476d3e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x476d8c
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x476d3e
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 8]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0xc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x40]
mov ecx, 3
mov eax, 0x476d98
call fcn.0040a1a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476d5b
mov eax, dword [ebp - 0x18]
call fcn.00402ecc
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
call fcn.00405040
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476d88
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00405010
ret
Function at 0x4776a0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4778fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 8], edx
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4778db
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
jne 0x47773c
lea eax, [ebp - 0x38]
call fcn.00476f10
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x477914
call fcn.00405304
mov ecx, dword [ebp - 0x34]
mov dl, 1
mov eax, dword [0x407fd4]
call fcn.0040ccd4
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
call fcn.00404a0c
jmp 0x4778e2
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0040547c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x477876
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x14], 0
jne 0x4777a9
lea eax, [ebp - 0x40]
call fcn.00476f10
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 0x477940
call fcn.00405304
mov ecx, dword [ebp - 0x3c]
mov dl, 1
mov eax, dword [0x407fd4]
call fcn.0040ccd4
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
call fcn.00404a0c
call fcn.00404a0c
jmp 0x4778e2
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x4777f6
lea eax, [ebp - 0x48]
call fcn.00476f10
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, 0x47796c
call fcn.00405304
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x407fd4]
call fcn.0040ccd4
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
call fcn.00404a0c
call fcn.00404a0c
jmp 0x4778e2
mov eax, dword [ebp - 0x2c]
cmp eax, 7
ja case.0x4777fe.0
jmp dword [eax*4 + 0x477805]
mov eax, dword [ebp - 8]
mov byte [eax], 4
jmp case.0x4777fe.0
mov eax, dword [ebp - 8]
mov byte [eax], 5
jmp case.0x4777fe.0
mov eax, dword [ebp - 8]
mov byte [eax], 6
jmp case.0x4777fe.0
mov eax, dword [ebp - 8]
mov byte [eax], 3
jmp case.0x4777fe.0
mov eax, dword [ebp - 8]
mov byte [eax], 1
jmp case.0x4777fe.0
mov eax, dword [ebp - 8]
mov byte [eax], 2
jmp case.0x4777fe.0
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47787d
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477904
lea eax, [ebp - 0x50]
mov edx, 8
call fcn.00405010
ret
Function at 0x47983c
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47993c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xc], edx
mov dword [ebp - 8], 0xffffffff
xor eax, eax
push ebp
push 0x47991f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x479950
mov eax, dword [ebp - 4]
push dword [eax + 4]
push 0x479960
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00405380
mov eax, dword [ebp - 0x20]
call fcn.0040547c
mov dword [ebp - 0x10], eax
push 0
push 0
push 3
push 0
push 3
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x479908
push 0
lea eax, [ebp - 0xc]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x479908
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0xc], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479926
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x479964
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
xor edx, edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x479c02
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.00404fec
mov eax, dword [ebp - 4]
add eax, 0x34
call fcn.00404fec
mov eax, dword [ebp - 4]
add eax, 0x30
call fcn.00404fec
mov eax, dword [ebp - 4]
mov byte [eax + 0x4c], 0
mov dword [ebp - 8], 0xffffffff
xor eax, eax
push ebp
push 0x479bd2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0
push 0x479c18
mov eax, dword [ebp - 4]
push dword [eax + 4]
push 0x479c28
lea eax, [ebp - 0x148]
mov edx, 3
call fcn.00405380
mov eax, dword [ebp - 0x148]
call fcn.0040547c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x479bbb
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0xc
call fcn.004038b8
lea eax, [ebp - 0x142]
xor ecx, ecx
mov edx, 0x126
call fcn.004038b8
mov dword [ebp - 0x13e], 0x126
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x13e]
push eax
lea eax, [ebp - 0x142]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0x2d1400
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x479bbb
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 0x126]
mov byte [eax + 0x4c], dl
cmp dword [ebp - 0x136], 0
je 0x479af9
lea eax, [ebp - 0x142]
mov edx, dword [ebp - 0x136]
add eax, edx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 0x10]
call fcn.00405908
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.00409098
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.00405274
mov eax, dword [ebp - 4]
add eax, 0x28
lea edx, [ebp - 0x142]
add edx, dword [ebp - 0x136]
call fcn.004051e4
cmp dword [ebp - 0x132], 0
je 0x479b5a
lea eax, [ebp - 0x142]
mov edx, dword [ebp - 0x132]
add eax, edx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x158]
mov edx, dword [ebp - 0x10]
call fcn.00405908
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
call fcn.00409098
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 4]
add eax, 0x34
call fcn.00405274
mov eax, dword [ebp - 4]
add eax, 0x34
lea edx, [ebp - 0x142]
add edx, dword [ebp - 0x132]
call fcn.004051e4
cmp dword [ebp - 0x12e], 0
je 0x479bbb
lea eax, [ebp - 0x142]
mov edx, dword [ebp - 0x12e]
add eax, edx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x160]
mov edx, dword [ebp - 0x10]
call fcn.00405908
mov eax, dword [ebp - 0x160]
lea edx, [ebp - 0x15c]
call fcn.00409098
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp - 4]
add eax, 0x30
call fcn.00405274
mov eax, dword [ebp - 4]
add eax, 0x30
lea edx, [ebp - 0x142]
add edx, dword [ebp - 0x12e]
call fcn.004051e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479bd9
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x479d4c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x479e08
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x54
call fcn.00404fec
mov eax, dword [ebp - 4]
mov byte [eax + 0x58], 0
mov byte [ebp - 0x109], 0
push 0x104
lea eax, [ebp - 0x109]
push eax
lea eax, [ebp - 0x110]
mov ecx, 0x479e1c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
call fcn.00405304
mov eax, dword [ebp - 0x110]
call fcn.0040547c
push eax
call sub.kernel32.dll_QueryDosDeviceA
test eax, eax
je 0x479def
mov eax, dword [ebp - 4]
add eax, 0x54
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.0040525c
mov edx, 0x479e20
lea eax, [ebp - 0x109]
call fcn.00409c70
test eax, eax
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 0x58], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479e0f
lea eax, [ebp - 0x110]
call fcn.00404fec
ret
Function at 0x47a0a4
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0xffffffff
xor eax, eax
push ebp
push 0x47a127
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x47a110
push 0
lea eax, [ebp - 0x14]
push eax
push 0xc
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x47a110
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a12e
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret