joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100137d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031716
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x10046270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push fcn.1000a240
push 0x1000a120
push 8
mov dword [ebp - 0x2a0], eax
push 0x10
lea eax, [ebp - 0x290]
push eax
mov dword [ebp - 0x29c], ebx
call fcn.1001ff9b
lea eax, [ebp - 0x2a4]
push eax
mov dword [ebp - 4], 0
push dword [ebx + 0xc]
xor edi, edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x10013877
push ebx
call fcn.1001ccbf
mov esi, eax
add esp, 4
test esi, esi
je 0x10013877
mov eax, dword [ebp - 0x29c]
push esi
push ebx
push edi
push dword [eax + 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x100138b5
push esi
call fcn.1001d3d0
add esp, 4
xor edi, edi
push fcn.1000a240
push 8
push 0x10
lea eax, [ebp - 0x290]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.10020003
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001d3d5
mov esp, ebp
pop ebp
ret 8
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov dword [ebp - 0x298], edi
call fcn.10022720
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
add esp, 0xc
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x298]
push eax
push str.VarFileInfoTranslation
push esi
call ebx
push 0x1003ba6c
test eax, eax
je 0x10013928
mov ecx, dword [ebp - 0x298]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x210]
push pe_nt_image_headers32
push eax
call fcn.10013730
add esp, 0x18
jmp 0x10013941
push str.StringFileInfo040904b0_s
lea eax, [ebp - 0x210]
push pe_nt_image_headers32
push eax
call fcn.10013730
add esp, 0x10
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
mov dword [ebp - 0x294], edi
call ebx
test eax, eax
je 0x10013979
push dword [ebp - 0x294]
lea ecx, [ebp - 0x270]
call fcn.1000a4f0
mov edi, 1
push dword [ebp - 0x294]
mov ecx, dword [ebp - 0x2a0]
call fcn.1000a4f0
push esi
call fcn.1001df51
add esp, 4
jmp 0x10013879
Function at 0x10013b30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x10046270]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x90
lea eax, [ebp - 0x94]
push 0
push eax
mov esi, 2
call fcn.10022720
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
jb 0x10013c5a
push ebx
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x10013c59
lea eax, [ebp - 0x9c]
push eax
push 0x18
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10013c52
lea eax, [ebp - 0xa0]
push eax
push 0
push 0
push 0x19
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x10013c46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10013c46
push dword [ebp - 0xa0]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10013c46
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
push edi
push 0x19
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10013c3f
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov al, byte [eax]
dec al
movzx eax, al
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [eax]
cmp eax, 0x2000
jb 0x10013c3f
cmp eax, 0x3000
sbb esi, esi
add esi, 4
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1001d3d5
mov esp, ebp
pop ebp
ret 4
Function at 0x10013c70
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100316b0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10046270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10013cbc
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
test eax, eax
jne 0x10013ca7
push 0x2e
mov ecx, edi
call fcn.1000ad50
mov esi, eax
cmp esi, 0xffffffff
je 0x10013ca7
lea eax, [esi - 1]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.1000ab40
mov dword [ebp - 4], 0
mov eax, dword [edi + 4]
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.1000ab40
mov byte [ebp - 4], 1
xor esi, esi
jmp 0x10013d10
push dword [ebp - 0x20]
mov ecx, edi
call fcn.1000a4f0
push esi
mov ecx, edi
call fcn.1000a610
push dword [ebp - 0x10]
mov ecx, edi
call fcn.1000a740
push dword [edi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10013d4b
push dword [edi + 0xc]
call ebx
test eax, eax
jne 0x10013d4b
inc esi
cmp esi, 9
jl 0x10013d10
or esi, 0xffffffff
mov dword [ebp - 0x1c], vtable.CStringBufferW.0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10013d66
push eax
call fcn.1001df51
add esp, 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], vtable.CSeed.0
mov dword [ebp - 0x2c], vtable.CStringBufferW.0
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10013da0
push eax
call fcn.1001df51
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10014190
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001ccbf
push esi
mov esi, eax
push 0
push esi
call fcn.10022720
mov eax, dword [ebp + 8]
add esp, 0x10
push edi
push esi
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [esi], 0
mov edi, eax
je 0x100141f0
mov ecx, dword [ebp + 0xc]
push esi
call fcn.1000a4f0
push esi
call fcn.1001df51
add esp, 4
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10014d30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov eax, dword [ebx + 0xc]
push eax
push eax
push dword [ebp + 8]
mov edi, ecx
push edi
push str.Start_:_hRoot0x_X__wCharKey_s__wStrValueName_s__wStrValue_s
push str.CSetupRegW::SetRegEntry
push 8
call fcn.1000db20
add esp, 0x1c
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10014da4
xor ecx, ecx
cmp eax, 5
setne cl
push eax
push str.End_:_return_FALSE__RegCreateKeyExW_returned_0x_X_
push str.CSetupRegW::SetRegEntry
add ecx, 2
push ecx
call fcn.1000db20
add esp, 0x10
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x10014dbd
mov eax, dword [ebx + 4]
test eax, eax
je 0x10014dbd
lea eax, [eax*2 + 1]
push eax
push ecx
jmp 0x10014dc4
push 1
push 0x1003a25c
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
test ecx, ecx
je 0x10014e03
xor eax, eax
cmp ecx, 5
setne al
push ecx
push str.End_:_return_FALSE__RegSetValueExW_returned_0x_X_
push str.CSetupRegW::SetRegEntry
add eax, 2
push eax
call fcn.1000db20
add esp, 0x10
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.End_:_return_TRUE
push str.CSetupRegW::SetRegEntry
push 8
call fcn.1000db20
add esp, 0xc
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10014e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031a60
mov eax, dword fs:[0]
push eax
push ebx
mov eax, dword [0x10046270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
push dword [ebp + 0x20]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Start_:_root0x_X__key_s__wStrValName_s__iType0x_X
push str.CSetupRegW::IsValueInRegistry
push 8
call fcn.1000db20
add esp, 0x1c
lea eax, [ebp + 0x10]
push eax
push 0x201
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x20]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x10]
mov ecx, 1
test eax, eax
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x14], vtable.CStringBufferW.0
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x10014ed3
push eax
call fcn.1001df51
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x100150c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10046270]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x118], edx
lea edx, [ebp - 0x114]
push edx
push 0x201
xor edi, edi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1001518b
push 0x103
push eax
mov byte [ebp - 0x110], al
lea eax, [ebp - 0x10f]
push eax
call fcn.10022720
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x11c]
push eax
push esi
push dword [ebp - 0x118]
mov dword [ebp - 0x120], 0x104
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x10015174
cmp dword [ebp - 0x11c], 4
je 0x10015167
lea esi, [edi + 0xd]
jmp 0x10015174
mov eax, dword [ebp - 0x110]
mov dword [ebx], eax
mov edi, 1
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1001518b
mov eax, 8
jmp 0x10015196
xor eax, eax
cmp esi, 5
setne al
add eax, 2
push esi
push edi
push str.End_:_return_value_d__rc0x_X
push str.CSetupRegW::GetIntFromRegistryValue
push eax
call fcn.1000db20
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d3d5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100151c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov edi, ecx
push str.ToolbarHeight
push esi
push edi
push str.Start_:_root0x_X__key_s__valueName_s__value_ld
push str.CSetupRegW::WriteDWORDToRegistry
push 8
call fcn.1000db20
add esp, 0x1c
mov dword [ebp - 4], 0
call fcn.1001a780
mov ebx, eax
test ebx, ebx
je 0x1001520c
push dword [ebp + 0xc]
push ecx
push esi
push edi
mov ecx, ebx
call fcn.1001a5f0
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10015246
xor ecx, ecx
cmp eax, 5
setne cl
push eax
push str.End_:_return_FALSE__RegCreateKeyW_returned_0x_X_
push str.CSetupRegW::WriteDWORDToRegistry
add ecx, 2
push ecx
call fcn.1000db20
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push str.ToolbarHeight
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x10015297
xor eax, eax
cmp edi, 5
setne al
push edi
push str.End_:_return_FALSE__RegSetValueExW_returned_0x_X_
push str.CSetupRegW::WriteDWORDToRegistry
add eax, 2
push eax
call fcn.1000db20
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.End_:_return_TRUE
push str.CSetupRegW::WriteDWORDToRegistry
push 8
call fcn.1000db20
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x100152c0
test ebx, ebx
je 0x100152c0
test esi, esi
je 0x100152c0
mov ecx, esi
call fcn.1001a6a0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100152d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10046270]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x118], edx
lea edx, [ebp - 0x114]
push edx
push 0x201
xor edi, edi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1001539b
push 0x103
push eax
mov byte [ebp - 0x110], al
lea eax, [ebp - 0x10f]
push eax
call fcn.10022720
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x11c]
push eax
push esi
push dword [ebp - 0x118]
mov dword [ebp - 0x120], 0x104
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x10015384
cmp dword [ebp - 0x11c], 4
je 0x10015377
lea esi, [edi + 0xd]
jmp 0x10015384
mov eax, dword [ebp - 0x110]
mov dword [ebx], eax
mov edi, 1
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1001539b
mov eax, 8
jmp 0x100153a6
xor eax, eax
cmp esi, 5
setne al
add eax, 2
push esi
push edi
push str.End_:_return_value_d__rc0x_X
push str.CSetupRegW::GetDWORDFromRegistryValue
push eax
call fcn.1000db20
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d3d5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100153d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10031a28
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x10046270]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
push dword [ebx + 0xc]
mov esi, dword [ebp + 8]
push dword [ebp + 0x10]
push edi
push esi
push str.Start_:_root0x_X__key_s__valueName_s__wStrValue_s
push str.CSetupRegW::GetStringFromRegistryValue
push 8
call fcn.1000db20
add esp, 0x1c
cmp dword [ebp + 0x18], 0
mov ecx, 0x101
mov eax, 0x201
cmovne eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x10015593
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x24]
push eax
push ecx
push dword [ebp + 0x10]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 0x1c], 3
mov esi, eax
jne 0x1001549f
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp esi, 5
setne cl
push str.End_:_return_FALSE__RegQueryValueExW_dwordTypeREG_BINARY_
push str.CSetupRegW::GetStringFromRegistryValue
add ecx, 2
push ecx
call fcn.1000db20
add esp, 0xc
jmp 0x100155b2
cmp esi, 0xea
je 0x100154c5
test esi, esi
je 0x100154c5
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
xor eax, eax
push str.End_:_return_FALSE__RegQueryValueExW_returned_0x_X_
cmp esi, 5
jmp 0x1001559e
mov edi, dword [esp + 0x18]
push 2
lea eax, [edi*2 + 2]
push eax
call fcn.10020450
mov esi, eax
add esp, 8
test esi, esi
je 0x1001555b
lea eax, [esp + 0x20]
push eax
push esi
lea eax, [esp + 0x24]
push eax
push 0
push dword [ebp + 0x10]
mov dword [esp + 0x34], edi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001554e
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x18]
ja 0x1001554e
xor ecx, ecx
push ecx
mov word [esi + eax*2], cx
push esi
lea ecx, [esp + 0x2c]
call fcn.1000a1d0
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
mov dword [esp + 0x44], 0
call fcn.1000a580
push esi
call fcn.1001ff63
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], 0xffffffff
call fcn.1000a240
jmp 0x1001555b
push esi
call fcn.1001ff63
mov ecx, ebx
call fcn.1000a7e0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.End_:_return_TRUE
push str.CSetupRegW::GetStringFromRegistryValue
push 8
call fcn.1000db20
add esp, 0xc
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push ecx
xor eax, eax
push str.End_:_return_FALSE__RegOpenKeyExW_returned_0x_X_
cmp ecx, 5
setne al
push str.CSetupRegW::GetStringFromRegistryValue
add eax, 2
push eax
call fcn.1000db20
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10015850
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push ebx
push esi
push str.Start_:_root0x_X__path_s__value_s
push str.CSetupRegW::DeleteValue
push 8
call fcn.1000db20
add esp, 0x18
xor edi, edi
call fcn.1001a780
mov dword [ebp - 4], eax
test eax, eax
je 0x10015896
push ebx
mov ecx, eax
call fcn.1001a350
mov edi, eax
neg edi
sbb edi, edi
neg edi
lea eax, [ebp + 8]
push eax
push 2
push 0
push ebx
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x100158c1
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100158d3
lea eax, [esi + 8]
jmp 0x100158de
xor eax, eax
cmp esi, 5
setne al
add eax, 2
xor ebx, ebx
test esi, esi
sete bl
push esi
push ebx
push str.End_:_return__d__rc0x_X_
push str.CSetupRegW::DeleteValue
push eax
call fcn.1000db20
add esp, 0x14
test ebx, ebx
je 0x10015914
test edi, edi
je 0x10015914
cmp dword [ebp - 4], 0
je 0x10015914
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10015914
call fcn.1001a6a0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10015bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor ecx, ecx
mov eax, 0x105
mov edx, 2
mul edx
seto cl
push esi
mov dword [ebp - 4], 0x104
neg ecx
or ecx, eax
push ecx
call fcn.1001ccbf
mov esi, eax
add esp, 4
test esi, esi
jne 0x10015c0c
lea eax, [esi + 8]
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
push edi
lea eax, [eax*2 + 2]
push eax
push 0
push esi
call fcn.10022720
push 0x104
mov dword [ebp - 8], 0x104
call fcn.1001ccbf
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10015c4e
push esi
call fcn.1001df51
add esp, 4
lea eax, [edi + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push dword [ebp - 8]
push 0
push edi
call fcn.10022720
mov ebx, dword [ebp + 0x10]
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push edi
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0xc], eax
cmp eax, 0xea
jne 0x10015d5b
push esi
call fcn.1001df51
push edi
call fcn.1001df51
add esp, 8
lea eax, [ebp - 4]
push 0
push 0
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 0x3fff
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x10015ccc
mov eax, 0x3fff
jmp 0x10015cd0
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001ccbf
mov esi, eax
add esp, 4
test esi, esi
je 0x10015d20
mov eax, dword [ebp - 4]
lea eax, [eax*2 + 2]
push eax
push 0
push esi
call fcn.10022720
push dword [ebp - 8]
call fcn.1001ccbf
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10015d2e
push esi
call fcn.1001df51
add esp, 4
pop ebx
pop edi
mov eax, 8
pop esi
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 8]
push 0
push edi
call fcn.10022720
add esp, 0xc
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x10015d90
add ebx, 4
push ecx
mov ecx, ebx
call fcn.1000a7e0
mov eax, dword [ebp - 4]
inc eax
cmp dword [ebx + 8], eax
ja 0x10015d7c
inc eax
push eax
mov ecx, ebx
call fcn.1000a840
push esi
mov ecx, ebx
call fcn.1000a740
push dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
push edi
call fcn.10014b50
push esi
call fcn.1001df51
push edi
call fcn.1001df51
mov eax, dword [ebp - 0xc]
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10015df0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031ad0
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x10046270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [0x10048cf0], 0
jne 0x10015e61
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10015e64
cmp dword [ebp + 0xc], 0
je 0x10015e64
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10015e61
xor eax, eax
cmp dword [ebp + 0x28], eax
sete al
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
test esi, esi
jne 0x10015e5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 0x14]
jmp 0x10015e66
mov eax, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp + 8], vtable.CStringBufferW.0
mov byte [ebp - 4], 2
test eax, eax
je 0x10015e7e
push eax
call fcn.1001df51
add esp, 4
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], vtable.CSeed.0
mov dword [ebp + 0x18], vtable.CStringBufferW.0
mov dword [ebp - 4], 3
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x10015eb8
push eax
call fcn.1001df51
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x24