joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dbc2
Capabilities:
Check os version

Disassembly:
mov eax, 0x555afb
call fcn.004d8d80
sub esp, 0x118
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x1c]
mov esi, ecx
mov dword [ebp - 0x10], esi
push ebx
call fcn.005398d2
mov eax, dword [0x62b3ec]
mov dword [ebp - 4], ebx
mov dword [esi + 0x64], eax
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
mov dword [esi], 0x56ba08
jne 0x41dc48
mov edi, 0x114
lea eax, [ebp - 0x124]
push edi
push ebx
push eax
call fcn.004d8eb0
add esp, 0xc
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x41dc41
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x41dc48
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.004d9a6c
cmp eax, ebx
pop ecx
mov dword [esi + 0x5c], eax
jne 0x41dc5d
call fcn.00537292
push dword [ebp + 0x20]
mov ecx, esi
push ebx
call fcn.0041de22
push eax
call fcn.004d8eb0
push 0x200002
call fcn.0053d788
mov dword [esi + 0xe8], eax
mov word [eax], bx
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [esi + 0x60], eax
lea edi, [esi + 0x68]
neg eax
sbb eax, eax
mov ecx, esi
add eax, 0x7005
mov word [edi], bx
mov dword [esi + 0xec], ebx
mov dword [esi + 0x3c], eax
call fcn.0041de22
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
mov ecx, esi
call fcn.0041de22
mov ecx, dword [esi + 0xe8]
mov dword [eax + 0x1c], ecx
mov ecx, esi
call fcn.0041de22
mov ecx, esi
mov dword [eax + 0x20], 0x100000
call fcn.0041de22
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x3c], ecx
mov ecx, esi
call fcn.0041de22
mov ecx, esi
mov dword [eax + 0x24], edi
call fcn.0041de22
mov ecx, esi
mov dword [eax + 0x28], 0x40
call fcn.0041de22
mov ecx, dword [ebp + 0x14]
add eax, 0x34
or ecx, 0x880020
or dword [eax], ecx
test byte [ebp + 0x14], 0x40
je 0x41dd1a
mov ecx, esi
call fcn.0041de22
add eax, 0x34
and byte [eax + 2], 0x7f
call fcn.0054e0a1
mov edi, dword [eax + 0xc]
mov ecx, esi
call fcn.0041de22
mov ecx, esi
mov dword [eax + 8], edi
call fcn.0041de22
cmp dword [ebp + 0x10], ebx
mov dword [eax + 0x44], 0x41da4b
je 0x41dd53
push 0x100000
push dword [ebp + 0x10]
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x18], ebx
je 0x41dd92
push dword [ebp + 0x18]
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.0053dbe6
push ebx
mov ecx, edi
call fcn.0053de94
push 0x7c
push eax
call fcn.004d9a43
pop ecx
cmp eax, ebx
pop ecx
je 0x41dd85
mov word [eax], bx
push 0x7c
add eax, 2
jmp 0x41dd6f
mov edi, dword [esi + 0x64]
mov ecx, esi
call fcn.0041de22
mov dword [eax + 0xc], edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c

Function at 0x4214af
Capabilities:
Find taskbar

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
push edi
push edi
call esi
cmp eax, edi
jne 0x4214cb
xor eax, eax
jmp 0x4214d5
push edi
push str.TrayNotifyWnd
push edi
push eax
call esi
pop edi
pop esi
ret
Function at 0x421ca1
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push dword [esp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x421cb0
ret
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x421cc3
xor esi, esi
jmp 0x421ce2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x421cbf
mov ecx, dword [esp + 8]
push eax
call fcn.0053dbe6
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 1
pop esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
ret

Function at 0x421d93
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x3ff
lea eax, [ebp - 0x820]
push dword [ebp + 8]
push eax
call fcn.004d8f08
lea eax, [ebp - 0x820]
push eax
call fcn.004d8f83
and word [ebp + eax*2 - 0x81e], 0
push 0x1e
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.004d8eb0
mov eax, dword [ebp + 0x10]
add esp, 0x1c
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x421e06
or eax, 0xffffffff
leave
ret
xor eax, eax
cmp dword [ebp - 0xe], eax
setne al
leave
ret

Function at 0x42270b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
push esi
jne 0x422739
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
neg eax
sbb eax, eax
inc eax
jmp 0x422788
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x422786
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x422786
test esi, esi
jne 0x422786
push 1
pop eax
jmp 0x422788
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x42278d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push edi
push dword [ebp + 0xc]
call fcn.004d8fa0
pop ecx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
test eax, eax
je 0x422809
and word [eax], 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x422809
lea eax, [ebp - 0x20c]
xor edi, edi
push 0x105
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4227e6
push 1
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x422809
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x5c
push esi
call fcn.004d9ba6
pop ecx
pop ecx
jmp 0x4227ad
push esi
call fcn.004d9412
pop ecx
push 1
pop eax
pop edi
pop esi
leave
ret 8

Function at 0x422ef9
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x5561e7
call fcn.004d8d80
sub esp, 0x10
and dword [ebp - 0x1c], 0
push ebx
push esi
push edi
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
call fcn.0053dac3
mov eax, dword [0x62b3ec]
push 1
pop ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
push dword [ebp + 0x14]
mov edi, 0x5a232c
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.00536b61
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x422f65
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0053d7bc
mov dword [ebp - 0x1c], ebx
jmp 0x422fbb
push ebx
mov dword [ebp - 0x18], ebx
push dword [ebp + 0x10]
mov ebx, str._s___d_
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00536b61
add esp, 0x10
lea eax, [ebp - 0x14]
push dword [ebp + 0x14]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.00536b61
add esp, 0x14
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x422fa8
inc dword [ebp - 0x18]
push dword [ebp - 0x18]
push dword [ebp + 0x10]
jmp 0x422f71
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0053d7bc
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0053da4f
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0053da4f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x422fe5
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x55621b
call fcn.004d8d80
sub esp, 0x10
and dword [ebp - 0x1c], 0
push ebx
push esi
push edi
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call fcn.0053dac3
mov eax, dword [0x62b3ec]
push 1
pop ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
push dword [ebp + 0x14]
mov edi, 0x5a232c
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push edi
push eax
call fcn.00536b61
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x423051
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0053d7bc
mov dword [ebp - 0x1c], ebx
jmp 0x4230a7
push ebx
mov dword [ebp - 0x18], ebx
push dword [ebp + 0x10]
mov ebx, str._s___d_
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00536b61
add esp, 0x10
lea eax, [ebp - 0x10]
push dword [ebp + 0x14]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push edi
push eax
call fcn.00536b61
add esp, 0x14
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x423094
inc dword [ebp - 0x18]
push dword [ebp - 0x18]
push dword [ebp + 0x10]
jmp 0x42305d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0053d7bc
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0053da4f
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0053da4f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x423186
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b4
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, 0x2b4
mov esi, ecx
push edi
push 0
push eax
call fcn.004d8eb0
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add esp, 0xc
lea eax, [esp + 0x10]
mov ebp, 0x5a233c
push 0x4001
push edi
push eax
push 0
push ebp
call ebx
mov dword [esi + 4], eax
push 0x4000
lea eax, [esp + 0x14]
push edi
push eax
push 0
push ebp
call ebx
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
test ecx, ecx
je 0x4231fc
test eax, eax
je 0x4231fc
push ecx
lea ecx, [esi + 0xc]
call fcn.00537c79
push dword [esi + 8]
lea ecx, [esi + 0x14]
call fcn.00537c79
push 1
pop eax
jmp 0x4231fe
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b4
ret

Function at 0x423226
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push esi
mov esi, 0x2b4
push esi
lea eax, [ebp - 0x2b4]
push 0
push eax
call fcn.004d8eb0
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov ecx, dword [ebp + 0xc]
neg eax
sbb eax, eax
or cx, 0x4010
and al, 0x90
push ecx
lea ecx, [ebp - 0x2b4]
add eax, 0x80
push esi
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
pop esi
jne 0x423280
or eax, 0xffffffff
leave
ret
mov eax, dword [ebp - 0x2b0]
leave
ret
Function at 0x423326
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x556270
call fcn.004d8d80
push ecx
push ebx
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.00422bdb
pop ecx
pop ecx
mov eax, dword [0x62b3ec]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], eax
push dword [ebp - 0x10]
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push str._select___s_
push eax
call fcn.00536b61
add esp, 0xc
push 1
push ebx
push dword [ebp + 8]
push str.explorer.exe
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0053da4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0053da4f
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42339e
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x55628c
call fcn.004d8d80
push ecx
push ebx
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.00422bdb
pop ecx
pop ecx
mov eax, dword [0x62b3ec]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], eax
push dword [ebp - 0x10]
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push str._e___s_
push eax
call fcn.00536b61
add esp, 0xc
push 1
push ebx
push dword [ebp + 8]
push str.explorer.exe
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0053da4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0053da4f
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x423416
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x28
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x423478
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x423478
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x42347a
xor eax, eax
pop esi
leave
ret
Function at 0x4234be
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x5562a0
call fcn.004d8d80
sub esp, 0x808
push esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x10]
call fcn.0053dac3
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0053df8c
push str..url
push dword [ebp - 0x10]
call fcn.004d8f45
pop ecx
cmp eax, esi
pop ecx
je 0x423506
or esi, 0xffffffff
jmp 0x42355e
push edi
mov ecx, 0x200
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x812]
mov word [ebp - 0x814], si
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x814]
push 0x400
push eax
push esi
push 0x5a2404
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x814]
push eax
call fcn.004d8f83
pop ecx
pop edi
test eax, eax
je 0x423501
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x814]
push eax
call fcn.0053dbe6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0053da4f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x425b64
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 4]
lea eax, [esi + 0x14]
push edi
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x425ba8
push dword [esi + 0xc]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x425bad
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
or eax, 0xffffffff
jmp 0x425c0c
cmp dword [ebp + 0xc], ebx
je 0x425be8
mov eax, dword [ebp + 0xc]
cmp dword [eax], ebx
jne 0x425bc9
push 0x64
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x425bf2
jmp 0x425bb2
push dword [esi + 0x58]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x425bf2
push 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x425bf2
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x425c13
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
lea esi, [ecx + 4]
add ecx, 0x14
push esi
xor ebx, ebx
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x425c3c
or eax, 0xffffffff
jmp 0x425caf
cmp dword [ebp + 0xc], ebx
push edi
je 0x425c7a
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x10]
je 0x425c5e
push 0x64
push dword [esi]
call edi
test eax, eax
je 0x425c84
jmp 0x425c48
push 0x2710
push dword [esi]
call edi
cmp eax, 0x102
jne 0x425c84
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x425c84
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
pop edi
cmp eax, ebx
je 0x425c95
cmp dword [eax], ebx
je 0x425c95
push 1
pop eax
jmp 0x425caf
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x427d75
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x556a34
call fcn.004d8d80
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
mov eax, esi
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
cdq
mov edi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edx
call fcn.0053dac3
push dword [ebp + 0xc]
xor ebx, ebx
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0053dac3
lea eax, [ebp + 8]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.00428498
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x427def
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0053da4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0053da4f
mov eax, dword [ebp + 0xc]
jmp 0x427f2c
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x88]
push eax
call fcn.0053db96
lea eax, [ebp + 8]
lea ecx, [esi + 0x8c]
push eax
call fcn.0053db96
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
mov byte [ebp - 4], 2
call fcn.004282b7
cmp eax, ebx
je 0x427e3d
push 0x28
push 4
mov ecx, esi
call fcn.00427f3d
or dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x18]
push 0x586060
push eax
call fcn.004da302
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test al, 1
jne 0x427e7b
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
add eax, 2
adc ecx, ebx
cmp eax, edi
jne 0x427e5b
cmp ecx, dword [ebp - 0x34]
je 0x427e7b
push 0x28
push 4
mov ecx, esi
call fcn.00427f3d
lea eax, [ebp - 0x1c]
push 0x586060
push eax
mov dword [ebp - 0x1c], 0xfffffffe
call fcn.004da302
lea eax, [ebp - 0x20]
push 0x586060
push eax
mov dword [ebp - 0x20], ebx
call fcn.004da302
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x427f0b
lea eax, [ebp - 0x28]
push eax
call fcn.004290e9
mov edi, dword [ebp - 0x24]
mov eax, dword [eax]
pop ecx
push ebx
push 2
pop esi
mov ecx, edi
push esi
mov dword [edi + 0x7c], eax
mov dword [edi + 0x80], eax
call fcn.00427f3d
mov ecx, edi
call fcn.00427fc5
cmp word [edi + 0x78], si
jne 0x427eca
cmp word [edi + 0x7a], bx
je 0x427ed3
mov dword [edi + 0x9c], ebx
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 3
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x427f0b
mov ecx, dword [ebp - 0x30]
mov eax, edi
add ecx, esi
mov esi, dword [ebp - 0x2c]
cdq
adc esi, ebx
cmp ecx, eax
jne 0x427ef9
cmp esi, edx
je 0x427f0b
push 0x28
push 4
mov ecx, edi
call fcn.00427f3d
mov dword [ebp + 0xc], 0xfffffffe
mov eax, 0x427f11
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x4286c3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004d9520
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push 0x633610
call fcn.0053dbe6
xor esi, esi
push 0x1001
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.004d8eb0
add esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
push eax
push esi
push 1
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x428726
or eax, 0xffffffff
jmp 0x428780
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1001
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp + 8]
push eax
push esi
push esi
mov dword [ebp + 8], 3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
test eax, eax
je 0x42875d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x428721
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], esi
je 0x428721
push dword [ebp + 0xc]
lea eax, [ebp - 0x1010]
mov ecx, ebx
push dword [ebp - 4]
push eax
call fcn.00428828
neg eax
sbb eax, eax
pop esi
pop ebx
leave
ret 8

Function at 0x428786
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004d9520
push ebx
push edi
xor edi, edi
push 0x1001
lea eax, [ebp - 0x1010]
push edi
mov ebx, ecx
push eax
call fcn.004d8eb0
add esp, 0xc
lea eax, [ebp - 8]
mov ecx, ebx
mov dword [ebp - 8], 0x1001
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.00428941
test eax, eax
jne 0x4287f4
lea eax, [ebp - 0xc]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 4]
push eax
push edi
push 2
push edi
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4287f9
or eax, 0xffffffff
jmp 0x428822
push dword [ebp - 8]
lea eax, [ebp - 0x1010]
push eax
push 3
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x428817
or edi, 0xffffffff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x4290e9
Capabilities:
Get common file path

Disassembly:
mov eax, 0x556b1c
call fcn.004d8d80
sub esp, 0x830
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.005373a8
and word [ebp - 0x83c], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x83a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x83c]
push 0x3ff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x83c]
lea ecx, [ebp - 0x14]
push eax
call fcn.0053dac3
and dword [ebp - 4], 0
push str._bootstat.dat
lea ecx, [ebp - 0x14]
call fcn.0053de40
push 0x24
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004d8eb0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x14]
call fcn.004da548
add esp, 0x14
test eax, eax
jne 0x42918b
mov eax, dword [ebp - 0x20]
push ecx
mov ecx, esp
mov esi, eax
mov dword [ebp - 0x18], esp
mov dword [ecx], eax
lea ecx, [ebp - 0x10]
call fcn.004291af
test eax, eax
je 0x42918b
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
mov dword [esi], eax
call fcn.0053da4f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret