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

Disassembly:
jmp 0x1002be00
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x1c]
lea eax, [esp + 8]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x1002be7b
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x1002be79
mov ecx, dword [esp + 0x10]
push ebx
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1002be6d
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0x100440cc
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1002be6d
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
push ebx
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret
Function at 0x10001019
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x100062e0
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
mov ecx, 0xe
mov esi, str.SystemCurrentControlSetEnumRootLEGACY_ATI2MTAG0000
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
mov ecx, 0x14
mov esi, str.SystemCurrentControlSetControlClass4D36E968_E325_11CE_BFC1_08002BE103180000
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
movsw word es:[edi], word [esi]
push str.SystemCurrentControlSetControlClass4D36E968_E325_11CE_BFC1_08002BE103180000
push 0x80000002
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000632c
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
lea ecx, [esp + 0x14]
push ecx
push edi
push 0
push 0
push str.DriverDesc
mov ebx, 0x104
push edx
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
je 0x1000635d
mov byte [edi], 0
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push edi
push 0
push 0
push str.InfPath
push ecx
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
je 0x10006382
mov byte [edi], 0
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push edi
push 0
push 0
push str.InfSection
push eax
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
je 0x100063a7
mov byte [edi], 0
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push edi
push 0
push 0
push str.ProviderName
push edx
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
je 0x100063cc
mov byte [edi], 0
mov eax, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push str.SystemCurrentControlSetServices_ati2mtagDevice0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10006402
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push edi
push 0
push 0
push str.ReleaseVersion
push eax
mov dword [esp + 0x30], ebx
call esi
test eax, eax
je 0x10006427
mov byte [edi], 0
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edi
push 0
push 0
push 0x10044254
push edx
mov dword [esp + 0x30], ebx
call esi
test eax, eax
je 0x1000644c
mov byte [edi], 0
mov eax, dword [esp + 0x10]
push eax
call ebp
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x10001122
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x10017210
sub esp, 0x10
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
mov dword [esp + 0x1c], 0x104
mov byte [esp + 0x17], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001725e
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 7]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 3]
add esp, 0x10
ret

Function at 0x10001195
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
jmp 0x100043b0
mov eax, dword [0x10051e6c]
sub esp, 0xc
test eax, eax
push ebx
mov ebx, ecx
jg 0x100044cb
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000447c
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
push str.MHz
push eax
mov dword [esp + 0x2c], 4
call edi
mov esi, eax
test esi, esi
je 0x10004455
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push str.Mhz
push eax
call edi
mov esi, eax
test esi, esi
je 0x10004455
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push str.mhz
push eax
call edi
mov esi, eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
test esi, esi
pop esi
jne 0x1000447c
mov edx, dword [esp + 8]
push edx
mov ecx, ebx
call fcn.1000155a
mov dword [0x10051e6c], eax
pop ebx
add esp, 0xc
ret
push 0x10043a8c
push 0x10051d84
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100044a1
mov dword [0x10051e6c], 0
xor eax, eax
pop ebx
add esp, 0xc
ret
mov ecx, dword [0x10051e5c]
mov eax, dword [0x10051e60]
shr ecx, 8
push eax
and ecx, 0xf
push ecx
push 0
call fcn.100013bb
add esp, 0xc
push eax
mov ecx, ebx
call fcn.1000155a
mov dword [0x10051e6c], eax
pop ebx
add esp, 0xc
ret
Function at 0x1000126c
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x10006130
mov ecx, dword [esp + 4]
sub esp, 0xc
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call ebp
test eax, eax
je 0x1000615d
xor eax, eax
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, dword [esp + 0x28]
lea edx, [esp + 0x10]
push edx
push edi
push 0
push 0
push str.DriverDesc
mov ebx, 0x104
push eax
mov dword [esp + 0x28], ebx
call esi
test eax, eax
je 0x10006190
mov byte [edi], 0
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edi
push 0
push 0
push str.InfPath
push edx
mov dword [esp + 0x28], ebx
call esi
test eax, eax
je 0x100061b5
mov byte [edi], 0
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push edi
push 0
push 0
push str.InfSection
push ecx
mov dword [esp + 0x28], ebx
call esi
test eax, eax
je 0x100061da
mov byte [edi], 0
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push edi
push 0
push 0
push str.ProviderName
push eax
mov dword [esp + 0x28], ebx
call esi
test eax, eax
je 0x100061ff
mov byte [edi], 0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push str.Settings
push edx
call ebp
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x10006272
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push edi
push 0
push 0
push str.ReleaseVersion
push ecx
mov dword [esp + 0x28], ebx
call esi
test eax, eax
je 0x10006246
mov byte [edi], 0
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push edi
push 0
push 0
push 0x10044254
push eax
mov dword [esp + 0x28], ebx
call esi
test eax, eax
je 0x1000626b
mov byte [edi], 0
mov ecx, dword [esp + 0x18]
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
call ebp
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 0xc
ret
Function at 0x10001339
Capabilities:
Set registry value

Disassembly:
jmp 0x10010280
mov eax, dword [esp + 0xc]
sub esp, 0x184
cmp eax, 0xffffffff
jne 0x10010298
xor eax, eax
add esp, 0x184
ret
push eax
mov eax, dword [esp + 0x190]
push eax
lea ecx, [esp + 0xc4]
push str._s__0x_08lx_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x198]
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.10001055
mov al, byte [esp + 0x24]
add esp, 0x1c
test al, al
je 0x1001030a
mov eax, dword [0x1006fe30]
test eax, eax
jne 0x1001030a
lea edx, [esp + 4]
push edx
mov edx, dword [0x10072718]
lea eax, [esp + 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x10010312
mov eax, dword [0x10072718]
mov dword [esp], eax
lea eax, [esp + 0xbc]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10010320
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 4]
lea ecx, [esp + 0xc0]
push ecx
push 1
push 0
lea edx, [esp + 0x7c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, 1
add esp, 0x184
ret

Function at 0x1000135c
Capabilities:
Copy file
Create directory

Disassembly:
jmp 0x1002aed0
mov eax, dword [0x10071588]
test eax, eax
jne 0x1002afb5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x40000000
push 3
push 0
push 3
push 0xc0000000
push str..ATICDSDr
mov dword [0x10071588], 1
call esi
cmp eax, 0xffffffff
jne 0x1002afaf
call fcn.100013b6
call fcn.1002acf0
push 0
push 0x40000000
push 3
push 0
push 3
push 0xc0000000
push str..ATICDSDr
call esi
cmp eax, 0xffffffff
jne 0x1002afaf
mov cl, byte [0x10072220]
test cl, cl
je 0x1002afaf
call fcn.100013b6
push 0
push 0x100728a0
mov dword [0x10071588], 1
mov dword [0x1006fe40], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push 0x10072220
push str.atiicdxx.sys
call dword [sym.imp.KERNEL32.dll_CopyFileA]
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x10072220]
mov byte [eax + str.atiicdxx.sys], cl
inc eax
test cl, cl
jne 0x1002af80
call fcn.1002acf0
push 0
push 0x40000000
push 3
push 0
push 3
push 0xc0000000
push str..ATICDSDr
call esi
mov dword [0x10050728], eax
pop esi
ret
Function at 0x1000139d
Capabilities:
Get common file path
Set current directory

Disassembly:
jmp 0x1002b710
mov eax, dword [0x1006fe38]
sub esp, 0xcc
test eax, eax
je 0x1002b736
mov eax, dword [esp + 0xd0]
push eax
call fcn.100013cf
add esp, 4
add esp, 0xcc
ret
push ebx
push esi
lea ecx, [esp + 0xc]
push ecx
push 0xc8
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x10072600
call ebx
mov edx, dword [str.._atiicdxx.vxd]
mov eax, dword [0x10047480]
mov ecx, dword [0x10047484]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x4000000
push 0
push 0
push 0
mov dword [str..ATIICDXX.VXD], edx
mov edx, dword [0x10047488]
mov dword [0x1005074c], eax
mov al, byte [0x1004748c]
push 0
push str..ATIICDXX.VXD
mov dword [0x10050750], ecx
mov dword [0x10050754], edx
mov byte [0x10050758], al
call esi
cmp eax, 0xffffffff
mov dword [0x100507c0], eax
jne 0x1002b7ff
mov edx, dword [esp + 0xd8]
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002b7c0
sub eax, edi
mov dword [esp + 0xc], eax
pop edi
je 0x1002b7ff
push edx
push str.._s_atiicdxx.vxd
push str..ATIICDXX.VXD
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x4000000
push 0
push 0
push 0
push 0
push str..ATIICDXX.VXD
call esi
mov dword [0x100507c0], eax
lea ecx, [esp + 0xc]
push ecx
call ebx
pop esi
pop ebx
add esp, 0xcc
ret

Function at 0x100013b6
Capabilities:
Delete service
Stop service

Disassembly:
jmp 0x1002ae30
sub esp, 0x20
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1002aea1
push ebx
push ebp
push esi
push 0xf01ff
push str.ATICDSDr
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1002ae90
lea eax, [esp + 0x14]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov ebx, eax
call ebp
push edi
call ebp
pop esi
pop ebp
mov eax, ebx
pop ebx
pop edi
add esp, 0x20
ret
mov ebx, dword [esp + 0x10]
push edi
call ebp
pop esi
pop ebp
mov eax, ebx
pop ebx
pop edi
add esp, 0x20
ret
mov eax, dword [esp + 4]
pop edi
add esp, 0x20
ret
Function at 0x100013bb
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
jmp 0x10015ea0
sub esp, 0x2c
lea eax, [esp]
push eax
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10015f4d
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
push str.MHz
push eax
mov dword [esp + 0x28], 4
call edi
mov esi, eax
test esi, esi
je 0x10015f34
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0
push str.Mhz
push eax
call edi
mov esi, eax
test esi, esi
je 0x10015f34
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0
push str.mhz
push eax
call edi
mov esi, eax
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
test esi, esi
pop esi
jne 0x10015f4d
mov eax, dword [esp + 4]
add esp, 0x2c
ret
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.10001235
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
add esp, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
add esp, 0x2c
ret
Function at 0x10001424
Capabilities:
Query or enumerate registry key

Disassembly:
jmp 0x100067d0
sub esp, 0x31c
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetEnumPCI
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100067ff
xor eax, eax
add esp, 0x31c
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push ebp
mov ebp, dword [esp + 0x330]
push esi
push edi
mov dword [esp + 0x18], 0
mov edi, 1
mov dword [esp + 0x10], 0
jmp 0x10006830
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0x104
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call ebx
test eax, eax
jne 0x1000694f
lea ecx, [esp + 0x20]
push ecx
call fcn.1002c9c6
mov edx, dword [esp + 0x334]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.1002c940
add esp, 0xc
test eax, eax
je 0x1000693e
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000693e
xor esi, esi
test edi, edi
je 0x10006933
jmp 0x100068b0
mov edx, dword [esp + 0x1c]
push 0x104
lea ecx, [esp + 0x22c]
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x10006933
lea eax, [esp + 0x228]
push eax
lea ecx, [esp + 0x24]
push ecx
push str.SystemCurrentControlSetEnumPCI
lea edx, [esp + 0x130]
push 0x10044550
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x138]
push eax
call fcn.1002c9c6
lea ecx, [esp + 0x13c]
push ebp
push ecx
call fcn.10001217
add esp, 0x20
test eax, eax
jne 0x10006913
inc esi
jmp 0x100068b0
mov eax, dword [esp + 0x334]
lea edx, [esp + 0x124]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor edi, edi
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
inc ecx
test edi, edi
mov dword [esp + 0x10], ecx
jne 0x10006830
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x1000162c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
jmp 0x1000fc50
mov eax, dword [0x1006fe38]
sub esp, 0x5c
test eax, eax
jne 0x1000fc70
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 0x5c
ret
push esi
mov esi, dword [esp + 0x68]
push edi
mov edi, dword [esp + 0x68]
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000fd40
push ebx
push eax
mov edx, dword [esp + 0x10]
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push eax
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
push edx
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000fd2c
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
xor esi, esi
lea esp, [esp]
mov ecx, dword [esp + 0xc]
push 0x50
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
call edi
test eax, eax
jne 0x1000fcf8
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.1000162c
add esp, 8
inc esi
jmp 0x1000fcd0
cmp eax, 0x103
jne 0x1000fcd0
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0
push eax
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000fd3f
jmp 0x1000fcca
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop ebx
pop edi
pop esi
add esp, 0x5c
ret

Function at 0x10001681
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x10005a10
mov ecx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10005a3e
xor eax, eax
add esp, 0x10c
ret
mov ecx, dword [esp]
push esi
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
xor esi, esi
push esi
push esi
push str.Driver
push ecx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10005a8d
mov eax, dword [esp + 0x118]
lea edx, [esp + 0xc]
push edx
push str.SystemCurrentControlSetServicesClass
push 0x10044214
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov esi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret
Function at 0x100016a9
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x10006070
sub esp, 0x10c
mov ecx, dword [esp + 0x110]
push esi
lea eax, [esp + 4]
push eax
push 0x20019
xor esi, esi
push esi
push ecx
push 0x80000002
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100060ad
xor eax, eax
pop esi
add esp, 0x10c
ret
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.Driver
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100060f4
mov eax, dword [esp + 0x118]
lea edx, [esp + 0xc]
push edx
push str.SystemCurrentControlSetControlClass
push 0x10044214
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov esi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x1000172b
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x10005e40
mov eax, dword [esp + 8]
sub esp, 0x23c
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push eax
push str.SystemCurrentControlSetServices
lea ecx, [esp + 0x148]
push str._s_sEnum
push ecx
call ebx
add esp, 0x10
lea edx, [esp + 8]
push edx
push 0x20019
xor esi, esi
push esi
lea eax, [esp + 0x14c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10005e99
pop esi
xor eax, eax
pop ebx
add esp, 0x23c
ret
mov eax, dword [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
push esi
push str.Count
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 4
call edi
test eax, eax
jne 0x10005f3c
cmp dword [esp + 0x10], esi
jle 0x10005f3c
mov edi, edi
push esi
lea ecx, [esp + 0x24]
push 0x100442d0
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x44]
push eax
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x34], 0x104
call edi
test eax, eax
jne 0x10005f29
lea eax, [esp + 0x40]
push eax
call fcn.1002c9c6
mov edx, dword [esp + 0x250]
lea ecx, [esp + 0x44]
push ecx
push edx
call fcn.1002c940
add esp, 0xc
test eax, eax
jne 0x10005f34
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x10005ed0
jmp 0x10005f3c
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
add esp, 0x23c
ret
Function at 0x100017c1
Capabilities:
Get common file path
Read .ini file

Disassembly:
jmp 0x100207c0
sub esp, 0x30c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
push 0x104
lea eax, [esp + 0x14]
push eax
xor ebp, ebp
call esi
push 0x104
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x10020801
push 0x104
lea eax, [esp + 0x14]
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x21c]
push str._swin.ini
push edx
call fcn.1002cc1c
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x124]
push str._s_system.ini
push ecx
call fcn.1002cc1c
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0x18
lea edx, [esp + 0x218]
push edx
push 0xffffffffffffffff
push str.SafeMode
push str.windows
call esi
mov edi, eax
lea eax, [esp + 0x114]
push eax
push 0xffffffffffffffff
push str.MMIO
push str.Display
call esi
lea ecx, [esp + 0x114]
push ecx
push 0xffffffffffffffff
push str.SWCursor
push str.Display
mov ebx, eax
call esi
cmp edi, 0xffffffff
jne 0x100208a8
cmp ebx, edi
jne 0x100208a8
cmp eax, edi
jne 0x10020898
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30c
ret
cmp eax, 1
jne 0x100208cf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30c
ret
test ebx, ebx
jne 0x100208cf
cmp eax, 1
jne 0x100208cf
cmp edi, eax
jne 0x100208c5
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x30c
ret
cmp edi, 2
mov eax, 3
je 0x100208d1
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30c
ret