joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4486d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x94]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x90
push 0
push eax
mov dword [ebp - 0x98], 0x94
call fcn.0040f160
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [ebp + 0x14]
test eax, eax
je 0x44875a
cmp dword [ebp - 0x94], 6
jae 0x44875a
cmp dword [esi + 0x18], 0
je 0x448738
cmp dword [ecx + 0x18], 0
jne 0x44875a
push str.BaseDriverManager::IsSameDriverAndPresent:_Pre_Vista_OS_and_either_one_or_both_drivers_are_non_WHQL
push 2
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 eax, dword [esi + 8]
mov edx, dword [ecx + 8]
cmp eax, edx
jne 0x448778
mov eax, dword [esi + 0xc]
mov edx, dword [ecx + 0xc]
cmp eax, edx
jne 0x448778
mov eax, dword [esi + 0x10]
mov edx, dword [ecx + 0x10]
cmp eax, edx
je 0x44878e
sbb eax, eax
inc eax
test eax, eax
je 0x448798
mov eax, dword [esi + 4]
cmp eax, dword [ecx + 4]
je 0x44879f
push str.DriverVersionInfo::IsSameAs:_Custom_action_versions_dont_match
jmp 0x4487ac
mov eax, dword [esi + 0x14]
mov edx, dword [ecx + 0x14]
cmp eax, edx
jae 0x44877f
push str.DriverVersionInfo::IsSameAs:_File_versions_dont_match_or_older
jmp 0x4487ac
mov eax, dword [esi + 0x18]
cmp eax, dword [ecx + 0x18]
je 0x4487d8
push str.DriverVersionInfo::IsSameAs:_WHQL_status_doesnt_match
push 2
call fcn.004439a0
add esp, 8
push str.BaseDriverManager::IsSameDriverAndPresent:_Driver_file_versions_dont_match
push 2
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
cmp word [esi + 0x1c], 0
jne 0x448801
push str.BaseDriverManager::IsSameDriverAndPresent:_No_inf_name_was_recorded_for_prior_driver__treating_as_changed
push 2
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
push edi
push esi
call fcn.0044b2f0
add esp, 8
test eax, eax
jne 0x448831
push str.BaseDriverManager::IsSameDriverAndPresent:_Driver_versions_matched_but_registry_wasnt_confirmed
push 2
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
push edi
push esi
push ebx
call fcn.00446980
add esp, 0xc
test eax, eax
jne 0x448862
push str.BaseDriverManager::IsSameDriverAndPresent:_Not_all_devices_are_using_the_driver_recorded_in_registry
push 2
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 ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
Function at 0x449250
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push esi
push 1
push esi
push esi
push esi
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov edi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4492ba
push 1
push str.SYSTEMCurrentControlSetControlSession_Manager
push str.DriverBaseInfo::OpenDriverInfoKey:_Failed_to_open_key___S__with_access__u
push eax
push 2
call fcn.00443b80
add esp, 0x14
jmp 0x44935f
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4492ef
push str.PendingFileRenameOperations
push str.PendingRebootFileOp::ReadFromRegistry:_Failed_to_query_data_size_for_value__S
push eax
push 1
call fcn.00443b80
add esp, 0x10
jmp 0x449344
mov eax, dword [ebp - 0xc]
add eax, 6
push eax
mov dword [ebp - 0xc], eax
call fcn.0047c3b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x44931d
push str.PendingFileRenameOperations
push str.PendingRebootFileOp::ReadFromRegistry:_malloc_failed_for__S
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x449344
push 1
push dword [ebp - 0xc]
push esi
push str.PendingFileRenameOperations
push dword [ebp - 0x10]
call fcn.00449380
add esp, 0x14
test eax, eax
je 0x449342
push esi
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.00449d10
xor edi, edi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x449352
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x44935f
push esi
call fcn.0047b1a0
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 4
Function at 0x449380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
dec esi
mov ecx, dword [ebp + 8]
neg esi
push edi
mov edi, dword [ebp + 0x10]
sbb esi, esi
add esi, 3
mov dword [ebp - 8], 0
lea edx, [esi + esi]
sub eax, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4493f8
push ebx
cmp eax, 2
jne 0x4493e9
push str.DriverBaseInfo::ReadMultiszFromRegistry:_No_registry_value__S
push eax
call fcn.004439a0
add esp, 0xc
jmp 0x449411
push str.DriverBaseInfo::ReadMultiszFromRegistry:_Failed_to_query_value__S
push eax
push 1
call fcn.00443b80
jmp 0x44940e
mov eax, dword [ebp - 8]
cmp eax, 7
je 0x449434
push ebx
push eax
push str.DriverBaseInfo::ReadMultiszFromRegistry:_Bad_value_type__u_for_value__S
push 1
call fcn.004439a0
add esp, 0x10
mov ecx, dword [ebp - 0x10]
xor eax, eax
shr ecx, 1
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
shr ecx, 1
xor eax, eax
mov dword [ebp - 0xc], ecx
nop
add ecx, eax
xor edx, edx
inc eax
mov word [edi + ecx*2], dx
cmp eax, esi
jae 0x449452
mov ecx, dword [ebp - 0xc]
jmp 0x449440
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
Function at 0x449570
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor eax, eax
push ebx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov word [edi + 0x1c], ax
mov word [edi + 0x224], ax
mov eax, dword [ebx]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x492480]
call esi
cmp eax, 1
mov ecx, 0x8007139f
cmove eax, ecx
test eax, eax
jns 0x4495fc
push str.LegacyDriverManager::ReadNewDriverInfoFromPackage:_Ops_not_allowed
push eax
push 1
call fcn.00443b20
add esp, 0xc
jmp 0x4496cb
cmp dword [ebx + 0x114], 0
lea eax, [ebx + 0x114]
je 0x449613
push eax
mov ecx, edi
jmp 0x4496c6
cmp dword [ebx + 0xe0], 8
lea esi, [ebx + 0xcc]
jb 0x449626
mov eax, dword [esi]
jmp 0x449628
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x449655
cmp dword [esi + 0x14], 8
jb 0x44963c
mov esi, dword [esi]
push esi
push str.LegacyDriverManager::ReadNewDriverInfoFromPackage:_Cant_find__S_driver_inf_file
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
call fcn.00443b40
add esp, 0x10
jmp 0x4496cb
cmp dword [esi + 0x14], 8
mov dword [ebp - 8], 0
jb 0x449666
mov eax, dword [esi]
jmp 0x449668
mov eax, esi
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x434]
push eax
call fcn.00447130
add esp, 0xc
mov ecx, edi
push eax
call fcn.004464e0
cmp dword [edi], 0
jne 0x4496af
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x449694
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x44969c
mov esi, dword [esi]
push eax
push esi
push str.LegacyDriverManager::ReadNewDriverInfoFromPackage:_Couldnt_parse_INF__S_for__S_device.
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x4496cb
mov eax, dword [ebp - 8]
lea ecx, [ebx + 0x114]
mov dword [edi + 4], 0x4c4731
mov dword [ebx + 0x110], eax
push edi
call fcn.004464e0
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 4
Function at 0x44a9e0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x14], 8
jb 0x44a9f2
mov eax, dword [esi]
jmp 0x44a9f4
mov eax, esi
cmp dword [esi + 0x2c], 8
lea edi, [esi + 0x18]
jb 0x44aa01
mov ecx, dword [edi]
jmp 0x44aa03
mov ecx, edi
push eax
push ecx
push dword [esi + 0x30]
push dword [esi + 0x34]
push str.PendingRebootFileOp::UndoPendingFileOpImpl:_FileOp__d_flgs__u__S_____S
push 2
call fcn.004439a0
add esp, 0x18
cmp dword [esi + 0x14], 8
jb 0x44aa24
mov eax, dword [esi]
jmp 0x44aa26
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x44aa30
mov ecx, dword [edi]
jmp 0x44aa32
mov ecx, edi
push dword [esi + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x44aa75
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov ebx, eax
jb 0x44aa52
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x44aa5a
mov edi, dword [edi]
push esi
push edi
push str.PendingRebootFileOp::UndoPendingFileOpImpl:_Failed_op___S_______S_
push ebx
push 1
call fcn.00443b80
add esp, 0x14
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x44bd50
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20c
push 0
push eax
mov esi, ecx
call fcn.0040f160
add esp, 0xc
mov dword [ebp - 0x41c], 0
test edi, edi
jne 0x44bdb1
push str.DriverInstallerInfo::WriteToRegistry:_Got_bad_serviceName_param
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 4], 0
jne 0x44bdc7
push edi
push str.DriverInstallerInfo::WriteToRegistry:__S_reg_value_is_uptodate
push 2
call fcn.004439a0
add esp, 0xc
cmp dword [esi + 0x20], 0
mov dword [esi + 4], 0
jne 0x44be05
push str.No_installers_to_write__deleting.
call fcn.00444570
add esp, 4
mov ecx, esi
call fcn.00448c90
push 1
push edi
call fcn.004471f0
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 4
push edi
push str.SYSTEMCurrentControlSetServices
push 0x49a55c
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.004159a0
add esp, 0x14
test eax, eax
js 0x44bf54
cmp eax, 0x104
jae 0x44bf54
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push 2
push eax
call fcn.00448b30
add esp, 0xc
test eax, eax
je 0x44bf6a
add esi, 0x10
cmp dword [esi + 0x14], 8
jb 0x44be62
mov esi, dword [esi]
push 0x104
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0047bd42
add esp, 0xc
lea esi, [ebp - 0x210]
xor eax, eax
lea ecx, [esi + 2]
mov word [ebp - 8], ax
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44be86
lea eax, [ebp - 0x210]
sub esi, ecx
push 0x3b
push eax
sar esi, 1
call fcn.004110eb
add esp, 8
test eax, eax
je 0x44bec7
nop word [eax + eax]
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x3b
push eax
call fcn.004110eb
add esp, 8
test eax, eax
jne 0x44beb0
lea eax, [esi*2 + 2]
cmp eax, 0x20c
jae 0x44bf7e
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
lea eax, [esi*2 + 4]
push eax
lea eax, [ebp - 0x210]
push eax
push 7
push ecx
push str.vwdk.installers
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x41c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x44bf3d
push edi
push str.DriverInstallerInfo::WriteToRegistry:_Failed_to_set_installers_info_for_driver__S
push esi
push 1
call fcn.00443b80
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 4
push eax
push 0x104
push edi
push str.DriverBaseInfo::OpenDriverInfoParentKey:_Failed_to_generate_service_key__S__u___d_
push 2
call fcn.004439a0
add esp, 0x14
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 4
call fcn.00401d25
int3
Function at 0x44bf90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x478]
push edi
push 0x208
push 0
push eax
mov edi, ecx
call fcn.0040f160
push 0x26c
lea eax, [ebp - 0x270]
push 0
push eax
call fcn.0040f160
add esp, 0x18
mov dword [ebp - 0x47c], 0
test esi, esi
jne 0x44c004
push str.DriverVersionInfo::WriteToRegistry:_Got_bad_configName_param
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 4
push 0x4c1cc0
push esi
push str._s._s
lea eax, [ebp - 0x478]
push 0x104
push eax
call fcn.004159a0
add esp, 0x14
test eax, eax
js 0x44c113
cmp eax, 0x104
jae 0x44c113
lea eax, [ebp - 0x47c]
push eax
push 2
push 0x4c1cd0
call fcn.00448b30
add esp, 0xc
test eax, eax
je 0x44c129
lea eax, [edi + 0x1c]
push eax
push dword [edi + 0x18]
lea eax, [ebp - 0x270]
push dword [edi + 0x14]
push dword [edi + 0x10]
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
push 1
push str._u_u._u._u._u._u._u_s
push 0x136
push eax
call fcn.004159a0
lea ecx, [ebp - 0x270]
add esp, 0x2c
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44c090
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x270]
push eax
push 1
push 0
lea eax, [ebp - 0x478]
push eax
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x47c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x44c0fc
push esi
push str.DriverVersionInfo::WriteToRegistry:_Failed_to_set_status_info_for_driver__S
push edi
push 1
call fcn.00443b80
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 4
push eax
push 0x104
push esi
push str.DriverBaseInfo::OpenDriverInfoParentKey:_Failed_to_generate_driver_Name_key__S__u___d_
push 2
call fcn.004439a0
add esp, 0x14
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 4
Function at 0x455be0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push dword [ebp + 0xc]
call fcn.00458db0
add esp, 8
mov edi, eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edi
mov esi, eax
call fcn.0047b1a0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x455c10
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
push dword [ebp + 0xc]
call fcn.00458db0
add esp, 8
mov edi, eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push edi
mov esi, eax
call fcn.0047b1a0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x455c40
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp + 0x20]
push 0x1fe
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.0040f160
push 0x1fe
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], 0xff
push 0
push eax
call fcn.0040f160
add esp, 0x18
mov dword [ebp - 0x40c], 0xff
xor ecx, ecx
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], ecx
push esi
mov esi, dword [ebp - 0x414]
cmove eax, ecx
push eax
test esi, esi
lea eax, [ebp - 0x404]
cmove eax, ecx
push eax
push edi
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x455d49
push dword [ebp - 0x418]
mov eax, dword [ebp - 0x408]
push dword [ebp - 0x41c]
add eax, eax
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.00455930
add esp, 0x10
test esi, esi
je 0x455d49
push dword [ebp - 0x410]
mov eax, dword [ebp - 0x40c]
add eax, eax
push esi
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00455930
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
Function at 0x455d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x28], eax
xor esi, esi
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x24]
push 2
push 0x4000
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0x4000
mov dword [ebp - 0xc], esi
call fcn.00455840
add esp, 8
mov edi, eax
cmp dword [ebp - 0x1c], esi
je 0x455dd6
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
add eax, eax
mov dword [ebp - 0xc], eax
add eax, 2
push eax
push 1
call fcn.00455840
add esp, 8
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x455e0f
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
add eax, eax
push eax
push edi
call fcn.00455930
add esp, 0x10
push eax
push dword [ebp - 8]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
push esi
call fcn.00455ad0
add esp, 0x18
mov dword [ebp - 0x14], eax
test ebx, ebx
je 0x455e31
mov ecx, dword [ebp - 8]
mov dword [ebx], ecx
push edi
call fcn.0047b1a0
push esi
call fcn.0047b1a0
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, dword [ebp - 0x14]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret

Function at 0x455ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x1c]
push 1
push eax
mov dword [ebp - 0x14], ecx
call fcn.00458db0
xor esi, esi
add esp, 8
mov edi, eax
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x18], esi
je 0x455f02
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, eax
mov dword [ebp - 0xc], eax
add eax, 2
push eax
push 1
call fcn.00455840
add esp, 8
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1c]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push esi
call fcn.00455ad0
add esp, 0x18
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x455f3a
mov ecx, dword [ebp - 8]
mov dword [ebx], ecx
push edi
call fcn.0047b1a0
push esi
call fcn.0047b1a0
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
Function at 0x455f60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push 1
push eax
call fcn.00458db0
mov esi, dword [ebp + 0x14]
add esp, 8
mov ebx, eax
test esi, esi
je 0x455fb9
cmp esi, 2
jbe 0x455f9d
cmp esi, 7
jne 0x455fb9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x1c]
push edi
call fcn.00457430
mov eax, dword [ebp - 8]
add esp, 0x10
mov edi, dword [ebp - 0xc]
jmp 0x455fc2
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
push eax
push edi
push esi
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp esi, 1
je 0x455fe3
cmp esi, 2
je 0x455fe3
cmp esi, 7
jne 0x455fee
push dword [ebp - 0xc]
call fcn.0047b1a0
add esp, 4
push ebx
call fcn.0047b1a0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret

Function at 0x456010
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 1
push dword [ebp + 8]
mov dword [ebp - 8], 0
mov ebx, 0x400
call fcn.00458db0
mov esi, eax
push 0x800
push 0
mov dword [ebp - 4], esi
call fcn.00455890
add esp, 0x10
mov edi, eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x45608c
cmp esi, ebx
jb 0x45607c
lea eax, [esi + esi]
mov ebx, esi
push eax
push edi
call fcn.00455890
add esp, 8
mov edi, eax
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jne 0x456054
jmp 0x45608c
push 1
push 0xffffffffffffffff
push edi
call fcn.00458eb0
add esp, 0xc
mov dword [ebp - 8], eax
call fcn.00404d89
push dword [ebp - 4]
mov esi, dword [eax]
call fcn.0047b1a0
call fcn.00404d89
push edi
mov dword [eax], esi
call fcn.0047b1a0
mov eax, dword [ebp - 8]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4560c0
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 fcn.00455890
add esp, 8
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
test esi, esi
je 0x456138
cmp esi, ebx
jb 0x456128
lea eax, [esi + esi]
mov ebx, esi
push eax
push edi
call fcn.00455890
add esp, 8
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
test esi, esi
jne 0x4560f2
push edi
call fcn.0047b1a0
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 fcn.00458eb0
add esp, 0xc
mov dword [ebp - 4], eax
push edi
call fcn.0047b1a0
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret