joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40373c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ecx, ecx
push esi
push edi
mov byte [ebp - 8], cl
xor eax, eax
lea edi, [ebp - 7]
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp byte [ebp - 8], cl
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
jne 0x4037ed
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
mov esi, 0x20019
push esi
push ecx
mov ebx, str.SOFTWAREAdobeAdobe_Acrobat9.0Language
push ebx
push 0x80000001
call edi
test eax, eax
jne 0x4037af
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x407008
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 8], 0
jne 0x4037ed
lea eax, [ebp - 4]
push eax
push esi
push 0
push ebx
push 0x80000002
call edi
test eax, eax
jne 0x4037ed
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x407008
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
xor esi, esi
mov edi, 0x4093a0
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.MSVCR80.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x403812
inc esi
add edi, 8
cmp esi, 0x1d
jb 0x4037f6
jmp 0x403814
mov bl, 1
neg bl
lea ecx, [ebp - 0x14]
sbb ebx, ebx
and ebx, esi
push dword [ebx*8 + 0x4093a4]
call fcn.004036fb
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402e50
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4038a6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4094b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x244
xor esi, esi
lea eax, [ebp - 0x248]
push esi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edi, 0x122
push edi
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4038f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00403a17
leave
ret
push str.kernel32.dll
lea eax, [ebp - 0x248]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x4038e9
push str.HeapSetInformation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x40393d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x4038eb
push esi
push esi
push 1
push esi
call eax
mov esi, eax
neg esi
sbb esi, esi
neg esi
jmp 0x403932

Function at 0x404054
Capabilities:
Encode data using xor

Disassembly:
inc esi
push 0xa602fb
mov al, 0x42
mov ecx, edi
Function at 0x4047d2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4094b4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00404711
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x404821
cmp dword [ebp - 0x1c], 5
jb 0x404839
jmp 0x404835
cmp dword [ebp - 0x10], 1
jne 0x404839
cmp dword [ebp - 0x1c], 4
ja 0x404835
jne 0x404839
cmp dword [ebp - 0x18], 0
jbe 0x404839
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4071a4
call fcn.004045c4
test eax, eax
jge 0x40485a
mov byte [0x4094fc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00403a17
add ebp, 0x78
leave
ret
Function at 0x401290
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
mov byte [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
mov dword [ebp - 0x2c], 0
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], 0xc
lea edx, [ebp - 0x14]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 1
push 1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov edx, dword [ebp - 0x38]
mov byte [edx + 5], 0
mov dword [ebp - 0x30], 0
jmp 0x40130a
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 5
jge 0x4013ac
push 0
push 0x80
push 3
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0xc0000000
push 0x42a5c8
call dword [0x434f34]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40133e
jmp 0x4013ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 5
jne 0x40135b
mov edx, dword [ebp - 0x38]
mov byte [edx + 4], 1
xor al, al
jmp 0x4013f1
cmp dword [ebp - 0x34], 2
jne 0x40136b
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401301
cmp dword [ebp - 0x34], 0xe7
je 0x401378
xor al, al
jmp 0x4013f1
push 0
push 0x42a5c8
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x4013a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 2
je 0x40139e
cmp dword [ebp - 0x34], 0x79
jne 0x4013a3
jmp 0x401301
xor al, al
jmp 0x4013f1
jmp 0x401301
mov dword [ebp - 0x18], 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x4013e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [0x434f44]
xor al, al
jmp 0x4013f1
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x38]
mov byte [edx + 5], 1
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x401490
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4014af
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x4014b3
xor al, al
jmp 0x4014b5
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x401920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 5], 0
mov dword [ebp - 0xc], 4
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
lea ecx, [ebp - 0x10]
push ecx
push 0x42a644
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40198b
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x42a684
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp dword [ebp - 0x14], 0
sete cl
mov byte [ebp - 5], cl
mov edx, dword [ebp + 0xc]
mov byte [edx], 1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x4019a0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push str.SystemCurrentControlSetServicesNvStUSBParametersVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4019f4
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0
push 0x42a6cc
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp dword [ebp - 0xc], 0
sete cl
mov byte [ebp - 1], cl
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x402af0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x433b34]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 1], 0
push 0x94
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.00414300
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x402b53
cmp dword [ebp - 0x9c], 6
jb 0x402b53
cmp dword [ebp - 0x98], 2
jb 0x402b53
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00413572
mov esp, ebp
pop ebp
ret
Function at 0x402ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 1], 0
push 0
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402d7a
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402d7a
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
call fcn.00402ab0
add esp, 4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0
je 0x402d70
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
call fcn.00413f90
add esp, 0xc
mov byte [ebp - 1], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x402e60
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402e8f
cmp dword [ebp - 4], 0
je 0x402e8b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402ecf
cmp dword [ebp - 4], 0
jne 0x402e99
xor eax, eax
jmp 0x402ecf
mov edx, dword [ebp + 8]
push edx
push str.SeDebugPrivilege
mov eax, dword [ebp - 4]
push eax
call fcn.00402d90
add esp, 0xc
test eax, eax
jne 0x402ec0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402ecf
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x403150
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x433b34]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x250]
push eax
push 0x42a768
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x5c
lea ecx, [ebp - 0x250]
push ecx
call fcn.00405c90
add esp, 8
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x40320e
mov edx, dword [ebp - 0x254]
mov byte [edx], 0
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0xffffffff
jne 0x4031d7
push 0
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x4031e4
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x250]
push ecx
call fcn.00402ee0
add esp, 4
call fcn.00402af0
movzx edx, al
test edx, edx
je 0x40320e
lea eax, [ebp - 0x250]
push eax
call fcn.004030a0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413572
mov esp, ebp
pop ebp
ret
Function at 0x4034f0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1270
call fcn.004147e0
mov eax, dword [0x433b34]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 1], 0
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.INFOEM.INF
lea ecx, [ebp - 0x110]
push ecx
call fcn.00413b10
add esp, 8
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
je 0x403643
lea ecx, [ebp - 0x258]
push ecx
push 2
push 0
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x403584
jmp 0x403612
lea eax, [ebp - 0x1270]
push eax
push str.CatalogFile
push str.Version
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x403605
push 0
push 0x1000
lea edx, [ebp - 0x1260]
push edx
push 1
lea eax, [ebp - 0x1270]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x403605
push str.nvstusb.cat
lea ecx, [ebp - 0x1260]
push ecx
call fcn.00405cb0
add esp, 8
test eax, eax
jne 0x403605
lea edx, [ebp - 0x1270]
push edx
push str.nvstusb.sys
push str.SourceDisksFiles.x86
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x403605
mov byte [ebp - 1], 1
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x403636
lea eax, [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403558
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00413572
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x2021f
push 0
push 0
push 0
push 0x42a84c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40379e
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 4
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x42a884
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403794
cmp dword [ebp - 0x10], 0
je 0x403794
push str._install2
call fcn.00403660
add esp, 4
push str.FinishLinkInstall
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x4037b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.004034f0
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
test eax, eax
je 0x40383b
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0x2021f
push 0
push 0
push 0
push str.SOFTWARENVIDIA_CorporationGlobalStereo3DPersistent
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40383b
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push str.3D_Vision
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403831
cmp dword [ebp - 0x10], 0
jne 0x403831
push str._update
call fcn.00403660
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x4041c0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x433b34]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x130], 0
push 0x124
push 0
lea eax, [ebp - 0x12c]
push eax
call fcn.00414300
add esp, 0xc
mov byte [ebp - 0x135], 0
mov byte [ebp - 0x135], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x40421e
jmp 0x4042ed
mov dword [ebp - 0x130], 0x128
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x134]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4042d1
push str.SDManifoldsComEx.exe
lea eax, [ebp - 0x10c]
push eax
call fcn.00414cc9
add esp, 8
test eax, eax
jne 0x4042b6
mov ecx, dword [ebp - 0x128]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x13c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x13c], 0
je 0x4042b6
push 0
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x135], 1
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x134]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x404243
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, byte [ebp - 0x135]
test ecx, ecx
jne 0x4041fa
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413572
mov esp, ebp
pop ebp
ret
Function at 0x404300
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x434efc], eax
mov ecx, dword [ebp + 0xc]
mov dword [0x434f00], ecx
mov edx, dword [ebp + 8]
mov dword [0x434f10], edx
mov eax, dword [ebp + 0x10]
mov dword [0x434f14], eax
mov ecx, 0x434f98
call fcn.00405d60
mov ecx, 0x434f98
call fcn.00405d60
push 0x434f18
push 0
push 0x434efc
push 0x404460
push 0
push 0
call fcn.00414e1c
add esp, 0x18
mov dword [0x434f04], eax
push 0x434f0c
push 0
push 0x434f10
push 0x4043b0
push 0
push 0
call fcn.00414e1c
add esp, 0x18
mov dword [0x434f08], eax
cmp dword [0x434f04], 0
je 0x404399
cmp dword [0x434f08], 0
je 0x404399
mov dword [ebp - 4], 1
jmp 0x4043a0
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x404cc0
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
cmp eax, dword [ebp + 0xc]
je 0x404d89
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
xor edx, edx
mov ecx, 0xa
div ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3e8
jae 0x404d0e
mov dword [ebp - 8], 0x3e8
jmp 0x404d1e
cmp dword [ebp - 8], 0x2710
jbe 0x404d1e
mov dword [ebp - 8], 0x2710
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x404d41
xor al, al
jmp 0x404d8b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x404d50
mov al, 1
jmp 0x404d8b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
cmp eax, dword [ebp - 4]
jbe 0x404d6f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 4], edx
jmp 0x404d84
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x18]
jbe 0x404d84
xor al, al
jmp 0x404d8b
jmp 0x404cdb
mov al, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x404da0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x404dc2
xor eax, eax
jmp 0x404df2
cmp dword [ebp - 0x18], 2
jne 0x404de5
push 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.00404cc0
mov byte [ebp - 0x1d], al
movzx ecx, byte [ebp - 0x1d]
test ecx, ecx
jne 0x404de5
xor eax, eax
jmp 0x404df2
xor eax, eax
cmp dword [ebp - 0x18], 4
setne al
lea eax, [eax + eax + 1]
mov esp, ebp
pop ebp
ret
Function at 0x404e00
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x404e25
xor eax, eax
jmp 0x404ed1
cmp dword [ebp - 0x18], 2
jne 0x404e4d
push 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.00404cc0
mov byte [ebp - 0x1d], al
movzx ecx, byte [ebp - 0x1d]
test ecx, ecx
jne 0x404e4b
xor eax, eax
jmp 0x404ed1
jmp 0x404e70
cmp dword [ebp - 0x18], 3
jne 0x404e70
push 1
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.00404cc0
mov byte [ebp - 0x1e], al
movzx eax, byte [ebp - 0x1e]
test eax, eax
jne 0x404e70
xor eax, eax
jmp 0x404ed1
cmp dword [ebp - 0x18], 1
jne 0x404ec5
push 0
push 0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x404e8f
xor eax, eax
jmp 0x404ed1
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x404ea8
xor eax, eax
jmp 0x404ed1
push 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.00404cc0
mov byte [ebp - 0x1f], al
movzx ecx, byte [ebp - 0x1f]
test ecx, ecx
jne 0x404ec5
xor eax, eax
jmp 0x404ed1
xor eax, eax
cmp dword [ebp - 0x18], 4
setne al
add eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x404ee0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x404f05
xor eax, eax
jmp 0x404f9f
cmp dword [ebp - 0x18], 2
jne 0x404f2a
push 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.00404cc0
mov byte [ebp - 0x1d], al
movzx ecx, byte [ebp - 0x1d]
test ecx, ecx
jne 0x404f28
xor eax, eax
jmp 0x404f9f
jmp 0x404f4d
cmp dword [ebp - 0x18], 3
jne 0x404f4d
push 1
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.00404cc0
mov byte [ebp - 0x1e], al
movzx eax, byte [ebp - 0x1e]
test eax, eax
jne 0x404f4d
xor eax, eax
jmp 0x404f9f
cmp dword [ebp - 0x18], 4
jne 0x404f93
mov ecx, dword [ebp - 0x14]
and ecx, 1
je 0x404f93
lea edx, [ebp - 0x1c]
push edx
push 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x404f76
xor eax, eax
jmp 0x404f9f
push 1
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.00404cc0
mov byte [ebp - 0x1f], al
movzx eax, byte [ebp - 0x1f]
test eax, eax
jne 0x404f93
xor eax, eax
jmp 0x404f9f
xor eax, eax
cmp dword [ebp - 0x18], 1
setne al
add eax, 3
mov esp, ebp
pop ebp
ret