joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000cda0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x101e059b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov ecx, edi
call fcn.10077860
push 0x102747b8
mov ecx, edi
mov dword [esp + 0x1c], 0
mov dword [esi], 0x101f9ef8
mov dword [esi + 8], 0
call fcn.100785e0
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x1000ce2d
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x1000ce2d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000ce2d
test al, 1
je 0x1000ce2d
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1000ce2d
push ebx
mov ecx, edi
mov dword [esi + 8], 1
call fcn.100785e0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x1000ce70
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x101e05bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x101f9ef8
mov eax, dword [esi + 8]
mov dword [esp + 0x14], 0
test eax, eax
je 0x1000cee3
mov eax, dword [esi + 4]
lea edi, [esi + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x1000cee3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000cee3
test al, 1
jne 0x1000cee3
mov ecx, dword [edi]
or al, 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1000cee3
push 0x102747b8
mov ecx, edi
mov dword [esi + 8], 0
call fcn.100785e0
lea ecx, [esi + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.10078300
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10011a40
Capabilities:
Get disk information

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
cmp esi, edi
je 0x10011aa7
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 2
jb 0x10011aa7
mov ax, word [esi]
cmp ax, 0x5c
jne 0x10011a6d
cmp word [esi + 2], ax
je 0x10011a9a
mov word [esp + 8], ax
mov ax, word [esi + 2]
lea ecx, [esp + 8]
mov word [esp + 0xa], ax
push ecx
mov word [esp + 0x10], di
mov word [esp + 0x12], di
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x10011a9a
cmp eax, 1
jne 0x10011aa7
pop edi
mov eax, 1
pop esi
add esp, 8
ret 4
mov eax, edi
pop edi
pop esi
add esp, 8
ret 4

Function at 0x10012a30
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10012b55
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x10012b55
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
push esi
call ebp
test al, 1
je 0x10012a69
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
je 0x10012aa7
push esi
call ebp
cmp eax, 0xffffffff
je 0x10012b2a
mov eax, dword [0x10282758]
test eax, eax
je 0x10012aa5
push esi
push str.CSDDecryptWorker::DelFileExW_file__s__still_exists_after_DeleteFileW
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
xor edi, edi
push 0
push 0x4000000
push 3
push 0
push 7
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov eax, dword [0x10282758]
cmp ebx, 0xffffffff
je 0x10012b0a
test eax, eax
je 0x10012aea
push esi
push str.CSDDecryptWorker::DelFileExW_file__s___DelOnClose__done
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
cmp eax, 0xffffffff
je 0x10012b2a
mov eax, dword [0x10282758]
test eax, eax
je 0x10012b28
push esi
push str.CSDDecryptWorker::DelFileExW_file__s__still_exists_after_DelOnClose
jmp 0x10012b14
test eax, eax
je 0x10012b28
push esi
push str.CSDDecryptWorker::DelFileExW_file__s___DelOnClose__CreateFile_Fail
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
xor edi, edi
mov eax, dword [0x10282758]
test eax, eax
je 0x10012b4e
push edi
push esi
push str.CSDDecryptWorker::DelFileExW_file__s__ret__lu_
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x18
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x10014160
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x101e0ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push eax
call fcn.10077a80
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0
call fcn.100796c0
push 0x10240474
lea ecx, [esp + 0x18]
call fcn.10079540
cmp eax, 0xffffffff
je 0x100141da
push 0x10240460
lea ecx, [esp + 0x18]
call fcn.10079540
cmp eax, 0xffffffff
je 0x100141c7
push 0x10240458
push 0x10240460
jmp 0x100141d1
push 0x102747b8
push 0x10240474
lea ecx, [esp + 0x1c]
call fcn.1007a2d0
mov eax, dword [esp + 0x14]
push esi
xor esi, esi
mov cx, word [eax]
cmp cx, 0x61
jb 0x1001423f
cmp cx, 0x7a
ja 0x1001423f
cmp word [eax + 2], 0x3a
jne 0x1001423f
cmp word [eax + 4], 0x5c
jne 0x1001423f
lea ecx, [esp + 4]
push 3
push ecx
lea ecx, [esp + 0x20]
call fcn.1007aad0
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x1001422d
cmp eax, 2
je 0x1001422d
cmp eax, 5
je 0x1001422d
cmp eax, 6
jne 0x10014232
mov esi, 1
lea ecx, [esp + 4]
call fcn.10078300
mov eax, dword [esp + 0x18]
mov ecx, dword [0x10282758]
test ecx, ecx
je 0x10014264
push eax
push esi
push str.IsLocalFile_bRet__d__wstrFile__s_
push str.SDFileImp
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x18
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.10078300
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001460a
test al, 0x10
je 0x1001460a
mov eax, 1
ret
xor eax, eax
ret
Function at 0x10014cb0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x101e0f93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.10077860
lea edi, [esi + 4]
mov dword [esp + 0x20], 0
mov ecx, edi
call fcn.10077860
mov ebp, dword [esp + 0x28]
mov byte [esp + 0x20], 1
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x10014e36
push ebp
mov ecx, esi
call fcn.100784b0
lea ecx, [esp + 0xc]
call fcn.10077860
push 0x2e
mov ecx, esi
mov byte [esp + 0x24], 2
call fcn.10079510
cmp eax, 0xffffffff
je 0x10014d4d
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.1007a660
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call fcn.100784b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.10078300
lea ecx, [esp + 0x28]
call fcn.10077860
push 0x5c
mov ecx, esi
mov byte [esp + 0x24], 4
call fcn.10079510
cmp eax, 0xffffffff
je 0x10014d94
inc eax
lea edx, [esp + 0x10]
push eax
push edx
mov ecx, esi
call fcn.1007aad0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 5
call fcn.100784b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 4
call fcn.10078300
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0x34]
push eax
push ecx
push str._s_X__X__X_s
push edi
call fcn.1007b320
mov eax, dword [esp + 0x48]
add esp, 0x1c
test eax, eax
jne 0x10014dda
mov eax, dword [edi]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [esi + 8], eax
jmp 0x10014de1
mov dword [esi + 8], 1
mov eax, dword [esi + 8]
test eax, eax
je 0x10014df2
push edi
mov ecx, ebp
call fcn.100784b0
jmp 0x10014e1a
mov eax, dword [0x10282758]
test eax, eax
je 0x10014e1a
mov edx, dword [edi]
mov eax, dword [esi]
push edx
push eax
push 0x10240ad4
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x18
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 2
call fcn.10078300
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call fcn.10078300
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x10014e50
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x101e0fb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov eax, dword [esi + 8]
mov dword [esp + 0x10], 1
test eax, eax
je 0x10014eb9
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
mov dword [esi + 8], eax
jne 0x10014eb9
mov eax, dword [0x10282758]
test eax, eax
je 0x10014eb9
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push eax
push ecx
push str.CFileNameHelper___s_______s__MoveFileW_Fail_
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x18
lea ecx, [esi + 4]
mov byte [esp + 0x10], 0
call fcn.10078300
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.10078300
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x100152b0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [ecx + 0xa0]
test eax, eax
je 0x100152c0
mov eax, 1
ret
jmp fcn.10009d10
Function at 0x100188c0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x101e1598
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x10282758]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
test eax, eax
je 0x10018926
push esi
lea ecx, [esp + 0x14]
call fcn.10077a80
mov eax, dword [eax]
mov dword [esp + 0x1c], 0
push eax
push str.FileReverse_pszPathname__s_
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.10078300
mov ecx, dword [esp + 0x28]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push esi
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10018965
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push 0
lea edx, [ebp + 2]
push edx
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x100189a9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x100189e2
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0xffffffff
push eax
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
mov ecx, dword [esp + 0x28]
test eax, eax
mov dword [ecx], eax
jne 0x10018a33
push esi
mov byte [esi + ebp], al
call dword [sym.imp.MSVCRT.dll__strrev]
mov ebx, dword [sym.imp.MSVCRT.dll_strchr]
push 0xa
push esi
call ebx
add esp, 0xc
test eax, eax
je 0x10018a7f
mov byte [eax], 0xd
inc eax
push 0xa
mov byte [eax], 0xa
inc eax
push eax
call ebx
add esp, 8
test eax, eax
jne 0x10018a1d
jmp 0x10018a7f
mov edx, ebp
mov ebx, esi
shr edx, 1
mov word [esi + edx*2], 0
mov al, byte [esp + 0x24]
test al, 8
je 0x10018a4a
lea ebx, [esi + 2]
push ebx
call dword [sym.imp.MSVCRT.dll__wcsrev]
push 0xa
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_wcschr]
call ebx
add esp, 0xc
test eax, eax
je 0x10018a7f
mov word [eax], 0xd
add eax, 2
push 0xa
mov word [eax], 0xa
add eax, 2
push eax
call ebx
add esp, 8
test eax, eax
jne 0x10018a63
push 0
push esi
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0
push 0
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call ebx
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1001a590
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x101e1833
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0x36ee80
lea eax, [esi + 0xac]
lea ecx, [esi + 0xa4]
push 0
push eax
mov dword [eax], ecx
push 0
push 1
lea ecx, [esp + 0x74]
mov dword [esi + 0xb0], 0x100051f0
call fcn.10047440
lea ecx, [esp + 4]
mov dword [esp + 0xa4], 0
call fcn.1004e000
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x98]
mov byte [esp + 0xa4], 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 4]
mov dword [esp + 0x4c], eax
push ecx
mov ecx, 0x10280668
mov dword [esp + 0x54], 0x927c0
call fcn.1004d5e0
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xcc], edx
mov edx, dword [esp + 0x18]
mov dword [esi + 0xd0], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xd8], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0xdc], edx
mov edx, dword [esp + 0x24]
mov dword [esi + 0xe0], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0xe4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0xe8], edx
mov edx, dword [esp + 0x30]
mov dword [esi + 0xec], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0xf0], ecx
mov ecx, dword [esp + 0x38]
mov dword [esi + 0xf4], edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0xf8], eax
mov dword [esi + 0xfc], ecx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x100], edx
mov edx, dword [esp + 0x48]
mov dword [esi + 0x104], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x108], ecx
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x10c], edx
mov edx, dword [esp + 0x54]
add esi, 0x110
mov dword [esi], eax
mov eax, dword [esp + 0x58]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov eax, dword [0x10282758]
test eax, eax
pop esi
je 0x1001a78b
push str.CSDGsDesDecryptWorker::CheckClearBackup_start
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x10
lea ecx, [esp]
mov byte [esp + 0xa0], 0
call fcn.100474a0
lea ecx, [esp + 0x58]
mov dword [esp + 0xa0], 0xffffffff
call fcn.100474a0
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x1001c0c6
Capabilities:
Get disk information

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
call fcn.100e07b0
test eax, eax
je 0x1001c12f
mov edx, dword [esp + 0x210]
test edx, edx
je 0x1001c12f
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
pop edi
jbe 0x1001c12f
cmp eax, 0x104
jae 0x1001c12f
mov ecx, dword [esp + 0x214]
lea edx, [esp + 4]
push ecx
push edx
mov ecx, esi
call fcn.1001bfa0
pop esi
add esp, 0x208
ret 8
xor eax, eax
pop esi
add esp, 0x208
ret 8

Function at 0x1001c286
Capabilities:
Get disk information

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
call fcn.100e07b0
test eax, eax
je 0x1001c2ef
mov edx, dword [esp + 0x210]
test edx, edx
je 0x1001c2ef
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
pop edi
jbe 0x1001c2ef
cmp eax, 0x104
jae 0x1001c2ef
mov ecx, dword [esp + 0x214]
lea edx, [esp + 4]
push ecx
push edx
mov ecx, esi
call fcn.1001c140
pop esi
add esp, 0x208
ret 8
xor eax, eax
pop esi
add esp, 0x208
ret 8

Function at 0x1001c446
Capabilities:
Get disk information

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
call fcn.100e07b0
test eax, eax
je 0x1001c4b7
mov edx, dword [esp + 0x210]
test edx, edx
je 0x1001c4b7
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
pop edi
jbe 0x1001c4b7
cmp eax, 0x104
jae 0x1001c4b7
mov ecx, dword [esp + 0x218]
mov edx, dword [esp + 0x214]
push ecx
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.1001c300
pop esi
add esp, 0x208
ret 0xc
xor eax, eax
pop esi
add esp, 0x208
ret 0xc
Function at 0x1001fca0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push ebx
push esi
push edi
mov edi, dword [esp + 0x28]
xor ebx, ebx
xor esi, esi
mov dword [eax], ebx
cmp edi, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [ecx], ebx
je 0x1001fdb0
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push 2
push edi
mov dword [esp + 0x28], ebx
call fcn.1001f990
add esp, 0x10
test eax, eax
je 0x1001fd9d
cmp dword [esp + 0x10], ebx
je 0x1001fd9d
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
push edx
mov byte [esp + 0x48], 0
mov byte [esp + 0x49], 0
mov byte [esp + 0x4a], 0
mov byte [esp + 0x4b], 0
mov byte [esp + 0x4c], 0
mov byte [esp + 0x4d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1001fd9d
mov edi, dword [esp + 0x10]
push ebp
cmp dword [edi], ebx
jbe 0x1001fd92
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebp, [edi + 4]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call ebx
test eax, eax
jne 0x1001fd67
mov eax, dword [edi]
inc esi
add ebp, 8
cmp esi, eax
jb 0x1001fd4c
jmp 0x1001fd92
mov al, byte [edi + esi*8 + 8]
mov dword [esp + 0x18], 1
test al, 8
je 0x1001fd81
mov edx, dword [esp + 0x30]
mov dword [edx], 1
test byte [edi + esi*8 + 8], 4
je 0x1001fd92
mov eax, dword [esp + 0x34]
mov dword [eax], 1
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
xor ebx, ebx
pop ebp
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x1001fdb0
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [esp + 0xc], ebx
mov ecx, dword [esp + 0x10]
push ecx
call fcn.1001f980
mov eax, dword [0x10282758]
add esp, 4
cmp eax, ebx
je 0x1001fdef
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx]
mov edx, dword [ecx]
push eax
push edx
push edi
push esi
push str.CAdminTokenMgr::IsInAdminGroup__bIsAdmin___d__hToken__08x__bOwner___d___bEnabled__d_
push str.AdminToken
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x10020110
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x20]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x20]
cmp eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
je 0x100201c5
cmp dword [esp + 0x2c], esi
je 0x100201c5
push edi
push ebx
call fcn.10020050
mov esi, eax
add esp, 8
test esi, esi
je 0x100201c5
cmp ebp, 0xffffffff
je 0x10020178
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push esi
call fcn.10122ab0
add esp, 8
test eax, eax
je 0x100201bc
cmp dword [esp + 0x28], ebp
jne 0x100201bc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 1
push esi
call fcn.1001f990
add esp, 0x10
test eax, eax
je 0x100201bc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100201bc
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x100201bc
push esi
call fcn.1001fc20
mov ecx, dword [esp + 0x30]
add esp, 4
cmp ecx, eax
jbe 0x100201c5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov edx, dword [esp + 0x10]
push edx
call fcn.1001f980
mov eax, dword [0x10282758]
add esp, 4
test eax, eax
je 0x10020200
xor eax, eax
push ebp
test esi, esi
push edi
push ebx
setne al
push esi
push eax
push str.CAdminTokenMgr::IsMatchProcessToken__Match___d___hNewToken__08x___dwTargetProcessId___d____hTargetHandle__08x____dwSessionId__d_
push str.AdminTokenAll
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x24
test esi, esi
je 0x1002022c
mov eax, dword [0x10282758]
test eax, eax
je 0x1002022c
push ebp
push edi
push ebx
push esi
push 1
push str.CAdminTokenMgr::IsMatchProcessToken__Match___d___hNewToken__08x___dwTargetProcessId___d____hTargetHandle__08x____dwSessionId__d_
push str.AdminToken
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x24
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret