joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4041c6
Capabilities:
Acquire debug privileges
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42cc30], 3
push esi
mov dword [ebp - 4], ebx
jge 0x40420f
push dword [ebp + 8]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x404228
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x404228
push esi
call fcn.0040417d
neg eax
sbb eax, eax
pop ecx
neg eax
jmp 0x404314
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 8]
push eax
push 0x28
call esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40422f
xor eax, eax
jmp 0x404314
push 1
push str.SeDebugPrivilege
push dword [ebp - 8]
call fcn.004040de
add esp, 0xc
test eax, eax
jne 0x40424c
xor esi, esi
jmp 0x404309
push edi
mov edi, 0x1f0fff
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x40426b
xor esi, esi
jmp 0x4042f7
or dword [ebp - 0xc], 0xffffffff
push ebx
push ebx
lea eax, [ebp - 0xc]
push edi
push eax
mov dword [ebp - 0x10], ebx
call esi
push eax
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x404264
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.ExitProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push eax
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
cmp esi, ebx
je 0x4042f4
push esi
call fcn.0040417d
test eax, eax
pop ecx
jne 0x4042e6
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4042e1
push dword [ebp + 8]
call fcn.0040417d
test eax, eax
pop ecx
jne 0x4042e6
mov dword [ebp - 4], ebx
jmp 0x4042ed
mov dword [ebp - 4], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 4]
push ebx
push str.SeDebugPrivilege
push dword [ebp - 8]
call fcn.004040de
add esp, 0xc
pop edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40443e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 1
push eax
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push 0x80000002
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40449d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
push 0
push str.Path
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
jne 0x404497
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret
Function at 0x404737
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [ebp - 0x10], 4
call esi
test eax, eax
jne 0x4047b8
lea eax, [ebp - 8]
push eax
push str.SharedDLLs
push dword [ebp - 0xc]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4047b3
lea eax, [ebp - 0x10]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push 4
push eax
inc dword [ebp - 4]
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop esi
leave
ret

Function at 0x40480f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x104
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x404867
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
push 0
push str.ProgramFilesDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
jne 0x404861
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret

Function at 0x40486b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x104
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4048c3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
push 0
push str.CommonFilesDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
jne 0x4048bd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret
Function at 0x40495c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4049c6
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4049c6
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
push dword [ebp + 0xc]
push 0x8000
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.004048c7
add esp, 0x10
test eax, eax
jne 0x4049ca
cmp dword [ebp - 4], eax
je 0x4049c6
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
leave
ret
cmp dword [ebp - 4], 0
je 0x4049e5
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 1
pop eax
leave
ret

Function at 0x404c28
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
and byte [ebp - 9], 0
mov byte [ebp - 0xb], 0x3a
mov byte [ebp - 0xa], 0x5c
mov al, byte [eax]
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x404c5b
cmp eax, 5
je 0x404c5b
push 1
pop eax
jmp 0x404c90
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 1
call esi
lea eax, [ebp - 0xc]
push 0x427458
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
mov edi, eax
call esi
xor eax, eax
cmp edi, 0xffffffff
pop edi
pop esi
setne al
leave
ret 4

Function at 0x404c94
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
and byte [ebp - 9], 0
mov byte [ebp - 0xb], 0x3a
mov byte [ebp - 0xa], 0x5c
mov al, byte [eax]
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x404cc6
cmp eax, 5
je 0x404cc6
xor eax, eax
jmp 0x404cc9
push 1
pop eax
leave
ret 4

Function at 0x404d6e
Capabilities:
Copy file
Set file attributes

Disassembly:
push esi
push 0x80
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
test esi, esi
jne 0x404d9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop esi
ret

Function at 0x404d9e
Capabilities:
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call fcn.0041c055
cmp ax, 0xffff
pop ecx
jne 0x404dc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
or ax, 0xffff
jmp 0x404dcc
xor ax, ax
ret 4
Function at 0x404dcf
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
push ebx
push esi
push edi
lea eax, [ebp - 0x53c]
push dword [ebp + 8]
push eax
call fcn.0041bb30
pop ecx
lea eax, [ebp - 0x53c]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x53d], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x404e17
lea eax, [ebp - 0x53c]
push 0x427464
push eax
call esi
lea eax, [ebp - 0x53c]
push 0x427460
push eax
call esi
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x53c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405025
test byte [ebp - 0x244], 0x10
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
je 0x404eeb
lea eax, [ebp - 0x218]
push 0x427458
push eax
call fcn.0041c5b0
pop ecx
test eax, eax
pop ecx
je 0x404f22
lea eax, [ebp - 0x218]
push 0x42745c
push eax
call fcn.0041c5b0
pop ecx
test eax, eax
pop ecx
je 0x404f22
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00403bc9
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00405453
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x348]
push eax
call edi
lea eax, [ebp - 0x104]
push eax
call fcn.00404dcf
test eax, eax
lea eax, [ebp - 0x348]
push eax
je 0x40501b
call fcn.0041c580
pop ecx
jmp 0x404f22
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00403bc9
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00405453
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
call fcn.00404d9e
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x244]
push eax
push ebx
call esi
test eax, eax
je 0x405025
test byte [ebp - 0x244], 0x10
je 0x404fd7
lea eax, [ebp - 0x218]
push 0x427458
push eax
call fcn.0041c5b0
pop ecx
test eax, eax
pop ecx
je 0x40500e
lea eax, [ebp - 0x218]
push 0x42745c
push eax
call fcn.0041c5b0
pop ecx
test eax, eax
pop ecx
je 0x40500e
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00403bc9
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00405453
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x348]
push eax
call edi
lea eax, [ebp - 0x104]
push eax
call fcn.00404dcf
test eax, eax
lea eax, [ebp - 0x348]
push eax
je 0x40501b
call fcn.0041c580
pop ecx
jmp 0x40500e
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00403bc9
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00405453
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
call fcn.00404d9e
lea eax, [ebp - 0x244]
push eax
push ebx
jmp 0x404f30
call fcn.0041c580
pop ecx
xor eax, eax
jmp 0x40504c
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00403bc9
lea eax, [ebp - 0x104]
push eax
call fcn.0041c580
add esp, 0x10
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405ee8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
push eax
xor ebx, ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 4], eax
mov edi, 0x427464
je 0x405f72
push eax
call fcn.0041b1a2
mov esi, eax
pop ecx
test esi, esi
je 0x405f72
push esi
push dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x405f6b
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405f6b
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 1
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], eax
push esi
call fcn.0041b254
pop ecx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x405fd8
push eax
call fcn.0041b1a2
mov esi, eax
pop ecx
test esi, esi
je 0x405fd8
push esi
push dword [ebp - 4]
push 0
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x405fd1
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp + 0xc]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405fd1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
push esi
call fcn.0041b254
pop ecx
cmp dword [ebp - 0x10], 0
je 0x405ff8
cmp dword [ebp - 0x14], 0
je 0x405ff8
cmp dword [ebp - 8], ebx
ja 0x405ff3
jne 0x405ff8
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], eax
jbe 0x405ff8
push 1
pop eax
jmp 0x405ffa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406ad0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x554
push ebx
push esi
lea eax, [ebp - 0x144]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x406c47
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test byte [ebp - 0x144], 0x10
jne 0x406b83
push dword [ebp + 8]
lea eax, [ebp - 0x554]
push ebx
push eax
call fcn.00403bc9
push dword [ebp + 0x10]
lea eax, [ebp - 0x34c]
push eax
call fcn.0041bb30
add esp, 0x14
cmp byte [esi], bl
je 0x406b3b
lea eax, [ebp - 0x34c]
push esi
push eax
call fcn.00405453
pop ecx
pop ecx
lea eax, [ebp - 0x34c]
push eax
call fcn.00405d65
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x554]
push eax
call fcn.00405453
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x34c]
push eax
call fcn.00405453
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x554]
push eax
call fcn.00404d6e
add esp, 0x1c
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x406c47
call fcn.00404d12
cmp dword [0x42ab7c], ebx
jne 0x406c43
test byte [ebp - 0x144], 0x10
jne 0x406c34
push dword [ebp + 8]
lea eax, [ebp - 0x554]
push ebx
push eax
call fcn.00403bc9
push dword [ebp + 0x10]
lea eax, [ebp - 0x34c]
push eax
call fcn.0041bb30
add esp, 0x14
cmp byte [esi], bl
je 0x406bec
lea eax, [ebp - 0x34c]
push esi
push eax
call fcn.00405453
pop ecx
pop ecx
lea eax, [ebp - 0x34c]
push eax
call fcn.00405d65
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x554]
push eax
call fcn.00405453
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x34c]
push eax
call fcn.00405453
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x554]
push eax
call fcn.00404d6e
add esp, 0x1c
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 4]
jmp 0x406b93
xor eax, eax
jmp 0x406c4a
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406c4f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push esi
lea eax, [ebp - 0x140]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x406d1d
test byte [ebp - 0x140], 0x10
jne 0x406cb1
push dword [ebp + 8]
lea eax, [ebp - 0x348]
push 0
push eax
call fcn.00403bc9
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x348]
push eax
call fcn.00405453
lea eax, [ebp - 0x348]
push eax
call fcn.0041c055
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x140]
push eax
push edi
call esi
test eax, eax
je 0x406d1d
call fcn.00404d12
cmp dword [0x42ab7c], 0
jne 0x406d19
test byte [ebp - 0x140], 0x10
jne 0x406d0f
push dword [ebp + 8]
lea eax, [ebp - 0x348]
push 0
push eax
call fcn.00403bc9
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x348]
push eax
call fcn.00405453
lea eax, [ebp - 0x348]
push eax
call fcn.0041c055
add esp, 0x18
lea eax, [ebp - 0x140]
push eax
push edi
jmp 0x406cbf
xor eax, eax
jmp 0x406d20
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x407b32
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x407b9f
lea eax, [ebp - 0x1c]
push esi
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x407b8a
cmp dword [ebp - 0x18], 1
je 0x407b90
push dword [ebp - 4]
mov esi, dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x407b90
cmp esi, dword [ebp - 8]
jae 0x407b90
jmp 0x407b62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
leave
ret
Function at 0x409eeb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 0x20]
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetClientRect]
push str.300
push str.GBLUE256
push dword [0x42ea04]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
xor ebx, ebx
cmp eax, ebx
je 0x40a061
push eax
push dword [0x42ea04]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x40a061
push esi
push eax
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x40a057
cmp dword [eax + 0x2e], ebx
lea esi, [eax + 0xe]
jne 0x409f5e
push esi
call fcn.00409e71
movzx eax, ax
mov dword [esi + 0x20], eax
push 0x404
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40a057
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
cmp edi, ebx
je 0x40a04d
mov word [edi], 0x300
mov ax, word [esi + 0x20]
mov word [edi + 2], ax
cmp dword [esi + 0x20], ebx
mov dword [ebp - 4], ebx
jbe 0x409fc7
lea ecx, [edi + 5]
lea edx, [esi + 0x29]
mov al, byte [edx + 1]
inc dword [ebp - 4]
mov byte [ecx - 1], al
mov al, byte [edx]
mov byte [ecx], al
mov al, byte [edx - 1]
mov byte [ecx + 1], al
mov eax, dword [ebp - 4]
mov byte [ecx + 2], bl
add edx, 4
add ecx, 4
cmp eax, dword [esi + 0x20]
jb 0x409fa3
push edi
call dword [sym.imp.GDI32.dll_CreatePalette]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x40a044
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi]
lea edi, [ecx + eax*4]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 8]
add edi, esi
cmp ecx, eax
mov dword [ebp - 4], eax
jl 0x40a006
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x18], ebx
jle 0x40a03b
mov eax, dword [esi + 4]
push 0xcc0020
push ebx
push esi
push edi
push dword [esi + 8]
push eax
push ebx
push ebx
push dword [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov eax, dword [esi + 4]
add dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x18]
jl 0x40a00e
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop ebx
leave
ret
Function at 0x40a346
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 0x10]
push edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetClientRect]
push str.300
push str.GBLUE
push dword [0x42ea04]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
xor edi, edi
cmp eax, edi
je 0x40a3d6
push eax
push dword [0x42ea04]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x40a3d6
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
je 0x40a3cf
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0xe]
sub ecx, dword [ebp - 0xc]
add eax, 0xe
push esi
add edx, eax
mov esi, dword [eax + 8]
cmp esi, ecx
jl 0x40a3ad
mov ecx, esi
push 0xcc0020
push edi
push eax
push edx
push esi
push dword [eax + 4]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push edi
push edi
push ecx
push eax
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_StretchDIBits]
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebx
leave
ret
Function at 0x40d04f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
push ebx
push esi
push edi
mov edi, dword [0x42b518]
test edi, edi
je 0x40d0f6
lea eax, [ebp - 0x460]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x7c
push edi
call fcn.0041c440
pop ecx
pop ecx
mov ebx, eax
test ebx, ebx
je 0x40d0f6
mov esi, ebx
lea eax, [ebp - 0x35c]
sub esi, edi
push esi
push edi
push eax
call fcn.0041bd20
and byte [ebp + esi - 0x35c], 0
lea eax, [ebp - 0x35c]
push 0x3b
push eax
call fcn.0041c440
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40d0f2
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0041bb30
and byte [esi], 0
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040549b
lea edi, [ebx + 1]
push 0x7c
push edi
call fcn.0041c440
add esp, 0x18
jmp 0x40d085
xor eax, eax
jmp 0x40d0f9
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d963
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0x14]
call fcn.0041c080
mov esi, eax
pop ecx
lea eax, [ebp - 4]
inc esi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40d9aa
push esi
push dword [ebp + 0x14]
push 1
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40d9ac
xor eax, eax
pop esi
leave
ret

Function at 0x40d9af
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0x14]
call fcn.0041c080
mov esi, eax
pop ecx
lea eax, [ebp - 4]
inc esi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40d9f6
push esi
push dword [ebp + 0x14]
push 2
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40d9f8
xor eax, eax
pop esi
leave
ret

Function at 0x40d9fb
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x40da57
push dword [ebp + 0xc]
call fcn.0041c080
test eax, eax
pop ecx
je 0x40da57
push dword [ebp + 0x10]
call fcn.0041c080
test eax, eax
pop ecx
je 0x40da57
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40da57
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
xor eax, eax
leave
ret