joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443780
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x211c
call fcn.00461300
push esi
xor esi, esi
mov eax, str.dwm.exe
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4437a0
sub eax, edx
mov dword [ebp - 0x14], eax
xor eax, eax
mov ecx, 0x400
lea edi, [ebp - 0x211c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push 0x1000
lea ecx, [ebp - 0x211c]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4438d5
push ebx
mov ebx, dword [ebp - 0xc]
shr ebx, 2
xor edi, edi
cmp ebx, esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], edi
jbe 0x4438cc
nop
mov edx, dword [ebp + edi*4 - 0x211c]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
xor edx, edx
cmp esi, edx
je 0x4438b6
xor eax, eax
mov dword [ebp - 0x111c], edx
mov ecx, 0x3ff
lea edi, [ebp - 0x1118]
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push 0x1000
lea ecx, [ebp - 0x111c]
push ecx
push esi
mov dword [ebp - 8], edx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4438a9
mov eax, dword [ebp - 8]
xor ebx, ebx
test eax, 0xfffffffc
jbe 0x4438a9
nop
xor eax, eax
push 0x104
mov ecx, 0x41
lea edi, [ebp - 0x11c]
lea edx, [ebp - 0x11c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + ebx*4 - 0x111c]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x443899
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x11c]
push str.dwm.exe
push edx
call fcn.00461fe2
add esp, 0xc
test eax, eax
je 0x4438a6
mov eax, dword [ebp - 8]
inc ebx
shr eax, 2
cmp ebx, eax
jb 0x443850
jmp 0x4438a9
inc dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
inc edi
cmp edi, ebx
mov dword [ebp - 0x10], edi
jb 0x4437f0
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4438e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ac
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
push 8
push edi
push edi
push 0x48e904
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x18], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
je 0x443abd
lea ecx, [ebp - 0x2e4]
push ecx
push esi
mov dword [ebp - 0x2e4], 0x11f
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailA]
test eax, eax
je 0x443ab6
lea edx, [ebp - 0x34]
push edx
push edi
push esi
mov dword [ebp - 0x34], 0x1c
mov dword [ebp - 0x14], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x443ab6
push ebx
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov edi, 4
lea eax, [ebp - 4]
push eax
push 0xc8
lea ecx, [ebp - 0x3ac]
push ecx
lea edx, [ebp - 8]
push edx
push 1
lea eax, [ebp - 0x34]
push eax
push esi
call ebx
test eax, eax
jne 0x4439a1
test dword [0x49a0e8], 0x10000
je 0x4439a1
push str.PowerXpressSetDesktopPreference:_fail_to_get_SPDRP_HARDWAREID
call fcn.0040acd0
add esp, 4
lea ecx, [ebp - 4]
push ecx
push 0xc8
lea edx, [ebp - 0x1c4]
push edx
lea eax, [ebp - 8]
push eax
push 9
lea ecx, [ebp - 0x34]
push ecx
push esi
call ebx
test eax, eax
jne 0x4439db
test dword [0x49a0e8], 0x10000
je 0x4439db
push str.PowerXpressSetDesktopPreference:_fail_to_get_SPDRP_DRIVER
call fcn.0040acd0
add esp, 4
lea edx, [ebp - 0x1c4]
push edx
push str.SYSTEMCurrentControlSetControlClass
lea eax, [ebp - 0xfc]
push str._s_s
push eax
call fcn.00460f01
mov eax, dword [0x49a0e8]
add esp, 0x10
test eax, 0x10000
je 0x443a1b
lea ecx, [ebp - 0xfc]
push ecx
push str.PowerXpressSetDesktopPreference:_registry:_s_n
call fcn.0040acd0
add esp, 8
lea edx, [ebp - 0xc]
push edx
push 0x2001f
push 0
lea eax, [ebp - 0xfc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x443a90
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.PXACAutoSwitch
push ecx
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x443a90
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push 0
push str.PXPreference
push ecx
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
inc eax
push ecx
push eax
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x443967
pop ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x447ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x49a950]
cmp eax, 0xffffffff
jne 0x447f75
lea eax, [ebp - 0x114]
push eax
call fcn.0040be20
add esp, 4
test eax, eax
je 0x447f70
lea ecx, [ebp - 8]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x114]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x447f70
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 0x49a950
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.ExtEvent_VideoPlaybackCpuThrottle
push edx
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x447f70
cmp dword [ebp - 4], 4
jne 0x447f70
mov eax, dword [0x49a950]
cmp eax, 0x64
jbe 0x447f75
mov eax, 0x64
mov dword [0x49a950], eax
mov esp, ebp
pop ebp
ret
mov eax, SysReAllocString
mov esp, ebp
pop ebp
ret
Function at 0x448850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov ecx, dword [ebp + 0xc]
push ebx
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
push 2
push eax
push eax
push 0x4aa84c
mov dword [ecx + 8], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x448a27
lea edx, [ebp - 0x254]
push edx
push ebx
mov dword [ebp - 0x254], 0x11f
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailA]
test eax, eax
je 0x448a20
lea eax, [ebp - 0x34]
push eax
push 0
push ebx
mov dword [ebp - 0x34], 0x1c
mov dword [ebp - 4], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x448a20
push esi
push edi
mov edx, dword [ebp - 0x20]
push 0
push 0
push 0xc8
lea ecx, [ebp - 0x31c]
push ecx
push edx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_ID_ExA]
test eax, eax
jne 0x448979
push 0x20019
push 1
push eax
push 1
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x44896c
xor eax, eax
mov byte [ebp - 0x134], 0
mov ecx, 0x3f
lea edi, [ebp - 0x133]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x134]
push edx
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
push eax
push 0
push 0x4866cc
push esi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x448963
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x134]
push ecx
push edx
call fcn.004619b0
add esp, 8
test eax, eax
jne 0x4489a2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x448979
push str.GetBDFNumberFromDeviceKey:_SetupDiOpenDevRegKey_function_fails_n
call fcn.0040acd0
add esp, 4
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x34]
inc eax
push ecx
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x4488c6
pop edi
pop esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 8]
push edx
push 4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x15
lea edx, [ebp - 0x34]
push edx
push ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 4
mov dword [ebp - 4], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
push 4
mov dword [edi], eax
xor eax, eax
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x1c
lea ecx, [ebp - 0x34]
push ecx
push ebx
mov dword [ebp - 8], 4
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov eax, dword [ebp - 0x10]
mov edx, eax
shr edx, 0x10
and eax, 0xffff
push esi
mov dword [edi + 4], edx
mov dword [edi + 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44ab80
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44abd3
mov edx, dword [ebp - 4]
push str.DALCurrentObjectData
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x44abc9
push str.RemoveLassoLastSelectedSettings:_Success_deleted__DALCurrentObjectData
call fcn.0040acd0
add esp, 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x44bd30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x49b704]
push edi
push 0
push eax
call fcn.00424c50
mov edi, eax
add esp, 8
test edi, edi
je 0x44be0a
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x44be06
lea ecx, [ebp - 8]
push ecx
push 0x2001f
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x44be00
lea edx, [ebp - 4]
push edx
push 0x2001f
push eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push str.SoftwareATI_Technologies_Inc._
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x44bdd0
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareATI_Technologies_Inc._
push eax
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x44bdfa
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 0xc]
push ecx
push 4
push 0
push str.VistaMobileInternalActionInprocess
push edx
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call ebx
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push edi
call ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x44be10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x49b704]
push esi
push 0
push eax
call fcn.00424c50
mov esi, eax
add esp, 8
test esi, esi
je 0x44beb2
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x44beae
lea ecx, [ebp - 8]
push ecx
push 0x2001f
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x44bea8
lea edx, [ebp - 4]
push edx
push 0x2001f
push eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push str.SoftwareATI_Technologies_Inc._
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44bea2
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 0xc]
push ecx
push 4
push eax
push str.VistaMobileInternalActionInprocess
push edx
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call ebx
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push esi
call ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44c390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x49b704]
push ebx
push esi
xor ebx, ebx
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00424c50
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [ebp - 0x18], esi
je 0x44c48d
push esi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x44c486
mov eax, dword [0x491c44]
mov edx, dword [0x491c40]
push edi
mov ecx, 7
mov esi, str.SoftwareATIACESettingsEEU
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [str.XDNotification]
mov dword [ebp - 0x20], eax
mov eax, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x28], ecx
mov cx, word [0x491c48]
mov dword [ebp - 0x24], edx
mov dl, byte [0x491c4a]
push eax
push 0x2001f
movsw word es:[edi], word [esi]
mov word [ebp - 0x1c], cx
mov byte [ebp - 0x1a], dl
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
pop edi
jne 0x44c47d
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
push 0x20019
push ebx
lea edx, [ebp - 0x48]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x44c477
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
push ebx
lea ecx, [ebp - 0x28]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x44c471
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 8]
push eax
call esi
mov ecx, dword [ebp - 0xc]
push ecx
call esi
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44c930
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call fcn.0044c580
push 0
call fcn.0044d240
add esp, 8
pop ebp
jmp fcn.0044be10

Function at 0x44d240
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
movzx esi, byte [ebp + 8]
push esi
call fcn.0044d180
add esp, 4
push esi
push 0x44d120
call dword [sym.imp.USER32.dll_EnumWindows]
pop esi
pop ebp
ret
Function at 0x44f640
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov dword [ebp - 0x9c], 0
push 0x94
push 0
lea eax, [ebp - 0x98]
push eax
call fcn.00462bf0
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea ecx, [ebp - 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x44f771
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0xa0], edx
cmp dword [ebp - 0xa0], 0
je 0x44f767
cmp dword [ebp - 0xa0], 1
je 0x44f728
cmp dword [ebp - 0xa0], 2
je 0x44f6b8
jmp 0x44f771
cmp dword [ebp - 0x94], 5
jae 0x44f6cd
mov dword [ebp - 0x9c], 4
jmp 0x44f726
cmp dword [ebp - 0x94], 5
jne 0x44f6f5
mov dword [ebp - 0x9c], 7
cmp dword [ebp - 0x90], 0
jne 0x44f6f3
mov dword [ebp - 0x9c], 6
jmp 0x44f726
cmp dword [ebp - 0x94], 6
jne 0x44f707
cmp dword [ebp - 0x90], 1
je 0x44f710
cmp dword [ebp - 0x94], 6
jbe 0x44f71c
mov dword [ebp - 0x9c], 9
jmp 0x44f726
mov dword [ebp - 0x9c], 8
jmp 0x44f771
cmp dword [ebp - 0x94], 4
jne 0x44f765
cmp dword [ebp - 0x90], 0xa
jne 0x44f746
mov dword [ebp - 0x9c], 3
jmp 0x44f765
cmp dword [ebp - 0x90], 0x5a
jne 0x44f75b
mov dword [ebp - 0x9c], 5
jmp 0x44f765
mov dword [ebp - 0x9c], 2
jmp 0x44f771
mov dword [ebp - 0x9c], 1
mov eax, dword [ebp - 0x9c]
mov esp, ebp
pop ebp
ret
Function at 0x452f00
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
cmp dword [ebp + 8], 0
je 0x452f21
cmp dword [ebp + 0xc], 0
je 0x452f21
cmp dword [ebp + 0x14], 0
je 0x452f21
cmp dword [ebp + 0x18], 0
jne 0x452f28
xor eax, eax
jmp 0x453077
cmp dword [ebp + 0x1c], 0
je 0x452f41
cmp dword [ebp + 0x1c], 1
je 0x452f41
cmp dword [ebp + 0x1c], 2
je 0x452f41
xor eax, eax
jmp 0x453077
mov dword [ebp - 0xcc], 0
push 0xc8
push 0
lea eax, [ebp - 0xc8]
push eax
call fcn.00462bf0
add esp, 0xc
push 0xc8
lea ecx, [ebp - 0xc8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00452c30
test eax, eax
je 0x453071
mov dword [ebp - 0xd4], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov dword [ebp - 0xd0], edx
lea eax, [ebp - 0xd4]
push eax
push 0x2001f
push 0
lea ecx, [ebp - 0xc8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x453071
cmp dword [ebp + 0x1c], 0
jne 0x45300a
lea edx, [ebp - 0xd0]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0xd8]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x453008
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xd0]
mov dword [ecx], edx
mov dword [ebp - 0xcc], 1
jmp 0x453064
cmp dword [ebp + 0x1c], 1
jne 0x453045
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0xd8]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xd4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x453043
mov dword [ebp - 0xcc], 1
jmp 0x453064
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x453064
mov dword [ebp - 0xcc], 1
mov ecx, dword [ebp - 0xd4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xcc]
mov esp, ebp
pop ebp
ret 0x18
Function at 0x460000
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x460017
cmp dword [ebp + 0x14], 0
jne 0x46001b
xor eax, eax
jmp 0x46007d
push 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x460042
xor eax, eax
jmp 0x46007d
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x46006e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x46007d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x460090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
cmp dword [ebp + 8], 0
jne 0x4600ae
xor eax, eax
jmp 0x46010a
lea eax, [ebp - 8]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4600cd
xor eax, eax
jmp 0x46010a
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4600fb
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x46010a
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x460110
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x460127
cmp dword [ebp + 0x14], 0
jne 0x46012b
xor eax, eax
jmp 0x46018d
push 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x460152
xor eax, eax
jmp 0x46018d
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 3
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x46017e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x46018d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x462a25
Capabilities:
Accept command line arguments

Disassembly:
push 0x60
push 0x493868
call fcn.004635e0
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x462bdc
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x462a82
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x462bdc
mov eax, dword [esi + 0x10]
mov dword [0x4ab984], eax
mov eax, dword [esi + 4]
mov dword [0x4ab990], eax
mov eax, dword [esi + 8]
mov dword [0x4ab994], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x4ab988], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x4ab984], 2
je 0x462ac0
or byte [0x4ab989], 0x80
mov eax, dword [0x4ab990]
shl eax, 8
add eax, dword [0x4ab994]
mov dword [0x4ab98c], eax
call fcn.004629c9
mov dword [ebp - 0x1c], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.004677bb
pop ecx
test eax, eax
jne 0x462af1
push 0x1c
call fcn.004629a0
pop ecx
call fcn.0046479d
test eax, eax
jne 0x462b02
push 0x10
call fcn.004629a0
pop ecx
mov dword [ebp - 4], ebx
call fcn.004692f2
test eax, eax
jge 0x462b16
push 0x1b
call fcn.00462976
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4ad6a4], eax
call fcn.004691ca
mov dword [0x4ab800], eax
call fcn.00469127
test eax, eax
jge 0x462b3c
push 8
call fcn.00462976
pop ecx
call fcn.00468ed9
test eax, eax
jge 0x462b4d
push 9
call fcn.00462976
pop ecx
call fcn.00467154
mov dword [ebp - 0x28], eax
test eax, eax
je 0x462b60
push eax
call fcn.00462976
pop ecx
call fcn.00468e7a
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], bl
je 0x462b73
movzx eax, word [ebp - 0x40]
jmp 0x462b76
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x400000
call fcn.004108d0
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x462b97
push esi
call fcn.0046725a
call fcn.00467286
jmp 0x462bc9
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x462be1
mov eax, 0xff
call fcn.0046361b
ret