joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100012e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x344
push ebx
push ebp
push esi
push edi
call fcn.100011a0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x250]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.100011a0
push eax
lea ecx, [esp + 0x150]
push str._sPEUpdater.exe
push ecx
call fcn.1000cd6c
mov ebx, dword [esp + 0x364]
add esp, 0xc
mov ebp, ebx
xor eax, eax
and ebp, 0xff
lea edx, [esp + 0x14c]
lea ecx, [esp + 0x250]
cmp ebp, 5
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x1002f354
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], 0x40
ja case.default.0x10001380
jmp dword [ebp*4 + 0x100014fc]
mov edi, str._Check
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.PE_FUNC_TYPE_CHECKSUPPORT
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10002680
add esp, 4
jmp case.default.0x10001380
mov ecx, dword [esp + 0x35c]
lea edx, [esp + 0x4c]
push ecx
push str._GetFileInfo__s
push edx
call fcn.1000cd6c
push str.PE_FUNC_TYPE_GETFILEINFO
jmp 0x1000146b
mov edi, str._GetROMInfo
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.PE_FUNC_TYPE_GETROMINFO
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10002680
add esp, 4
jmp case.default.0x10001380
mov ecx, dword [esp + 0x35c]
lea edx, [esp + 0x4c]
push ecx
push str._SaveBIOS__s
push edx
call fcn.1000cd6c
add esp, 0xc
jmp case.default.0x10001380
mov eax, dword [esp + 0x35c]
lea ecx, [esp + 0x4c]
push eax
push str._FlashBIOS__s
push ecx
call fcn.1000cd6c
push str.PE_FUNC_TYPE_FLASHBIOS
jmp 0x1000146b
mov edx, dword [esp + 0x35c]
lea eax, [esp + 0x4c]
push edx
push str._GetBlocks__s
push eax
call fcn.1000cd6c
push str.PE_FUNC_TYPE_GETBLOCKS
call fcn.10002680
add esp, 0x10
lea edx, [esp + 0x10]
lea ecx, [esp + 0x4c]
push edx
mov dword [esp + 0x28], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x100014ee
mov eax, dword [esp + 0x48]
test eax, eax
je 0x100014ee
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x100340d0]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push ebp
push 0x466
push eax
call esi
cmp bl, 4
jne 0x100014e1
call fcn.10001150
test bl, al
je 0x100014e1
push str.PE_FUNC_TYPE_FLASHBIOS_sf__0x04__complete_imediately..
call fcn.10002680
mov ecx, dword [0x100340d0]
add esp, 4
push 0x270f
push 4
push 0x466
push ecx
call esi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x344
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x344
ret
Function at 0x10002680
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x200
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x208]
stosw word es:[edi], ax
lea eax, [esp + 0x20c]
push eax
push ecx
push edx
call fcn.1000d807
mov al, byte [0x1002f570]
add esp, 0xc
test al, al
pop edi
je 0x100026cf
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x200
ret
Function at 0x10002950
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x10026827
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], 0
mov eax, dword [0x10030f6c]
lea ebx, [esi + 0xc]
mov dword [ebx], eax
mov ecx, dword [0x10030f6c]
lea edi, [esi + 0x10]
mov dword [edi], ecx
mov edx, dword [0x10030f6c]
mov dword [esi + 0x14], edx
mov eax, dword [0x10030f6c]
mov dword [esi + 0x18], eax
lea ebp, [esi + 0x30]
mov byte [esp + 0x20], 5
mov ecx, ebp
call fcn.1001f640
lea ecx, [esp + 0x2c]
xor eax, eax
push ecx
lea ecx, [esi + 0x18]
mov byte [esp + 0x24], 6
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi], eax
mov dword [esi + 0x44], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.1001f270
mov edx, dword [esp + 0x28]
lea eax, [esi + 0x1c]
push eax
lea ecx, [esi + 0x20]
push edi
push ebx
push ecx
push edx
call fcn.10024e6b
test eax, eax
jne 0x10002a44
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
push str.http:__
push ecx
call fcn.1001f3dc
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 7
call fcn.1001f270
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 6
call fcn.1001f129
mov edx, dword [esp + 0x28]
lea eax, [esi + 0x1c]
push eax
push edi
lea eax, [esi + 0x20]
push ebx
push eax
push edx
call fcn.10024e6b
test eax, eax
jne 0x10002a44
mov dword [esi + 4], SysReAllocStringLen
jmp 0x10002b13
mov eax, dword [esi + 0x18]
mov edx, dword [ebp]
push 0
push 0x3021
push eax
mov ecx, ebp
call dword [edx + 0x20]
test eax, eax
jne 0x10002a67
mov dword [esi + 4], InitCommonControls
jmp 0x10002b13
mov eax, dword [ebp]
push 2
push 0
mov ecx, ebp
call dword [eax + 0x28]
push 0x2f
mov ecx, edi
mov dword [esi + 0x40], eax
call fcn.1001e450
cmp eax, 0xffffffff
jne 0x10002a92
push 0x5c
mov ecx, edi
call fcn.1001e450
cmp eax, 0xffffffff
je 0x10002acc
mov ecx, dword [edi]
mov edx, dword [ecx - 8]
cmp edx, 1
jle 0x10002acc
mov ecx, edx
sub ecx, eax
dec ecx
push ecx
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.1001e35c
push eax
lea ecx, [esi + 0x14]
mov byte [esp + 0x24], 8
call fcn.1001f270
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 6
call fcn.1001f129
jmp 0x10002ad5
push edi
lea ecx, [esi + 0x14]
call fcn.1001f270
push 0
push 0
push 4
push 0
push esi
push 0x10002c20
call fcn.1001fe63
test eax, eax
mov dword [esi + 0x44], eax
jne 0x10002af8
mov dword [esi + 4], reloc.OLEAUT32.dll_SysReAllocString
jmp 0x10002b13
mov dword [esi + 4], 1
mov dword [eax + 0x24], 0
mov eax, dword [esi + 0x44]
mov edx, dword [eax + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 0
call fcn.1001f129
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call fcn.1001f129
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x10002b50
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10026877
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov eax, dword [esi + 0x44]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], 4
je 0x10002b9d
mov eax, dword [eax + 0x28]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x44]
cmp ecx, ebx
je 0x10002b9a
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0x2c]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebx
je 0x10002bb0
push eax
call edi
mov dword [esi + 0x2c], ebx
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x10002bbd
push eax
call edi
mov dword [esi + 0x28], ebx
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x10002bca
push eax
call edi
mov dword [esi + 0x24], ebx
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 3
call fcn.1001f735
lea ecx, [esi + 0x18]
mov byte [esp + 0x18], 2
call fcn.1001f129
lea ecx, [esi + 0x14]
mov byte [esp + 0x18], 1
call fcn.1001f129
lea ecx, [esi + 0x10]
mov byte [esp + 0x18], bl
call fcn.1001f129
lea ecx, [esi + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.1001f129
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10004230
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x1020
call fcn.1000d8d0
lea eax, [esp]
push ebx
xor ebx, ebx
push eax
push 8
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004421
push edi
mov ecx, 0x1ff
lea edi, [esp + 0x2a]
mov word [esp + 0x28], bx
rep stosd dword es:[edi], eax
push 0xffffffffffffffff
push ebx
mov ecx, 0x10034128
mov dword [esp + 0x18], 0x800
stosw word es:[edi], ax
call fcn.1000ad50
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push ebx
push ebx
push ebx
lea eax, [esp + 0x38]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10004401
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
push esi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x832]
mov word [esp + 0x830], bx
rep stosd dword es:[edi], eax
lea edx, [esp + 0x30]
mov dword [esp + 0x18], 0x800
stosw word es:[edi], ax
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea eax, [esp + 0x838]
push str._s_s
push eax
mov dword [esp + 0x24], ebx
call ebp
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x830]
push ecx
push 1
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100043ce
push 0xc8
call fcn.1001f60c
mov esi, eax
mov ecx, 0x32
xor eax, eax
mov edi, esi
add esp, 4
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push esi
push ecx
push ebx
push str.DisplayName
push edx
mov dword [esp + 0x38], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100043ba
cmp dword [esp + 0x24], 1
jne 0x100043ba
cmp word [esi], bx
je 0x100043ba
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [0x10034130]
cmp edi, edi
jl 0x10004397
lea ecx, [edi + 1]
push 0xffffffffffffffff
push ecx
mov ecx, 0x10034128
call fcn.1000ad50
mov edx, dword [0x1003412c]
push esi
push str.EnumerateInstalledAP___Add__s
mov dword [edx + edi*4], esi
call fcn.10002680
add esp, 8
mov dword [0x10034120], 1
jmp 0x100043ce
push esi
call fcn.1001f635
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
mov eax, ecx
inc ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100042bf
pop esi
pop ebp
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x10034130]
push ecx
push str.EnumerateInstalledAP___m_aInstalledAP.GetSize____d
call fcn.10002680
add esp, 8
pop edi
call fcn.10003f40
mov eax, 1
pop ebx
add esp, 0x1020
ret 8
Function at 0x10004440
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x10ec
call fcn.1000d8d0
mov eax, dword [esp + 0x10f0]
push ebp
push esi
xor esi, esi
cmp eax, esi
je 0x10004626
mov ebp, dword [esp + 0x10fc]
cmp ebp, esi
je 0x10004626
lea eax, [esp + 8]
mov dword [esp + 8], esi
push eax
push 8
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004619
push edi
mov ecx, 0x1ff
lea edi, [esp + 0xfa]
mov word [esp + 0xf8], si
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push esi
push esi
stosw word es:[edi], ax
push esi
lea eax, [esp + 0x108]
push edx
push eax
push esi
push ecx
mov dword [esp + 0x30], 0x800
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1000460d
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x8fe]
mov word [esp + 0x8fc], si
rep stosd dword es:[edi], eax
lea edx, [esp + 0xfc]
mov dword [esp + 0x14], 0x800
stosw word es:[edi], ax
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea eax, [esp + 0x904]
push str._s_s
push eax
mov dword [esp + 0x28], esi
call ebx
add esp, 0x10
lea ecx, [esp + 0x18]
lea edx, [esp + 0x8fc]
push ecx
push 3
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100045d8
mov ecx, 0x31
lea edi, [esp + 0x36]
mov word [esp + 0x34], si
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push esi
push str.DisplayName
push eax
mov dword [esp + 0x3c], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100045d8
mov eax, dword [esp + 0x28]
mov edi, 1
cmp eax, edi
jne 0x100045d8
mov ecx, dword [esp + 0x1100]
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100045d8
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
mov eax, dword [esp + 0x1c]
push ebp
push edi
push esi
push str.alu7501e157_4b4a_4850_b6ea_3bea55826ba9
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
mov eax, ecx
inc ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x2c]
push ecx
push esi
push esi
push esi
lea ecx, [esp + 0x10c]
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100044ed
pop ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, dword [esp + 0x18]
pop esi
pop ebp
add esp, 0x10ec
ret
pop esi
xor eax, eax
pop ebp
add esp, 0x10ec
ret
Function at 0x10004640
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x1420
call fcn.1000d8d0
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
push esi
lea eax, [esp + 0x10]
push edi
xor esi, esi
push eax
push 8
push esi
push str.SOFTWAREAsusAI_SUITE_II
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], esi
call ebx
test eax, eax
jne 0x1000483d
mov ecx, 0x1ff
lea edi, [esp + 0xc32]
mov word [esp + 0xc30], si
mov word [esp + 0x430], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x432]
mov word [esp + 0x20], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1434]
lea edx, [esp + 0x430]
push ecx
push str.SOFTWAREAsusAI_SUITE_II
push str._s_s
push edx
mov dword [esp + 0x20], esi
stosw word es:[edi], ax
call ebp
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x430]
push eax
push 1
push esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x10004832
push 0xc8
call fcn.1001f60c
add esp, 4
mov ebx, eax
lea edx, [esp + 0xc30]
mov ecx, 0x32
xor eax, eax
mov edi, ebx
push edx
push ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
push str.AppSetup
push eax
mov dword [esp + 0x34], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10004811
cmp dword [esp + 0x18], 1
jne 0x10004811
cmp word [esp + 0x20], si
je 0x10004811
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22a]
mov word [esp + 0x228], si
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
lea edx, [esp + 0x228]
push ecx
push str._sAppSetup.ini
push edx
stosw word es:[edi], ax
call ebp
mov ecx, dword [esp + 0x1448]
mov edx, dword [esp + 0x1444]
add esp, 0xc
lea eax, [esp + 0x228]
push eax
push ecx
push edx
push 0x1003407c
push str.Version
push str.Setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x100047f6
push ebx
call fcn.1001f635
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1420
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1420
ret
push ebx
call fcn.1001f635
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1420
ret
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1420
ret
Function at 0x10005180
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x1020
call fcn.1000d8d0
lea eax, [esp]
push ebp
xor ebp, ebp
push eax
push 8
push ebp
push str.SOFTWAREAsusHotfix
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10005383
push edi
mov ecx, 0x1ff
lea edi, [esp + 0x2a]
mov word [esp + 0x28], bp
rep stosd dword es:[edi], eax
push 0xffffffffffffffff
push ebp
mov ecx, 0x10034150
mov dword [esp + 0x18], 0x800
stosw word es:[edi], ax
call fcn.1000ad50
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push ebp
push ebp
push ebp
lea eax, [esp + 0x38]
push edx
push eax
push ebp
push ecx
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10005356
push ebx
push esi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x832]
mov word [esp + 0x830], bp
rep stosd dword es:[edi], eax
lea edx, [esp + 0x30]
mov dword [esp + 0x18], 0x800
stosw word es:[edi], ax
push edx
push str.SOFTWAREAsusHotfix
lea eax, [esp + 0x838]
push str._s_s
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x830]
push ecx
push 1
push ebp
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10005323
push 0x190
call fcn.1001f60c
mov esi, eax
mov ecx, 0x64
xor eax, eax
mov edi, esi
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 0x20]
lea edi, [esi + 0xc8]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edi
push edx
push ebp
push str.Version
push eax
mov dword [esp + 0x38], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000530f
cmp dword [esp + 0x24], 1
jne 0x1000530f
cmp word [edi], bp
je 0x1000530f
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [0x10034158]
cmp ebx, ebx
jl 0x100052f7
lea edx, [ebx + 1]
push 0xffffffffffffffff
push edx
mov ecx, 0x10034150
call fcn.1000ad50
mov eax, dword [0x10034154]
push edi
push str.EnumerateInstalledHotfix___Add__s
mov dword [eax + ebx*4], esi
call fcn.10002680
add esp, 8
jmp 0x10005323
push esi
call fcn.1001f635
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x28]
mov eax, ecx
inc ecx
push edx
mov dword [esp + 0x20], ecx
push ebp
push ebp
lea ecx, [esp + 0x24]
push ebp
lea edx, [esp + 0x40]
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10005209
pop esi
pop ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x10034158]
push edx
push str.EnumerateInstalledHotfix___m_aInstalledHotfix.GetSize____d
call fcn.10002680
add esp, 8
mov eax, 1
pop edi
pop ebp
add esp, 0x1020
ret
mov eax, 1
pop ebp
add esp, 0x1020
ret
Function at 0x10008330
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 2
push 0
call fcn.1000a980
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100083dd
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov edi, dword [esp + 0x14]
push edi
call esi
mov ecx, dword [esp + 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
shl eax, 1
push eax
push edi
push 1
push 0
push str.SelfUpdating
push ecx
call ebx
mov edi, dword [esp + 0x18]
push edi
call esi
mov edx, dword [esp + 0xc]
shl eax, 1
push eax
push edi
push 1
push 0
push str.Source
push edx
call ebx
push edi
call esi
test eax, eax
je 0x100083bf
cmp dword [0x10034144], 1
jne 0x100083bf
mov eax, dword [esp + 0xc]
push 4
push 0x10034144
push 4
push 0
push str.Mode
push eax
call ebx
mov ecx, dword [esp + 0xc]
push str.Path
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x100083e0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x208
mov ecx, 0x7f
xor eax, eax
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x210]
lea ecx, [esp + 0xc]
push eax
push str.SOFTWAREAsusHotfix
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [esp + 4]
lea eax, [esp + 0xc]
push edx
push 2
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
pop edi
je 0x1000845f
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10008492
push esi
mov esi, dword [esp + 0x214]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 4]
shl eax, 1
push eax
push esi
push 1
push 0
push str.Version
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x208
ret