joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a960
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x4f3008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov dword [ebp - 0x878], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x884], esi
cmp word [edi], 0
mov dword [ebp - 0x880], eax
jne 0x48a9a9
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x48a9c0
push edi
push eax
lea eax, [ebp - 0x214]
push 0x4d4c98
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x4d52d4
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov dword [ebp - 0x87c], eax
push 0x4d52dc
lea eax, [ebp - 0x848]
push eax
call ebx
test eax, eax
je 0x48ab5a
push 0x4d52e4
lea eax, [ebp - 0x848]
push eax
call ebx
test eax, eax
je 0x48ab5a
test byte [ebp - 0x874], 0x10
lea eax, [ebp - 0x848]
je 0x48aa72
cmp word [edi], 0
push eax
lea eax, [ebp - 0x624]
jne 0x48aa43
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x48aa53
push edi
push 0x4d4c98
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x624]
mov ecx, esi
push eax
push dword [ebp - 0x880]
push dword [ebp - 0x878]
call fcn.0048a960
jmp 0x48ab5a
push str.Thumbs.db
push eax
call ebx
test eax, eax
je 0x48ab5a
push str.desktop.ini
lea eax, [ebp - 0x848]
push eax
call ebx
test eax, eax
je 0x48ab5a
cmp word [edi], 0
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x41c]
jne 0x48aab4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x48aac4
push edi
push 0x4d4c98
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [ebp - 0x878]
mov esi, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax]
mov ebx, eax
mov eax, dword [ebp - 0x878]
mov dword [ebx + 8], esi
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x48aaef
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x48aae6
lea eax, [ebp - 0x41c]
mov dword [edx + 4], ebx
push eax
mov dword [ebx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x48ab4b
lea eax, [eax*2 + 2]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
lea eax, [ebp - 0x41c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x48ab48
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebx + 0xc], esi
mov esi, dword [ebp - 0x884]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
inc dword [esi + 4]
lea eax, [ebp - 0x874]
push eax
push dword [ebp - 0x87c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x48a9f2
push dword [ebp - 0x87c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004954a2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48bb50
Capabilities:
Encrypt data using rc4 via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 8
mov esi, ecx
call fcn.004954b0
add esp, 4
mov edi, eax
push dword [ebp + 8]
mov dword [edi], vtable.CCryptKey.0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [esi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
push esi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x48bbcf
push 0
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp dword [ebp + 0xc], 0xffffffff
lea eax, [edi + 4]
push eax
push 0
push dword [ebp - 4]
mov ecx, 0x6602
mov eax, 0x6801
cmovne eax, ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x48bbe0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push edi
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ecx
push 0
push 1
push 0
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 4]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 0xc]
mov edi, eax
push dword [ebp + 8]
push edi
call fcn.00499e40
add esp, 0xc
lea eax, [ebp + 0xc]
push dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push edi
push 0
push 1
push 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ecx], edi
mov ecx, dword [ebp - 4]
mov dword [edx], ecx
pop edi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x48bc60
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push dword [ebp + 8]
mov edi, eax
push edi
call fcn.00499e40
add esp, 0xc
mov dword [ebp + 0xc], esi
lea eax, [ebp + 0xc]
push eax
push edi
push 0
push 1
push 0
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ecx], edi
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [edx], ecx
pop ebx
pop ebp
ret 0x10
Function at 0x48be80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4f3008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x508184], 0
push edi
mov edi, ecx
je 0x48beea
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x4bf490
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
push str.SRPG_Studio
push dword [ebp - 0x210]
push 0x4d4c98
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push dword [ebp - 0x210]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004954a2
mov esp, ebp
pop ebp
ret
push esi
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
sub esi, 1
js 0x48bf23
cmp word [ebp + esi*2 - 0x20c], 0x5c
je 0x48bf23
sub esi, 1
jns 0x48bf13
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
test esi, esi
js 0x48bf3b
xor eax, eax
mov word [edi + esi*2], ax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop edi
call fcn.004954a2
mov esp, ebp
pop ebp
ret
Function at 0x48cd70
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4f3008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
call fcn.0048cd10
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0xbac], eax
cmp eax, 0xffffffff
jne 0x48cdc7
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004954a2
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
push 4
push eax
mov dword [edi + 0xbb0], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [edi + 0xbb4], esi
movq xmm0, qword [str.SRTS]
movq qword [ebp - 0x10], xmm0
movzx ecx, byte [esi]
cmp cx, word [ebp - 0x10]
jne 0x48ce93
mov ecx, dword [ebp - 0x10]
movzx eax, byte [esi + 1]
shr ecx, 0x10
cmp ax, cx
jne 0x48ce93
movzx eax, byte [esi + 2]
cmp ax, word [ebp - 0xc]
jne 0x48ce93
mov ecx, dword [ebp - 0xc]
movzx eax, byte [esi + 3]
shr ecx, 0x10
cmp ax, cx
jne 0x48ce93
push 1
lea eax, [edi + 0x4c8]
push eax
lea eax, [esi + 0xc]
push eax
push esi
call fcn.0048d490
push 1
lea eax, [edi + 0x510]
push eax
lea eax, [esi + 0x4c]
push eax
push dword [edi + 0xbb4]
call fcn.0048d100
push 1
lea eax, [edi + 0x554]
push eax
lea eax, [esi + 0x54]
push eax
push dword [edi + 0xbb4]
call fcn.0048d2c0
mov esi, 1
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004954a2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4fb118]
xor esi, esi
push str.runtime.rts
push 0xb27
mov eax, dword [ecx]
call dword [eax + 4]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x30
push str.SRPG_Studio
push eax
push dword [0x4fafbc]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004954a2
mov esp, ebp
pop ebp
ret 4
Function at 0x490460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f3008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x58c19454
mov al, 0x49
mov dword [ebp - 0x10], 0x1b924cf4
mov dword [ebp - 0xc], 0x3a9ee0ad
mov dword [ebp - 8], 0x92c9d149
push esi
cmp edx, 1
jne 0x49049a
mov byte [ebp - 0xa], 0x8e
jmp 0x4904ab
cmp edx, 2
movzx eax, al
mov esi, 0x48
cmove eax, esi
mov byte [ebp - 8], al
lea edx, [ebp - 5]
lea eax, [ecx + 0xf]
cmp ecx, edx
ja 0x4904e2
lea edx, [ebp - 0x14]
cmp eax, edx
jb 0x4904e2
mov esi, edx
mov edx, 0x10
sub esi, ecx
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x4904c5
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004954a2
mov esp, ebp
pop ebp
ret
movups xmm1, xmmword [ecx]
pop esi
movups xmm0, xmmword [ebp - 0x14]
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004954a2
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x490841
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov ebx, eax
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x50842c]
test eax, eax
jne 0x49088f
mov ecx, dword [0x5083fc]
push 0xffffffffffffffff
push str.keyset
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [0x50842c], eax
push dword [ebp + 8]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp - 4]
push edi
push ebx
call dword [edx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x491270
Capabilities:
Create new key via cryptacquirecontext
Get common file path
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4f3008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x214]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x204]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x204]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add eax, 0x11
push eax
push 8
mov dword [ebp - 0x228], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
movups xmm0, xmmword [ebp - 0x214]
mov dword [ebp - 0x21c], eax
movups xmmword [eax], xmm0
lea eax, [ebp - 0x204]
push eax
call edi
mov edi, dword [ebp - 0x21c]
push eax
lea eax, [ebp - 0x204]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00499e40
add esp, 0xc
lea eax, [ebp - 0x224]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x49132d
mov edi, dword [ebp - 0x21c]
xor ebx, ebx
jmp 0x4913da
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push 0
test eax, eax
jne 0x491365
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edi, dword [ebp - 0x21c]
xor ebx, ebx
jmp 0x4913da
push dword [ebp - 0x228]
push edi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x220]
push 0
push eax
push 0
push 2
push dword [ebp - 0x218]
call edi
push dword [ebp - 0x220]
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov ebx, eax
lea eax, [ebp - 0x220]
push eax
push ebx
push 2
push dword [ebp - 0x218]
call edi
push dword [ebp - 0x218]
mov edi, dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test edi, edi
jle 0x4913f0
mov ecx, ebx
sub ecx, esi
mov al, byte [ecx + esi]
lea esi, [esi + 1]
mov byte [esi - 1], al
sub edi, 1
jne 0x4913e2
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test ebx, ebx
je 0x491408
push ebx
push 0
call edi
push eax
call esi
push dword [ebp - 0x21c]
push 0
call edi
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004954a2
mov esp, ebp
pop ebp
ret
Function at 0x4914f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4915a1
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 8
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x491565
lea eax, [ebp - 4]
push eax
push esi
call ebx
add esp, 8
mov esi, eax
test esi, esi
je 0x4915a1
push 0x218
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], 0
mov dword [eax + 0x210], 0
mov dword [eax + 0x214], 0
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4915b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
test esi, esi
je 0x491647
cmp dword [esi + 0x214], 1
push ebx
push edi
mov edi, dword [esi]
jne 0x491621
mov eax, dword [esi + 0x210]
lea ebx, [esi + 4]
test eax, eax
je 0x4915e4
push ebx
push edi
call eax
add esp, 8
mov edi, eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x491621
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebx]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test edi, edi
je 0x49163d
push edi
push 0
call eax
push eax
call ebx
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
call eax
push eax
call ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x491900
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
lea eax, [esi + 0x14]
mov dword [ebp - 4], eax
je 0x49191c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push str.mfplat.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x491942
or eax, 0xffffffff
mov dword [0x508410], eax
jmp 0x4919f8
push str.MFShutdown
push edi
call ebx
push str.MFCreateAsyncResult
push edi
mov dword [esi + 0x18], eax
call ebx
push str.MFStartup
push edi
mov dword [esi + 0x1c], eax
call ebx
push str.MFInvokeCallback
push edi
mov dword [esi + 0x20], eax
call ebx
push str.MFCreateAttributes
push edi
mov dword [esi + 0x24], eax
call ebx
push str.MFCreateMFByteStreamOnStream
push edi
mov dword [esi + 0x28], eax
call ebx
push str.mf.dll
mov dword [0x4fb134], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x4919ad
mov eax, dword [0x508410]
mov ecx, 0x62
test eax, eax
cmove eax, ecx
mov dword [0x508410], eax
jmp 0x4919f8
push str.MFCreateTopologyNode
push edi
call ebx
push str.MFCreateMediaSession
push edi
mov dword [esi + 0x2c], eax
call ebx
push str.MFGetService
push edi
mov dword [0x4fb130], eax
call ebx
push str.MFCreateTopology
push edi
mov dword [0x4fb140], eax
call ebx
push str.MFCreateVideoRendererActivate
push edi
mov dword [esi + 0x30], eax
call ebx
push str.MFCreateAudioRendererActivate
push edi
mov dword [esi + 0x34], eax
call ebx
mov dword [esi + 0x38], eax
mov eax, dword [0x508410]
mov ecx, 0x20
add esi, ecx
mov ecx, dword [esi]
test ecx, ecx
jne 0x491a20
test eax, eax
mov ecx, 0x63
pop edi
cmove eax, ecx
pop ebx
mov dword [0x508410], eax
mov eax, 0x80004001
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0x20070
call ecx
mov edi, eax
test edi, edi
jns 0x491a82
cmp edi, 0xc00d36e3
jne 0x491a65
mov eax, dword [esi]
push 0
push 0x10070
call eax
mov edi, eax
test edi, edi
jns 0x491a82
mov eax, dword [0x508410]
mov ecx, 0x64
test eax, eax
cmove eax, ecx
mov dword [0x508410], eax
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x508410]
mov ecx, 0x65
test eax, eax
cmove eax, ecx
mov dword [0x508410], eax
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xc], str.mfplat.dll
xor esi, esi
mov dword [ebp - 8], str.mf.dll
push dword [ebp + esi*4 - 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.MFCreateSourceResolver
push eax
call ebx
mov dword [0x4fb138], eax
test eax, eax
jne 0x491abc
inc esi
cmp esi, 2
jl 0x491a92
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov dword [eax], 1
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x491b30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ecx + 4]
push esi
mov esi, dword [ebx + 4]
test esi, esi
je 0x491c9c
mov eax, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
cmp edi, eax
je 0x491b5e
mov ebx, esi
mov esi, dword [esi + 4]
test esi, esi
jne 0x491b47
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x491b72
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0xc], 0
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x491b86
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x10], 0
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x491b9a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x14], 0
mov ecx, dword [edi + 4]
lea eax, [edi + 0x20]
mov dword [ebp + 8], eax
test ecx, ecx
je 0x491bda
mov dword [eax], 6
mov eax, dword [ecx]
push ecx
call dword [eax + 0x30]
test eax, eax
js 0x491bfa
push 0x1388
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x491bd4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [edi + 0x20]
mov dword [ebp + 8], eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x491be7
mov eax, dword [ecx]
push ecx
call dword [eax + 0x30]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x491bfa
mov eax, dword [ecx]
push ecx
call dword [eax + 0x34]
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x491c0e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 8], 0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x491c22
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 4], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x491c3f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x38], 0
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x491c53
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x3c], 0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x491c68
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], 0
push 0x50
push edi
call fcn.004954e0
mov eax, dword [esi + 4]
add esp, 8
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x491c90
mov dword [eax + 0xc], 0
push 0x24
push esi
call fcn.004954e0
add esp, 8
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x492dd0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x492de6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xc], ebx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x492df6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x10], ebx
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x492e06
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x14], ebx
mov ecx, dword [esi + 4]
push edi
lea edi, [esi + 0x20]
test ecx, ecx
je 0x492e40
mov dword [edi], 6
mov eax, dword [ecx]
push ecx
call dword [eax + 0x30]
mov ebx, eax
test ebx, ebx
js 0x492e5a
push 0x1388
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x492e40
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x492e4d
mov eax, dword [ecx]
push ecx
call dword [eax + 0x30]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x492e5a
mov eax, dword [ecx]
push ecx
call dword [eax + 0x34]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x492e6e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 8], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x492e82
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 4], 0
mov dword [edi], 0
mov ecx, dword [esi + 0x38]
pop edi
test ecx, ecx
je 0x492e9d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x492eb1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x3c], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x492ec6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x493ae0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x50839c]
cmp dword [eax + 0x14], 0
je 0x493b06
push esi
call fcn.00493da0
pop esi
pop ebp
ret 8
cmp dword [eax + 0x18], 0
je 0x493b24
mov eax, dword [0x4fafa4]
mov ecx, dword [0x4fafac]
push eax
push ecx
push esi
call fcn.00493e80
pop esi
pop ebp
ret 8
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
push eax
push ecx
push esi
call fcn.00493e80
pop esi
pop ebp
ret 8

Function at 0x493b40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push str.video
push edi
call dword [sym.imp.USER32.dll_GetPropW]
mov ebx, eax
test ebx, ebx
je 0x493b73
call fcn.004917d0
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [esi], 0
mov dword [esi + 4], 0
je 0x493b8b
call fcn.00454bb0
pop edi
mov dword [esi], 0
pop esi
pop ebx
pop ebp
ret 4