joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11656e8c
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1176ae00
call fcn.116bf770
sub esp, 0x22c
and dword [ebp - 0x20], 0
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov dword [ebp - 0x1c], ecx
je 0x116570ce
mov ecx, dword [ebp + 0xc]
push esi
call fcn.11685900
push esi
call fcn.116bf887
cmp eax, 1
pop ecx
jl 0x116570ce
mov ax, word [esi]
cmp ax, 0x61
jb 0x11656ed9
cmp ax, 0x7a
jbe 0x11656eed
cmp ax, 0x41
jb 0x116570ce
cmp ax, 0x5a
ja 0x116570ce
cmp word [esi + 2], 0x3a
jne 0x116570ce
mov ecx, dword [0x11773dfc]
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], 0
movzx eax, ax
push eax
lea eax, [ebp - 0x14]
push 0x117912a0
push eax
call fcn.11688600
mov eax, dword [0x11773dfc]
add esp, 0xc
mov dword [ebp - 0x10], eax
mov esi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov byte [ebp - 4], 1
mov ebx, 0x103
and word [ebp - 0x238], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x236]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x238]
push ebx
push eax
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x238]
push eax
call fcn.116bf887
test eax, eax
pop ecx
jbe 0x11656f88
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x14]
push eax
call fcn.11685900
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x10]
push eax
call fcn.11685900
jmp 0x11656f31
lea ecx, [ebp - 0x30]
call fcn.116572ff
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp dword [eax - 8], 0
jne 0x11657032
lea eax, [ebp - 0x14]
push 0x5c
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.11686cd0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.1165733a
lea ecx, [ebp - 0x30]
call fcn.1165742a
test eax, eax
je 0x1165709e
and word [ebp - 0x238], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x236]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x238]
push ebx
push eax
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x238]
push eax
call fcn.116bf887
test eax, eax
pop ecx
jbe 0x11657026
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x14]
push eax
call fcn.11685900
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x10]
push eax
call fcn.11685900
jmp 0x11656fcf
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.11685680
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.11684c80
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
push dword [ebp - 0x18]
call fcn.116570e2
test eax, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
je 0x1165706f
call fcn.11685680
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.11684c80
jmp 0x1165703e
call fcn.11685680
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
je 0x116570aa
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
push eax
push 0x11791294
push dword [ebp + 0xc]
call fcn.11688600
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x116570aa
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.11685680
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.1165732f
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.11685680
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.11685680
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x116572a3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x116572f9
push esi
call fcn.116bf887
cmp eax, 2
pop ecx
jb 0x116572f9
mov ax, word [esi]
cmp ax, 0x5c
jne 0x116572ce
cmp word [esi + 2], ax
je 0x116572f6
mov word [ebp - 8], ax
mov ax, word [esi + 2]
mov word [ebp - 6], ax
lea eax, [ebp - 8]
push eax
mov word [ebp - 4], di
mov word [ebp - 2], di
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x116572f6
cmp eax, 1
jne 0x116572f9
push 1
pop edi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1165b536
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.116c0480
mov edi, dword [ebp + 0xc]
mov ebx, eax
pop ecx
mov eax, 0x1f3
sub eax, ebx
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x1165b56e
push 1
pop eax
jmp 0x1165b615
mov dword [ebp + 8], 1
test byte [edi], 0x10
je 0x1165b5d9
cmp byte [edi + 0x2c], 0x2e
lea ecx, [edi + 0x2c]
jne 0x1165b594
mov al, byte [edi + 0x2d]
cmp al, 0x2e
jne 0x1165b590
cmp byte [edi + 0x2e], 0
je 0x1165b5f1
test al, al
je 0x1165b5f1
push ecx
call fcn.116c0480
inc eax
pop ecx
cmp dword [ebp - 4], eax
jb 0x1165b5f1
and byte [ebx + esi - 1], 0
lea eax, [edi + 0x2c]
push eax
push esi
call fcn.116c03a0
push 0x117942d0
push esi
call fcn.116c03a0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.1165b536
add esp, 0x20
mov byte [ebx + esi - 1], 0x2a
and byte [ebx + esi], 0
mov dword [ebp + 8], eax
jmp 0x1165b5f1
push dword [ebp + 0x14]
and byte [ebx + esi - 1], 0
lea eax, [edi + 0x2c]
push eax
push esi
call dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov byte [ebx + esi - 1], 0x2a
cmp dword [ebp + 8], 0
je 0x1165b609
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1165b575
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1165b6d8
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.116bf887
mov edi, dword [ebp + 0xc]
mov ebx, eax
pop ecx
mov eax, 0x1f3
sub eax, ebx
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x1165b710
push 1
pop eax
jmp 0x1165b7c4
mov dword [ebp + 8], 1
test byte [edi], 0x10
je 0x1165b785
cmp word [edi + 0x2c], 0x2e
lea ecx, [edi + 0x2c]
jne 0x1165b73c
mov ax, word [edi + 0x2e]
cmp ax, 0x2e
jne 0x1165b737
cmp word [edi + 0x30], 0
je 0x1165b7a0
test ax, ax
je 0x1165b7a0
push ecx
call fcn.116bf887
inc eax
pop ecx
cmp dword [ebp - 4], eax
jb 0x1165b7a0
and word [esi + ebx*2 - 2], 0
lea eax, [edi + 0x2c]
push eax
push esi
call fcn.116bfdf5
push 0x117942d4
push esi
call fcn.116bfdf5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.1165b6d8
add esp, 0x20
mov word [esi + ebx*2 - 2], 0x2a
and word [esi + ebx*2], 0
mov dword [ebp + 8], eax
jmp 0x1165b7a0
push dword [ebp + 0x14]
and word [esi + ebx*2 - 2], 0
lea eax, [edi + 0x2c]
push eax
push esi
call dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov word [esi + ebx*2 - 2], 0x2a
cmp dword [ebp + 8], 0
je 0x1165b7b8
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1165b717
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1165bf9d
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1165c12d
push ebx
call fcn.116bf887
test eax, eax
pop ecx
je 0x1165c12d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1165c12d
test al, 1
je 0x1165bfe5
and al, 0xfe
push eax
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp + 8], 0x10
je 0x1165c111
and word [ebp - 0x660], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x65e]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x660]
push eax
call fcn.116bfe1f
lea eax, [ebp - 0x660]
push 0x117942d4
push eax
call fcn.116bfdf5
and dword [ebp - 0x250], 0
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x24c]
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1165c107
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x224]
push 0x1179430c
push eax
call edi
test eax, eax
je 0x1165c0e6
lea eax, [ebp - 0x224]
push 0x11794308
push eax
call edi
test eax, eax
je 0x1165c0e6
and word [ebp - 0x458], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x456]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x458]
push ebx
push eax
call fcn.116bfe1f
lea eax, [ebp - 0x458]
push 0x1178f308
push eax
call fcn.116bfdf5
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.116bfdf5
push dword [ebp + 0xc]
lea eax, [ebp - 0x458]
push eax
call fcn.1165bf9d
add esp, 0x20
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1165c060
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
jmp 0x1165c118
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1165c12f
cmp dword [ebp + 0xc], eax
je 0x1165c12f
push 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1165c12f
xor eax, eax
pop ebx
leave
ret
Function at 0x1165c132
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x1165c2ed
push esi
call fcn.116bf887
test eax, eax
pop ecx
je 0x1165c2ed
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push ebx
push eax
push esi
mov dword [ebp - 4], ebx
call fcn.11659a58
add esp, 0x1c
test eax, eax
je 0x1165c2ed
cmp dword [ebp - 4], 0xffffffff
je 0x1165c2ed
test byte [ebp - 4], 1
je 0x1165c194
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 4], 0x10
je 0x1165c2d1
mov esi, 0x81
push edi
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x666]
mov word [ebp - 0x668], bx
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x668]
push eax
call fcn.116bfe1f
lea eax, [ebp - 0x668]
push 0x117942d4
push eax
call fcn.116bfdf5
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x45c]
mov dword [ebp - 0x460], ebx
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x1165c2b6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x434]
push 0x1179430c
push eax
call edi
test eax, eax
je 0x1165c295
lea eax, [ebp - 0x434]
push 0x11794308
push eax
call edi
test eax, eax
je 0x1165c295
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x20e]
mov word [ebp - 0x210], bx
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push eax
call fcn.116bfe1f
lea eax, [ebp - 0x210]
push 0x1178f308
push eax
call fcn.116bfdf5
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.116bfdf5
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
call fcn.1165c132
add esp, 0x20
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1165c211
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, ebx
pop edi
jne 0x1165c2ef
cmp dword [ebp + 0xc], ebx
je 0x1165c2ef
push 4
push ebx
push dword [ebp + 8]
jmp 0x1165c2e5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
jne 0x1165c2ef
cmp dword [ebp + 0xc], ebx
je 0x1165c2ef
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1165c2ef
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x1165c764
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov edi, dword [ebp + 0xc]
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1165c798
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
push edi
jmp 0x1165c855
test bl, 1
je 0x1165c7a8
and ebx, 0xfffffffe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x1165c841
and word [ebp - 0x404], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x402]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
mov ebx, str._s.bak_08X
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.116bfe81
and dword [ebp - 4], 0
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
cmp eax, 0xffffffff
je 0x1165c831
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
lea eax, [ebp - 0x404]
push dword [ebp + 0xc]
push ebx
push eax
call fcn.116bfe81
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x1165c7f8
xor eax, eax
jmp 0x1165c85d
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [ebp + 0xc]
mov esi, eax
call fcn.1165e006
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1165c862
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov edi, dword [ebp + 0xc]
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1165c896
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
push edi
jmp 0x1165c953
test bl, 1
je 0x1165c8a6
and ebx, 0xfffffffe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x1165c93f
and word [ebp - 0x404], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x402]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
mov ebx, str._s.bak_08X
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.116bfe81
and dword [ebp - 4], 0
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
cmp eax, 0xffffffff
je 0x1165c92f
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
lea eax, [ebp - 0x404]
push dword [ebp + 0xc]
push ebx
push eax
call fcn.116bfe81
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x1165c8f6
xor eax, eax
jmp 0x1165c95b
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [ebp + 0xc]
mov esi, eax
call fcn.1165e040
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1165cee9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
call fcn.116d2a40
test eax, eax
je 0x1165cf06
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop ebp
ret
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
je 0x1165cf6f
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x1165cf6f
lea eax, [esi + esi]
push eax
push ebx
push dword [ebp + 0xc]
call fcn.116bf310
push esi
call fcn.116bf368
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1165cf6f
push esi
push ebx
push edi
call fcn.116bf310
add esp, 0xc
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, eax
test ebx, ebx
je 0x1165cf6f
push esi
xor ebx, ebx
push dword [ebp + 0xc]
push 0xffffffffffffffff
push edi
call fcn.1167aac9
add esp, 0x10
test eax, eax
je 0x1165cf6f
push dword [ebp + 0xc]
call fcn.116bf887
pop ecx
mov ebx, eax
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x1165cfbc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov edi, 0x200
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], 1
jne 0x1165cfe3
mov edi, 0x400
cmp dword [ebp - 4], 2
jne 0x1165d023
xor eax, eax
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], ebx
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp - 0x24]
push 0x18
push eax
push ebx
push ebx
push 0x70000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1165d06d
mov edi, dword [ebp - 0x10]
cmp edi, 0x200
jb 0x1165d06d
push edi
call fcn.116bf368
push edi
push ebx
push eax
mov dword [esi], eax
call fcn.116bf310
add esp, 0x10
lea eax, [ebp - 0xc]
push ebx
push eax
push edi
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1165d065
push dword [esi]
call fcn.116bf300
inc dword [ebp - 4]
pop ecx
cmp dword [ebp - 4], 3
mov dword [esi], ebx
jl 0x1165cfd8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1165d075
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x1179128c
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp + 8]
xor edi, edi
test esi, esi
je 0x1165d0b2
cmp esi, 1
jne 0x1165d0c0
call fcn.116d29f0
test eax, eax
jne 0x1165d0c0
push 4
pop edi
jmp 0x1165d12b
lea eax, [ebp - 0x210]
push 0x103
push eax
lea eax, [ebp - 8]
add esi, 0x41
push eax
mov word [ebp - 8], si
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x1165d129
cmp eax, 0x104
jae 0x1165d129
lea eax, [ebp - 0x210]
push eax
call fcn.116c09d5
lea eax, [ebp - 0x210]
mov dword [esp], str.cdrom
push eax
call fcn.116bfd74
pop ecx
test eax, eax
pop ecx
je 0x1165d110
push 5
pop edi
lea eax, [ebp - 0x210]
push str.floppy
push eax
call fcn.116bfd74
pop ecx
test eax, eax
pop ecx
je 0x1165d12b
jmp 0x1165d0bb
xor edi, edi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1165d131
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
xor eax, eax
cmp ebx, esi
je 0x1165d2af
cmp dword [ebp + 0x10], 0x200
jne 0x1165d2af
push edi
push 7
pop ecx
lea edi, [ebp - 0x2a]
mov word [ebp - 0x2c], si
push 0x20
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2c]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp + 0x10], esi
call fcn.116bf310
mov eax, dword [0x11794404]
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [0x11794408]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, 0x41
push 0x10
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 0x14]
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 5
test eax, eax
pop edi
je 0x1165d27f
lea eax, [ebp - 0x2c]
push eax
call fcn.116bf887
lea esi, [ebx + 0x36]
push edi
push str.FAT16
push esi
mov dword [ebp + 0xc], eax
call fcn.116d03b0
add esp, 0x10
test eax, eax
jne 0x1165d219
cmp dword [ebp + 0xc], edi
jne 0x1165d1f8
push edi
lea eax, [ebp - 0x2c]
push 0x117943f0
push eax
call fcn.116bf78f
add esp, 0xc
test eax, eax
je 0x1165d215
cmp dword [ebp + 0xc], 3
jne 0x1165d219
push 3
lea eax, [ebp - 0x2c]
push 0x117943e8
push eax
call fcn.116bf78f
add esp, 0xc
test eax, eax
jne 0x1165d219
push 3
jmp 0x1165d27c
push edi
push str.FAT12
push esi
call fcn.116d03b0
add esp, 0xc
test eax, eax
jne 0x1165d249
cmp dword [ebp + 0xc], 3
jne 0x1165d249
push 3
lea eax, [ebp - 0x2c]
push 0x117943e8
push eax
call fcn.116bf78f
add esp, 0xc
test eax, eax
je 0x1165d215
push edi
lea eax, [ebx + 0x52]
push str.FAT32
push eax
call fcn.116d03b0
add esp, 0xc
test eax, eax
jne 0x1165d27f
cmp dword [ebp + 0xc], edi
jne 0x1165d27f
push edi
lea eax, [ebp - 0x2c]
push 0x117943cc
push eax
call fcn.116bf78f
add esp, 0xc
test eax, eax
jne 0x1165d27f
push 2
pop eax
jmp 0x1165d2ae
lea esi, [ebx + 3]
push edi
push str.EXFAT
push esi
call fcn.116d03b0
add esp, 0xc
test eax, eax
jne 0x1165d299
mov eax, edi
jmp 0x1165d2ae
push 4
push str.NTFS
push esi
call fcn.116d03b0
add esp, 0xc
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1165eb38
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2818
call fcn.116c0cd0
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
je 0x1165ec66
push esi
lea eax, [ebp - 0x14]
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
lea eax, [ebp - 0x2818]
push 0x2800
push eax
push 2
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
call esi
cmp eax, ebx
jne 0x1165ebc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1165ec45
mov edi, dword [ebp - 0x14]
push edi
call fcn.116bf368
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x1165ec45
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 8]
push 2
push dword [ebp + 8]
call esi
cmp eax, ebx
je 0x1165ec45
lea eax, [ebp - 4]
mov byte [ebp - 0x10], bl
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x10]
push 2
push eax
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1165ec45
xor esi, esi
cmp dword [ebp - 0x2818], ebx
jbe 0x1165ec45
lea edi, [ebp - 0x2814]
push dword [edi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1165ec26
inc esi
add edi, 8
cmp esi, dword [ebp - 0x2818]
jb 0x1165ec09
jmp 0x1165ec45
mov eax, dword [ebp + esi*8 - 0x2810]
push 1
pop ecx
test al, 8
mov dword [ebp - 0x18], ecx
je 0x1165ec3c
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
test al, 4
je 0x1165ec45
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
cmp dword [ebp - 4], ebx
pop edi
pop esi
je 0x1165ec58
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x1165ec66
push dword [ebp - 8]
call fcn.116bf300
pop ecx
mov eax, dword [ebp - 0x18]
pop ebx
leave
ret