joyce8/EMBER2024-capa huggingface dataset:
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 fcn.10003450
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 fcn.10003450
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 fcn.10003450
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 0x10013870
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x1008c224]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x80
xor bl, bl
mov dword [ebp - 0x808], 0x80
mov dword [ebp - 0x810], 0x400
call sym.vmtools.dll_UtilSafeMalloc0
add esp, 4
lea ecx, [ebp - 0x80c]
push ecx
lea edx, [ebp - 0x810]
push edx
lea ecx, [ebp - 0x804]
push ecx
lea edx, [ebp - 0x808]
push edx
push eax
push str.__vmware__
push 0
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x10013918
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.W32Util_GetVMwareGroupSid
push str._s:_LookupAccountNameW:__d_n
call fcn.10003450
mov eax, dword [esi]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [esi], 0
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x80c], 4
je 0x10013932
push str.VMware_User_Group
push str.W32Util_GetVMwareGroupSid
push str._s:_Bad_account_type_for__S_group_n
jmp 0x100138ec
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret
Function at 0x10028150
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x1008d000]
test eax, eax
jne 0x1002817e
push str.ICU_DATA
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
jne 0x10028170
mov eax, 0x1005df52
push eax
call fcn.10028060
mov eax, dword [0x1008d000]
add esp, 4
ret

Function at 0x1002b0c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
xor esi, esi
call fcn.1002a180
mov eax, dword [ebp + 0xc]
add esp, 4
push esi
push 0x10000080
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1002b119
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push str.uprv_mapFile:_CreateFileA_failed_for__s___d__n
call fcn.10003450
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1002b15b
push 0
push 0
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x1002b15b
xor eax, eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea esi, [ebp - 0xc]
push 0
push 0
push 0
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
call edi
test esi, esi
jne 0x1002b19b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
push eax
push edx
push str.uprv_mapFile:_CreateFileMapping_failed_for__s___d__n
call fcn.10003450
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 4], eax
test eax, eax
jne 0x1002b1d5
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 0xc]
push eax
push str.uprv_mapFile:_MapViewOfFile_failed_for__s___d__n
call fcn.10003450
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ebx + 0x14], esi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10045060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
test eax, eax
jl 0x1004507b
mov ecx, dword [ebp + 0x14]
jg 0x10045090
test ecx, ecx
ja 0x10045090
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
jmp 0x10045090
sub ecx, ebx
sbb eax, edi
mov dword [ebp - 4], 0
test eax, eax
jg 0x100450ad
jl 0x100450a9
cmp ecx, 0x2000
jae 0x100450ad
mov esi, ecx
jmp 0x100450b2
mov esi, 0x2000
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc38]
mov edx, dword [eax + 0x320]
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], esi
jne 0x100450f3
mov eax, dword [ebp + 0x18]
add ebx, esi
adc edi, 0
cmp edi, eax
jl 0x10045084
jg 0x1004507b
mov ecx, dword [ebp + 0x14]
cmp ebx, ecx
jb 0x10045090
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.Write_Failed__d
call fcn.10003450
add esp, 8
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10048e50
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x150]
push esi
push edi
test eax, eax
je 0x10048e6c
push eax
call sym.vmtools.dll_MXUser_AcquireRecLock
add esp, 4
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebx + 8]
push eax
push esi
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x10048ec5
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
jne 0x10048ea8
mov edx, dword [ebp + 0x1c]
push edx
push 1
mov eax, 8
mov ecx, ebx
call fcn.10048de0
add esp, 8
jmp 0x10048ed9
call edi
mov esi, eax
push esi
call sym.vmtools.dll_Err_Errno2String
push eax
push esi
push str.SOCKET_connect_failed__error__d:__s_n
call fcn.10003450
mov esi, 6
jmp 0x10048f04
mov eax, dword [ebp + 0x1c]
push 0
push eax
push 0
xor eax, eax
mov ecx, ebx
call fcn.10048de0
add esp, 0xc
test eax, eax
je 0x10048f40
mov ecx, dword [ebx + 8]
push ecx
push ebx
call fcn.10047c50
add esp, 4
push eax
push str.SOCKET__d___d_
call sym.vmtools.dll_Warning
push str.failed_to_register_callback_in_connect__n
call sym.vmtools.dll_Warning
mov esi, 8
mov edx, dword [ebx + 0xc]
add esp, 0x10
push edx
call fcn.10049bb0
mov eax, dword [ebx + 0x150]
add esp, 4
test eax, eax
je 0x10048f26
push eax
call sym.vmtools.dll_MXUser_ReleaseRecLock
add esp, 4
push ebx
call dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [ebp + 0x24]
add esp, 4
test eax, eax
je 0x10048f39
mov dword [eax], esi
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0x13c], eax
mov eax, dword [ebx + 0x150]
mov dword [ebx + 0x148], ecx
lea edi, [ebx + 0xb8]
mov ecx, 0x20
mov dword [ebx + 4], 1
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x138], edx
test eax, eax
je 0x10048f82
push eax
call sym.vmtools.dll_MXUser_ReleaseRecLock
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x100499c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x1008f486], 0
je 0x100499f0
call fcn.10049cb0
cmp eax, 0x100498c0
je 0x100499f0
push eax
push 0x100498c0
push str.SSLCheckLockingCallback
push str._s:_locking_callback_overwritten__Expected__p__saw__p_n
call sym.vmtools.dll_Warning
add esp, 0x10
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0xa], 0
je 0x10049a0b
push 0x271d
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
pop ebp
ret
cmp byte [esi + 8], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
je 0x10049a3e
mov edx, dword [esi]
push ebx
push eax
push ecx
push edx
call fcn.10049c70
mov ebx, eax
mov eax, dword [esi]
add esp, 0xc
call fcn.10049820
mov dword [esi + 0x10], eax
test eax, eax
je 0x10049a38
or ebx, 0xffffffff
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov edx, dword [esi + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
pop esi
pop ebp
ret
Function at 0x1004c1a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0x800
mov dword [ebp - 4], 0x800
mov dword [ebp - 0xc], 1
call sym.vmtools.dll_UtilSafeMalloc0
mov edi, eax
mov eax, dword [ebp + 0xc]
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
mov esi, eax
push 1
push ebx
mov dword [ebp - 0x14], esi
call sym.vmtools.dll_Unicode_GetAllocBytes
mov edx, dword [ebp + 8]
add esp, 0x14
lea ecx, [ebp - 8]
push ecx
push 1
push 0
push esi
push edx
mov dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x1004c215
mov eax, dword [ebp + 0xc]
push ebx
push eax
push str.WinRegGetSZInt
push str._s:_A_Windows_registry_operation_failed:_Failed_to_open_key._key_path:__s__value_name:__s_n
call fcn.10003450
add esp, 0x10
jmp 0x1004c2af
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
push edi
lea edx, [ebp - 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
jne 0x1004c27a
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
push ebx
push edx
push eax
push str.WinRegGetSZInt
push str._s:_A_Windows_registry_operation_failed:_buffer_too_small__need__d_bytes._key_path:__s__value_name:__s.__Resizing_buffer_to_retry._n
call fcn.10003450
mov ecx, dword [ebp - 4]
push ecx
push edi
call sym.vmtools.dll_UtilSafeRealloc0
mov ecx, dword [ebp - 0x10]
add esp, 0x1c
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp - 8]
mov edi, eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
cmp ecx, 1
je 0x1004c2d2
cmp ecx, 2
je 0x1004c2d2
mov edx, dword [ebp + 0xc]
push ebx
push edx
push ecx
push esi
push str.WinRegGetSZInt
push str._s:_A_Windows_registry_operation_failed:__d._registry_value_TYPE_is__d._key_path:__s__value_name:__s_n
call fcn.10003450
add esp, 0x18
mov esi, 0xd
push edi
mov edi, dword [sym.imp.MSVCR90.dll_free]
call edi
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call edi
mov edx, dword [ebp - 0x10]
push edx
call edi
add esp, 8
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x1004c2af
mov eax, dword [ebp - 4]
cmp eax, 2
jb 0x1004c2aa
mov edx, eax
shr edx, 1
cmp word [edi + edx*2 - 2], si
je 0x1004c2fd
push str.WinRegGetSZInt
push str._s:_Registry_string_not_terminated_correctly_n
call fcn.10003450
add esp, 8
jmp 0x1004c2aa
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x1004c306
mov dword [edx], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1004c30f
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov edi, dword [sym.imp.MSVCR90.dll_free]
jmp 0x1004c2bb
Function at 0x1004c490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov eax, 4
push 1
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
call sym.vmtools.dll_Unicode_GetAllocBytes
mov edi, eax
mov eax, dword [ebp + 0x10]
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
mov edx, dword [ebp + 8]
add esp, 0x10
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push edi
push edx
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x1004c4f4
mov eax, dword [ebp + 0x10]
push eax
push ebx
push 0x100792ac
push str._s:_A_Windows_registry_operation_failed:_Failed_to_open_key._key_path:__s__value_name:__s_n
call fcn.10003450
add esp, 0x10
jmp 0x1004c557
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0xc]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 4
je 0x1004c53b
mov ecx, dword [ebp + 0x10]
push ecx
push ebx
push 0x100792ac
push str._s:_A_Windows_registry_operation_failed:_registry_value_TYPE_not_REG_DWORD._key_path:__s__value_name:__s_n
call fcn.10003450
add esp, 0x10
jmp 0x1004c557
test esi, esi
je 0x1004c557
mov edx, dword [ebp + 0x10]
push edx
push ebx
push esi
push 0x100792ac
push str._s:_A_Windows_registry_operation_failed:__d._key_path:__s__value_name:__s_n_n
call fcn.10003450
add esp, 0x14
push edi
mov edi, dword [sym.imp.MSVCR90.dll_free]
call edi
mov eax, dword [ebp - 0xc]
push eax
call edi
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1004c580
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
mov ecx, dword [ebp + 0x10]
push 1
push ecx
mov edi, eax
call sym.vmtools.dll_Unicode_GetAllocBytes
add esp, 0x10
push 0
lea edx, [ebp - 4]
push edx
push 0
push 2
push 0
push 0
push 0
mov ebx, eax
mov eax, dword [ebp + 8]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x1004c5e9
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp + 0x14]
push ecx
push 4
push eax
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1004c608
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
push esi
push 0x10079318
push str._s:_A_Windows_registry_operation_failed:__d._key_path:__s__value_name:__s__value:__d_n_n
call fcn.10003450
add esp, 0x18
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 0x1004c7c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
mov ecx, dword [ebp + 0x10]
mov esi, eax
push 1
push ecx
mov dword [ebp - 8], esi
call sym.vmtools.dll_Unicode_GetAllocBytes
add esp, 0x10
push 0
lea edx, [ebp - 4]
push edx
push 0
push 2
push 0
push 0
push 0
mov ebx, eax
mov eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x1004c854
mov ecx, dword [ebp + 0x14]
push 1
push ecx
call sym.vmtools.dll_Unicode_GetAllocBytes
mov edi, eax
push edi
call sym.vmtools.dll_Unicode_UTF16Strlen
mov ecx, dword [ebp - 4]
add esp, 0xc
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0x18]
push edx
push edi
push eax
push esi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov edi, dword [sym.imp.MSVCR90.dll_free]
call edi
add esp, 4
test esi, esi
je 0x1004c879
jmp 0x1004c85a
mov edi, dword [sym.imp.MSVCR90.dll_free]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
push ecx
push edx
push esi
push 0x10079410
push str._s:_A_Windows_registry_operation_failed:__d._key_path:__s__value_name:__s__value:__s_n
call fcn.10003450
add esp, 0x18
mov eax, dword [ebp - 8]
push eax
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 0x1004c8b0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
mov edx, dword [ebp + 8]
add esp, 8
lea ecx, [ebp - 4]
push ecx
push 2
push 0
mov ebx, eax
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1004c91a
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1004c93a
push edi
push 1
push eax
call sym.vmtools.dll_Unicode_GetAllocBytes
add esp, 8
mov edi, eax
mov eax, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop edi
test esi, esi
je 0x1004c93a
cmp esi, 2
je 0x1004c93a
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push esi
push 0x100794ac
push str._s:_A_Windows_registry_operation_failed:__d._key_path:__s__value_name:__s_n
call fcn.10003450
add esp, 0x14
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004cbf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x802c
call fcn.1004e500
mov eax, dword [0x1008c224]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x8024], eax
xor eax, eax
push 1
push ebx
mov dword [ebp - 0x8020], edi
mov dword [ebp - 0x802c], ecx
mov dword [ebp - 0x801c], eax
mov byte [ebp - 0x8005], al
mov dword [ebp - 0x8014], eax
mov byte [ebp - 0x8006], 1
call sym.vmtools.dll_Unicode_GetAllocBytes
add esp, 8
lea edx, [ebp - 0x8010]
push edx
push 1
push 0
mov esi, eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
test edi, edi
je 0x1004cc9a
push ebx
push edi
push 0x100794d8
push str._s:_A_Windows_registry_operation_failed:__d._key_path:__s_n
call fcn.10003450
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004e3f2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x8010]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x8014]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
je 0x1004cce1
push ebx
push edi
push 0x100794d8
push str._s:_A_Windows_registry_operation_failed:__d._key_path:__s_n
call fcn.10003450
add esp, 0x10
jmp 0x1004ce06
cmp dword [ebp - 0x8014], 0
mov dword [ebp - 0x800c], 0
jbe 0x1004ce06
xor edx, edx
push 0x7ffc
push edx
lea eax, [ebp - 0x8002]
push eax
mov word [ebp - 0x8004], dx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x8018]
push ecx
mov ecx, dword [ebp - 0x800c]
push 0
lea edx, [ebp - 0x8028]
push edx
mov edx, dword [ebp - 0x8010]
lea eax, [ebp - 0x8004]
push eax
push ecx
push edx
mov dword [ebp - 0x8028], 0x3fff
mov dword [ebp - 0x8018], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test edi, edi
jne 0x1004cde3
push 1
lea eax, [ebp - 0x8004]
push 0xffffffffffffffff
push eax
call sym.vmtools.dll_Unicode_AllocWithLength
mov edx, dword [ebp - 0x802c]
lea ecx, [ebp - 0x8006]
push ecx
mov ecx, dword [ebp - 0x8020]
push edx
mov esi, eax
mov eax, dword [ebp - 0x8018]
push eax
push esi
push ebx
push ecx
call dword [ebp - 0x8024]
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x28
cmp byte [ebp - 0x8006], 0
je 0x1004cdf7
cmp byte [ebp - 0x8005], 0
jne 0x1004cdc8
test edi, edi
je 0x1004cdc8
mov dword [ebp - 0x801c], edi
mov byte [ebp - 0x8005], 1
mov eax, dword [ebp - 0x800c]
inc eax
mov dword [ebp - 0x800c], eax
cmp eax, dword [ebp - 0x8014]
jb 0x1004ccf8
jmp 0x1004cdf7
push ebx
push edi
push 0x100794d8
push str._s:_A_Windows_registry_operation_failed:__d._key_path:__s_n
call fcn.10003450
add esp, 0x10
cmp byte [ebp - 0x8005], 0
je 0x1004ce06
mov edi, dword [ebp - 0x801c]
mov edx, dword [ebp - 0x8010]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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