joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ca80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 5
test eax, eax
jne 0x1000cab8
mov esi, 0x1e7
push esi
push str.FileDeletionRetry
call fcn.1000c670
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
mov ebx, dword [ebp + 0x10]
add esp, 8
mov dword [ebp - 4], eax
lea ebx, [ebx]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000cae8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000caea
xor esi, esi
cmp edi, ebx
jae 0x1000cafc
xor eax, eax
cmp dword [ebp + eax*4 - 0xc], esi
je 0x1000cb39
inc eax
cmp eax, 2
jb 0x1000caf0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
test esi, esi
je 0x1000cb6a
test ebx, ebx
je 0x1000cb49
cmp edi, ebx
jb 0x1000cb49
push esi
push esi
call sym.vmtools.dll_Err_Errno2String
mov edx, dword [ebp + 8]
add esp, 4
push eax
push edx
push ebx
push str.FileDeletionRetry
push str.FILE:__s:_Retry_time_expired___u___s___last_error__s___d__n
call sym.vmtools.dll_Log
add esp, 0x18
jmp 0x1000cb6a
push 0x64
push 0xa
call fcn.1000a600
add esp, 8
add edi, eax
jmp 0x1000cad0
push esi
push esi
call sym.vmtools.dll_Err_Errno2String
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
push str.FileDeletionRetry
push str.FILE:__s:_Non_retriable_error_encountered___s_:__s___d__n
call sym.vmtools.dll_Log
add esp, 0x14
pop ebx
push esi
push str.FileDeletionRetry
call fcn.1000c670
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000cb80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 5
test eax, eax
jne 0x1000cbbb
mov esi, 0x1e7
push esi
push str.FileCreateDirectoryRetry
call fcn.1000c670
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
push 4
mov edi, eax
push 0x10061d40
push edi
call dword [sym.imp.MSVCR90.dll_wcsncmp]
add esp, 0x14
test eax, eax
je 0x1000cc26
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000cbe0
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x1000cc26
call dword [sym.imp.MSVCR90.dll__errno]
push 0xce
mov dword [eax], 0x26
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov esi, 0xce
push esi
push str.FileCreateDirectoryRetry
call fcn.1000c670
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
lea ebx, [ebx]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000cc47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000cc49
xor esi, esi
cmp dword [ebp - 4], ebx
jae 0x1000cc5c
xor eax, eax
cmp dword [ebp + eax*4 - 0xc], esi
je 0x1000cc97
inc eax
cmp eax, 2
jb 0x1000cc50
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
test esi, esi
je 0x1000ccc9
test ebx, ebx
je 0x1000cca8
cmp dword [ebp - 4], ebx
jb 0x1000cca8
push esi
push esi
call sym.vmtools.dll_Err_Errno2String
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
push ebx
push str.FileCreateDirectoryRetry
push str.FILE:__s:_Retry_time_expired___u___s___last_error__s___d__n
call sym.vmtools.dll_Log
add esp, 0x18
jmp 0x1000ccc9
push 0x64
push 0xa
call fcn.1000a600
add esp, 8
add dword [ebp - 4], eax
jmp 0x1000cc30
push esi
push esi
call sym.vmtools.dll_Err_Errno2String
mov ecx, dword [ebp + 8]
add esp, 4
push eax
push ecx
push str.FileCreateDirectoryRetry
push str.FILE:__s:_Non_retriable_error_encountered___s_:__s___d__n
call sym.vmtools.dll_Log
add esp, 0x14
pop ebx
pop edi
push esi
push str.FileCreateDirectoryRetry
call fcn.1000c670
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000cce0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 5
test eax, eax
jne 0x1000cd18
mov esi, 0x1e7
push esi
push str.FileRemoveDirectoryRetry
call fcn.1000c670
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
mov ebx, dword [ebp + 0xc]
add esp, 8
mov dword [ebp - 4], eax
lea ebx, [ebx]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1000cd48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000cd4a
xor esi, esi
cmp edi, ebx
jae 0x1000cd5c
xor eax, eax
cmp dword [ebp + eax*4 - 0xc], esi
je 0x1000cd99
inc eax
cmp eax, 2
jb 0x1000cd50
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
test esi, esi
je 0x1000cdca
test ebx, ebx
je 0x1000cda9
cmp edi, ebx
jb 0x1000cda9
push esi
push esi
call sym.vmtools.dll_Err_Errno2String
mov edx, dword [ebp + 8]
add esp, 4
push eax
push edx
push ebx
push str.FileRemoveDirectoryRetry
push str.FILE:__s:_Retry_time_expired___u___s___last_error__s___d__n
call sym.vmtools.dll_Log
add esp, 0x18
jmp 0x1000cdca
push 0x64
push 0xa
call fcn.1000a600
add esp, 8
add edi, eax
jmp 0x1000cd30
push esi
push esi
call sym.vmtools.dll_Err_Errno2String
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
push str.FileRemoveDirectoryRetry
push str.FILE:__s:_Non_retriable_error_encountered___s_:__s___d__n
call sym.vmtools.dll_Log
add esp, 0x14
pop ebx
push esi
push str.FileRemoveDirectoryRetry
call fcn.1000c670
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000da40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0
lea eax, [ebp - 8]
push eax
push ecx
mov byte [ebp - 1], 0
call sym.vmtools.dll_File_SplitName
mov edx, dword [ebp - 8]
push 0xffffffffffffffff
push 0
push 0x1005d980
push 0
push 0xffffffffffffffff
push edx
call sym.vmtools.dll_Unicode_ReplaceRange
mov edi, eax
push 1
push edi
call sym.vmtools.dll_Unicode_GetAllocBytes
add esp, 0x30
push 0
push 0
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push esi
mov esi, dword [sym.imp.MSVCR90.dll_free]
mov bl, al
call esi
add esp, 4
test bl, bl
je 0x1000dab8
test byte [ebp - 0xc], 8
je 0x1000dad1
mov byte [ebp - 1], 1
jmp 0x1000dad1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.File_DoesVolumeSupportAcls
push str.FILE:__s:_GetVolumeInformation_failed:__d_n
call sym.vmtools.dll_Log
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call esi
push edi
call esi
mov al, byte [ebp - 1]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e610
Capabilities:
Hash data using djb2

Disassembly:
push esi
push edi
push eax
mov esi, 0x1505
call sym.vmtools.dll_Unicode_Duplicate
mov edi, eax
push edi
call dword [sym.imp.MSVCR90.dll__strlwr]
movsx eax, byte [edi]
add esp, 8
mov ecx, edi
test eax, eax
je 0x1000e643
mov edx, esi
shl edx, 5
inc ecx
add edx, eax
movsx eax, byte [ecx]
add esi, edx
test eax, eax
jne 0x1000e632
push edi
call dword [sym.imp.MSVCR90.dll_free]
push esi
push 0x1005f1d0
push 0
call sym.vmtools.dll_Str_SafeAsprintf
add esp, 0x10
pop edi
pop esi
ret

Function at 0x1000ebf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_free]
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 4], 0
push edi
mov dword [ebp - 4], 0
je 0x1000ec61
cmp dword [esi + 0xc], 0x1008ce20
je 0x1000ec58
mov eax, dword [esi + 8]
push 0xffffffffffffffff
push 0
push str..lck
push 0
push 0xffffffffffffffff
push eax
call sym.vmtools.dll_Unicode_ReplaceRange
push 0x7d0
mov edi, eax
mov eax, dword [esi + 0xc]
push 0
push eax
call fcn.1000ca80
push 0x7d0
push edi
mov dword [ebp - 4], eax
call fcn.1000cce0
push edi
call ebx
mov ecx, dword [esi + 0xc]
push ecx
call ebx
add esp, 0x34
mov dword [esi + 0xc], 0
jmp 0x1000ec8a
lea edx, [esi + 0xc]
push edx
call fcn.1000d740
add esp, 4
test eax, eax
je 0x1000ec8a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x10
je 0x1000ec8a
call edi
cmp eax, 2
je 0x1000ec8a
call edi
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
push eax
call ebx
push esi
mov dword [esi], 0
mov dword [esi + 8], 0
call ebx
mov eax, dword [ebp - 4]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10010ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push ebx
push esi
xor esi, esi
sub eax, esi
push edi
je 0x10010f37
sub eax, 1
je 0x10010f0a
sub eax, 1
je 0x10010f00
push 0x8e
push str.d:_build_ob_bora_4448491_bora_lib_misc_hashTable.c
push str.NOT_REACHED__s:_d_n
call sym.vmtools.dll_Panic
imul ecx, ecx, 0xbc8f
mov esi, ecx
jmp 0x10010f4f
movzx eax, byte [ecx]
mov ebx, dword [sym.imp.MSVCR90.dll_tolower]
push eax
mov edi, ecx
call ebx
add esp, 4
test eax, eax
je 0x10010f4f
nop
xor eax, esi
inc edi
rol eax, 5
mov esi, eax
movzx eax, byte [edi]
push eax
call ebx
add esp, 4
test eax, eax
jne 0x10010f20
jmp 0x10010f4f
movzx eax, byte [ecx]
test eax, eax
je 0x10010f4f
mov edi, edi
xor eax, esi
inc ecx
rol eax, 5
mov esi, eax
movzx eax, byte [ecx]
test eax, eax
jne 0x10010f40
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
mov eax, 1
shl eax, cl
dec eax
cmp esi, eax
jbe 0x10010f71
mov edx, esi
shr edx, cl
mov edi, eax
and edi, esi
xor edx, edi
mov esi, edx
cmp esi, eax
ja 0x10010f61
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x10011bd0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push 1
push eax
xor edi, edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call sym.vmtools.dll_Unicode_GetAllocBytes
add esp, 8
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push edi
mov ebx, eax
lea eax, [ebp - 8]
push eax
push edi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x10011c50
mov ecx, dword [ebp - 8]
push ecx
call sym.vmtools.dll_UtilSafeMalloc0
mov edx, dword [ebp - 4]
mov esi, eax
lea eax, [edx + edx]
push eax
call sym.vmtools.dll_UtilSafeMalloc0
add esp, 8
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
mov edi, eax
push edi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x10011c50
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
xor esi, esi
push edi
mov edi, dword [sym.imp.MSVCR90.dll_free]
call edi
push ebx
call edi
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10011c70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1008c224]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x18]
lea edx, [ebp - 0x20c]
push edx
mov edx, dword [ebp + 0x14]
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push eax
mov dword [edi], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jl 0x10011cc8
push 1
lea edx, [ebp - 0x20c]
push 0xffffffffffffffff
push edx
call sym.vmtools.dll_Unicode_AllocWithLength
mov dword [edi], eax
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret

Function at 0x10011ff0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 1
push eax
mov dword [ebp - 4], 0
call sym.vmtools.dll_Unicode_GetAllocBytes
mov ecx, dword [ebp + 0xc]
push 1
push ecx
mov edi, eax
call sym.vmtools.dll_Unicode_GetAllocBytes
push 0x208
mov ebx, eax
call sym.vmtools.dll_UtilSafeMalloc0
add esp, 0x14
mov esi, eax
push esi
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10012046
push 1
push 0xffffffffffffffff
push esi
call sym.vmtools.dll_Unicode_AllocWithLength
add esp, 0xc
mov dword [ebp - 4], eax
push edi
mov edi, dword [sym.imp.MSVCR90.dll_free]
call edi
push ebx
call edi
push esi
call edi
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100120e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push esi
push edi
xor esi, esi
push esi
push esi
xor edi, edi
call ebx
test eax, eax
je 0x1001211e
jmp 0x10012100
cmp eax, edi
jbe 0x10012132
lea edi, [eax + 1]
lea eax, [edi + edi]
push eax
push esi
call sym.vmtools.dll_UtilSafeRealloc0
add esp, 8
mov esi, eax
push esi
push edi
call ebx
test eax, eax
jne 0x10012100
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x10012140
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
xor edi, edi
xor ebx, ebx
call sym.vmtools.dll_DynBuf_Init
movzx eax, word [esi]
add esp, 4
test ax, ax
je 0x1001219d
movzx eax, ax
jmp 0x10012160
mov ecx, edi
test ax, ax
je 0x1001216f
inc edi
cmp word [esi + edi*2], 0
jne 0x10012167
push 1
lea edx, [esi + ecx*2]
push 0xffffffffffffffff
push edx
call sym.vmtools.dll_Unicode_AllocWithLength
mov dword [ebp - 4], eax
push 4
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
push ecx
call sym.vmtools.dll_DynBuf_Append
movzx eax, word [esi + edi*2 + 2]
inc edi
add esp, 0x18
inc ebx
test ax, ax
jne 0x10012160
lea edx, [ebp - 0x10]
push edx
call sym.vmtools.dll_DynBuf_Detach
mov ecx, dword [ebp + 8]
push esi
mov dword [ecx], eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10012200
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call ebx
test eax, eax
jne 0x10012233
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10012277
mov ecx, dword [ebp - 4]
lea edx, [ecx + ecx]
push edx
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x10012277
lea eax, [ebp - 4]
push eax
push esi
push edi
call ebx
test eax, eax
je 0x10012277
push 1
push 0xffffffffffffffff
push esi
call sym.vmtools.dll_Unicode_AllocWithLength
add esp, 0xc
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 8]
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10012290
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x10012450
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1008c224]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x424], ecx
mov ecx, dword [ebp + 0x1c]
push 1
push eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x420], ecx
call sym.vmtools.dll_Unicode_GetAllocBytes
add esp, 8
push 0x105
mov esi, eax
mov eax, dword [ebp - 0x428]
lea edx, [ebp - 0x210]
push edx
push eax
push ebx
push edi
push 0x105
lea ecx, [ebp - 0x41c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
mov esi, dword [ebp - 0x424]
add esp, 4
test esi, esi
je 0x100124f2
test edi, edi
je 0x100124ee
push 1
lea edx, [ebp - 0x41c]
push 0xffffffffffffffff
push edx
call sym.vmtools.dll_Unicode_AllocWithLength
add esp, 0xc
jmp 0x100124f0
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp - 0x420]
test esi, esi
je 0x10012519
test edi, edi
je 0x10012515
push 1
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push eax
call sym.vmtools.dll_Unicode_AllocWithLength
add esp, 0xc
jmp 0x10012517
xor eax, eax
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret

Function at 0x10012530
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x100125e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
mov ecx, dword [ebp + 0xc]
add esp, 8
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop ebp
ret

Function at 0x10012600
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10012630
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
mov ecx, dword [ebp + 0xc]
add esp, 8
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x10012670
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
add esp, 8
push ecx
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [ebp + 0x10]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x100126b0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
add esp, 8
push ecx
mov esi, eax
mov eax, dword [ebp + 0xc]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x100126f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 1
push eax
mov dword [ebp - 4], 0xffffffff
mov ebx, 0x104
xor esi, esi
call sym.vmtools.dll_Unicode_GetAllocBytes
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 8], eax
call sym.vmtools.dll_DynBuf_Init
add esp, 0xc
mov edi, edi
lea edi, [ebx + ebx]
push edi
push esi
call sym.vmtools.dll_UtilSafeRealloc0
mov edx, dword [ebp - 8]
add esp, 8
push ebx
mov esi, eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x10012771
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10012775
mov edi, dword [ebp - 4]
lea edx, [ebp - 0x18]
push edx
call sym.vmtools.dll_DynBuf_Destroy
mov eax, dword [ebp - 8]
mov ebx, dword [sym.imp.MSVCR90.dll_free]
push eax
call ebx
push esi
call ebx
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, ebx
jb 0x10012779
mov ebx, edi
jmp 0x10012720
lea eax, [esi + eax*2]
xor edi, edi
mov ecx, esi
mov dword [ebp - 0xc], eax
mov ebx, esi
cmp esi, eax
je 0x100127cb
lea esp, [esp]
cmp word [ebx], 0
jne 0x100127c4
cmp ebx, ecx
je 0x100127cb
push 1
push 0xffffffffffffffff
push ecx
call sym.vmtools.dll_Unicode_AllocWithLength
mov dword [ebp - 4], eax
push 4
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x18]
push ecx
call sym.vmtools.dll_DynBuf_Append
add esp, 0x18
test al, al
je 0x100127e1
mov eax, dword [ebp - 0xc]
inc edi
lea ecx, [ebx + 2]
add ebx, 2
cmp ebx, eax
jne 0x10012790
lea eax, [ebp - 0x18]
push eax
call sym.vmtools.dll_DynBuf_Detach
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx], eax
jmp 0x1001274d
lea edx, [ebp - 0x18]
push edx
call sym.vmtools.dll_DynBuf_Detach
push eax
mov ebx, edi
call fcn.10011b70
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x1001274a
Function at 0x100128e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x208
push 0
mov dword [ebp - 4], 0
mov ebx, 0x104
call sym.vmtools.dll_UtilSafeRealloc0
add esp, 8
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test esi, esi
je 0x10012959
cmp esi, ebx
jb 0x10012949
lea eax, [esi + esi]
push eax
push edi
mov ebx, esi
call sym.vmtools.dll_UtilSafeRealloc0
add esp, 8
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test esi, esi
jne 0x10012912
push edi
call dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0xffffffffffffffff
push edi
call sym.vmtools.dll_Unicode_AllocWithLength
add esp, 0xc
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100129e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 1
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x104
call sym.vmtools.dll_Unicode_GetAllocBytes
push 0x208
push 0
mov ebx, eax
call sym.vmtools.dll_UtilSafeRealloc0
add esp, 0x10
push 0x104
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10012a5d
cmp esi, dword [ebp - 4]
jb 0x10012a4d
lea ecx, [esi + esi]
push ecx
push edi
mov dword [ebp - 4], esi
call sym.vmtools.dll_UtilSafeRealloc0
add esp, 8
push esi
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10012a25
jmp 0x10012a5d
push 1
push 0xffffffffffffffff
push edi
call sym.vmtools.dll_Unicode_AllocWithLength
add esp, 0xc
mov dword [ebp - 8], eax
mov esi, dword [sym.imp.MSVCR90.dll_free]
push ebx
call esi
push edi
call esi
mov eax, dword [ebp - 8]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10012b00
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push 0x202
push ebx
mov dword [ebp - 4], 0x101
call sym.vmtools.dll_UtilSafeRealloc0
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, eax
add esp, 8
lea eax, [ebp - 4]
push eax
push esi
call edi
test eax, eax
jne 0x10012b59
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10012b68
mov ecx, dword [ebp - 4]
lea edx, [ecx + ecx]
push edx
push esi
call sym.vmtools.dll_UtilSafeRealloc0
mov esi, eax
add esp, 8
lea eax, [ebp - 4]
push eax
push esi
call edi
test eax, eax
je 0x10012b31
push 1
push 0xffffffffffffffff
push esi
call sym.vmtools.dll_Unicode_AllocWithLength
add esp, 0xc
mov ebx, eax
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret