joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003f31
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x118
lea eax, [esp + 0x14]
push ebx
push ebp
push esi
push edi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x24]
lea edi, [esi + 0x14]
push eax
push str._sTime.inf
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0x14
lea eax, [esp + 0x20]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x14
push eax
push 0x10009218
push str.chrome
push str.LDTime
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_sscanf]
lea eax, [esi + 0x640]
push eax
mov ebp, str._I64d
lea eax, [esp + 0x14]
push ebp
push eax
call ebx
push 0x14
lea eax, [esp + 0x20]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [esi + 0x14]
push eax
lea eax, [esp + 0x14]
push 0x14
push eax
push 0x10009218
push str.theworld
push str.LDTime
call edi
lea eax, [esi + 0x648]
push eax
lea eax, [esp + 0x14]
push ebp
push eax
call ebx
push 0x14
lea eax, [esp + 0x20]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [esi + 0x14]
push eax
lea eax, [esp + 0x14]
push 0x14
push eax
push 0x10009218
push str.360chrome
push str.LDTime
call edi
lea eax, [esi + 0x650]
push eax
lea eax, [esp + 0x14]
push ebp
push eax
call ebx
push 0x14
lea eax, [esp + 0x20]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [esi + 0x14]
push eax
lea eax, [esp + 0x14]
push 0x14
push eax
push 0x10009218
push 0x100093c4
push str.LDTime
call edi
lea eax, [esi + 0x658]
push eax
lea eax, [esp + 0x14]
push ebp
push eax
call ebx
push 0x14
lea eax, [esp + 0x20]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [esi + 0x14]
push eax
lea eax, [esp + 0x14]
push 0x14
push eax
push 0x10009218
push 0x100093e8
push str.LDTime
call edi
add esi, 0x660
lea eax, [esp + 0x10]
push esi
push ebp
push eax
call ebx
add esp, 0xc
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret

Function at 0x100040f9
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push 0xc750
and dword [esi + 0xc], 0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 8], eax
pop ecx
lea eax, [esp + 4]
mov dword [esi + 0x10], 0x400
push eax
push 0
push esi
push 0x100040ac
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
pop esi
je 0x1000413b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10004141
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
pop eax
pop ecx
ret
Function at 0x100041ac
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
mov esi, 0x104
push edi
xor ebx, ebx
push esi
lea eax, [ebp - 0x218]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
lea eax, [ebp - 0x114]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x114]
push str._s_s
push eax
call edi
lea eax, [ebp - 0x114]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x18
test eax, eax
je 0x10004230
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
push esi
push ebx
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memset
push esi
push ebx
push dword [ebp + 0x10]
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push ebx
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
pop ecx
call dword [sym.imp.MSVCRT.dll_rand]
mov esi, eax
movzx eax, word [ebp - 4]
push esi
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
push str._s_04d_02d_02d_02d_02d_02d__u.t
push dword [ebp + 0xc]
call edi
movzx eax, word [ebp - 4]
add esp, 0x28
push esi
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
push str._s_04d_02d_02d_02d_02d_02d__u.a
push dword [ebp + 0x10]
call edi
add esp, 0x28
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100042d7
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x1000432c
cmp esi, 0xffffffff
je 0x1000432c
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10004178
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_rename]
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x1000432e
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10004331
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
push esi
or ebx, 0xffffffff
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCRT.dll__access]
pop ecx
test eax, eax
pop ecx
jne 0x100043dc
push esi
push esi
push 3
push esi
mov edi, 0x80000000
push 1
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x100043dc
cmp eax, 0xffffffff
je 0x100043dc
lea ecx, [ebp + 8]
mov dword [ebp + 8], esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp + 8], esi
mov dword [ebp - 4], eax
jbe 0x10004396
or eax, edi
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x1000439e
xor ebx, ebx
jmp 0x100043d3
add eax, 0x400
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebp - 0xc], eax
je 0x100043d0
lea ecx, [ebp - 4]
push esi
push ecx
push dword [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push 2
add dword [eax], ecx
pop ebx
jmp 0x100043d3
or ebx, 0xffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword [eax], ecx
mov eax, ebx
pop ebx
leave
ret

Function at 0x100043eb
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
cmp dword [ebp + 8], 0
je 0x1000447f
push 0x104
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000447f
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.AppData
mov dword [ebp - 8], 0x211
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1000447f
cmp dword [ebp - 0xc], 1
jne 0x1000447f
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x10004483
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
cmp dword [ebp + 8], 0
je 0x10004517
push 0x104
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004517
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.Local_AppData
mov dword [ebp - 8], 0x211
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x10004517
cmp dword [ebp - 0xc], 1
jne 0x10004517
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x1000451b
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
cmp dword [ebp + 8], 0
je 0x100045af
push 0x104
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100045af
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.Cookies
mov dword [ebp - 8], 0x211
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x100045af
cmp dword [ebp - 0xc], 1
jne 0x100045af
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x10004714
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp eax, ebx
ja 0x10004728
xor eax, eax
jmp 0x10004792
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 8]
push edi
push eax
push ebx
push ebx
push ebx
lea eax, [ebp + 0xc]
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp + 0xc], ebx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov eax, dword [ebp - 8]
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebp - 8]
mov esi, eax
push dword [ebp - 4]
push esi
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
add esp, 0x10
mov byte [eax + esi], bl
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov dword [ebp + 8], eax
call edi
cmp dword [ebp + 0xc], ebx
je 0x10004788
push dword [ebp + 0xc]
call edi
mov eax, dword [ebp + 0x10]
pop edi
mov dword [eax], esi
mov eax, dword [ebp + 8]
pop esi
pop ebx
leave
ret
Function at 0x10007379
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x118
lea eax, [esp + 0x14]
push ebx
push ebp
push esi
push edi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x24]
lea edi, [esi + 0x14]
push eax
push str._sTime.inf
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0x14
lea eax, [esp + 0x20]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x14
push eax
push 0x10009218
push str.chrome
push str.Time
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_sscanf]
lea eax, [esi + 0x640]
push eax
mov ebp, str._I64d
lea eax, [esp + 0x14]
push ebp
push eax
call ebx
push 0x14
lea eax, [esp + 0x20]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [esi + 0x14]
push eax
lea eax, [esp + 0x14]
push 0x14
push eax
push 0x10009218
push str.sogou
push str.Time
call edi
lea eax, [esi + 0x650]
push eax
lea eax, [esp + 0x14]
push ebp
push eax
call ebx
push 0x14
lea eax, [esp + 0x20]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [esi + 0x14]
push eax
lea eax, [esp + 0x14]
push 0x14
push eax
push 0x10009218
push str.360se
push str.Time
call edi
lea eax, [esi + 0x648]
push eax
lea eax, [esp + 0x14]
push ebp
push eax
call ebx
push 0x14
lea eax, [esp + 0x20]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [esi + 0x14]
push eax
lea eax, [esp + 0x14]
push 0x14
push eax
push 0x10009218
push str.liebao
push str.Time
call edi
lea eax, [esi + 0x658]
push eax
lea eax, [esp + 0x14]
push ebp
push eax
call ebx
push 0x14
lea eax, [esp + 0x20]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [esi + 0x14]
push eax
lea eax, [esp + 0x14]
push 0x14
push eax
push 0x10009218
push str.360chrome
push str.Time
call edi
add esi, 0x660
lea eax, [esp + 0x10]
push esi
push ebp
push eax
call ebx
add esp, 0xc
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret

Function at 0x10007541
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push 0xc750
and dword [esi + 0xc], 0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 8], eax
pop ecx
lea eax, [esp + 4]
mov dword [esi + 0x10], 0x400
push eax
push 0
push esi
push 0x100074f4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
pop esi
je 0x10007583
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10007589
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
pop eax
pop ecx
ret
Function at 0x10001190
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1008c224]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0xa
lea eax, [ebp - 0x18]
push eax
push 0x5a
push 0x400
call esi
test eax, eax
je 0x100011f1
push 0xa
lea ecx, [ebp - 0x2c]
push ecx
push 0x59
push 0x400
call esi
test eax, eax
je 0x100011f1
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x2c]
push eax
push str._S__S
call sub.glib_2.0.dll_g_strdup_printf
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_retrieve_user_locale_data__error___u.
call fcn.10050cd0
push 0x1005d78c
call sub.glib_2.0.dll_g_strdup
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret

Function at 0x10002fb9
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [0x10085bbb]
mov ecx, dword fs:[0x30]
mov ecx, dword [ecx + 0xc]
add ecx, 0xc
mov edx, ecx
jmp 0x10002fe2
Function at 0x10007b50
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push str.panic.commitAddrSpaceReserved
push 0
call sym.vmtools.dll_Preference_GetBool
push str.panic.addrSpaceReservedKB
push 0x1800
mov bl, al
call sym.vmtools.dll_Config_GetLong
add esp, 0x10
test eax, eax
je 0x10007c1b
cmp eax, 0x5000
jbe 0x10007b8b
mov eax, 0x5000
shl eax, 0xa
mov dword [0x1008cda4], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x1008cda4]
lea eax, [edx + ecx - 1]
xor edx, edx
div ecx
push 1
imul eax, ecx
movsx ecx, bl
neg ecx
sbb ecx, ecx
and ecx, 0x1000
add ecx, 0x2000
push ecx
push eax
push 0
mov dword [0x1008cda4], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [0x1008cda4]
shr ecx, 0xa
mov dword [0x1008cda8], eax
cmp ecx, 0x1800
je 0x10007c1b
test eax, eax
je 0x10007c1b
push ecx
push eax
push str.Reserved_virtual_address_space_for_CoreDump_addr:_p__size:_IuKB__n
call fcn.10003450
add esp, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a680
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x14]
push edi
xor edi, edi
test ecx, ecx
je 0x1000a690
mov dword [ecx], edi
mov dword [ebp - 4], eax
test eax, eax
jl 0x1000a770
push ebx
push esi
jmp 0x1000a6a3
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1000a6ac
mov esi, dword [ebp + 8]
jmp 0x1000a6c7
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
dec eax
push eax
push edx
push str._s__d_s
push 0
call sym.vmtools.dll_Str_SafeAsprintf
add esp, 0x14
mov esi, eax
test edi, edi
jne 0x1000a704
push edi
push 1
push esi
call fcn.1000ca80
add esp, 0xc
test eax, eax
je 0x1000a6e2
sub eax, 2
neg eax
sbb eax, eax
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1000a73b
call sym.vmtools.dll_Err_ErrString
push eax
push esi
push str.FileRotateByRename
push str.FILE:__s:_failed_to_remove__s:__s_n
call fcn.10003450
add esp, 0x10
jmp 0x1000a73b
push edi
push esi
call fcn.10016370
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x1000a73b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1000a73b
push eax
call sym.vmtools.dll_Err_Errno2String
push eax
push str.FileRotateByRename
push edi
push esi
push 0x10061324
call fcn.10003450
add esp, 0x18
cmp esi, dword [ebp + 8]
jne 0x1000a758
cmp dword [ebp + 0x14], 0
je 0x1000a758
test ebx, ebx
jne 0x1000a758
push edi
call sym.vmtools.dll_UtilSafeStrdup0
mov ecx, dword [ebp + 0x14]
add esp, 4
mov dword [ecx], eax
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
sub dword [ebp - 4], 1
mov edi, esi
jns 0x1000a6a0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1000c910
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 5
test eax, eax
je 0x1000ca3b
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1000ca3b
push ebx
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
push 1
push esi
mov edi, eax
call sym.vmtools.dll_Unicode_GetAllocBytes
add esp, 0x10
mov ebx, eax
jmp 0x1000c960
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1000c978
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000c97a
xor esi, esi
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 4], eax
jae 0x1000c990
xor eax, eax
cmp dword [ebp + eax*4 - 0xc], esi
je 0x1000c9ee
inc eax
cmp eax, 2
jb 0x1000c984
push edi
mov edi, dword [sym.imp.MSVCR90.dll_free]
call edi
push ebx
call edi
add esp, 8
pop ebx
test esi, esi
je 0x1000ca40
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1000ca02
cmp dword [ebp - 4], edi
jb 0x1000ca02
push esi
push esi
call sym.vmtools.dll_Err_Errno2String
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add esp, 4
push eax
push ecx
push edx
push edi
push str.File_RenameRetry
push str.FILE:__s:_Retry_time_expired___u___s___s___last_error__s___d__n
call fcn.10003450
add esp, 0x1c
push esi
push str.File_RenameRetry
call fcn.1000c670
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x64
push 0xa
call fcn.1000a600
add esp, 8
add dword [ebp - 4], eax
jmp 0x1000c960
push esi
push esi
call sym.vmtools.dll_Err_Errno2String
mov ecx, dword [ebp + 8]
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
push str.File_RenameRetry
push str.FILE:__s:_Non_retriable_error_encountered___s___s_:__s___d__n
call fcn.10003450
add esp, 0x18
push esi
push str.File_RenameRetry
call fcn.1000c670
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, 0x1e7
push esi
push str.File_RenameRetry
call fcn.1000c670
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
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 fcn.10003450
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 fcn.10003450
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 fcn.10003450
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 fcn.10003450
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