joyce8/EMBER2024-capa huggingface dataset:
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.0042e2e0
push 0x31
lea ecx, [esp + 0x55]
push ebx
push ecx
mov byte [esp + 0x5c], bl
call fcn.0042e2e0
push 0x38
lea edx, [esp + 0x28]
push ebx
push edx
mov dword [esp + 0x2c], ebx
call fcn.0042e2e0
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.0042e476
add esp, 8
lea edx, [esp + 0x44]
push str._F__IM_explorer.exe
push edx
call fcn.0042e476
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.0042e2e0
lea ecx, [esp + 0x84]
push str.c:windowsexplorer.exe
push ecx
call fcn.0042e476
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.0042e2c5
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.0042e2c5
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.0042e476
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.0042e2c5
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.0042e2e0
push 0x3ff
lea ecx, [esp + 0x269]
push 0
push ecx
mov byte [esp + 0x270], 0
call fcn.0042e2e0
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.0042e476
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.0042e2e0
push 0x44
lea eax, [esp + 0x48]
push 0
push eax
mov byte [esp + 0x198], 0
call fcn.0042e2e0
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.0042e476
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.0042e2c5
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.0042e2c5
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.0042e2e0
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.0042e476
add esp, 0xc
test edi, edi
jne 0x40ca8c
lea ecx, [esp + 0x34]
push 0x5c
push ecx
call fcn.0042e810
mov esi, eax
add esp, 8
test esi, esi
je 0x40ca26
inc esi
lea edx, [esp + 0x138]
push esi
push edx
call fcn.0045290b
add esp, 8
test eax, eax
je 0x40cad5
lea eax, [esp + 0x19c]
push eax
lea ecx, [esp + 0x13c]
push ecx
call fcn.0045290b
add esp, 8
test eax, eax
je 0x40cad5
lea edx, [esp + 0x138]
push edx
push esi
call fcn.0042e840
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.0045290b
add esp, 8
test eax, eax
je 0x40cad5
lea ecx, [esp + 0x19c]
push ecx
lea edx, [esp + 0x13c]
push edx
call fcn.0045290b
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.0042e2c5
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 0x463298
push 0x42f440
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.0042f5cc
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.0042f5cc
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 0x40df40
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 0x40df70
sub eax, edx
jne 0x40df93
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042e2c5
add esp, 0x10c
ret
push str.zvscan
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
cmp eax, ebx
je 0x40dfa9
mov byte [eax], bl
lea eax, [esp + 8]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40dfb0
mov edx, dword [str._npvcapi.dll]
mov ecx, dword [0x45c7b8]
mov dword [eax], edx
mov edx, dword [0x45c7bc]
mov dword [eax + 4], ecx
mov cl, byte [0x45c7c0]
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 0x40df7b
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
jne 0x40e015
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042e2c5
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.0042e2c5
add esp, 0x10c
ret
Function at 0x40e080
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 0x40e0b0
sub eax, edx
jne 0x40e0d2
xor eax, eax
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042e2c5
add esp, 0x10c
ret
lea eax, [esp + 4]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40e0d7
mov ecx, dword [str.MD5RGN.DLL]
mov edx, dword [0x45c7d8]
mov dword [eax], ecx
mov ecx, dword [0x45c7dc]
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 0x40e0bb
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40e0bb
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.0042e2c5
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.0042e2c5
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.ZVCMD64.DLL]
mov edx, dword [0x45c804]
mov dword [eax], ecx
mov ecx, dword [0x45c808]
mov dword [eax + 4], edx
mov dl, byte [0x45c80c]
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 0x40e18b
push esi
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40e209
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042e2c5
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.0042e2c5
add esp, 0x10c
ret
Function at 0x40e260
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 0x40e290
sub eax, edx
jne 0x40e2b2
xor eax, eax
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042e2c5
add esp, 0x10c
ret
lea eax, [esp + 4]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40e2b7
mov ecx, dword [str.NPNETLIB.DLL]
mov edx, dword [0x45c828]
mov dword [eax], ecx
mov ecx, dword [0x45c82c]
mov dword [eax + 4], edx
mov dx, word [0x45c830]
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 0x40e29b
push esi
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40e31b
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042e2c5
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.0042e2c5
add esp, 0x10c
ret

Function at 0x40e370
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 0x40e3a0
sub eax, edx
jne 0x40e3c3
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042e2c5
add esp, 0x10c
ret
lea eax, [esp + 8]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40e3c8
mov ecx, dword [str.APC_API.DLL]
mov edx, dword [0x45c87c]
mov dword [eax], ecx
mov ecx, dword [0x45c880]
mov dword [eax + 4], edx
mov dl, byte [0x45c884]
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 0x40e3ab
push esi
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
jne 0x40e42d
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042e2c5
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.0042e2c5
add esp, 0x10c
ret
Function at 0x40e5c0
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.0042e2e0
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 0x40e600
sub eax, edx
je 0x40e6f1
lea edx, [esp + 0x58]
push edx
call fcn.0042fb5a
lea eax, [esp + 0x5c]
push str.ZVSCAN
push eax
call fcn.0042e840
add esp, 0xc
test eax, eax
je 0x40e632
mov byte [eax], 0
lea eax, [esp + 0x58]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40e637
mov ecx, dword [str._td.exe]
mov edx, dword [0x45c8b4]
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 0x40e6f1
lea eax, [esp + 0x58]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40e668
mov ecx, dword [str._crypt]
mov dx, word [0x45c8ac]
mov dword [eax], ecx
mov cl, byte [0x45c8ae]
mov word [eax + 4], dx
push 0x44
lea edx, [esp + 0x18]
push 0
push edx
mov byte [eax + 6], cl
call fcn.0042e2e0
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 0x40e6f1
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.0042e2c5
add esp, 0x160
ret