joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4029b0
Capabilities:
Get process heap flags
Set registry value

Disassembly:
push ebp
mov ebp, edx
push edi
mov edi, ecx
push esi
mov esi, eax
push ebx
sub esp, 0x2c
mov eax, dword [edx + 0x10]
call sym._expand_expression.isra.0
mov ecx, dword [ebp + 0x10]
mov ebx, eax
test ecx, ecx
je 0x402a38
test eax, eax
je 0x402af0
cmp word [ebx], 0
mov eax, ebx
je 0x402b00
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4029e8
sub eax, ebx
add eax, 2
mov edx, dword [esp + 0x40]
test edx, edx
je 0x402a46
mov esi, 1
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, esi
sub esp, 0xc
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
jne 0x4029d6
mov edx, dword [esp + 0x40]
xor eax, eax
test edx, edx
jne 0x4029fe
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._RegSetValueExW_24
sub esp, 0x18
test eax, eax
je 0x4029fe
xor esi, esi
test byte [section..data], 2
je 0x402a03
mov esi, dword [ebp + 8]
test esi, esi
je 0x402b1f
mov eax, esi
shr eax, 0x10
je 0x402b0a
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x40b00d
test edx, edx
jne 0x402ab8
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0xc], str.Failed_to_set_registry_key__s_n
mov dword [esp + 8], str.install_registry_string
mov dword [esp + 4], 0x40a000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402a03
add esp, 0x2c
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x4029f6
movzx esi, si
mov dword [esp], section..rdata
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402ab8
mov eax, 0x40b006
jmp 0x402ab8
Function at 0x4064e0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Terminate process

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
push esi
push ebx
sub esp, 0x2a0
lea edx, [esp + 0x58]
lea ebx, [esp + 0x98]
mov dword [esp + 0x3c], 1
mov edi, edx
lea esi, [esp + 0x54]
mov dword [esp + 0x54], 0x44
rep stosd dword es:[edi], eax
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
sub esp, 0xc
lea eax, [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
sub esp, 4
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [esp + 0x44]
mov dword [esp], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je 0x406607
test byte [section..data], 8
jne 0x40667a
mov eax, dword [esp + 0x44]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push ecx
push ecx
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
push ebx
push ebx
mov eax, dword [esp + 0x44]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call ebx
push esi
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call ebx
push edi
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
test byte [section..data], 2
je 0x4065ea
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
mov eax, ebx
shr eax, 0x10
je 0x4066cf
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
jne 0x4066fc
or edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_restart_64_bit__s__err__u_n
mov dword [esp + 8], global___FUNCTION__.2
mov dword [esp + 4], 0x40a000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4065ea
mov eax, ebx
shr eax, 0x10
je 0x4066e7
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
push edx
push edx
test eax, eax
jne 0x406706
or edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Restarting__s_n
mov dword [esp + 8], global___FUNCTION__.2
mov dword [esp + 4], 0x40a000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4065a2
movzx ebx, bx
mov dword [esp], section..rdata
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x406649
movzx ebx, bx
mov dword [esp], section..rdata
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x4066a2
mov eax, 0x40b00d
jmp 0x406649
mov eax, 0x40b00d
jmp 0x4066a2
Function at 0x407880
Capabilities:
Get process heap flags

Disassembly:
push ebx
mov eax, dword fs:[0x18]
sub esp, 0x18
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 8
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4078c0
add esp, 0x18
mov eax, ebx
pop ebx
ret
test byte [0x40a010], 2
je 0x4078b2
mov dword [esp + 0xc], str.Failed_to_allocate_memory_for_dependency_n
mov dword [esp + 8], str.alloc_dependency
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4078b2

Function at 0x4078f0
Capabilities:
Get process heap flags

Disassembly:
push ebp
xor ebp, ebp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x2c
mov dword [esp], edx
call sym._SysAllocString_4
sub esp, 4
test eax, eax
je 0x407957
lea edi, [esp + 0x10]
mov ebx, eax
xor ebp, ebp
mov dword [esp], edi
call sym._VariantInit_4
mov eax, dword [esi]
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [eax + 0xb0]
sub esp, 0xc
test eax, eax
js 0x40794c
cmp word [esp + 0x10], 8
je 0x407968
xor ebp, ebp
mov dword [esp], edi
call sym._VariantClear_4
sub esp, 4
mov dword [esp], ebx
call sym._SysFreeString_4
sub esp, 4
add esp, 0x2c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40793f
cmp word [esi], 0
je 0x4079e0
mov eax, esi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x407980
sub eax, esi
add eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebp, eax
test eax, eax
je 0x40793f
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [esi + eax]
mov word [ebp + eax], dx
add eax, 2
test dx, dx
jne 0x4079c0
jmp 0x407941
mov eax, 2
jmp 0x40798e

Function at 0x4079f0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
mov edi, dword fs:[0x18]
sub esp, 0x10
mov eax, dword [eax]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 4]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 8]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0xc]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x10]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
add esp, 0x10
pop ebx
pop esi
pop edi
ret
Function at 0x407b50
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
mov edi, dword fs:[0x18]
sub esp, 0x2c
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, ebx
mov ebx, dword [ebx + 0xc]
sub esp, 0xc
add eax, 0xc
mov dword [esp + 0x18], eax
mov ebp, dword [ebx]
cmp eax, ebx
je 0x407c28
lea esi, [esi]
mov eax, dword [ebx + 4]
mov dword [ebp + 4], eax
mov dword [eax], ebp
mov eax, dword [ebx + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0xc]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x10]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], ebx
mov ebx, ebp
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov ebp, dword [ebp]
sub esp, 0xc
cmp ebx, dword [esp + 0x18]
jne 0x407ba0
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407c60
Capabilities:
Get process heap flags

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov edi, dword [sym.imp.ucrtbase.dll_wcscmp]
mov esi, dword [esp + 0x34]
mov dword [esp + 4], str.package
mov dword [esp], esi
call edi
test eax, eax
je 0x407ca0
mov ebx, 1
test byte [0x40a010], 1
jne 0x407d10
add esp, 0x20
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov ebx, eax
mov eax, dword [esp + 0x30]
mov edx, str.action
call dbg.get_xml_attribute
mov esi, eax
test eax, eax
je 0x407d88
mov dword [esp + 4], str.install
mov dword [esp], eax
call edi
test eax, eax
je 0x407dc0
mov ebx, 1
test byte [0x40a010], 1
jne 0x407d50
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Ignoring_unexpected_tag__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___FUNCTION__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
add esp, 0x20
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.action__s_not_supported_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___FUNCTION__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x407cdd
test byte [0x40a010], 1
je 0x407c93
mov dword [esp + 0xc], str.Servicing_tag_doesnt_specify_action_n
mov dword [esp + 8], global___FUNCTION__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x407c93
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov edx, sym._read_update_package
call dbg.call_xml_callbacks
mov ebx, eax
jmp 0x407cdd
Function at 0x4080c0
Capabilities:
Get process heap flags

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov esi, dword [esp + 0x34]
mov dword [esp + 4], str.registryKey
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x408100
mov ebx, 1
test byte [0x40a010], 1
jne 0x4081b0
add esp, 0x20
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov ebx, eax
mov eax, dword [esp + 0x30]
mov edx, str.keyName
call dbg.get_xml_attribute
mov edi, eax
test eax, eax
je 0x408228
mov dword [esp + 8], 0x14
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x408260
lea eax, [eax + 0xc]
mov ecx, esi
mov edx, sym._read_registry_key
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x30]
call dbg.call_xml_callbacks
test eax, eax
je 0x4081f0
mov dword [esi + 8], edi
test byte [0x40a010], 8
jne 0x408298
mov eax, dword [esp + 0x38]
mov ebx, 1
add eax, 0x38
mov dword [esi], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x3c]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x3c]
mov dword [eax], esi
mov eax, dword [esp + 0x38]
mov dword [eax + 0x3c], esi
add esp, 0x20
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Ignoring_unexpected_tag__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___FUNCTION__.3
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
add esp, 0x20
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov eax, esi
call dbg.free_registryop
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
add esp, 0x20
pop ebx
pop esi
pop edi
ret
test byte [0x40a010], 1
je 0x4080f1
mov dword [esp + 0xc], str.RegistryKey_tag_doesnt_specify_keyName_n
mov dword [esp + 8], global___FUNCTION__.3
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x4080f1
test byte [0x40a010], 2
je 0x4081f7
mov dword [esp + 0xc], str.Failed_to_allocate_memory_for_registryop_n
mov dword [esp + 8], str.alloc_registryop
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4081f7
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Found_registryop__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___FUNCTION__.3
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40817d
Function at 0x4082d0
Capabilities:
Get process heap flags

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov esi, dword [esp + 0x34]
mov dword [esp + 4], str.assemblyIdentity
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x408310
mov ebx, 1
test byte [0x40a010], 1
jne 0x408370
add esp, 0x20
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov ebx, eax
call sym._alloc_dependency
mov edi, eax
test eax, eax
je 0x4082fd
lea esi, [eax + 8]
mov eax, dword [esp + 0x30]
mov edx, esi
call dbg.read_identity
mov ebx, eax
test eax, eax
je 0x4083b0
test byte [0x40a010], 8
jne 0x4083e8
mov eax, dword [esp + 0x38]
mov ebx, 1
add eax, 0x28
mov dword [edi], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x2c]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x2c]
mov dword [eax], edi
mov eax, dword [esp + 0x38]
mov dword [eax + 0x2c], edi
add esp, 0x20
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Ignoring_unexpected_tag__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___FUNCTION__.7
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
add esp, 0x20
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov eax, esi
call sym._clear_identity
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
add esp, 0x20
pop ebx
pop esi
pop edi
ret
mov eax, dword [edi + 8]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Found_identity__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___FUNCTION__.7
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x40833e
Function at 0x408420
Capabilities:
Get process heap flags

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [sym.imp.ucrtbase.dll_wcscmp]
mov esi, dword [esp + 0x34]
mov dword [esp + 4], str.source
mov dword [esp], esi
call ebx
test eax, eax
jne 0x408450
mov ebx, 1
add esp, 0x20
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], str.assemblyIdentity
mov dword [esp], esi
call ebx
mov ebx, eax
test eax, eax
je 0x4084a0
test byte [0x40a010], 8
je 0x408441
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Ignoring_unexpected_tag__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.read_update_package
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x408441
call sym._alloc_dependency
mov edi, eax
test eax, eax
je 0x408446
lea esi, [eax + 8]
mov eax, dword [esp + 0x30]
mov edx, esi
call dbg.read_identity
mov ebx, eax
test eax, eax
je 0x4084f0
test byte [0x40a010], 8
jne 0x408520
mov eax, dword [esp + 0x38]
mov ebx, 1
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
mov dword [eax], edi
mov eax, dword [esp + 0x38]
mov dword [eax + 4], edi
jmp 0x408446
mov eax, esi
call sym._clear_identity
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x408446
mov eax, dword [edi + 8]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Found_update__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.read_update_package
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4084c8
Function at 0x4088a0
Capabilities:
Get process heap flags

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [sym.imp.ucrtbase.dll_wcscmp]
mov esi, dword [esp + 0x44]
mov dword [esp + 4], str.securityDescriptor
mov dword [esp], esi
call ebx
test eax, eax
jne 0x4088d8
mov ebx, 1
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.systemProtection
mov dword [esp], esi
call ebx
test eax, eax
je 0x4088c2
mov dword [esp + 4], str.registryValue
mov dword [esp], esi
call ebx
mov ebx, eax
test eax, eax
je 0x408940
test byte [0x40a010], 1
je 0x4088c2
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Ignoring_unexpected_tag__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.read_registry_key
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x4088c2
mov dword [esp + 8], 0x14
mov dword [esp + 4], 8
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x408a28
mov eax, dword [esp + 0x40]
mov edx, str.valueType
call dbg.get_xml_attribute
mov dword [esi + 0xc], eax
test eax, eax
je 0x408a60
mov eax, dword [esp + 0x40]
mov edx, str.name
call dbg.get_xml_attribute
mov edx, str.value
mov dword [esi + 8], eax
mov eax, dword [esp + 0x40]
call dbg.get_xml_attribute
mov dword [esi + 0x10], eax
test byte [0x40a010], 8
jne 0x4089e8
mov eax, dword [esp + 0x48]
mov ebx, 1
add eax, 0xc
mov dword [esi], eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x10]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x10]
mov dword [eax], esi
mov eax, dword [esp + 0x48]
mov dword [eax + 0x10], esi
jmp 0x4088c7
call sym._wine_dbgstr_wn.constprop.0
mov ebx, eax
mov eax, dword [esi + 8]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Found_registry__s_____s_n
mov dword [esp + 8], str.read_registry_key
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4089b7
test byte [0x40a010], 2
je 0x4088c7
mov dword [esp + 0xc], str.Failed_to_allocate_memory_for_registrykv_n
mov dword [esp + 8], str.alloc_registrykv
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x4088c7
mov eax, dword [esi + 8]
mov dword [esp + 4], 0
mov ebp, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebp
mov eax, dword [esi + 0xc]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebp
mov eax, dword [esi + 0x10]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebp
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebp
sub esp, 0xc
jmp 0x4088c7
Function at 0x408ae0
Capabilities:
Get process heap flags

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
lea eax, [ebx + 8]
call sym._clear_identity
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
add esp, 0x18
pop ebx
ret