joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415570
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
shr eax, 0x1f
and al, 1
push 0
mov byte [0x457d69], al
call fcn.00430920
mov eax, dword [0x4582a0]
add esp, 4
and eax, 0xff
push eax
call fcn.00415630
add esp, 4
push 1
push str.LOGNAME
call fcn.0040a210
mov esi, eax
mov dword [ebp - 4], 0x63
add esp, 8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4155f4
mov cl, byte [eax + 8]
test cl, cl
jne 0x4155f4
lea ecx, [ebp - 4]
lea edx, [ebp - 0x68]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
jne 0x4155f4
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x68]
push ecx
push 0
push esi
mov byte [ebp + eax - 0x68], 0
call fcn.0040a4c0
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x415650
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
add eax, 0xffffffd0
push edi
cmp eax, 0x24
mov edi, esi
ja case.0x415671.52
xor ecx, ecx
mov cl, byte [eax + 0x415710]
jmp dword [ecx*4 + 0x4156fc]
mov eax, dword [esi]
lea edi, [esi + 4]
test eax, eax
mov dword [0x457d64], eax
jne 0x4156ee
call fcn.00415770
mov eax, edi
sub eax, esi
sar eax, 2
pop edi
pop esi
pop ebp
ret
mov eax, dword [0x44b55c]
mov edx, dword [esi]
inc eax
lea edi, [esi + 4]
mov dword [0x44b55c], eax
mov eax, edi
sub eax, esi
mov dword [0x458270], edx
sar eax, 2
pop edi
pop esi
pop ebp
ret
mov al, byte [0x457d68]
inc al
mov byte [0x457d68], al
mov eax, edi
sub eax, esi
sar eax, 2
pop edi
pop esi
pop ebp
ret
call fcn.00433630
test eax, eax
je 0x4156ee
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, edi
sub eax, esi
sar eax, 2
pop edi
pop esi
pop ebp
ret
lea edi, [esi - 4]
mov eax, edi
pop edi
sub eax, esi
pop esi
sar eax, 2
pop ebp
ret
Function at 0x415c90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
push esi
call fcn.0042d3b0
mov ebx, eax
mov eax, dword [ebp + 0xc]
add esp, 8
mov dword [ebp - 4], edi
test ah, 0x20
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
je 0x415cc5
mov edi, str..ksh_
jmp 0x415d01
mov eax, dword [0x442d60]
cmp dword [eax + 0xc], edi
je 0x415cdd
push edi
push eax
call fcn.0040a430
add esp, 8
mov edi, eax
jmp 0x415d01
mov eax, dword [0x442d50]
cmp dword [eax + 0xc], edi
je 0x415cfc
push edi
push eax
call fcn.0040a430
add esp, 8
mov edi, eax
mov dword [ebp - 4], 1
jmp 0x415d01
mov edi, str..com_.exe_.ksh_.sh_.bat_.cmd_
push 0x2e
push esi
call fcn.004298f0
add esp, 4
push eax
call fcn.004303a0
add esp, 8
test eax, eax
jne 0x415d79
push 0x442400
push edi
call fcn.004340e0
add esp, 8
mov esi, eax
push esi
push edi
push ebx
call fcn.00431110
add esp, 0xc
add edi, esi
test esi, esi
mov byte [esi + ebx], 0
jne 0x415d45
mov dword [ebp - 0x10], 1
push str..ksh
push ebx
call fcn.0042a7d0
add esp, 8
test eax, eax
jne 0x415d60
mov dword [ebp - 8], 1
jmp 0x415d79
push 0x444148
push ebx
call fcn.0042a7d0
add esp, 8
test eax, eax
jne 0x415d79
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x415d98
test al, 0x10
jne 0x415d98
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [edi]
test al, al
jne 0x415de1
mov eax, dword [ebp - 4]
test eax, eax
je 0x415dd8
mov eax, dword [ebp - 8]
test eax, eax
jne 0x415db6
mov edi, str..ksh
jmp 0x415d19
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x415dc7
mov edi, 0x444148
jmp 0x415d19
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x415dd8
mov edi, 0x44b560
jmp 0x415d19
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 0x3b
jne 0x415d19
inc edi
jmp 0x415d19

Function at 0x415f10
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x442d40]
push 0
push eax
call fcn.0040a430
mov cl, byte [eax]
add esp, 8
test cl, cl
jne 0x415f31
mov eax, str.MKS_Korn_Shell____PWD
push 0x8000
lea ecx, [ebp - 0x28]
push eax
push ecx
call fcn.004137d0
add esp, 0xc
cmp eax, 0x44b6e0
je 0x415f4d
push eax
jmp 0x415f52
push str.MKS_Korn_Shell
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea edx, [ebp - 0x28]
push edx
call fcn.00413990
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x415f70
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, 0x50
mov byte [ebp - 0x53], 0
mov eax, dword [esi]
mov byte [ebp - 0x54], 0
test eax, eax
je 0x416002
push eax
call fcn.00429700
mov edi, eax
add esp, 4
inc edi
cmp edi, ebx
jg 0x415fdc
lea eax, [ebp - 0x54]
push 0x442a00
push eax
call fcn.00431ca0
mov ecx, dword [esi]
add esp, 8
lea edx, [ebp - 0x54]
push ecx
push edx
call fcn.00431ca0
mov eax, dword [esi + 4]
add esi, 4
add esp, 8
sub ebx, edi
test eax, eax
jne 0x415f8f
lea eax, [ebp - 0x53]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 1
jle 0x416002
lea eax, [ebp - 0x54]
push 0x442a00
push eax
call fcn.00431ca0
mov ecx, dword [esi]
add esp, 8
lea edx, [ebp - 0x54]
push ebx
push ecx
push edx
call fcn.004341f0
add esp, 0xc
lea eax, [ebp - 0x53]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417110
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
mov edx, dword [str.SoftwareMortice_Kern_SystemsToolkitShell]
push esi
lea eax, [ebp - 0xc]
push edi
lea ecx, [ebp - 4]
push eax
push ecx
push 0
push 0x20006
push 0
push 0x44b560
push 0
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov dword [0x4586cc], eax
jne 0x4172f6
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0x417
push esi
call edi
mov ecx, dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 4
push 0
push str.RestoreOptionSettings
push ecx
call ebx
push 0x415
push esi
mov dword [0x4586cc], eax
call edi
test eax, eax
je 0x4172ec
mov eax, dword [str.allexport]
lea esi, [ebp - 0x40c]
test eax, eax
mov edi, 0x43fb50
je 0x4171de
push eax
mov eax, dword [edi + 4]
mov cl, byte [eax]
neg cl
sbb ecx, ecx
and ecx, 2
add ecx, 0x2b
push ecx
push str._co__s
push esi
call fcn.0042d370
add esp, 0x10
push esi
call fcn.00429700
add edi, 0xc
add esi, eax
add esp, 4
mov eax, dword [edi]
test eax, eax
jne 0x4171ab
lea edx, [ebp - 0x40c]
push edx
call fcn.00429700
add esp, 4
mov ecx, dword [ebp - 4]
inc eax
push eax
lea eax, [ebp - 0x40c]
push eax
push 1
push 0
push str.OptionSettings
push ecx
call ebx
mov edx, dword [0x442ca0]
push 0
push edx
mov dword [0x4586cc], eax
call fcn.0040a430
add esp, 8
mov esi, eax
push esi
call fcn.00429700
add esp, 4
inc eax
push eax
mov eax, dword [ebp - 4]
push esi
push 1
push 0
push 0x442f18
push eax
call ebx
mov ecx, dword [0x442cb0]
push 0
push ecx
mov dword [0x4586cc], eax
call fcn.0040a430
add esp, 8
mov esi, eax
push esi
call fcn.00429700
mov edx, dword [ebp - 4]
add esp, 4
inc eax
push eax
push esi
push 1
push 0
push 0x442f14
push edx
call ebx
mov dword [0x4586cc], eax
mov eax, dword [0x442cc0]
push 0
push eax
call fcn.0040a430
add esp, 8
mov esi, eax
push esi
call fcn.00429700
mov ecx, dword [ebp - 4]
add esp, 4
inc eax
push eax
push esi
push 1
push 0
push 0x442f0c
push ecx
call ebx
mov dword [0x4586cc], eax
mov eax, dword [0x457d88]
test eax, eax
je 0x4172ec
push eax
call fcn.00429700
mov edx, dword [0x457d88]
add esp, 4
inc eax
push eax
mov eax, dword [ebp - 4]
push edx
push 1
push 0
push str.HISTFILE
push eax
call ebx
mov ecx, dword [ebp - 4]
push 4
push 0x457d80
push 4
push 0
push str.HISTSIZE
push ecx
mov dword [0x4586cc], eax
call ebx
mov dword [0x4586cc], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [str.SoftwareMortice_Kern_SystemsToolkitShell]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 4]
push eax
push ecx
push 0
push 1
push 0
push 0x44b560
push 0
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov dword [0x4586cc], eax
jne 0x417388
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push ecx
push edx
push 0
push str.RestoreOptionSettings
push eax
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 4]
mov dword [0x4586cc], eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4586cc]
test eax, eax
jne 0x417388
cmp dword [ebp - 0xc], 4
jne 0x417388
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x417388
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x419aa0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
push esi
push edi
push str.comctl32
mov dword [0x44e880], eax
mov dword [0x44e888], ecx
mov dword [0x44e884], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x419b66
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitCommonControls
push esi
call edi
test eax, eax
je 0x419ae8
call eax
push str.PropertySheetA
push esi
call edi
push str.ImageList_Create
push esi
mov dword [0x455d54], eax
call edi
push str.ImageList_AddMasked
push esi
mov dword [0x455d50], eax
call edi
push str.ImageList_SetBkColor
push esi
mov dword [0x455d58], eax
call edi
test esi, esi
mov dword [0x455d5c], eax
je 0x419b66
mov eax, dword [0x455d54]
test eax, eax
je 0x419b66
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push eax
push 0x419b80
push ecx
push 0x66
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 0xffffffff
jne 0x419b59
push str.Unable_to_run_dialog
call fcn.00401fa0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebp
ret
push str.0Operating_system_doesnt_support_property_sheets
call fcn.00401fa0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
ret
Function at 0x41a330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
jne 0x41a368
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push str._module__s
mov dword [0x4586cc], eax
call fcn.00401fa0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x41a391
push ebx
push str.module__s:_unable_to_load
call fcn.00401fa0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 0x10]
push 5
mov eax, dword [edi + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x41a3cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x4586cc], eax
jne 0x41a3be
mov dword [0x4586cc], 0x716
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
push str._file___s_:_dialog___s_
jmp 0x41a45c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41a452
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41a452
mov edx, dword [edi + 0x48]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x14]
and edx, 0xffffffef
or edx, 8
mov dword [edi + 4], esi
test eax, eax
mov dword [edi + 0x48], edx
jne 0x41a407
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push edi
call fcn.0041a870
add esp, 8
lea eax, [ebp + 0xc]
xor ebx, ebx
push eax
push 0x41aae0
push 0xe
push esi
mov dword [edi + 0x64], ebx
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x41a43d
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
push eax
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [edi + 0x64], eax
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
push str.file___s_:_dialog___s_:_failed_to_load
call fcn.00401fa0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x41f940
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
je 0x41f9a6
mov eax, dword [0x44f6e0]
test eax, eax
jne 0x41f987
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x44f6e0], eax
jne 0x41f987
push str.failure_to_create_toolbar_event
call fcn.00401fa0
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
call fcn.00433630
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x41f9b0
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4204a0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [str.SoftwareMortice_Kern_SystemsToolkitShell]
lea ecx, [ebp - 0x408]
push eax
push ecx
call fcn.004296d0
add esp, 8
lea edx, [ebp - 0x408]
push 0
push edx
call fcn.0042d3b0
add esp, 8
push str.Toolbar
push eax
call fcn.0042d370
add esp, 8
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
lea edx, [ebp - 0x408]
push eax
push ecx
push 0
push 0x20006
push 0
push 0x44b560
push 0
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [0x44f710]
test eax, eax
je 0x42053a
mov ecx, dword [0x44f714]
mov edx, dword [ebp - 4]
inc ecx
push ecx
push eax
push 7
push 0
push str.Bitmaps
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push str.Bitmaps
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x420560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [str.SoftwareMortice_Kern_SystemsToolkitShell]
push esi
lea ecx, [ebp - 0x410]
push eax
push ecx
call fcn.004296d0
add esp, 8
lea edx, [ebp - 0x410]
push 0
push edx
call fcn.0042d3b0
add esp, 8
push str.Toolbar
push eax
call fcn.0042d370
add esp, 8
lea eax, [ebp - 0x10]
lea ecx, [ebp - 8]
lea edx, [ebp - 0x410]
push eax
push ecx
push 0
push 0x20006
push 0
push 0x44b560
push 0
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
push eax
push 0
push ecx
push 0
push str.Bitmaps
push edx
call esi
test eax, eax
jne 0x42069d
cmp dword [ebp - 4], 3
jb 0x42069d
mov eax, dword [0x44f710]
test eax, eax
je 0x420609
push eax
call fcn.004283d0
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.00428230
add esp, 4
lea ecx, [ebp - 4]
lea edx, [ebp - 0xc]
mov dword [0x44f710], eax
push ecx
push eax
mov eax, dword [ebp - 8]
push edx
push 0
push str.Bitmaps
push eax
call esi
mov ecx, dword [ebp - 8]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x42069d
mov edx, dword [ebp - 4]
mov esi, dword [0x44f710]
dec edx
test esi, esi
mov dword [0x44f714], edx
je 0x42069d
cmp byte [esi], 0
je 0x42069d
mov eax, dword [0x455d48]
test eax, eax
jne 0x42066b
push esi
call fcn.00420410
add esp, 4
push 0
push esi
call fcn.0042d3b0
mov esi, eax
add esp, 8
inc esi
je 0x42068d
mov eax, dword [0x455d48]
test eax, eax
je 0x42068d
push esi
call fcn.00420410
add esp, 4
push 0
push esi
call fcn.0042d3b0
mov esi, eax
add esp, 8
inc esi
jne 0x420654
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4206b0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, dword [0x44f710]
test eax, eax
je 0x4206cc
push eax
call fcn.004283d0
add esp, 4
mov dword [0x44f710], 0
mov dword [0x44f714], 0
jmp fcn.004204a0
Function at 0x4206e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x44f70c]
push ebx
push esi
push edi
push 0
push 0
push 0x418
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [str.SoftwareMortice_Kern_SystemsToolkitShell]
lea edx, [ebp - 0x42c]
push ecx
push edx
mov dword [ebp - 0xc], eax
call fcn.004296d0
add esp, 8
lea eax, [ebp - 0x42c]
push 0
push eax
call fcn.0042d3b0
add esp, 8
mov dword [ebp - 0x10], eax
push str.Toolbar
push eax
call fcn.0042d370
add esp, 8
lea ecx, [ebp - 0x18]
lea edx, [ebp - 4]
lea eax, [ebp - 0x42c]
push ecx
push edx
push 0
push 0x20006
push 0
push 0x44b560
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0xc]
push 4
push ecx
push 4
push 0
push str.Buttons
push edx
call edi
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
xor esi, esi
test eax, eax
mov dword [ebp - 8], esi
jle 0x42090d
jmp 0x4207a2
mov esi, dword [ebp - 8]
test ebx, ebx
jne 0x42090d
mov edx, dword [0x44f70c]
lea ecx, [ebp - 0x2c]
push ecx
push esi
push 0x417
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x42090d
mov eax, dword [ebp - 0x10]
push esi
push str.ToolbarButton__d
push eax
call fcn.0042d370
add esp, 0xc
lea ecx, [ebp - 0x18]
lea edx, [ebp - 4]
lea eax, [ebp - 0x42c]
push ecx
push edx
push ebx
push 0x20006
push ebx
push 0x44b560
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [ebp - 0x23]
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
and ecx, 0xff
push 4
push eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 4]
push 4
push ebx
push 0x44825c
push ecx
lea esi, [edx - 1]
call edi
mov ebx, eax
mov al, byte [ebp - 0x23]
cmp al, 1
je 0x4208fb
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x2c]
push 4
push edx
push 4
push 0
push 0x448254
push eax
call edi
lea esi, [esi + esi*4]
mov edx, dword [ebp - 4]
shl esi, 3
push 4
lea ecx, [esi + 0x455a40]
push ecx
push 4
push 0
push str.Type
push edx
call edi
mov ebx, eax
mov eax, dword [esi + 0x455a38]
test eax, eax
je 0x420897
push eax
call fcn.00429700
add esp, 4
mov ecx, dword [ebp - 4]
inc eax
push eax
mov eax, dword [esi + 0x455a38]
push eax
push 1
push 0
push 0x442358
push ecx
call edi
mov ebx, eax
mov eax, dword [esi + 0x455a3c]
test eax, eax
je 0x4208c4
push eax
call fcn.00429700
mov edx, dword [esi + 0x455a3c]
add esp, 4
inc eax
push eax
mov eax, dword [ebp - 4]
push edx
push 1
push 0
push str.Command_Up
push eax
call edi
mov ebx, eax
mov eax, dword [esi + 0x455a34]
test eax, eax
je 0x4208f1
push eax
call fcn.00429700
mov ecx, dword [esi + 0x455a34]
mov edx, dword [ebp - 4]
add esp, 4
inc eax
push eax
push ecx
push 1
push 0
push str.Tooltip
push edx
call edi
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc eax
cmp eax, ecx
mov dword [ebp - 8], eax
jl 0x42079f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x50
push eax
push 1
push 0
push str.DisplaySettings
push 0x80000005
mov byte [ebp - 0x5c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x420c73
xor eax, eax
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 8]
lea edx, [ebp - 0x5c]
push ecx
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push edx
push eax
push 0
push str.DPILogicalX
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x420ca4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x5c]
push ecx
call fcn.004343d0
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x423310
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x20]
inc eax
push eax
call fcn.00428230
add esp, 4
push eax
call fcn.00402d50
mov ecx, dword [esi + 0x1c]
add esp, 4
inc ecx
mov dword [ebp - 4], eax
push ecx
call fcn.00428230
add esp, 4
push eax
call fcn.00402d50
add esp, 4
xor edi, edi
mov ebx, eax
mov dword [0x4586cc], edi
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
inc edx
inc eax
mov dword [ebp - 8], edx
mov edx, dword [ebp - 4]
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
push ecx
lea eax, [ebp - 0xc]
push edx
mov edx, dword [esi]
push eax
lea ecx, [ebp - 8]
push 0
push ecx
push ebx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
mov dword [0x4586cc], eax
jne 0x423398
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [0x4586cc], eax
mov eax, dword [esi + 0x18]
inc edi
cmp edi, eax
jbe 0x423355
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423440
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov ecx, 0xb
xor eax, eax
lea edi, [ebp - 0x30]
mov dword [ebp - 0x34], 0
test ebx, ebx
rep stosd dword es:[edi], eax
jne 0x423518
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
call fcn.00423550
add esp, 4
test eax, eax
jne 0x4234e6
mov ecx, dword [ebp - 0x24]
inc ecx
push ecx
call fcn.00428230
add esp, 4
push eax
call fcn.00402d50
mov esi, dword [ebp - 0x28]
add esp, 4
test esi, esi
mov edi, eax
jbe 0x4234dd
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
push eax
push 0
inc edx
push 0
lea ecx, [ebp - 4]
push 0
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x34]
dec esi
push ecx
push edi
push esi
push edx
call ebx
test eax, eax
mov dword [0x4586cc], eax
jne 0x4234d6
mov eax, dword [ebp - 0x34]
push edi
push eax
call fcn.00423440
add esp, 8
test esi, esi
ja 0x4234a2
mov ebx, dword [ebp + 0xc]
push edi
call fcn.004283d0
add esp, 4
test ebx, ebx
je 0x423504
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 8]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [0x4586cc], eax
mov ecx, dword [0x4586cc]
xor eax, eax
test ecx, ecx
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x34]
push ecx
push 0x20019
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [0x4586cc], eax
je 0x42346d
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x423550
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x28]
lea edx, [eax + 0x24]
push ecx
push edx
lea ecx, [eax + 0x20]
lea edx, [eax + 0x1c]
push ecx
push edx
lea ecx, [eax + 0x18]
lea edx, [eax + 0x14]
push ecx
push edx
lea ecx, [eax + 0x10]
lea edx, [eax + 0xc]
push ecx
push edx
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
mov eax, dword [eax]
push 0
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [0x4586cc], eax
pop ebp
ret