joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409b76
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x409bce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x409bb7
xor eax, eax
jmp 0x409c2c
push 0x20005
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x409c2c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x409bfc
push 0x20008
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x409c2c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x409c25
push 0x20002
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x409c2c
xor eax, eax
jmp 0x409c2c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409d47
Capabilities:
Delete registry key
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xd0], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [0x422f48], eax
cmp dword [0x422f48], 0
jne 0x409dac
push 0x20001
call fcn.004054a2
add esp, 4
push 0x2008001
call fcn.00405434
add esp, 4
mov eax, 0xffffffff
jmp 0x40a00d
cmp dword [ebp + 0xc], 0
je 0x409dde
mov eax, dword [ebp + 0xc]
push eax
push 0x423050
call fcn.0041a850
add esp, 8
push 0x454698
push 0x423050
call fcn.0041a84c
add esp, 8
jmp 0x409dfd
push 0x64
push 0x423050
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x45469c
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x423050
lea eax, [ebp - 0xc8]
push eax
call fcn.0041a850
add esp, 8
push 0x4546a8
lea eax, [ebp - 0xc8]
push eax
call fcn.0041a84c
add esp, 8
push 0x423050
lea eax, [ebp - 0x134]
push eax
call fcn.0041a850
add esp, 8
push 0x4546b8
lea eax, [ebp - 0x134]
push eax
call fcn.0041a84c
add esp, 8
push 0x4546c0
lea eax, [ebp - 0x134]
push eax
call fcn.0041a84c
add esp, 8
test byte [ebp + 0xb], 0x20
je 0x409e95
test byte [ebp + 0x10], 8
je 0x409e95
lea eax, [ebp - 0x134]
push eax
push 0x4546c8
mov eax, dword [0x422f48]
push eax
call fcn.004098b3
add esp, 0xc
mov dword [ebp - 0xcc], eax
test byte [ebp + 0xb], 0x10
je 0x409ec9
test byte [ebp + 0x10], 0x10
je 0x409ec9
lea eax, [ebp - 0xc8]
push eax
push 0x4546d0
mov eax, dword [0x422f48]
push eax
call fcn.004098b3
add esp, 0xc
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xcc], 0xffffffff
je 0x409ee3
cmp dword [ebp - 0xd0], 0xffffffff
jne 0x409efa
push 0x2008006
call fcn.00405434
add esp, 4
mov eax, 0xffffffff
jmp 0x40a00d
cmp dword [0x45409c], 0
jne 0x409f92
test byte [ebp + 0xb], 0x20
je 0x409f34
test byte [ebp + 0x10], 8
je 0x409f34
push 0x4546dc
mov eax, dword [0x422f48]
push eax
call fcn.0040996a
add esp, 8
mov dword [ebp - 0xcc], eax
test byte [ebp + 0xb], 0x10
je 0x409f61
test byte [ebp + 0x10], 0x10
je 0x409f61
push 0x4546e4
mov eax, dword [0x422f48]
push eax
call fcn.0040996a
add esp, 8
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xcc], 0xffffffff
je 0x409f7b
cmp dword [ebp - 0xd0], 0xffffffff
jne 0x409f92
push 0x2008007
call fcn.00405434
add esp, 4
mov eax, 0xffffffff
jmp 0x40a00d
mov eax, dword [0x422f48]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jne 0x409fd5
push 0x20002
call fcn.004054a2
add esp, 4
push 0x2008001
call fcn.00405434
add esp, 4
mov eax, 0xffffffff
jmp 0x40a00d
push 0x4546f0
lea eax, [ebp - 0x64]
push eax
call fcn.0041a850
add esp, 8
push 0x45471c
lea eax, [ebp - 0x64]
push eax
call fcn.0041a84c
add esp, 8
lea eax, [ebp - 0x64]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor eax, eax
jmp 0x40a00d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a012
Capabilities:
Delete file
Delete registry key
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
lea eax, [ebp - 0x68]
push eax
push 0x454728
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x40a095
cmp dword [ebp - 0x70], 5
jne 0x40a06c
push 0x2010000
call fcn.00405434
add esp, 4
push 0
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40a159
push 0x2002007
call fcn.00405434
add esp, 4
push 0x10007
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40a159
push str.SYSTEMCurrentControlSetServicesHaspCheck
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x64
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.Aladdin_TestX.ttt
lea eax, [ebp - 0x64]
push eax
call fcn.0041a84c
add esp, 8
push 0
push pe_nt_image_headers32
push 4
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0xffffffff
jne 0x40a13e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 5
jne 0x40a11a
push 0x2010000
call fcn.00405434
add esp, 4
push 0
call fcn.004054a2
add esp, 4
jmp 0x40a134
push 0x2002007
call fcn.00405434
add esp, 4
push 0x10007
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40a159
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x40a159
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a6f8
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
push 0x454824
push 0x4230d0
call fcn.0041a850
add esp, 8
push str.PcmciaDataBaseAladdin_Knowledge_Systems_Ltd.PC_CardHASP_V1.1
push 0x4230d0
call fcn.0041a84c
add esp, 8
push 0x4230bc
push 0x4230d0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a74e
xor eax, eax
jmp 0x40a7a7
push 0x454888
push 0x422f50
call fcn.0041a850
add esp, 8
push 7
push 0x454890
push 1
push 0
push 0x422f50
mov eax, dword [0x4230bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a7a0
push 0x10003
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40a7a7
xor eax, eax
jmp 0x40a7a7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a7d0
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 0x8c]
mov dword [ebp - 8], eax
push 0x64
push 0x423050
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4548ec
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x4548f8
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x454900
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x423050
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40a849
xor eax, eax
jmp 0x40a8e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
je 0x40a887
cmp dword [ebp - 0xc], 3
je 0x40a887
cmp dword [ebp - 0xc], 5
jne 0x40a87d
push 0x4000b
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40a8e8
mov eax, dword [ebp + 8]
push eax
call fcn.0041a7d8
add esp, 4
test eax, eax
je 0x40a8e1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40a8e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
je 0x40a8e1
cmp dword [ebp - 0xc], 5
jne 0x40a8d7
push 0x4000b
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40a8e8
xor eax, eax
jmp 0x40a8e8
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a8ed
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
push 0x64
push 0x423050
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x454908
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x45490c
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x454914
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x423050
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40a980
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
je 0x40a980
cmp dword [ebp - 4], 5
jne 0x40a976
push 0x4000b
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40a987
xor eax, eax
jmp 0x40a987
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a98c
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
push 0x64
push 0x423050
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x45491c
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x454920
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x423050
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40aa0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
je 0x40aa0d
cmp dword [ebp - 4], 5
jne 0x40aa03
push 0x4000b
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40aa14
xor eax, eax
jmp 0x40aa14
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40aa19
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 0x8c]
mov dword [ebp - 8], eax
push 0x64
push 0x423050
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.Drivers_
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x454938
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x423050
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40aa80
xor eax, eax
jmp 0x40ab1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
je 0x40aabe
cmp dword [ebp - 0xc], 3
je 0x40aabe
cmp dword [ebp - 0xc], 5
jne 0x40aab4
push 0x4000b
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ab1f
mov eax, dword [ebp + 8]
push eax
call fcn.0041a7d8
add esp, 4
test eax, eax
je 0x40ab18
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40ab18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
je 0x40ab18
cmp dword [ebp - 0xc], 5
jne 0x40ab0e
push 0x4000b
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ab1f
xor eax, eax
jmp 0x40ab1f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ab24
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
push 0x64
push 0x423050
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x454948
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x45494c
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x423050
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40aba5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
je 0x40aba5
cmp dword [ebp - 4], 5
jne 0x40ab9b
push 0x4000b
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40abac
xor eax, eax
jmp 0x40abac
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ba7c
Capabilities:
Copy file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
push ebx
push esi
push edi
push 0x64
push 0x423050
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x454b00
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x454b04
push 0x423050
call fcn.0041a84c
add esp, 8
cmp dword [ebp + 8], 0
je 0x40bb79
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.0041a850
add esp, 8
push 0x454b10
lea eax, [ebp - 0x1cc]
push eax
call fcn.0041a84c
add esp, 8
push str.haspdos.sys
lea eax, [ebp - 0x1cc]
push eax
call fcn.0041a84c
add esp, 8
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x40bb79
push 0
push 0x423050
lea eax, [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40bb65
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x4000c
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40bc51
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40bc51
push 0
push pe_nt_image_headers32
push 2
push 0x423140
push 0
push 0xc0000000
push 0x423050
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x422ed4], eax
cmp dword [0x422ed4], 0xffffffff
jne 0x40bbc2
push 0x40003
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40bc51
push 0
lea eax, [ebp - 4]
push eax
push 0x17f
push 0x453f10
mov eax, dword [0x422ed4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40bc0e
mov eax, dword [0x422ed4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40004
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40bc51
mov eax, dword [0x422ed4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40bc4a
mov eax, dword [0x422ed4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40005
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40bc51
xor eax, eax
jmp 0x40bc51
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40be9b
Capabilities:
Copy file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
push ebx
push esi
push edi
push 0x64
push 0x423050
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.drivers
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x454b4c
push 0x423050
call fcn.0041a84c
add esp, 8
cmp dword [ebp + 8], 0
je 0x40bf84
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.0041a850
add esp, 8
push 0x454b58
lea eax, [ebp - 0x1cc]
push eax
call fcn.0041a84c
add esp, 8
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x40bf84
push 0
push 0x423050
lea eax, [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40bf70
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x4000c
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40c05d
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40c05d
push 0
push pe_nt_image_headers32
push 2
push 0x423140
push 0
push 0xc0000000
push 0x423050
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x422ed4], eax
cmp dword [0x422ed4], 0xffffffff
jne 0x40bfcd
push 0x40003
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40c05d
push 0
lea eax, [ebp - 4]
push eax
call fcn.004156f7
push eax
push 0x4a9550
mov eax, dword [0x422ed4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40c01a
mov eax, dword [0x422ed4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40004
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40c05d
mov eax, dword [0x422ed4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40c056
mov eax, dword [0x422ed4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40005
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40c05d
xor eax, eax
jmp 0x40c05d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c062
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
push 0x64
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x454b64
lea eax, [ebp - 0x9c]
push eax
call fcn.0041a84c
add esp, 8
push 0x454b68
lea eax, [ebp - 0x9c]
push eax
call fcn.0041a84c
add esp, 8
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x40c153
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x454b74
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40c153
push str.GetVDDVersion
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40c149
call dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 8], 0
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0xc0000000
push str..hasp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x40c1c5
push 0
lea eax, [ebp - 0x10]
push eax
push 8
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 8]
push eax
push 0x9c402800
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40c1b6
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40c1ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004176e0
mov eax, dword [ebp - 0xa0]
and eax, 0xffff
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
and eax, 0xffff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x454b9c
lea eax, [ebp - 0x9c]
push eax
call fcn.0041a84c
add esp, 8
push 0x454bb0
lea eax, [ebp - 0x9c]
push eax
call fcn.0041a84c
add esp, 8
lea eax, [ebp - 0x9c]
push eax
call fcn.0040e265
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0xffffffff
jne 0x40c262
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c267
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 4], pe_nt_image_headers32
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push 0x454bbc
mov eax, dword [ebp + 8]
push eax
call fcn.0041a850
add esp, 8
push str.SYSTEMCurrentControlSetServices_
push 0x4230d0
call fcn.0041a850
add esp, 8
cmp dword [ebp + 0xc], 2
jne 0x40c2c1
push str.Haspnt
push 0x4230d0
call fcn.0041a84c
add esp, 8
jmp 0x40c2d3
push 0x454bec
push 0x4230d0
call fcn.0041a84c
add esp, 8
push 0x4230bc
push 0xf003f
push 0
push 0x4230d0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [0x422f64], eax
cmp dword [0x422f64], 0
je 0x40c325
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
je 0x40c31e
mov eax, 0xffffffff
jmp 0x40c43c
xor eax, eax
jmp 0x40c43c
push 0x454bf8
push 0x422f50
call fcn.0041a850
add esp, 8
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0x422f50
mov eax, dword [0x4230bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [0x422f64], eax
cmp dword [0x422f64], 0
je 0x40c37c
mov eax, dword [0x4230bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x40c43c
mov eax, dword [0x4230bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x422f64], eax
cmp dword [0x422f64], 0
je 0x40c3a4
mov eax, 0xffffffff
jmp 0x40c43c
push 0x454c04
mov eax, dword [ebp + 8]
push eax
call fcn.0041acc0
add esp, 8
test eax, eax
je 0x40c401
push str.SystemRoot_
call fcn.0041a7d8
add esp, 4
add dword [ebp + 8], eax
push 0x64
push 0x423050
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [ebp + 8]
push eax
push 0x423050
call fcn.0041a84c
add esp, 8
push 0x423050
mov eax, dword [ebp + 8]
push eax
call fcn.0041a850
add esp, 8
jmp 0x40c425
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.0041a8e0
add esp, 8
inc eax
mov dword [ebp + 8], eax
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.0041a8e0
add esp, 8
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041a850
add esp, 8
xor eax, eax
jmp 0x40c43c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e660
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov byte [ebp - 4], 0
push 0x422eb8
push 0xf003f
push 0
push 0x484ac4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [0x422dd4], eax
cmp dword [0x422dd4], 0
je 0x40e6b2
push 0x10001
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40e73e
push 1
lea eax, [ebp - 4]
push eax
push 3
push 0
push 0x484af0
mov eax, dword [0x422eb8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x422dd4], eax
cmp dword [0x422dd4], 0
je 0x40e702
push 0x10003
call fcn.004054a2
add esp, 4
mov eax, dword [0x422eb8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xffffffff
jmp 0x40e73e
mov eax, dword [0x422eb8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x422dd4], eax
cmp dword [0x422dd4], 0
je 0x40e737
push 0x10002
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40e73e
xor eax, eax
jmp 0x40e73e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ea8c
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x422eb8
push 0
push 0xf003f
push 0
push 0
push 0
push str.SystemCurrentControlSetServicesVxDHASP95Parameters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [0x422dd4], eax
cmp dword [0x422dd4], 0
je 0x40eae4
push 0x10007
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ec01
mov eax, dword [0x422eb8]
push eax
call fcn.00414a7b
add esp, 4
cmp eax, 0xffffffff
jne 0x40eb05
mov eax, 0xffffffff
jmp 0x40ec01
push 0x484be4
push 0x422dc0
call fcn.0041a850
add esp, 8
push 4
push 0x484bf4
push 1
push 0
push 0x422dc0
mov eax, dword [0x422eb8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x422dd4], eax
cmp dword [0x422dd4], 0
je 0x40eb5c
push 0x10003
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ec01
mov eax, dword [0x422eb8]
push eax
call fcn.00414517
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40eb81
mov eax, 0xffffffff
jmp 0x40ec01
mov eax, dword [0x422eb8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x422dd4], eax
cmp dword [0x422dd4], 0
je 0x40ebb6
push 0x10002
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x40ec01
cmp dword [0x42a190], 0
je 0x40ebd7
push str.USB_Parallel
push 0x30
call fcn.00406687
mov dword [ebp - 8], eax
jmp 0x40ebe6
push str.Parallel
push 0x30
call fcn.00406687
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40ebfa
mov eax, 0xffffffff
jmp 0x40ec01
xor eax, eax
jmp 0x40ec01
pop edi
pop esi
pop ebx
leave
ret