joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a9a0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4634a0
push 0x42fc90
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x468004]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x7530
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 1
mov edi, dword [ebp + 8]
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
call ebx
test eax, eax
jne 0x40ab88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40aa5b
mov edx, dword [ebp - 0x1c]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x40aa5b
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push esi
push 1
push edi
call ebx
test eax, eax
jne 0x40aa6f
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x468004
call fcn.0042fe1c
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 0x24], ebx
cmp ebx, dword [ebp - 0x20]
jae 0x40ab7c
lea ecx, [ebx + ebx*8]
lea esi, [esi + ecx*4]
mov ecx, 9
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
push 0x24
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x40aacd
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x468004
call fcn.0042fe1c
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov dword [ebp - 4], edi
lea edx, [ebp - 0x58]
push edx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40aa48
lea esp, [esp]
cmp dword [ebp - 0x54], edi
je 0x40ab50
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x1c]
push edx
push 0x24
lea eax, [ebp - 0x58]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40aaa6
cmp dword [ebp - 0x54], edi
je 0x40ab50
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
jbe 0x40aaf0
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x468004
call fcn.0042fe1c
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call fcn.0040ab74
add ebx, edi
mov dword [ebp - 0x24], ebx
mov esi, dword [ebp - 0x28]
jmp 0x40aa74
mov dword [ebp - 4], 0xfffffffe
call fcn.0040aba2
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b2a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x174
mov eax, dword [0x468004]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
xor ebx, ebx
push 0xff
lea eax, [esp + 0x7d]
push ebx
push eax
mov byte [esp + 0x84], bl
call fcn.0042eb30
push 0x31
lea ecx, [esp + 0x55]
push ebx
push ecx
mov byte [esp + 0x5c], bl
call fcn.0042eb30
push 0x38
lea edx, [esp + 0x28]
push ebx
push edx
mov dword [esp + 0x2c], ebx
call fcn.0042eb30
add esp, 0x24
cmp dword [0x470294], ebx
je 0x40b308
push str.C:Windows_sysnative_taskkill.exe
lea eax, [esp + 0x7c]
push eax
jmp 0x40b312
push str.C:WindowsSystem32_taskkill.exe
lea ecx, [esp + 0x7c]
push ecx
call fcn.0042ecc6
add esp, 8
lea edx, [esp + 0x44]
push str._F__IM_explorer.exe
push edx
call fcn.0042ecc6
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
add esp, 8
lea edx, [esp + 8]
lea eax, [esp + 0x78]
lea ecx, [esp + 0x44]
push edx
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x440
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], str.open
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call esi
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x100
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.0042eb30
lea ecx, [esp + 0x84]
push str.c:windowsexplorer.exe
push ecx
call fcn.0042ecc6
add esp, 0x14
lea eax, [esp + 8]
lea edx, [esp + 0x78]
push eax
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x440
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], str.open
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0x45b5a5
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call esi
mov ecx, dword [esp + 0x178]
pop esi
pop ebx
xor ecx, esp
call fcn.0042eb15
add esp, 0x174
ret

Function at 0x40b590
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x34
mov eax, dword [0x468004]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov ebp, dword [esp + 0x4c]
push esi
mov esi, dword [esp + 0x44]
push edi
mov edi, dword [esp + 0x4c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40b635
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b635
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x30]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x40b635
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x40b635
movzx ecx, word [esp + 0x1e]
movzx edx, word [esp + 0x1a]
movzx eax, word [esp + 0x18]
mov dword [edi], ecx
mov dword [ebx], edx
mov dword [ebp], eax
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042eb15
add esp, 0x34
ret
Function at 0x40b6d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
push ecx
push edx
mov dword [esp + 0x10], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40b728
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push eax
push 0
push 0
mov byte [eax], 0
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
mov edx, dword [esp + 0x18]
mov byte [edx], 0
add esp, 8
ret

Function at 0x40c140
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x468004]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xf0000000
xor ebp, ebp
push 1
xor eax, eax
push ebp
push ebp
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
mov byte [esp + 0x34], 0
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov word [esp + 0x41], ax
mov byte [esp + 0x43], al
mov dword [esp + 0x30], 0x10
mov byte [esp + 0x24], al
mov word [esp + 0x25], ax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push ebp
push ebp
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
push ebp
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0x14]
push ebp
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
movzx eax, byte [esp + ebp + 0x20]
push eax
lea ecx, [esp + 0x14]
push str._.2X
push ecx
call fcn.0042ecc6
lea eax, [esp + 0x1c]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c204
mov edi, ebx
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40c212
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebp
cmp ebp, 0x10
rep movsb byte es:[edi], byte [esi]
jl 0x40c1e6
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x18]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042eb15
add esp, 0x24
ret
Function at 0x40c260
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x65c
mov eax, dword [0x468004]
xor eax, esp
mov dword [esp + 0x658], eax
push 0x103
lea eax, [esp + 0x59]
push 0
push eax
mov byte [esp + 0x60], 0
call fcn.0042eb30
push 0x3ff
lea ecx, [esp + 0x269]
push 0
push ecx
mov byte [esp + 0x270], 0
call fcn.0042eb30
lea edx, [esp + 0x6c]
push edx
call fcn.004075a0
lea eax, [esp + 0x70]
push eax
mov ecx, eax
push str._sKILLALL.EXE
push ecx
call fcn.0042ecc6
mov edx, dword [str._keepgood]
mov eax, dword [0x45c4d8]
mov cx, word [0x45c4dc]
push 0xff
mov dword [esp + 0x284], edx
lea edx, [esp + 0x185]
push 0
push edx
mov dword [esp + 0x290], eax
mov word [esp + 0x294], cx
call fcn.0042eb30
push 0x44
lea eax, [esp + 0x48]
push 0
push eax
mov byte [esp + 0x198], 0
call fcn.0042eb30
add esp, 0x40
xor eax, eax
lea ecx, [esp + 0x258]
push ecx
lea edx, [esp + 0x58]
push edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x160]
push str._s__s
push eax
mov dword [esp + 0x20], 0x44
call fcn.0042ecc6
add esp, 0x10
lea ecx, [esp]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x178]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40c39e
push str.failed_to_fire_killall_switch
call fcn.004073f0
add esp, 4
mov ecx, dword [esp + 0x658]
xor ecx, esp
call fcn.0042eb15
add esp, 0x65c
ret
push esi
push str._fired_killall_switch_succssfully
call fcn.004073f0
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
mov ecx, dword [esp + 0x65c]
pop esi
xor ecx, esp
call fcn.0042eb15
add esp, 0x65c
ret

Function at 0x40c710
Capabilities:
Get session information

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov dword [esp], 0
mov dword [esp + 4], 0
cmp eax, 0xffffffff
je 0x40c77d
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 4]
push edx
push 0x10
push eax
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
mov eax, dword [esp]
je 0x40c773
movsx eax, byte [eax]
sub eax, 0
je 0x40c76a
sub eax, 1
je 0x40c761
sub eax, 1
jne 0x40c77d
mov eax, 3
add esp, 8
ret
mov eax, 2
add esp, 8
ret
mov eax, 1
add esp, 8
ret
test eax, eax
je 0x40c77d
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, 4
add esp, 8
ret
Function at 0x40c960
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x1f8
mov eax, dword [0x468004]
xor eax, esp
mov dword [esp + 0x1f4], eax
push 0x124
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0
call fcn.0042eb30
mov eax, dword [esp + 0x208]
lea edx, [esp + 0x138]
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40c9a0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40ca85
mov edi, 1
call fcn.004077c0
push 0
push 2
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0xc]
mov ebx, eax
push ecx
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40cb06
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x1a0]
push 0x45c434
push eax
call fcn.0042ecc6
add esp, 0xc
test edi, edi
jne 0x40ca8c
lea ecx, [esp + 0x34]
push 0x5c
push ecx
call fcn.0042f060
mov esi, eax
add esp, 8
test esi, esi
je 0x40ca26
inc esi
lea edx, [esp + 0x138]
push esi
push edx
call fcn.0045315b
add esp, 8
test eax, eax
je 0x40cad5
lea eax, [esp + 0x19c]
push eax
lea ecx, [esp + 0x13c]
push ecx
call fcn.0045315b
add esp, 8
test eax, eax
je 0x40cad5
lea edx, [esp + 0x138]
push edx
push esi
call fcn.0042f090
add esp, 8
test eax, eax
jne 0x40cad5
lea eax, [esp + 0x10]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40c9f2
jmp 0x40cafe
xor edi, edi
jmp 0x40c9c7
cmp edi, 1
jne 0x40ca26
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x13c]
push eax
call fcn.0045315b
add esp, 8
test eax, eax
je 0x40cad5
lea ecx, [esp + 0x19c]
push ecx
lea edx, [esp + 0x13c]
push edx
call fcn.0045315b
add esp, 8
test eax, eax
je 0x40cad5
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x38]
push ecx
jmp 0x40ca64
mov ecx, dword [esp + 0x18]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40cafe
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x40cafe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [esp + 0x1fc]
pop edi
pop ebx
xor ecx, esp
call fcn.0042eb15
add esp, 0x1f8
ret
Function at 0x40cb20
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4634c8
push 0x42fc90
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x468004]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x3e8
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
xor ebx, ebx
push ebx
push ebx
push 1
mov edx, dword [0x469cc0]
push edx
mov edi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
call edi
test eax, eax
jne 0x40ccf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40cbe0
mov eax, dword [ebp - 0x1c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
je 0x40cbe0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push esi
push 1
mov ecx, dword [0x469cc0]
push ecx
call edi
test eax, eax
jne 0x40cbf4
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x468004
call fcn.0042fe1c
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x24], ebx
cmp ebx, dword [ebp - 0x20]
jae 0x40cce4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebx + ebx*8]
lea esi, [esi + eax*4]
mov ecx, 9
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
push 0x24
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [0x46f5d0]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x40cc91
mov edi, 1
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x58]
push ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40cbcd
cmp dword [ebp - 0x54], edi
je 0x40ccb8
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x1c]
push eax
push 0x24
lea ecx, [ebp - 0x58]
push ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40cbcd
cmp dword [ebp - 0x54], edi
je 0x40ccb8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
jbe 0x40cc53
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x468004
call fcn.0042fe1c
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call fcn.0040ccdc
add ebx, edi
mov dword [ebp - 0x24], ebx
mov esi, dword [ebp - 0x28]
jmp 0x40cbf7
mov dword [ebp - 4], 0xfffffffe
call fcn.0040cd0a
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cd20
Capabilities:
Query service status

Disassembly:
sub esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [0x46f5d0], eax
test eax, eax
je 0x40cd64
push 0x2c
push 0x467270
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [0x469cc0], eax
test eax, eax
jne 0x40cd6a
mov eax, dword [0x46f5d0]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
add esp, 0x28
ret
lea ecx, [esp]
push ecx
push 0x24
lea edx, [esp + 0xc]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov eax, 1
add esp, 0x28
ret

Function at 0x40d140
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
je 0x40d169
mov edx, dword [esp + 8]
push esi
nop
movsx esi, byte [edx]
xor esi, 0x6521458a
add eax, esi
mov esi, eax
dec ecx
rol esi, 0xd
sub eax, esi
inc edx
test ecx, ecx
jne 0x40d150
pop esi
ret

Function at 0x40e030
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10c
mov eax, dword [0x468004]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
lea eax, [esp + 8]
xor ebx, ebx
push eax
mov byte [esp + 0xc], bl
call fcn.004075a0
lea eax, [esp + 0xc]
add esp, 4
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e060
sub eax, edx
jne 0x40e083
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042eb15
add esp, 0x10c
ret
push str.zvscan
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
cmp eax, ebx
je 0x40e099
mov byte [eax], bl
lea eax, [esp + 8]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40e0a0
mov edx, dword [str._npvcapi.dll]
mov ecx, dword [0x45c80c]
mov dword [eax], edx
mov edx, dword [0x45c810]
mov dword [eax + 4], ecx
mov cl, byte [0x45c814]
mov dword [eax + 8], edx
lea edx, [esp + 8]
push edx
mov byte [eax + 0xc], cl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40e06b
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
jne 0x40e105
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042eb15
add esp, 0x10c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetMD5
push esi
mov dword [0x469868], ebx
call edi
push str.GetDSRwithStatus
push esi
mov dword [0x469868], eax
call edi
push str.GetBufferMD5
push esi
mov dword [0x470168], eax
mov dword [0x46f970], ebx
call edi
push str.IsTrustedInstallerExists
push esi
mov dword [0x46f970], eax
mov dword [0x47016c], ebx
call edi
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebx
mov dword [0x47016c], eax
xor ecx, esp
mov eax, 1
call fcn.0042eb15
add esp, 0x10c
ret
Function at 0x40e170
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10c
mov eax, dword [0x468004]
xor eax, esp
mov dword [esp + 0x108], eax
lea eax, [esp + 4]
push eax
mov byte [esp + 8], 0
call fcn.004075a0
lea eax, [esp + 8]
add esp, 4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e1a0
sub eax, edx
jne 0x40e1c2
xor eax, eax
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042eb15
add esp, 0x10c
ret
lea eax, [esp + 4]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40e1c7
mov ecx, dword [str.MD5RGN.DLL]
mov edx, dword [0x45c82c]
mov dword [eax], ecx
mov ecx, dword [0x45c830]
mov dword [eax + 4], edx
lea edx, [esp + 4]
push edx
mov dword [eax + 8], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40e1ab
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40e1ab
push str.GetRMd5
push eax
mov dword [0x470170], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x108]
mov dword [0x470170], eax
xor ecx, esp
mov eax, 1
call fcn.0042eb15
add esp, 0x10c
ret

Function at 0x40e240
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10c
mov eax, dword [0x468004]
xor eax, esp
mov dword [esp + 0x108], eax
lea eax, [esp + 4]
push eax
mov byte [esp + 8], 0
call fcn.004075a0
lea eax, [esp + 8]
add esp, 4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e270
sub eax, edx
jne 0x40e292
xor eax, eax
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042eb15
add esp, 0x10c
ret
lea eax, [esp + 4]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40e297
mov ecx, dword [str.ZVCMD64.DLL]
mov edx, dword [0x45c858]
mov dword [eax], ecx
mov ecx, dword [0x45c85c]
mov dword [eax + 4], edx
mov dl, byte [0x45c860]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40e27b
push esi
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40e2f9
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042eb15
add esp, 0x10c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getCommandLine
push esi
mov dword [0x46a1e4], 0
call edi
push str.GetProcParam
push esi
mov dword [0x46a1e4], eax
mov dword [0x46fba0], 0
call edi
mov ecx, dword [esp + 0x110]
pop edi
pop esi
mov dword [0x46fba0], eax
xor ecx, esp
mov eax, 1
call fcn.0042eb15
add esp, 0x10c
ret