joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007480
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test byte [0x100560c4], 8
jne 0x100075b0
test esi, esi
je 0x100075fa
lea edi, [esi + 4]
mov ecx, esi
xor eax, eax
mov dword [esi], 0
and edi, 0xfffffffc
mov dword [esi + 0x44], 0
sub ecx, edi
add ecx, 0x48
shr ecx, 2
rep stosd dword es:[edi], eax
and ebx, 1
jne 0x10007530
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x10007530
cmp word [ecx], 0
je 0x100075f0
mov eax, ecx
nop
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x100074e8
sub eax, ecx
add eax, 2
mov dword [ebp + 8], edx
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [esi], eax
sub esp, 4
test eax, eax
je 0x10007601
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
mov edi, dword [ecx + 0x14]
nop
lea esi, [esi]
movzx ecx, word [edi + ebx]
mov word [eax + ebx], cx
add ebx, 2
test cx, cx
jne 0x10007520
mov dword [esi + 4], 2
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000758a
lea ecx, [esi + 8]
mov dword [ebp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
lea eax, [esi + 0x10]
mov edx, dword [ebp + 8]
sub esp, 8
mov dword [esp + 0xc], eax
lea eax, [esi + 0x20]
mov dword [esp + 8], eax
lea eax, [esi + 0x18]
mov dword [esp + 4], eax
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileTime]
mov eax, dword [esi + 0xc]
sub esp, 0x10
or eax, dword [esi + 8]
jne 0x100075a0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov dword [esi + 0x28], ParseURLW
jmp 0x1000758a
lea eax, [edx - 4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__p_____p__08lx__n
mov dword [esp + 8], str.ProtocolStream_Stat
mov dword [esp + 4], 0x100560c4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
mov edx, dword [ebp + 8]
jmp 0x1000749f
mov eax, 2
jmp 0x100074f6
mov eax, 0x80004005
jmp 0x1000758c
mov eax, 0x80030008
jmp 0x1000758c
Function at 0x1000f1d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
test byte [0x10056120], 8
jne 0x1000f2c8
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x1000f21a
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x1000f268
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CopyFileW]
sub esp, 0xc
test eax, eax
je 0x1000f310
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1000f2a0
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov edx, dword [ebx + 0x18]
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x24]
mov dword [esp], edx
call eax
mov esi, eax
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1000f256
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov dword [ebx + 0x10], 0
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
test byte [0x10056120], 1
je 0x1000f21a
mov dword [esp + 0xc], str.No_cache_file_n
mov dword [esp + 8], str.DownloadBSC_OnStopBinding
mov dword [esp + 4], 0x10056120
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_4
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x1000f221
lea esi, [esi]
mov eax, dword [ebx + 0xc]
xor esi, esi
test eax, eax
je 0x1000f23d
mov ecx, dword [eax]
mov dword [esp + 8], edi
mov edi, dword [ebp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [ecx + 0x1c]
sub esp, 0xc
jmp 0x1000f23d
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0_4
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], str.__p_____08lx__s__n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.DownloadBSC_OnStopBinding
mov dword [esp + 4], 0x10056120
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000f1ec
test byte [0x10056120], 1
je 0x1000f21a
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.CopyFile_failed:__lu_n
mov dword [esp + 8], str.DownloadBSC_OnStopBinding
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10056120
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_4
jmp 0x1000f21a
Function at 0x10010d30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 0x14]
test byte [0x10056130], 8
jne 0x10010db0
test edi, edi
je 0x10010d5c
mov dword [edi], 0
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x10010df7
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x10010df0
mov eax, dword [ebp - 0x10]
test edi, edi
je 0x10010d9b
mov dword [edi], eax
cmp ebx, eax
setne al
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
lea eax, [esi - 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x1005ab83
mov dword [esp + 8], str.FileProtocol_Read
mov dword [esp + 4], 0x10056130
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_5
jmp 0x10010d52
mov eax, 0x800c0008
jmp 0x10010da3
mov eax, 0x800c0007
jmp 0x10010da3
Function at 0x100179a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push ebx
sub esp, 0x28
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x100179d8
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
lea edi, [ebp - 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 4], esi
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp], eax
call esi
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x14]
sub esp, 0x18
test eax, eax
mov eax, dword [ebp - 0x10]
jne 0x10017a2a
cmp dword [ebp - 0x1c], 4
je 0x10017ae0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [ebp - 0x14], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1005c538
mov dword [esp], eax
call esi
mov esi, eax
mov eax, dword [ebp - 0x10]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test esi, esi
jne 0x100179c6
cmp dword [ebp - 0x1c], 4
je 0x10017ac0
test byte [0x10056358], 4
je 0x100179c6
mov eax, 0x1005c538
call sym._wine_dbgstr_wn.constprop.0_9
mov dword [esp + 0xc], str.Unexpected_registry_value_type__ld__expected_REG_DWORD__for__s_n
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], str.get_feature_from_reg
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10056358
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_10
jmp 0x100179c8
mov eax, dword [ebp + 8]
xor edx, edx
cmp dword [ebp - 0x18], 1
mov ebx, 1
sete dl
mov dword [eax], edx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
cmp dword [ebp - 0x1c], 4
je 0x10017ac0
jmp 0x10017a74
Function at 0x1001ca20
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea ecx, [ebp - 0xc]
sub esp, 0x1c
mov edx, dword [eax]
mov dword [ebp - 0x10], 0
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], ecx
mov dword [esp + 4], 0xa
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x14
test eax, eax
jne 0x1001caf8
mov eax, dword [ebp - 0xc]
xor esi, esi
test eax, eax
je 0x1001caf8
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], sym.urlmon.dll_Ordinal_94
mov dword [esp + 0xc], 0
test eax, eax
mov dword [esp + 8], 0
cmove eax, esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.wininet.dll_InternetOpenW]
sub esp, 0x14
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
sub esp, 4
test ebx, ebx
je 0x1001cb20
mov dword [esp], ebx
mov dword [esp + 4], sym._internet_status_callback_20
call dword [sym.imp.wininet.dll_InternetSetStatusCallbackW]
xor eax, eax
sub esp, 8
lock cmpxchg dword [0x1007d008], ebx
test eax, eax
jne 0x1001cb08
mov eax, dword [0x1007d008]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
call sym._get_useragent
mov esi, eax
jmp 0x1001ca74
mov dword [esp], ebx
call dword [sym.imp.wininet.dll_InternetCloseHandle]
mov eax, dword [0x1007d008]
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test byte [0x100563a0], 4
je 0x1001cae8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.InternetOpen_failed:__ld_n
mov dword [esp + 8], str.create_internet_session
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100563a0
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_13
jmp 0x1001cae8

Function at 0x1001cb60
Capabilities:
Create http request

Disassembly:
push ebp
mov eax, dword [0x1007d008]
mov ebp, esp
mov edx, dword [ebp + 8]
test eax, eax
je 0x1001cb78
pop ebp
ret
test edx, edx
je 0x1001cb6f
mov eax, edx
pop ebp
jmp sym._get_internet_session.part.0
Function at 0x1001d150
Capabilities:
Query remote server for available data

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
or dword [ebx + 0x6c], 0x80
mov eax, ebx
call sym._start_downloading
test eax, eax
js 0x1001d1c9
lea eax, [ebx + 0x80]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x64]
mov dword [esp], eax
call dword [sym.imp.wininet.dll_InternetQueryDataAvailable]
sub esp, 0x10
test eax, eax
je 0x1001d1d0
mov edx, dword [ebx + 0x80]
mov dword [ebx + 0x7c], edx
mov eax, dword [ebx + 8]
or dword [ebx + 0x6c], 0x14
mov ebx, dword [ebx + 0x78]
mov ecx, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0xc
mov dword [esp], eax
call dword [ecx + 0x14]
xor eax, eax
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
test byte [0x100563a0], 4
jne 0x1001d1e0
mov edx, dword [ebx + 0x7c]
jmp 0x1001d1a2
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.InternetQueryDataAvailable_failed:__lu_n
mov dword [esp + 8], str.protocol_syncbinding
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100563a0
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_13
jmp 0x1001d1d9
Function at 0x1001e8a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push ebx
sub esp, 0x24
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], 4
mov dword [esp + 0x10], edi
mov edi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call edi
sub esp, 0x18
test eax, eax
je 0x1001e90e
mov ebx, eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1001e920
test ebx, ebx
je 0x1001e90e
test byte [0x100563b0], 8
jne 0x1001e960
mov eax, dword [ebp + 8]
mov dword [eax], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call edi
sub esp, 0x18
mov ebx, eax
jmp 0x1001e8f8
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_12
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._s_failed:__ld_n
mov dword [esp + 8], str.get_dword_from_reg
mov dword [esp + 4], 0x100563b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_14
jmp 0x1001e905

Function at 0x1001e9a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push ebx
sub esp, 0x28
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
mov edx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], 1
mov dword [esp + 0x10], ebx
add edi, edi
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x10], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [ebp - 0x1c], edx
call edx
sub esp, 0x18
test eax, eax
je 0x1001ea11
mov ebx, eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1001ea20
test ebx, ebx
je 0x1001ea11
test byte [0x100563b0], 8
jne 0x1001ea60
mov eax, dword [ebp + 8]
xor edx, edx
mov word [eax], dx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0x10], edi
lea edi, [ebp - 0x14]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call edx
sub esp, 0x18
mov ebx, eax
jmp 0x1001e9fc
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0_12
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._s_failed:__ld_n
mov dword [esp + 8], str.get_string_from_reg
mov dword [esp + 4], 0x100563b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_14
jmp 0x1001ea09
Function at 0x1001f370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
cmp ebx, 1
je 0x1001f3b0
test ebx, 0xfffffffd
je 0x1001f4c0
mov edx, 0x80004005
test byte [0x100563b0], 4
jne 0x1001f4d0
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, reloc.shlwapi.dll_ParseURLW
mov edx, esi
lea ecx, [ebp - 0x34]
call sym._open_zone_key
mov byte [ebp - 0x39], 1
mov edx, eax
test eax, eax
jns 0x1001f410
test ebx, ebx
jne 0x1001f3a6
cmp byte [ebp - 0x39], 0
je 0x1001f3a6
cmp edi, 0x1203
je 0x1001f510
cmp edi, 0x1401
je 0x1001f510
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
mov dword [esp + 4], 1
mov edx, edi
mov dword [esp], eax
mov eax, esi
call sym._get_action_policy.part.0
mov edx, eax
jmp 0x1001f3a6
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov dword [esp], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], 0x1005e45a
mov dword [ebp - 0x30], eax
call dword [sym.imp.user32.dll_wsprintfW]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov edx, 0x80070057
sub esp, 0x18
cmp eax, 0xea
je 0x1001f4a0
mov edx, 0x80004005
cmp eax, 2
je 0x1001f4a0
test eax, eax
mov byte [ebp - 0x39], 0
mov edx, dword [ebp - 0x40]
je 0x1001f4a0
mov byte [ebp - 0x39], 1
mov edx, 0x8000ffff
test byte [0x100563b0], 2
jne 0x1001f520
lea esi, [esi]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [ebp - 0x40]
sub esp, 4
jmp 0x1001f3c9
mov eax, ParseURLW
jmp 0x1001f3b5
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Unknown_URLZONEREG:__d_n
mov dword [esp + 8], str.get_action_policy
mov dword [esp + 4], 0x100563b0
mov dword [esp], 2
mov dword [ebp - 0x38], edx
call sym._wine_dbg_log.constprop.0_14
mov edx, dword [ebp - 0x38]
lea esp, [ebp - 0xc]
pop ebx
pop esi
mov eax, edx
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x38]
xor edx, edx
mov dword [eax], 3
jmp 0x1001f3a6
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RegQueryValue_failed:__ld_n
mov dword [esp + 8], str.get_action_policy
mov dword [esp + 4], 0x100563b0
mov dword [esp], 1
mov dword [ebp - 0x40], edx
call sym._wine_dbg_log.constprop.0_14
mov edx, dword [ebp - 0x40]
jmp 0x1001f4a0
Function at 0x1001f920
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test byte [0x100563b0], 8
jne 0x1001fb50
test ebx, ebx
je 0x1001fbba
lea ecx, [ebp - 0xc]
mov eax, ParseURLW
call sym._open_zone_key
mov edx, eax
xor eax, eax
test edx, edx
js 0x1001fb3e
cmp word [ebx + 4], 0
lea edx, [ebx + 4]
je 0x1001fba0
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1001f970
sub eax, edx
add eax, 2
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x10], edx
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.DisplayName
mov dword [esp], eax
call esi
lea edx, [ebx + 0x20c]
sub esp, 0x18
cmp word [ebx + 0x20c], 0
je 0x1001fbb0
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1001f9c8
sub eax, edx
add eax, 2
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Description
mov dword [esp], eax
call esi
lea edx, [ebx + 0x39c]
sub esp, 0x18
cmp word [ebx + 0x39c], 0
je 0x1001fb90
mov eax, edx
mov esi, esi
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x1001fa20
sub eax, edx
add eax, 2
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Icon
mov dword [esp], eax
call esi
lea eax, [ebx + 0x5a4]
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.MinLevel
mov dword [esp], eax
call esi
lea eax, [ebx + 0x5ac]
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.CurrentLevel
mov dword [esp], eax
call esi
lea eax, [ebx + 0x5a8]
add ebx, 0x5b0
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.RecommendedLevel
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0xc]
sub esp, 0x18
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Flags
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0xc]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__p_____ld__p__n
mov dword [esp + 8], str.ZoneMgrImpl_SetZoneAttributes
mov dword [esp + 4], 0x100563b0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_14
mov edx, dword [ebp + 0xc]
jmp 0x1001f93b
mov eax, 2
jmp 0x1001fa2e
mov eax, 2
jmp 0x1001f97e
mov eax, 2
jmp 0x1001f9d6
mov eax, 0x80070057
jmp 0x1001fb3e
Function at 0x1001fee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
push ebx
mov ebx, eax
lea eax, [ebp - 0x10]
sub esp, 0x24
mov dword [ebp - 0x18], edx
mov edi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x14], ecx
mov dword [ebp - 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], ebx
call edi
lea ecx, [ebp - 0x14]
sub esp, 0x18
test eax, eax
jne 0x1001ff40
cmp dword [ebp - 0x10], 4
mov edx, dword [ebp - 0x18]
je 0x1001ff7a
test byte [0x100563b0], 4
jne 0x1001ffe8
lea eax, [ebp - 0x10]
mov dword [esp], ebx
mov dword [ebp - 0x14], 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1005e678
call edi
sub esp, 0x18
mov ebx, eax
test eax, eax
jne 0x1001ffd8
cmp dword [ebp - 0x10], 4
jne 0x1001ff90
mov ebx, 1
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x100563b0], 4
je 0x1001ff7f
mov eax, 0x1005e678
call sym._wine_dbgstr_wn.constprop.0_12
mov dword [esp + 0xc], str.Unexpected_value_type__ld_for_value__s__expected_REG_DWORD_n
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], 0x1005f2bc
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100563b0
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_14
jmp 0x1001ff7f
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edx
call sym._wine_dbgstr_wn.constprop.0_12
mov dword [esp + 0xc], str.Unexpected_value_type__ld_for_value__s__expected_REG_DWORD_n
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], 0x1005f2bc
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x100563b0
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_14
lea ecx, [ebp - 0x14]
jmp 0x1001ff40
Function at 0x100218e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
lea eax, [ebp - 0x14]
push ebx
sub esp, 0x48
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
sub esp, 0x30
test eax, eax
jne 0x10021a51
mov eax, dword [ebp - 0x18]
mov edx, 1
test eax, eax
jne 0x10021978
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x14]
add edx, 1
lea eax, [edx + edx]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x10021a92
mov edx, dword [ebp - 0x24]
xor ebx, ebx
jmp 0x100219d9
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, esi
call sym._search_domain_for_zone
test eax, eax
jle 0x10021a38
add ebx, 1
cmp dword [ebp - 0x18], ebx
jbe 0x10021a38
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
je 0x100219a0
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov edx, 0x8000ffff
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x1c], eax
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
mov edx, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
mov eax, edx
pop edi
pop ebp
ret
mov edx, 0x8000ffff
test byte [0x100563b0], 4
je 0x10021967
mov dword [esp + 0xc], str.Failed_to_retrieve_information_about_key_n
mov dword [esp + 8], str.search_for_domain_mapping
mov dword [esp + 4], 0x100563b0
mov dword [esp], 2
mov dword [ebp - 0x1c], edx
call sym._wine_dbg_log.constprop.0_14
mov edx, dword [ebp - 0x1c]
jmp 0x10021967
mov edx, 0x8007000e
jmp 0x10021967