joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414210
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0
push 0
push 0
push str.VNL_ExportDatabaseToFile:
call fcn.00443be0
test esi, esi
mov eax, str._NULL_
cmovne eax, esi
push eax
push str.VNL_ExportDatabaseToFile:_fn__S
push 0x80
call fcn.004439a0
add esp, 0x1c
test esi, esi
je 0x414271
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414260
sub ecx, edx
sar ecx, 1
jne 0x4142a8
lea esi, [ebp - 0x210]
push 0x105
mov eax, esi
push eax
push str._temp__vnetlib.config
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x104
ja 0x414336
mov eax, esi
push eax
push str.VNL_ExportDatabaseToFile:_using_default_filename__S
push 2
call fcn.004439a0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push 0
push str.SOFTWAREVMware__Inc.VMnetLib
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4142dc
push eax
push str.VNL_ExportDatabaseToFile:_couldnt_open_database_key:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x414351
push 0
call fcn.00413120
push 0
push esi
push dword [ebp - 0x214]
call fcn.004129c0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x414303
push str.VNL_ExportDatabaseToFile:_couldnt_export_database
push 1
jmp 0x41430a
push str.VNL_ExportDatabaseToFile:_successfully_exported_database
push 0x10
call fcn.004439a0
add esp, 8
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004437c0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._temp__vnetlib.config
push str.VNL_ExportDatabaseToFile:_couldnt_expand_default_export_path__S__x
push 1
call fcn.004439a0
add esp, 0x10
call fcn.004437c0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 4
Function at 0x414f50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0
push 0
push 0
push str.VNL_ImportDatabaseFromFile:
call fcn.00443be0
test esi, esi
mov eax, str._NULL_
cmovne eax, esi
push eax
push str.VNL_ImportDatabaseFromFile:_fn__S
push 0x80
call fcn.004439a0
add esp, 0x1c
test esi, esi
je 0x414fb1
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414fa0
sub ecx, edx
sar ecx, 1
jne 0x414fe8
lea esi, [ebp - 0x210]
push 0x105
mov eax, esi
push eax
push str._temp__vnetlib.config
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x104
ja 0x415071
mov eax, esi
push eax
push str.VNL_ImportDatabaseFromFile:_using_default_filename__S
push 2
call fcn.004439a0
add esp, 0xc
push 0
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push str.SOFTWAREVMware__Inc.VMnetLib
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004139c0
add esp, 0x14
test eax, eax
je 0x41501e
push eax
push str.VNL_ImportDatabaseFromFile:_couldnt_open_database_key:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x41508c
push 0xc
push esi
push dword [ebp - 0x214]
call fcn.00412830
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41503e
push str.VNL_ImportDatabaseFromFile:_couldnt_import_database
push 1
jmp 0x415045
push str.VNL_ImportDatabaseFromFile:_successfully_imported_database
push 0x10
call fcn.004439a0
add esp, 8
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004437c0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._temp__vnetlib.config
push str.VNL_ImportDatabaseFromFile:_couldnt_expand_default_import_path__S__x
push 1
call fcn.004439a0
add esp, 0x10
call fcn.004437c0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 4
Function at 0x4179f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x417a3c
test bl, 1
je 0x417a3c
push esi
and ebx, 0xfffffffe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
test esi, esi
jne 0x417a37
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebx
push str.RemoveReadOnlyFileAttribute:_failed_to_change_attrs_to__08x_for__S:__d
push 4
call fcn.004439a0
add esp, 0x14
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
pop edi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x417d20
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2820
call fcn.004767d0
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2810]
push edi
xor edi, edi
mov dword [ebp - 0x2820], 0
push 0x280c
push edi
push eax
mov dword [ebp - 0x281c], 0
mov dword [ebp - 0x2818], edi
mov word [ebp - 0x2814], 0x500
call fcn.0040f160
add esp, 0xc
lea eax, [ebp - 0x2820]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x2818]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x417dc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.TokenHasAdminGroup:_could_not_create_administrators_SUID:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x281c]
push eax
push 0x280c
lea eax, [ebp - 0x2810]
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x417e12
push str.TokenHasAdminGroup:_could_not_obtain_token_privilege_information
push 1
call fcn.004439a0
add esp, 8
push dword [ebp - 0x2820]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
xor esi, esi
cmp dword [ebp - 0x2810], esi
jbe 0x417e79
nop dword [eax]
push dword [ebp - 0x2820]
push dword [ebp + esi*8 - 0x280c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x417e69
test byte [ebp + esi*8 - 0x2808], 0x10
je 0x417e50
push str.TokenHasAdminGroup:_group_present_for_deny_only
push 2
call fcn.004439a0
add esp, 8
test byte [ebp + esi*8 - 0x2808], 4
jne 0x417e74
push str.TokenHasAdminGroup:_group_is_not_enabled
push 2
call fcn.004439a0
add esp, 8
inc esi
cmp esi, dword [ebp - 0x2810]
jb 0x417e20
jmp 0x417e79
mov edi, 1
mov eax, 0x4a07e0
test edi, edi
mov ecx, 0x4a07d8
cmove ecx, eax
push ecx
push str.TokenHasAdminGroup:_Done_scanning__result_is__s
push 2
call fcn.004439a0
add esp, 0xc
push dword [ebp - 0x2820]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
Function at 0x417ec0
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2820
call fcn.004767d0
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x2814]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x2810
xor edi, edi
mov dword [ebp - 0x2818], 0
push edi
push eax
call fcn.0040f160
add esp, 0xc
lea eax, [ebp - 0x2820]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x417f3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.TokenHasPrivilege:_could_not_get_privilege_LUID:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2818]
push eax
push 0x2810
lea eax, [ebp - 0x2814]
push eax
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x417f7f
push str.TokenHasPrivilege:_could_not_obtain_token_privilege_information
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x2814]
xor ecx, ecx
test edx, edx
je 0x417fb8
mov esi, dword [ebp - 0x281c]
lea eax, [ebp - 0x280c]
mov ebx, dword [ebp - 0x2820]
nop dword [eax]
cmp dword [eax - 4], ebx
jne 0x417fa9
cmp dword [eax], esi
je 0x417fb3
inc ecx
add eax, 0xc
cmp ecx, edx
jb 0x417fa0
jmp 0x417fb8
mov edi, 1
mov eax, 0x4a07e0
test edi, edi
mov ecx, 0x4a07d8
cmove ecx, eax
push ecx
push str.TokenHasPrivilege:_Done_scanning_for_privilege__result_is__s
push 2
call fcn.004439a0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
Function at 0x417ff0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
push 0x20a
push 0
push eax
call fcn.0040f160
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x214], eax
add esp, 0xc
mov eax, ecx
sub eax, 0x5000
je 0x418047
sub eax, 6
je 0x418063
push ecx
push str.VNLAddFileToUninstallList:_Case_for_product__u_needs_to_be_implemented
push 1
call fcn.004439a0
add esp, 0xc
call fcn.00413dc0
test eax, eax
je 0x418076
push str.VNLAddFileToUninstallList:_writing_uninstall_keys_for_VMware_Workstation
push 0x20
call fcn.004439a0
push 0x499da0
jmp 0x418090
push str.VNLAddFileToUninstallList:_writing_uninstall_keys_for_USB
push 0x20
call fcn.004439a0
push 0x499f78
jmp 0x418090
call fcn.00413910
test eax, eax
je 0x4180b0
push str.VNLAddFileToUninstallList:_writing_uninstall_keys_for_player
push 0x20
call fcn.004439a0
push str.VMware_Player
push 0x499920
push str.SOFTWARE_S_SPrivateUninstallFiles
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004159a0
add esp, 0x1c
jmp 0x4180da
push str.VNLAddFileToUninstallList:_writing_uninstall_keys_for_product_branch
push 2
call fcn.004439a0
push str.SOFTWAREVMware__Inc.VMware_WorkstationPrivate
push str._SUninstallFiles
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004159a0
add esp, 0x18
push 0
lea eax, [ebp - 0x218]
push eax
push 7
lea eax, [ebp - 0x210]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004139c0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x41812f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x210]
push ecx
push eax
push edi
push str.VNLAddFileToUninstallList:_Could_not_create_uninstall_files_path:_0x_08x_0x_08x__S
push 1
call fcn.004439a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push 2
lea eax, [ebp - 0x214]
push eax
push 1
push 0
push esi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x418185
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
push edi
push str.VNLAddFileToUninstallList:_Could_not_set_uninstall_key_for_file:_0x_08x_0x_08x__s
push 1
call fcn.004439a0
add esp, 0x14
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push esi
push str.VNLAddFileToUninstallList:_set_uninstall_key:__S
push 0x10
call fcn.004439a0
add esp, 0xc
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
Function at 0x418ee0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x210]
push esi
mov esi, dword [ebp + 0x10]
push 0x20a
push 0
push eax
call fcn.0040f160
add esp, 0xc
test ebx, ebx
je 0x418f86
test esi, esi
je 0x418f86
cmp dword [ebp + 0x14], 0
je 0x418f86
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x104
ja 0x418f7f
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x210]
push ebx
push eax
mov ecx, 0x49a55c
mov eax, str._sdrivers_s
cmove eax, ecx
push eax
push dword [ebp + 0x14]
push esi
call fcn.004159a0
add esp, 0x14
test eax, eax
jns 0x418f6a
push str.VNLGetSystemPathForFilename:_failed_to_create_complete_path
jmp 0x418f8b
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.VNLGetSystemPathForFilename:_failed_to_get_system_directory_path
jmp 0x418f8b
push str.VNLGetSystemPathForFilename:_invalid_parameters
push 1
call fcn.004439a0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop esi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
Function at 0x424770
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x220], eax
test edi, edi
je 0x424949
test eax, eax
je 0x424949
test esi, esi
je 0x424949
cmp dword [ebp + 0x10], 0
jne 0x4247e2
cmp esi, 4
je 0x4247e2
push esi
push str.SetDHCPServiceParameter:_DWORD_selected__but_length_isnt_currect:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push ebx
push 0x20a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 0
push 0
push eax
call fcn.0040f160
mov eax, dword [ebp - 0x218]
add esp, 0xc
mov ebx, str.SYSTEMCurrentControlSetServicesVMnetDHCPParameters
test eax, eax
je 0x424833
push eax
push ebx
push 0x49a55c
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004159a0
add esp, 0x14
lea ebx, [ebp - 0x210]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
push 7
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004139c0
add esp, 0x14
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x42488b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push dword [ebp - 0x21c]
push str.SetDHCPServiceParameter:_Could_not_create_open_DHCP_REG_PATH_key:_0x_08x_0x_08x__S
push 1
call fcn.004439a0
add esp, 0x14
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x214], 1
push ebx
jne 0x42489e
push str.SetDHCPServiceParameter:_created_new_key:__S
push 2
jmp 0x4248a5
push str.SetDHCPServiceParameter:_opened_existing_key:__S
push 0x20
call fcn.004439a0
mov ecx, dword [ebp + 0x10]
lea eax, [esi + esi]
add esp, 0xc
test ecx, ecx
cmove eax, esi
push eax
push dword [ebp - 0x220]
xor eax, eax
test ecx, ecx
sete al
lea eax, [eax*2 + 2]
push eax
push 0
push edi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x424917
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.SetDHCPServiceParameter:_Could_not_set_key_for_DHCP_parameter__S:_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push edi
push str.SetDHCPServiceParameter:_set_key_for_DHCP__S
push 0x10
call fcn.004439a0
add esp, 0xc
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push esi
push eax
push edi
push str.SetDHCPServiceParameter:_invalid_parameters:_0x_08x_0x_08x_0x_08x
push 1
call fcn.004439a0
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
Function at 0x4256b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 8]
push 0x20a
push 0
push eax
call fcn.0040f160
push 0
push 0
push 0
push str.VNL_GetDHCPConfigFilePath:
mov dword [ebp - 0x214], 0x105
call fcn.00443be0
push esi
push edi
push str.VNL_GetDHCPConfigFilePath:_p_0x_08x_pL_0x_08x
push 0x80
call fcn.004439a0
add esp, 0x2c
test edi, edi
je 0x4257ed
test esi, esi
je 0x4257ed
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push str.ConfFile
push 0
call fcn.00423fc0
add esp, 0x14
test eax, eax
jne 0x425767
push str.VNL_GetDHCPConfigFilePath:_could_not_read_filename_from_registry
push 1
call fcn.004439a0
add esp, 8
call fcn.004437c0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 8
push ebx
push str.VNL_GetDHCPConfigFilePath:_read_filename_from_registry
push 0x10
call fcn.004439a0
add esp, 8
lea eax, [ebp - 0x210]
push dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
jne 0x4257bd
lea eax, [ebp - 0x210]
push eax
push str.VNL_GetDHCPConfigFilePath:_error_expanding_filename_string:__S
push 1
call fcn.004439a0
add esp, 0xc
call fcn.004437c0
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 8
push edi
push ebx
push str.VNL_GetDHCPConfigFilePath:_resulting_string_is_length__d:__S
push 0x10
call fcn.004439a0
add esp, 0x10
mov dword [esi], ebx
call fcn.004437c0
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 8
push esi
push edi
push str.VNL_GetDHCPConfigFilePath:_invalid_parameters:_0x_08x_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
call fcn.004437c0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 8
Function at 0x425820
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 8]
push 0x20a
push 0
push eax
call fcn.0040f160
push 0
push 0
push 0
push str.VNL_GetDHCPLeaseFilePath:
mov dword [ebp - 0x214], 0x105
call fcn.00443be0
push esi
push edi
push str.VNL_GetDHCPLeaseFilePath:_p_0x_08x_pL_0x_08x
push 0x80
call fcn.004439a0
add esp, 0x2c
test edi, edi
je 0x42595d
test esi, esi
je 0x42595d
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push str.LeaseFile
push 0
call fcn.00423fc0
add esp, 0x14
test eax, eax
jne 0x4258d7
push str.VNL_GetDHCPLeaseFilePath:_could_not_read_filename_from_registry
push 1
call fcn.004439a0
add esp, 8
call fcn.004437c0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 8
push ebx
push str.VNL_GetDHCPLeaseFilePath:_read_filename_from_registry
push 0x10
call fcn.004439a0
add esp, 8
lea eax, [ebp - 0x210]
push dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
jne 0x42592d
lea eax, [ebp - 0x210]
push eax
push str.VNL_GetDHCPLeaseFilePath:_error_expanding_filename_string:__S
push 1
call fcn.004439a0
add esp, 0xc
call fcn.004437c0
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 8
push edi
push ebx
push str.VNL_GetDHCPLeaseFilePath:_resulting_string_is_length__d:__S
push 0x10
call fcn.004439a0
add esp, 0x10
mov dword [esi], ebx
call fcn.004437c0
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 8
push esi
push edi
push str.VNL_GetDHCPLeaseFilePath:_invalid_parameters:_0x_08x_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
call fcn.004437c0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 8
Function at 0x427360
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0040f160
add esp, 0xc
mov dword [ebp - 0x214], 0x105
cmp dword [ebp + 8], 0
jne 0x4273b8
push str.VNLRemoveVnetFromNATConfigFile:_invalid_parameter
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004274c0
test eax, eax
jne 0x4273ee
push str.VNLRemoveVnetFromNATConfigFile:_could_not_obtain_config_file_path
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
push str.VNLRemoveVnetFromNATConfigFile:_configuration_file_path:__S
push 0x20
call fcn.004439a0
add esp, 0xc
call fcn.00429c70
test eax, eax
je 0x42742c
push str.VNLRemoveVnetFromNATConfigFile:_NAT_still_in_use__not_deleting_config_file
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jne 0x42749e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x427477
lea ecx, [ebp - 0x210]
push ecx
push eax
push str.VNLRemoveVnetFromNATConfigFile:_failed_to_delete_config_file:_0x_08x__S
push 1
call fcn.004439a0
add esp, 0x10
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
push str.VNLRemoveVnetFromNATConfigFile:_config_file_not_deleted_since_not_present:__S
push 4
call fcn.004439a0
add esp, 0xc
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.VNLRemoveVnetFromNATConfigFile:_deleted_config_file
push 0x10
call fcn.004439a0
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401bf1
mov esp, ebp
pop ebp
ret