joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100274e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1013f386
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov dword [edi + 4], vtable.IConvert.0
lea ebp, [edi + 0xc]
xor ebx, ebx
mov dword [edi], vtable.CUiBackup.0
mov dword [edi + 4], vtable.CUiBackup.1.0
mov dword [esp + 0x18], edi
mov dword [ebp + 0x210], ebx
mov dword [ebp + 0x214], ebx
mov dword [ebp + 0x218], ebx
push 0x3818
mov dword [esp + 0x54], ebx
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x50], 1
je 0x10027567
mov esi, eax
call fcn.1002c070
jmp 0x10027569
xor eax, eax
mov byte [esp + 0x50], bl
mov dword [edi + 0x430], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x20]
call eax
push 0x208
push ebx
push ebp
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x208
lea ecx, [edi + 0x228]
push ebx
push ecx
call sub.MSVCR80.dll_memset
mov dword [edi + 0x438], ebx
mov dword [edi + 0x434], ebx
mov edx, dword [str.My_Backup]
mov eax, dword [0x1014ec5c]
mov ecx, dword [0x1014ec60]
mov dword [esp + 0x38], edx
mov edx, dword [0x1014ec64]
mov dword [esp + 0x3c], eax
mov eax, dword [0x1014ec68]
mov dword [esp + 0x40], ecx
mov cx, word [0x1014ec6c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
add esp, 0xc
mov ebx, 0x104
lea edx, [esp + 0x2c]
mov eax, ebp
mov word [esp + 0x40], cx
call fcn.10001650
mov ecx, dword [edi + 0x430]
mov edx, dword [ecx]
mov eax, dword [edx + 0xec]
push ebp
call eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
mov esi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x430]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x30]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x34]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x38]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0xe8]
call eax
mov dword [edi + 8], 0
mov eax, edi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1012d370
add esp, 0x44
ret
Function at 0x100281d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1013f346
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [edi + 4], vtable.IConvert.0
lea esi, [edi + 0xc]
push esi
mov dword [esp + 0x14], edi
mov dword [edi], vtable.CUiClone.0
mov dword [edi + 4], vtable.CUiClone.1.0
call fcn.100282f0
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [edi + 8], eax
mov ecx, dword [str.Clone_Task]
mov edx, dword [0x1014ed0c]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x1014ed10]
mov dword [esp + 0x18], edx
mov edx, dword [0x1014ed14]
push 0x208
mov dword [esp + 0x20], ecx
mov ecx, dword [0x1014ed18]
mov dword [esp + 0x24], edx
mov dx, word [0x1014ed1c]
push eax
push esi
mov dword [esp + 0x30], ecx
mov word [esp + 0x34], dx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ebx, 0x104
lea edx, [esp + 0x14]
mov eax, esi
call fcn.10001650
xor ebx, ebx
push 0x3818
mov dword [edi + 0x240], ebx
mov dword [edi + 0x23c], ebx
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x38], 1
je 0x100282b8
mov esi, eax
call fcn.1002c070
jmp 0x100282ba
xor eax, eax
mov byte [esp + 0x38], bl
mov dword [edi + 0x234], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1012d370
add esp, 0x30
ret
Function at 0x10029840
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
push edi
je 0x100298a1
mov ecx, esi
lea edi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x10029860
sub ecx, edi
sar ecx, 1
je 0x100298a1
mov eax, dword [0x1014ed84]
mov ecx, dword [0x1014ed88]
mov dx, word [esi]
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 0xc], ecx
mov word [esp + 8], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 5
sete cl
mov eax, ecx
mov ecx, dword [esp + 0xc]
pop edi
xor ecx, esp
call fcn.1012d370
add esp, 0x10
ret

Function at 0x100298c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1013f307
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
mov dword [ebp + 4], vtable.IConvert.0
xor edi, edi
mov dword [ebp], vtable.CUiFlbackup.0
mov dword [ebp + 4], vtable.CUiFlbackup.1.0
mov dword [esp + 0x18], ebp
mov dword [ebp + 0x42c], edi
mov dword [ebp + 0x430], edi
mov dword [ebp + 0x434], edi
mov dword [esp + 0x5c], edi
mov dword [ebp + 0x43c], edi
mov dword [ebp + 0x440], edi
mov dword [ebp + 0x444], edi
push 0x208
lea eax, [ebp + 0x14]
mov bl, 1
mov byte [esp + 0x60], bl
push edi
push eax
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0x10], edi
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x208
lea eax, [ebp + 0x21c]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3818
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, edi
mov byte [esp + 0x5c], 2
je 0x10029992
mov esi, eax
call fcn.1002c070
jmp 0x10029994
xor eax, eax
mov byte [esp + 0x5c], bl
mov dword [ebp + 0x424], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
mov ecx, 8
mov esi, str.My_File_Backup
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp + 0x14]
mov ebx, 0x104
lea edx, [esp + 0x2c]
mov eax, esi
call fcn.10001650
mov ecx, dword [ebp + 0x424]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c4]
push esi
call eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x424]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x30]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x34]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x38]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x2c0]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1012d370
add esp, 0x4c
ret 4
Function at 0x1002ac70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1013f279
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
mov dword [ebp + 4], vtable.IConvert.0
xor ebx, ebx
mov dword [ebp], vtable.CUiFlBackupToCloud.0
mov dword [ebp + 4], vtable.CUiFlBackupToCloud.1.0
mov dword [esp + 0x18], ebp
mov dword [ebp + 0x42c], ebx
mov dword [ebp + 0x430], ebx
mov dword [ebp + 0x434], ebx
push 0x208
mov dword [esp + 0x60], ebx
lea eax, [ebp + 0x14]
push ebx
push eax
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0x10], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x208
lea eax, [ebp + 0x21c]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3818
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x5c], 1
je 0x1002ad2a
mov esi, eax
call fcn.1002c070
jmp 0x1002ad2c
xor eax, eax
mov byte [esp + 0x5c], bl
mov dword [ebp + 0x424], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
mov ecx, 8
mov esi, str.My_File_Backup
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp + 0x14]
mov ebx, 0x104
lea edx, [esp + 0x2c]
mov eax, esi
call fcn.10001650
mov ecx, dword [ebp + 0x424]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c4]
push esi
call eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x424]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x30]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x34]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x38]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x2c0]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1012d370
add esp, 0x4c
ret 4
Function at 0x1002c070
Capabilities:
Get common file path

Disassembly:
mov dword [esi + 4], vtable.IConvert.0
push ebx
xor ebx, ebx
push 0x1d88
mov dword [esi], vtable.CUiOption.0
mov dword [esi + 4], vtable.CUiOption.1.0
mov dword [esi + 0x380c], ebx
mov dword [esi + 0x3810], ebx
mov dword [esi + 0x3814], ebx
lea eax, [esi + 0x1840]
push ebx
push eax
mov byte [esi + 0x37f0], bl
mov dword [esi + 0x35dc], ebx
mov dword [esi + 0x35d8], ebx
mov dword [esi + 0x35e0], ebx
mov dword [esi + 0x35e4], ebx
mov dword [esi + 0x35c8], ebx
mov dword [esi + 0x35d0], ebx
mov dword [esi + 0x35d4], ebx
mov dword [esi + 0x35cc], ebx
mov dword [esi + 0x3804], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x618
lea ecx, [esi + 0x1224]
push ebx
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0xcf4
lea edx, [esi + 0x530]
push ebx
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esi + 0x35e8]
push eax
push 0x104
mov dword [esi + 0x37f4], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [esi + 0x37f8], ebx
mov eax, esi
pop ebx
ret

Function at 0x100300d0
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
xor eax, eax
test edi, edi
je 0x10030154
push ebx
push esi
push 0x34
push str.Backupper_Service
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1003014a
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x10], 1
je 0x10030147
lea ecx, [esp + 0xc]
push ecx
push 0xc9
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebx
push edi
call ebx
pop esi
mov eax, 1
pop ebx
pop edi
add esp, 0x1c
ret
Function at 0x10031db0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x94
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10031dcf
mov dword [esp + 4], eax
mov ecx, 1
jmp fcn.10031df0
xor eax, eax
ret 4
Function at 0x100321a0
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push esi
mov esi, ecx
call fcn.10032690
cmp dword [esi + 0x14], 0
mov eax, dword [esi]
mov ecx, esi
je 0x100321c0
mov edx, dword [eax + 0x138]
call edx
pop esi
jmp fcn.10030230
mov edx, dword [eax + 0x13c]
call edx
pop esi
jmp fcn.10030230
Function at 0x10039330
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10140a3b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
push 0x2f8
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x38], ecx
je 0x10039385
push eax
call fcn.10007d70
mov dword [esp + 0x14], eax
jmp 0x10039389
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [ebx]
mov edx, dword [eax + 0x104]
mov ecx, ebx
call edx
mov edi, dword [ebp + 8]
cmp edi, eax
jge 0x10039435
cmp edi, 0xffffffff
jle 0x10039435
mov eax, dword [ebx + 0x4c]
test eax, eax
lea esi, [ebx + 0x48]
je 0x100393d7
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x86d90545
imul ecx
add edx, ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x100393dd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
mov eax, edi
imul eax, eax, 0x1e60
cmp dword [eax + ecx + 0xa88], 0xffffffff
je 0x10039435
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov dword [esp + 0x18], eax
call fcn.1005b650
mov edi, dword [eax + 0xa88]
lea esi, [ebx + 0x78]
call fcn.1005b9a0
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push eax
mov eax, dword [edx]
mov ecx, esi
call eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebx]
mov edx, dword [edx + 0x30]
push edi
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call edx
mov edx, dword [eax]
mov esi, dword [esp + 0x14]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.10008220
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1004c150
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x344
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push esi
push edi
push 0x7e
lea eax, [esp + 0xc6]
push 0
push eax
mov esi, ecx
mov word [esp + 0xcc], 0
call sub.MSVCR80.dll_memset
mov edi, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
add esp, 0xc
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call edx
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push edi
lea ecx, [esp + 0x84]
push ecx
mov ecx, esi
call edx
movzx eax, byte [eax + 0xf]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push eax
push edi
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 0xe]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push eax
push edi
lea eax, [esp + 0xbc]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 0xd]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push eax
push edi
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push eax
push edi
lea eax, [esp + 0xb4]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 0xb]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push eax
push edi
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 0xa]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push eax
push edi
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 9]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push eax
push edi
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push eax
push edi
lea eax, [esp + 0x94]
push eax
mov ecx, esi
call edx
movzx eax, word [eax + 6]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
push eax
push edi
lea eax, [esp + 0xb8]
push eax
mov ecx, esi
call edx
movzx eax, word [eax + 4]
mov ecx, dword [ebx]
push eax
push ecx
lea edx, [esp + 0xec]
push 0x1014c4a8
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x206
lea eax, [esp + 0x17a]
push 0
push eax
mov word [esp + 0x180], 0
call sub.MSVCR80.dll_memset
add esp, 0x40
lea ecx, [esp + 0x140]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x10150e6c
lea edx, [esp + 0x144]
push 0x104
push edx
call esi
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x150]
push 0x104
push ecx
call esi
add esp, 0x18
lea edx, [esp + 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
pop esi
pop ebx
mov eax, ecx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.1012d370
mov esp, ebp
pop ebp
ret 4
Function at 0x1004d1a0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x21c
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [0x10150fac]
mov ecx, dword [0x10150fb0]
mov edx, dword [0x10150fb4]
mov dword [esp + 8], eax
mov eax, dword [0x10150fb8]
push esi
mov dword [esp + 4], edx
movsx dx, byte [esp + 0x228]
mov dword [esp + 0x10], ecx
movsx cx, byte [esp + 0x224]
mov dword [esp + 8], eax
push edi
lea eax, [esp + 8]
push eax
mov word [esp + 0x14], cx
mov word [esp + 0xc], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x1004d259
push 0x2496
mov edi, str..UiRecord.cpp
call fcn.1002f7d0
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push edi
push str.GetDriveType_newMountPoint___DRIVE_NO_ROOT_DIR
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1012d370
add esp, 0x21c
ret
push 0x1fe
lea eax, [esp + 0x1e]
push 0
push eax
mov word [esp + 0x24], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x100
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1004d2de
push 0x2499
mov edi, str..UiRecord.cpp
call fcn.1002f7d0
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push edi
push str.GetVolumeNameForVolumeMountPoint__oldMountPoint__guid__ARRAYSIZE_guid__
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1012d370
add esp, 0x21c
ret
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
jne 0x1004d33e
push 0x249a
mov edi, str..UiRecord.cpp
call fcn.1002f7d0
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push edi
push str.DeleteVolumeMountPoint_oldMountPoint_
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1012d370
add esp, 0x21c
ret
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
jne 0x1004d393
push 0x249b
mov edi, str..UiRecord.cpp
call fcn.1002f7d0
add esp, 4
push eax
push str.SetVolumeMountPoint_newMountPoint__guid_
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.100016d0
add esp, 8
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1012d370
add esp, 0x21c
ret
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.1012d370
add esp, 0x21c
ret
Function at 0x10054500
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1013b5ac
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x228], eax
push ebp
push esi
push edi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov esi, ecx
push 0x207
lea eax, [esp + 0x35]
push 0
push eax
mov byte [esp + 0x3c], 0
call sub.MSVCR80.dll_memset
lea edx, [esp + 0x3c]
add esp, 0xc
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10054560
mov ebp, dword [sym.imp.MSVCR80.dll_strtok_s]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x34]
push 0x1014bd9c
push edx
mov dword [esp + 0x1c], 0
call ebp
add esp, 0xc
lea ecx, [esp + 0x14]
mov esi, eax
xor edi, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
test esi, esi
mov dword [esp + 0x244], edi
je 0x100545f0
jmp 0x100545b0
add edi, 1
cmp dword [esp + 0x28], 0
je 0x100545c9
push 0x1014bd9c
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push esi
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea eax, [esp + 0x10]
push eax
push 0x1014bd9c
push 0
call ebp
add esp, 0xc
cmp edi, 2
mov esi, eax
jge 0x10054609
test esi, esi
jne 0x100545b0
mov dword [esp + 0x244], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
jmp 0x10054639
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x10054618
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ecx, 0xffffffff
mov dword [esp + 0x244], ecx
cmp eax, ecx
lea ecx, [esp + 0x14]
je 0x100545ff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.1012d370
add esp, 0x238
ret