joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008b9e7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1008ba84
push ebx
push esi
call fcn.1008b9b0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1008a123
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1008ba31
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008ba83
push edi
push eax
call fcn.10086894
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1008ba51
call fcn.100850fe
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008ba82
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1008a123
add esp, 0x20
test eax, eax
jne 0x1008ba70
push edi
call fcn.100850fe
jmp 0x1008ba78
push ebx
call fcn.100850fe
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1008ba87
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1008ba98
pop esi
ret
push ebx
push edi
push esi
call fcn.1008b9b0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10086894
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1008bac0
push ebx
push esi
push edi
call fcn.10072b60
add esp, 0xc
push 0
call fcn.100850fe
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1008be84
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1008bad5
Function at 0x10093031
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10092fad
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100931a9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100931a9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10093158
jg 0x1009308a
test eax, eax
je 0x1009314e
push 1
push 0x1000
call fcn.1008819f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100930b0
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10093145
push 0x8000
push ebx
call fcn.10092ede
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100930dc
jg 0x100930d7
cmp ecx, 0x1000
jb 0x100930dc
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1008f29f
add esp, 0x10
cmp eax, 0xffffffff
je 0x10093121
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100930d7
jl 0x10093108
test ecx, ecx
jne 0x100930c9
push dword [ebp - 0xc]
push ebx
call fcn.10092ede
push esi
call fcn.100850fe
add esp, 0xc
xor edi, edi
jmp 0x100931ba
cmp byte [edi + 0x24], 0
je 0x10093138
cmp dword [edi + 0x20], 5
jne 0x10093138
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10093143
mov edi, dword [edi + 0x18]
jmp 0x10093145
xor edi, edi
push esi
call fcn.100850fe
pop ecx
jmp 0x100931ba
test ecx, ecx
jg 0x1009311a
jl 0x10093158
test eax, eax
jae 0x1009311a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10088438
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1009317b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1009311a
jmp 0x100931b2
push ebx
call fcn.1008e829
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1009311a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100931ba
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100931b7
mov edi, dword [edi + 0x18]
jmp 0x100931ba
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10088438
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10094e60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10094e8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10094e8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x2e104f8d
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x2813552e
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40136f
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x600
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x401501
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x1ff]
mov byte [ebp - 0x200], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x1fe
push 0x4081c4
lea eax, [ebp - 0x200]
push esi
push eax
call fcn.0040200e
lea eax, [ebp - 0x200]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x14
cmp eax, ebx
je 0x401501
xor ecx, ecx
xor edx, edx
cmp eax, ebx
jbe 0x401501
cmp byte [ebp + edx - 0x200], 0x5c
jne 0x4013e5
mov ecx, edx
inc edx
cmp edx, eax
jb 0x4013d9
cmp ecx, ebx
je 0x401501
lea edx, [ecx + 1]
cmp edx, eax
jae 0x401501
push str.ODSOLE70.dll
lea eax, [ebp - 0x200]
push esi
push eax
mov byte [ebp + ecx - 0x200], bl
call fcn.00401c17
lea eax, [ebp - 0x200]
push eax
call fcn.00405d3f
test al, al
pop ecx
jne 0x401431
push str.OLE_File_Already_Gone_n
jmp 0x40150d
lea eax, [ebp - 0x200]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401508
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x4014f1
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5ff]
mov byte [ebp - 0x600], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x200]
push eax
push str._s.bak
lea eax, [ebp - 0x600]
push 0x3fe
push eax
call fcn.0040200e
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0x10
lea eax, [ebp - 0x600]
push 9
push eax
lea eax, [ebp - 0x200]
push eax
call esi
test eax, eax
je 0x4014e4
mov edi, dword [sym.imp.MSVCRT.dll_printf]
push str.Move_OLE_File_Successfully_n
call edi
pop ecx
lea eax, [ebp - 0x600]
push 4
push ebx
push eax
call esi
test eax, eax
je 0x401501
push str.Delete_OLE_File_On_Reboot_n
call edi
jmp 0x401500
push str.Delete__Move_File_All_Failure_n
call dword [sym.imp.MSVCRT.dll_printf]
jmp 0x401500
call esi
push eax
push str.Fail_To_Delete_OLE_File__d__n
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push str.Delete_OLE_File_Successfully_n
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
mov al, 1
jmp 0x401503
Function at 0x40168b
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
push 5
push esi
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, esi
jne 0x4016af
xor eax, eax
jmp 0x40174a
push edi
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 3
push 0x30
push esi
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call edi
test eax, eax
jne 0x401705
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4016ec
cmp eax, 0xea
jne 0x40173f
push dword [ebp - 4]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x40173f
push dword [ebp - 4]
push esi
push dword [ebp - 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push 3
push 0x30
push esi
push ebx
call edi
test eax, eax
je 0x40173f
mov eax, dword [ebp - 0xc]
cmp eax, esi
jbe 0x40173f
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40174e
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and byte [ebp - 1], 0
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x401767
xor al, al
jmp 0x401822
push 0x12
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x4017df
push ebx
push esi
push 0x12
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
je 0x4017ec
mov eax, 0x3a98
or dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x34]
push 1
mov dword [ebp - 0xc], eax
pop ebx
lea eax, [ebp - 0x1c]
push eax
push 2
push esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 3
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
je 0x4017f8
push str.Set_Service_Auto_Restart_Successfully_n
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
mov byte [ebp - 1], bl
jmp 0x40180b
push str.Fail_To_Open_SC_Manager_n
call fcn.00401518
pop ecx
jmp 0x40181f
push str.Fail_To_Open_Service_n
call fcn.00401518
jmp 0x40180a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Set_Service_Auto_Restart_Failure.__d__n
call fcn.00401518
pop ecx
pop ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, edi
je 0x401818
push esi
call ebx
push dword [ebp - 8]
call ebx
pop esi
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret
Function at 0x401c57
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
and byte [ebp - 0x108], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
and byte [ebp - 0x20c], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
and byte [ebp - 0x310], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x30f]
rep stosd dword es:[edi], eax
and byte [ebp - 1], 0
cmp dword [ebp + 0xc], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x401e38
cmp dword [ebp + 0x10], 2
jb 0x401e38
push dword [ebp + 8]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x401e38
lea ecx, [ebp - 0x534]
push ebx
push ecx
push eax
mov dword [ebp - 0x534], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
jne 0x401cf7
xor bl, bl
jmp 0x401e2a
mov edi, dword [ebp + 0x14]
push esi
mov esi, 0x4081c4
mov ebx, 0x102
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x414]
push eax
push esi
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0040200e
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00401825
add esp, 0x24
test al, al
je 0x401d83
mov ax, word [edi]
mov byte [ebp - 1], 1
cmp ax, 1
je 0x401d9b
cmp ax, 2
jne 0x401d65
lea eax, [ebp - 0x108]
push eax
push esi
push ebx
lea eax, [ebp - 0x20c]
jmp 0x401d7a
cmp ax, 3
jne 0x401d83
lea eax, [ebp - 0x108]
push eax
push esi
push ebx
lea eax, [ebp - 0x310]
push eax
call fcn.0040200e
add esp, 0x10
lea eax, [ebp - 0x534]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_Module32Next
test eax, eax
je 0x401dc3
jmp 0x401d05
push 4
push 0
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memset
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push eax
push esi
lea eax, [ebx - 2]
push eax
push dword [ebp + 0xc]
call fcn.0040200e
add esp, 0x1c
jmp 0x401dc6
mov ebx, dword [ebp + 0x10]
cmp byte [ebp - 1], 0
je 0x401e26
mov ax, word [edi]
cmp ax, 2
je 0x401ddb
cmp ax, 3
jne 0x401e26
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x401e0a
lea eax, [ebp - 0x20c]
add ebx, 0xfffffffe
push eax
push esi
push ebx
push dword [ebp + 0xc]
call fcn.0040200e
add esp, 0x10
mov word [edi], 2
jmp 0x401e26
lea eax, [ebp - 0x310]
add ebx, 0xfffffffe
push eax
push esi
push ebx
push dword [ebp + 0xc]
call fcn.0040200e
add esp, 0x10
mov word [edi], 3
mov bl, byte [ebp - 1]
pop esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
jmp 0x401e3a
xor al, al
pop edi
leave
ret
Function at 0x4022f0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4071b0
push 0x406530
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x4c], 0x7530
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
xor ebx, ebx
push ebx
push ebx
push 1
push dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
call esi
test eax, eax
jne 0x40244a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x402421
push dword [ebp - 0x24]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x402421
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x24]
push eax
push 1
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x402414
mov dword [ebp - 0x50], ebx
cmp ebx, dword [ebp - 0x20]
jae 0x402441
lea eax, [ebx + ebx*8]
mov ecx, dword [ebp - 0x1c]
lea esi, [ecx + eax*4]
push 9
pop ecx
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
push 0x24
push dword [ebp - 0x48]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
je 0x402414
push 1
pop esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x7c]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x402414
cmp dword [ebp - 0x78], esi
je 0x402425
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
push 0x24
lea eax, [ebp - 0x7c]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x402414
cmp dword [ebp - 0x78], esi
je 0x402425
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x4c]
jbe 0x4023da
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
pop ecx
pop ecx
xor al, al
jmp 0x40244c
and dword [ebp - 4], 0
call fcn.00402437
inc ebx
jmp 0x402390
or dword [ebp - 4], 0xffffffff
call fcn.0040245b
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40246e
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebx
push esi
push 1
pop ebx
push ebx
push str.SeDebugPrivilege
call fcn.00405775
pop ecx
pop ecx
push dword [esp + 0xc]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4024b1
cmp esi, 0xffffffff
je 0x4024b1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4024a6
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x4024b3
xor al, al
pop esi
pop ebx
ret
Function at 0x4024b6
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and byte [ebp - 1], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], esi
je 0x4025ee
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x4025ee
push 0x2c
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x4025e5
push ebx
lea ecx, [ebp - 8]
push edi
push ecx
lea ecx, [ebp - 0x34]
push 0x24
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push eax
call esi
test eax, eax
je 0x4025da
cmp dword [ebp - 0x30], 1
je 0x4025d6
cmp dword [ebp - 0x30], 3
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x3e8
jne 0x402571
push ebx
call edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x34]
push 0x24
push eax
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402571
cmp dword [ebp - 0x30], 1
je 0x4025d6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xc]
cmp eax, 0x7530
ja 0x402571
cmp dword [ebp - 0x30], 3
je 0x40253d
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.004022f0
pop ecx
lea eax, [ebp - 0x34]
pop ecx
push eax
push 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4025da
cmp dword [ebp - 0x30], 1
je 0x4025da
push ebx
call edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x34]
push 0x24
push eax
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x4025da
cmp dword [ebp - 0x30], 1
je 0x4025d6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xc]
cmp eax, 0x7530
jbe 0x402591
cmp dword [ebp - 0x18], 0
jbe 0x4025da
push dword [ebp - 0x18]
call fcn.0040246e
pop ecx
jmp 0x402591
mov byte [ebp - 1], 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 1]
pop esi
leave
ret
Function at 0x4025f4
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and byte [ebp - 1], 0
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40276a
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x40276a
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x402761
push ebx
lea ecx, [ebp - 8]
push edi
push ecx
lea ecx, [ebp - 0x38]
push 0x24
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push eax
call esi
test eax, eax
je 0x402756
cmp dword [ebp - 0x34], 4
je 0x402752
cmp dword [ebp - 0x34], 1
je 0x402674
cmp dword [ebp - 0x34], 3
jne 0x402756
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [ebp - 0x34], 3
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
jne 0x4026d8
push 0x3e8
call ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x38]
push 0x24
push eax
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x4026d8
cmp dword [ebp - 0x34], 1
je 0x4026d8
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x24], eax
jbe 0x4026c8
call edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
jmp 0x4026d2
call edi
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x20]
ja 0x4026d8
cmp dword [ebp - 0x34], 3
je 0x402691
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x38]
push 0x24
push eax
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402756
cmp dword [ebp - 0x34], 1
jne 0x402756
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x402756
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x38]
push 0x24
push eax
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402756
call edi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x34], 2
jne 0x40274c
push 0x3e8
call ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x38]
push 0x24
push eax
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x40274c
call edi
sub eax, dword [ebp - 0xc]
cmp eax, 0xea60
jbe 0x40271e
cmp dword [ebp - 0x34], 4
jne 0x402756
mov byte [ebp - 1], 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 1]
pop esi
leave
ret
Function at 0x402791
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
je 0x402858
cmp dword [ebp + 0xc], esi
je 0x402858
push dword [ebp + 8]
call fcn.00405d3f
test al, al
pop ecx
je 0x402858
push dword [ebp + 0xc]
call fcn.00405d3f
test al, al
pop ecx
je 0x402858
mov edi, 0x80
push esi
push edi
push 3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 1
push 0x80000000
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402858
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x402810
and byte [ebp + 0xb], 0
jmp 0x40284c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push edi
push 3
push 0
push 2
push 0x40000000
push dword [ebp + 0xc]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402858
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x40280a
mov byte [ebp + 0xb], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xb]
jmp 0x40285a
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402982
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x4029c7
push edi
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x1ff]
mov byte [ebp - 0x200], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x200]
push 0x200
push eax
push esi
call fcn.0040289a
add esp, 0xc
test al, al
pop edi
jne 0x4029cb
xor al, al
jmp 0x402a1a
lea eax, [ebp - 0x200]
push eax
push str.BackUP_File___s_n
call dword [sym.imp.MSVCRT.dll_printf]
lea eax, [ebp - 0x200]
push eax
call fcn.00405d3f
add esp, 0xc
test al, al
je 0x4029f4
mov al, 1
jmp 0x402a1a
lea eax, [ebp - 0x200]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x402a18
lea eax, [ebp - 0x200]
mov bl, 1
push eax
push esi
call fcn.00402791
pop ecx
pop ecx
mov al, bl
pop esi
pop ebx
leave
ret