joyce8/EMBER2024-capa huggingface dataset:
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.0042ebd6
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.0042ea25
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.0042ea40
push 0x3ff
lea ecx, [esp + 0x269]
push 0
push ecx
mov byte [esp + 0x270], 0
call fcn.0042ea40
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.0042ebd6
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.0042ea40
push 0x44
lea eax, [esp + 0x48]
push 0
push eax
mov byte [esp + 0x198], 0
call fcn.0042ea40
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.0042ebd6
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.0042ea25
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.0042ea25
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.0042ea40
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.0042ebd6
add esp, 0xc
test edi, edi
jne 0x40ca8c
lea ecx, [esp + 0x34]
push 0x5c
push ecx
call fcn.0042ef70
mov esi, eax
add esp, 8
test esi, esi
je 0x40ca26
inc esi
lea edx, [esp + 0x138]
push esi
push edx
call fcn.0045306b
add esp, 8
test eax, eax
je 0x40cad5
lea eax, [esp + 0x19c]
push eax
lea ecx, [esp + 0x13c]
push ecx
call fcn.0045306b
add esp, 8
test eax, eax
je 0x40cad5
lea edx, [esp + 0x138]
push edx
push esi
call fcn.0042efa0
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.0045306b
add esp, 8
test eax, eax
je 0x40cad5
lea ecx, [esp + 0x19c]
push ecx
lea edx, [esp + 0x13c]
push edx
call fcn.0045306b
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.0042ea25
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 0x463488
push 0x42fba0
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.0042fd2c
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.0042fd2c
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 0x40e010
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 0x40e040
sub eax, edx
jne 0x40e063
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042ea25
add esp, 0x10c
ret
push str.zvscan
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
cmp eax, ebx
je 0x40e079
mov byte [eax], bl
lea eax, [esp + 8]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40e080
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 0x40e04b
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
jne 0x40e0e5
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042ea25
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.0042ea25
add esp, 0x10c
ret
Function at 0x40e150
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 0x40e180
sub eax, edx
jne 0x40e1a2
xor eax, eax
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042ea25
add esp, 0x10c
ret
lea eax, [esp + 4]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40e1a7
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 0x40e18b
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40e18b
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.0042ea25
add esp, 0x10c
ret

Function at 0x40e220
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 0x40e250
sub eax, edx
jne 0x40e272
xor eax, eax
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042ea25
add esp, 0x10c
ret
lea eax, [esp + 4]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40e277
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 0x40e25b
push esi
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40e2d9
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042ea25
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.0042ea25
add esp, 0x10c
ret
Function at 0x40e330
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 0x40e360
sub eax, edx
jne 0x40e382
xor eax, eax
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042ea25
add esp, 0x10c
ret
lea eax, [esp + 4]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40e387
mov ecx, dword [str.NPNETLIB.DLL]
mov edx, dword [0x45c87c]
mov dword [eax], ecx
mov ecx, dword [0x45c880]
mov dword [eax + 4], edx
mov dx, word [0x45c884]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40e36b
push esi
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40e3eb
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042ea25
add esp, 0x10c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.INIIR
push esi
mov dword [0x470174], 0
call edi
push str.StopRDPPort
push esi
mov dword [0x470174], eax
mov dword [0x470178], 0
call edi
mov ecx, dword [esp + 0x110]
pop edi
pop esi
mov dword [0x470178], eax
xor ecx, esp
mov eax, 1
call fcn.0042ea25
add esp, 0x10c
ret

Function at 0x40e440
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 0x40e470
sub eax, edx
jne 0x40e493
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042ea25
add esp, 0x10c
ret
lea eax, [esp + 8]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40e498
mov ecx, dword [str.APC_API.DLL]
mov edx, dword [0x45c8d0]
mov dword [eax], ecx
mov ecx, dword [0x45c8d4]
mov dword [eax + 4], edx
mov dl, byte [0x45c8d8]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40e47b
push esi
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
jne 0x40e4fd
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042ea25
add esp, 0x10c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AddtoSuspeciousLog
push esi
mov dword [0x47017c], ebx
call edi
push str.IsNPExpired
push esi
mov dword [0x47017c], eax
mov dword [0x470180], ebx
call edi
push str.IsFileGood
push esi
mov dword [0x470180], eax
mov dword [0x470184], ebx
call edi
push str.AddToImageFileExecution
push esi
mov dword [0x470184], eax
mov dword [0x470188], ebx
call edi
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebx
mov dword [0x470188], eax
xor ecx, esp
mov eax, 1
call fcn.0042ea25
add esp, 0x10c
ret
Function at 0x40e690
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0x160
mov eax, dword [0x468004]
xor eax, esp
mov dword [esp + 0x15c], eax
push 0x104
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.0042ea40
lea ecx, [esp + 0x64]
push ecx
call fcn.004075a0
lea eax, [esp + 0x68]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e6d0
sub eax, edx
je 0x40e7c1
lea edx, [esp + 0x58]
push edx
call fcn.004302ba
lea eax, [esp + 0x5c]
push str.ZVSCAN
push eax
call fcn.0042efa0
add esp, 0xc
test eax, eax
je 0x40e702
mov byte [eax], 0
lea eax, [esp + 0x58]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40e707
mov ecx, dword [str._td.exe]
mov edx, dword [0x45c908]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40e7c1
lea eax, [esp + 0x58]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40e738
mov ecx, dword [str._crypt]
mov dx, word [0x45c900]
mov dword [eax], ecx
mov cl, byte [0x45c902]
mov word [eax + 4], dx
push 0x44
lea edx, [esp + 0x18]
push 0
push edx
mov byte [eax + 6], cl
call fcn.0042ea40
add esp, 0xc
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x78]
push edx
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40e7c1
mov eax, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
pop esi
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.0042ea25
add esp, 0x160
ret
Function at 0x40e820
Capabilities:
Get process image filename

Disassembly:
sub esp, 0x32c
mov eax, dword [0x468004]
xor eax, esp
mov dword [esp + 0x328], eax
push esi
push edi
push 0x220
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0
call fcn.0042ea40
push 0x103
lea ecx, [esp + 0x23d]
push 0
push ecx
mov byte [esp + 0x244], 0
call fcn.0042ea40
add esp, 0x18
call fcn.004077c0
mov edi, dword [esp + 0x338]
push edi
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
jne 0x40e926
push edi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e90a
push 0x104
lea edx, [esp + 0x230]
push edx
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameA
push str.Path_Process
call fcn.004073f0
lea eax, [esp + 0x230]
push eax
call fcn.004073f0
lea ecx, [esp + 0x234]
push 0x470190
push ecx
call fcn.0040a580
push 0x470190
call fcn.004073f0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.End_Process
call fcn.004073f0
add esp, 4
jmp 0x40e98c
pop edi
mov eax, 0x45b5a5
pop esi
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.0042ea25
add esp, 0x32c
ret
lea edx, [esp + 8]
push edx
push esi
mov dword [esp + 0x10], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
jne 0x40e95d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.0042ea25
add esp, 0x32c
ret
lea eax, [esp + 0x128]
push eax
push 0x104
push 0x470190
call fcn.004307b5
push 0x470190
call fcn.004073f0
add esp, 0x10
test esi, esi
je 0x40e98c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x330]
pop edi
pop esi
xor ecx, esp
mov eax, 0x470190
call fcn.0042ea25
add esp, 0x32c
ret
Function at 0x40e9b0
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
push 0xf003f
push 0
push 0
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x40eb0b
mov eax, dword [esp + 0x3c]
push esi
push 0x2c
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40ea01
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea ecx, [esp + 0x10]
push ecx
push 0x24
lea edx, [esp + 0x24]
push edx
push 0
push esi
call edi
test eax, eax
je 0x40eafd
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x40eafd
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, 3
jne 0x40ea9b
lea esp, [esp]
mov eax, 0xcccccccd
mul dword [esp + 0x34]
shr edx, 3
cmp edx, 0x3e8
jae 0x40ea5b
mov edx, 0x3e8
jmp 0x40ea68
cmp edx, 0x2710
jbe 0x40ea68
mov edx, 0x2710
push edx
call ebx
lea eax, [esp + 0x10]
push eax
push 0x24
lea ecx, [esp + 0x24]
push ecx
push 0
push esi
call edi
test eax, eax
je 0x40eaf9
cmp dword [esp + 0x20], 1
je 0x40eaf9
call ebp
sub eax, dword [esp + 0x14]
cmp eax, 0x7530
ja 0x40eaf9
cmp dword [esp + 0x20], 3
je 0x40ea40
mov edx, dword [esp + 0x18]
push edx
push esi
call fcn.0040a9a0
add esp, 8
lea eax, [esp + 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40eaf9
cmp dword [esp + 0x20], 1
je 0x40eaf9
mov ecx, dword [esp + 0x34]
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
push 0x24
lea eax, [esp + 0x24]
push eax
push 0
push esi
call edi
test eax, eax
je 0x40eaf9
cmp dword [esp + 0x20], 1
je 0x40eaf9
call ebp
sub eax, dword [esp + 0x14]
cmp eax, 0x7530
ja 0x40eaf9
cmp dword [esp + 0x20], 1
jne 0x40eac2
mov ebx, dword [esp + 0x18]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret