joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4244dc
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowExW]
xor ebx, ebx
push ebx
push str.Shell_TrayWnd
push ebx
push ebx
call edi
cmp eax, ebx
je 0x424515
push ebx
push str.TrayNotifyWnd
push ebx
push eax
call edi
cmp eax, ebx
je 0x424515
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x4245d1
lea eax, [ebp - 0x24]
push eax
push 5
mov dword [ebp - 0x24], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x424575
mov eax, dword [ebp - 0x18]
sub eax, ebx
je 0x424559
dec eax
je 0x424540
dec eax
je 0x424559
dec eax
jne 0x4245d1
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax - 0x64]
mov dword [esi], ecx
add eax, 0xfffffff0
jmp 0x424570
mov eax, dword [ebp - 8]
lea ecx, [eax - 0x64]
add eax, 0xfffffff0
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
jmp 0x4245d1
push ebx
push str.Shell_TrayWnd
push ebx
push ebx
call edi
cmp eax, ebx
je 0x4245b3
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 8]
mov ecx, eax
sub ecx, dword [esi]
cmp ecx, 0x96
jle 0x4245a1
add eax, 0xffffff6a
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov ecx, eax
sub ecx, dword [esi + 4]
cmp ecx, 0x1e
jle 0x4245d1
add eax, 0xffffffe2
jmp 0x4245ce
push ebx
push esi
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esi + 8]
sub eax, 0x96
mov dword [esi], eax
mov eax, dword [esi + 0xc]
sub eax, 0x1e
mov dword [esi + 4], eax
pop edi
pop ebx
leave
ret
Function at 0x4247a8
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4a1d50]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x45e6cb
call fcn.00449ec2
mov eax, dword [ebp + 0x214]
push dword [eax]
mov esi, ecx
push str._INSTALLDIR_
push esi
call fcn.0040601e
test eax, eax
jne 0x4248c1
call fcn.004366fe
push eax
lea ecx, [ebp - 0x10]
call fcn.00411d53
and dword [ebp - 4], 0
mov edi, str._WindowsFolder_
push edi
xor ecx, ecx
call fcn.00406198
or ebx, 0xffffffff
cmp eax, ebx
je 0x424813
push 0x24
jmp 0x424865
mov edi, str._SystemFolder_
push edi
xor ecx, ecx
call fcn.00406198
cmp eax, ebx
je 0x424828
push 0x25
jmp 0x424865
mov edi, str._ProgramFilesFolder_
push edi
xor ecx, ecx
call fcn.00406198
cmp eax, ebx
je 0x42483d
push 0x26
jmp 0x424865
mov edi, str._CommonFilesFolder_
push edi
xor ecx, ecx
call fcn.00406198
cmp eax, ebx
je 0x424852
push 0x2b
jmp 0x424865
mov edi, str._LocalAppDataFolder_
push edi
xor ecx, ecx
call fcn.00406198
cmp eax, ebx
je 0x4248b6
push 0x1c
pop ebx
push edi
lea ecx, [ebp - 0x10]
call fcn.0040137f
xor eax, eax
push 0x206
mov word [ebp], ax
xor edi, edi
lea eax, [ebp + 2]
push edi
push eax
call fcn.00448000
add esp, 0xc
lea eax, [ebp]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4248b6
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4248b6
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
push esi
call fcn.0040601e
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004472d5
add ebp, 0x20c
leave
ret
Function at 0x424bf1
Capabilities:
Enumerate gui resources

Disassembly:
push 0x29c
mov eax, 0x460917
call fcn.00449ec2
push 0x4a6778
lea ecx, [ebp - 0x20]
call fcn.0040134f
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
push ebx
mov ecx, 0x4a6a98
mov dword [ebp - 0x1c], ebx
call fcn.0043864c
cmp dword [0x4a672c], ebx
mov dword [ebp - 0x14], ebx
jle 0x424d73
push dword [ebp - 0x14]
mov ecx, 0x4a6724
call fcn.004062c5
mov esi, eax
mov eax, dword [esi]
cmp eax, ebx
je 0x424d29
cmp dword [eax + 0x20], ebx
jne 0x424d29
add eax, 8
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
call fcn.0040134f
push 0x48bc98
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00406240
lea ecx, [ebp - 0x10]
test eax, eax
je 0x424cb6
lea eax, [ebp - 0x20]
push eax
call fcn.004247a8
pop ecx
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00407707
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx - 0xc]
dec ecx
cmp eax, ecx
je 0x424ca6
push 0x46de14
lea ecx, [ebp - 0x10]
call fcn.00406262
mov eax, dword [esi]
add eax, 4
push eax
lea ecx, [ebp - 0x10]
call fcn.00401115
jmp 0x424cc1
mov eax, dword [esi]
add eax, 4
push eax
call fcn.004063a1
mov esi, dword [esi]
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp - 0x10]
cmp eax, 6
jne 0x424cea
xor esi, esi
push ebx
inc esi
lea eax, [ebp - 0x18]
push esi
push eax
mov ecx, edi
call fcn.0042532a
add esp, 0xc
test eax, eax
je 0x424d0b
mov dword [ebp - 0x1c], esi
jmp 0x424d0b
cmp eax, ebx
jne 0x424d1e
push dword [esi + 4]
lea eax, [ebp - 0x18]
push ebx
push eax
mov ecx, edi
call fcn.0042532a
add esp, 0xc
test eax, eax
je 0x424d0b
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x18], ebx
je 0x424d1e
push dword [ebp - 0x18]
push 0x424706
call dword [sym.imp.USER32.dll_EnumWindows]
lea ecx, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.004017c4
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x4a672c]
jl 0x424c31
cmp dword [ebp - 0x1c], ebx
je 0x424d73
push dword [0x4a6aec]
lea eax, [ebp - 0x2a8]
push eax
call fcn.00419da7
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 2
call fcn.00441f97
lea ecx, [ebp - 0x2a8]
mov esi, eax
mov byte [ebp - 4], bl
call fcn.00419ebc
jmp 0x424d76
xor esi, esi
inc esi
cmp esi, 4
je 0x424c12
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, esi
call fcn.00449f9a
ret
Function at 0x4255a6
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
mov eax, dword [0x4a1d50]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
push dword [ebp + 8]
xor edi, edi
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x640], eax
cmp eax, 0xffffffff
jne 0x4255e2
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004472d5
leave
ret
lea ecx, [ebp - 0x63c]
push ecx
push eax
mov dword [ebp - 0x63c], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x42560f
xor edi, edi
push dword [ebp - 0x640]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x4255d4
push 0x46de14
push ebx
call fcn.0044807a
pop ecx
pop ecx
push dword [ebp + 8]
mov esi, eax
neg esi
push 0
sbb esi, esi
push 0x2000000
neg esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x644], eax
test esi, esi
jne 0x425648
push ebx
lea eax, [ebp - 0x61c]
push eax
jmp 0x425698
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00448000
add esp, 0xc
cmp dword [ebp - 0x644], 0
je 0x4256a6
push 0x104
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x620]
push dword [ebp - 0x644]
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jbe 0x4256a6
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.00449327
mov edi, eax
neg edi
sbb edi, edi
pop ecx
inc edi
pop ecx
lea eax, [ebp - 0x63c]
push eax
push dword [ebp - 0x640]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
je 0x4255ff
test edi, edi
je 0x42563a
jmp 0x4255ff
Function at 0x426d8e
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x426dc1
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push str.iLogLevel
push dword [0x4a65e0]
push 0x80000002
call fcn.0042ed7d
add esp, 0x10
test eax, eax
jne 0x426dc1
cmp dword [ebp + 8], 1
jae 0x426df8
lea eax, [ebp + 8]
push eax
push 0xf003f
push 0
push dword [0x4a65e0]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x426df8
push str.CollectData
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
ret

Function at 0x426e7d
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46080a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4a1d50]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x426ef0
push str.OpenProcessToken_failed_in_RebootOS.
lea ecx, [esp + 0x14]
call fcn.0040130b
and dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x14]
push eax
push 2
call fcn.0040fcf3
mov ecx, dword [esp + 0x1c]
jmp 0x426f82
lea eax, [esp + 0x20]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 2
pop edi
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
push esi
push dword [esp + 0x2c]
xor ebx, ebx
inc ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x426f4d
push str.AdjustTokenPrivileges_failed_in_RebootOS.
lea ecx, [esp + 0x14]
call fcn.0040130b
mov dword [esp + 0x38], ebx
call esi
push eax
lea eax, [esp + 0x14]
push eax
push edi
jmp 0x426ee2
push 0x80000001
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x426f8d
push str.ExitWindowsEx_failed_in_RebootOS.
lea ecx, [esp + 0x18]
call fcn.0040130b
mov dword [esp + 0x38], edi
call esi
push eax
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040fcf3
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4283a7
Capabilities:
Create process on windows
Persist via run registry key

Disassembly:
push 8
mov eax, 0x45ee03
call fcn.00449ec2
push str.Run_SpeedLauncher:
lea ecx, [ebp - 0x10]
call fcn.0040130b
xor edi, edi
push edi
push esi
lea eax, [ebp - 0x10]
push eax
push 2
pop ebx
push ebx
mov dword [ebp - 4], edi
call fcn.0040f821
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x428415
push str.Empty_sl_path:
lea ecx, [ebp - 0x10]
call fcn.0040130b
mov dword [ebp - 4], 1
push edi
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0040f821
add esp, 0x10
jmp 0x4284da
mov eax, esi
call fcn.00401000
test eax, eax
jne 0x428432
push str.sl_not_found:
lea ecx, [ebp - 0x10]
call fcn.0040130b
mov dword [ebp - 4], ebx
jmp 0x428401
call fcn.004366fe
push eax
lea ecx, [ebp - 0x10]
call fcn.00411d53
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], 3
mov eax, dword [eax]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.0042eccb
mov eax, dword [ebp - 0x10]
add esp, 0x10
cmp dword [eax - 0xc], edi
je 0x428495
lea eax, [ebp - 0x10]
push eax
call fcn.004289be
push dword [esi]
lea ecx, [ebp - 0x10]
call fcn.00406240
test eax, eax
jne 0x428495
push str.Registered_in_Run_already___will_not_launch:
lea ecx, [ebp - 0x14]
call fcn.0040130b
mov byte [ebp - 4], 4
jmp 0x4284c0
mov eax, dword [esi]
push 5
push edi
push edi
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x21
mov eax, str.Unable_to_launch:
jl 0x4284b3
mov eax, str.Launched:
push eax
lea ecx, [ebp - 0x14]
call fcn.0040130b
mov byte [ebp - 4], 5
push edi
push esi
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.0040f821
mov ecx, dword [ebp - 0x14]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004017c4
call fcn.00449f9a
ret
Function at 0x42a5ac
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x4a1d50]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x74], ax
xor ebx, ebx
lea eax, [ebp - 0x72]
push ebx
push eax
mov edi, ecx
call fcn.00448000
xor eax, eax
push esi
mov word [ebp + 0x198], ax
lea eax, [ebp + 0x19a]
push ebx
push eax
call fcn.00448000
add esp, 0x18
mov eax, 0x105
push eax
lea ecx, [ebp + 0x198]
push ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
lea eax, [ebp - 0x74]
push eax
push 0x48e1f8
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov esi, 0x104
test eax, eax
je 0x42a648
push 0xa
push esi
push edi
push dword [ebp - 0x78]
call fcn.0044881a
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x42a65f
push str.thsnYaViMRAeBoda
push esi
call fcn.004104c5
mov ecx, dword [ebp + 0x3a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004472d5
add ebp, 0x3a8
leave
ret
Function at 0x42b0af
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x10
mov eax, 0x460461
call fcn.00449ec2
mov esi, ecx
push str.GetLaunchInstalledOnDemand...
lea ecx, [ebp - 0x14]
call fcn.0040130b
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 2
pop ebx
push ebx
call fcn.0040fcf3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
lea edi, [esi + 0x70]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x42b128
push str.Empty_ProductInstallDir
lea ecx, [ebp + 8]
call fcn.0040130b
push 0
lea eax, [ebp + 8]
push eax
push ebx
mov dword [ebp - 4], 1
call fcn.0040fcf3
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
jmp 0x42b203
push str.7AD7_
add esi, 0x60
xor ecx, ecx
call fcn.00406198
cmp eax, 0xffffffff
push edi
lea ecx, [ebp - 0x14]
sete byte [ebp - 0xd]
call fcn.0040134f
push 0x5c
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00407707
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx - 0xc]
dec ecx
cmp eax, ecx
je 0x42b16c
push 0x46de14
lea ecx, [ebp - 0x14]
call fcn.00406262
cmp byte [ebp - 0xd], 0
mov eax, str.AcrobatAcrobat.exe
jne 0x42b17c
mov eax, str.ReaderAcroRd32.exe
push eax
lea ecx, [ebp - 0x14]
call fcn.00406262
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x18]
cmp eax, 0xffffffff
je 0x42b1d4
push str.valid_launch_path_found:
call fcn.0040130b
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
mov byte [ebp - 4], 3
call fcn.0040f821
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x18]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.004063a1
jmp 0x42b200
push str.valid_launch_path_not_found
call fcn.0040130b
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
mov byte [ebp - 4], 4
call fcn.0040f821
mov ecx, dword [ebp - 0x18]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
lea ecx, [esi - 0x10]
call fcn.004017c4
call fcn.00449f9a
ret 4
Function at 0x42e9c1
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
test esi, esi
je 0x42e9f0
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x42e9f0
cmp dword [ebp + 0xc], 0
setne al
mov byte [esi], al
mov al, 1
jmp 0x42e9f2
xor al, al
pop ebp
ret 8

Function at 0x42ec58
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
xor esi, esi
call fcn.0040130b
mov eax, dword [ebp - 8]
mov edi, dword [eax - 0xc]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42ecba
lea eax, [edi + edi]
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.004017c4
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x42eccb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 1
push dword [ebp + 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x42ed67
push esi
push 0x208
call fcn.004479d9
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call esi
mov ebx, eax
cmp ebx, 0xea
jne 0x42ed59
push edi
call fcn.004478fc
mov eax, dword [ebp - 4]
add eax, eax
push eax
call fcn.004479d9
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call esi
mov ebx, eax
pop esi
test ebx, ebx
jne 0x42ed67
mov ecx, dword [ebp + 0x14]
push edi
call fcn.0040137f
push edi
call fcn.004478fc
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret

Function at 0x42ed7d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x42edcd
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x42edd2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0x46c0b0
push edi
mov esi, 0x80000001
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42ee3e
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call ebx
test esi, esi
jne 0x42ee3e
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42ee83
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x46c0b0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42eed9
push edi
push 8
lea eax, [ebp + 8]
push eax
push 0xb
push esi
push str.iSpeedLauncherLogonTime
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x42eed9
inc esi
mov eax, esi
pop esi
leave
ret

Function at 0x42eede
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x42ef10
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
jne 0x42ef10
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x42f1fd
Capabilities:
Check os version

Disassembly:
push 0x12c
mov eax, 0x45fd7d
call fcn.00449f2b
mov esi, 0x11c
push esi
xor ebx, ebx
lea eax, [ebp - 0x130]
push ebx
push eax
xor edi, edi
call fcn.00448000
add esp, 0xc
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, ebx
jne 0x42f256
lea eax, [ebp - 0x130]
push eax
mov dword [ebp - 0x130], 0x114
call esi
cmp eax, ebx
je 0x42f262
cmp dword [ebp - 0x12c], 6
jb 0x42f262
xor edi, edi
inc edi
cmp byte [0x4a6b0e], bl
jne 0x42f2d6
cmp edi, ebx
je 0x42f298
push str.IsVistaOrLater_returns_1
lea ecx, [ebp - 0x138]
call fcn.0040130b
push ebx
lea eax, [ebp - 0x138]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.0040fcf3
mov ecx, dword [ebp - 0x138]
jmp 0x42f2c4
push str.IsVistaOrLater_returns_0
lea ecx, [ebp - 0x134]
call fcn.0040130b
push ebx
lea eax, [ebp - 0x134]
push eax
push 2
mov dword [ebp - 4], 1
call fcn.0040fcf3
mov ecx, dword [ebp - 0x134]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov byte [0x4a6b0e], 1
mov eax, edi
call fcn.00449fae
ret
Function at 0x42f2de
Capabilities:
Check os version

Disassembly:
push 0x12c
mov eax, 0x45fd3f
call fcn.00449f2b
mov esi, 0x11c
push esi
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.00448000
add esp, 0xc
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x42f334
lea eax, [ebp - 0x130]
push eax
mov dword [ebp - 0x130], 0x114
call esi
test eax, eax
je 0x42f377
cmp dword [ebp - 0x12c], 5
jne 0x42f377
push str.IsXP_returns_1
lea ecx, [ebp - 0x134]
call fcn.0040130b
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x134]
push eax
push 2
call fcn.0040fcf3
mov ecx, dword [ebp - 0x134]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
xor eax, eax
inc eax
jmp 0x42f379
xor eax, eax
call fcn.00449fae
ret
Function at 0x42fa78
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
lea ebp, [esp - 0xf4]
sub esp, 0x174
mov eax, dword [0x4a1d50]
xor eax, ebp
mov dword [ebp + 0xf0], eax
push esi
push edi
lea eax, [ebp - 0x6c]
push eax
xor edi, edi
push 1
push 0xa
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x42fad4
lea eax, [ebp - 0x6c]
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42fb78
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42fb78
cmp dword [ebp - 0x64], 6
jb 0x42fb29
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x7c]
push eax
push 4
lea eax, [ebp - 0x78]
push eax
push 0x12
push dword [ebp - 0x6c]
call esi
test eax, eax
je 0x42fb78
cmp dword [ebp - 0x78], 3
jne 0x42fb29
lea eax, [ebp - 0x7c]
push eax
push 4
lea eax, [ebp - 0x70]
push eax
push 0x13
push dword [ebp - 0x6c]
call esi
test eax, eax
je 0x42fb78
cmp dword [ebp - 0x70], edi
jne 0x42fb41
lea eax, [ebp - 0x70]
push eax
push 1
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x42fb78
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xac]
push eax
push edi
push 0x1a
mov dword [ebp - 0x80], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x42fb78
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0xac]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x42fb7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x6c], edi
je 0x42fb91
push dword [ebp - 0x6c]
call esi
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x70], edi
je 0x42fb9b
push dword [ebp - 0x70]
call esi
mov ecx, dword [ebp + 0xf0]
mov eax, dword [ebp - 0x74]
pop edi
xor ecx, ebp
pop esi
call fcn.004472d5
add ebp, 0xf4
leave
ret