Function at 0x79218410
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2ec
test byte [0x7922a138], 8
jne 0x79218845
mov esi, dword [ebp + 8]
test esi, esi
je 0x79218660
mov eax, dword [ebp + 8]
cmp dword [eax], 0x43415441
jne 0x79218660
mov ebx, dword [ebp + 0xc]
test ebx, ebx
sete dl
cmp dword [ebp + 0x10], 0x14
setne al
or dl, al
jne 0x79218660
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x79218660
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x79218940
mov eax, dword [ebp + 0x18]
lea edi, [ebp - 0x2b4]
mov esi, 0x7922a0e2
mov ecx, 0x15
mov ebx, dword [eax]
mov eax, dword [str.Microsoft_Base_Cryptographic_Provider_v1.0]
mov dword [ebp - 0x2b6], eax
mov eax, dword [0x7922a132]
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x2b6]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 8], eax
lea eax, [ebp - 0x2bc]
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextW]
sub esp, 0x14
test eax, eax
je 0x79218928
test ebx, ebx
je 0x792189a0
lea eax, [ebp - 0x260]
mov dword [esp + 4], eax
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20c]
mov dword [esp], eax
call sym._FindNextFileW_8
sub esp, 8
test eax, eax
je 0x792188f4
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x2c4], eax
lea esi, [esi]
mov eax, dword [ebp - 0x2c4]
mov dword [esp], eax
call sym._lstrlenW_4
mov esi, eax
sub esp, 4
lea eax, [ebp - 0x234]
mov dword [esp], eax
call sym._lstrlenW_4
sub esp, 4
mov ebx, eax
call sym._GetProcessHeap_0
lea edx, [esi + ebx + 2]
mov dword [esp + 4], 0
add edx, edx
mov dword [esp], eax
mov dword [esp + 8], edx
call sym._HeapAlloc_12
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x79218a74
mov eax, dword [ebp - 0x2c4]
mov dword [esp], esi
xor edi, edi
mov dword [esp + 4], eax
call sym._lstrcpyW_8
sub esp, 8
mov dword [esp + 4], 0x7922bfc4
mov dword [esp], esi
call sym._lstrcatW_8
lea eax, [ebp - 0x234]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._lstrcatW_8
mov eax, dword [ebp - 0x2bc]
sub esp, 8
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 4
mov dword [esp], esi
call sym.wintrust.dll_CryptCATOpen
sub esp, 0x14
mov ebx, eax
cmp eax, 0xffffffff
je 0x792187e0
lea esi, [esi]
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym.wintrust.dll_CryptCATEnumerateMember
sub esp, 8
mov edi, eax
test eax, eax
je 0x79218750
mov eax, dword [edi + 0x20]
mov edx, dword [eax + 0x18]
cmp edx, 0x14
je 0x79218680
test byte [0x7922a138], 4
je 0x792185f0
mov dword [esp + 0x1c], 0x14
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], str.amount_of_hash_bytes_differs:__u__u_n
mov dword [esp + 0x10], 0x16c
mov dword [esp + 0xc], str.CryptCATAdminEnumCatalogFromHash
mov dword [esp + 8], 0x7922b851
mov dword [esp + 4], 0x7922a138
mov dword [esp], 2
call sym._ros_dbg_log
jmp 0x792185f0
mov dword [esp], 0x57
xor edi, edi
call sym._SetLastError_4
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov ecx, dword [ebp + 0xc]
mov dword [esp + 8], 0x14
mov dword [esp + 4], ecx
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
call sym._memcmp
test eax, eax
jne 0x792185f0
test byte [0x7922a138], 8
jne 0x792188a1
mov dword [esp], ebx
call sym.wintrust.dll_CryptCATClose
mov eax, dword [ebp - 0x2bc]
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
mov eax, dword [ebp + 0x18]
sub esp, 8
test eax, eax
je 0x79218aa3
call sym._GetProcessHeap_0
mov dword [esp + 8], 0x20c
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapAlloc_12
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x79218a8a
lea eax, [eax + 4]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._lstrcpyW_8
mov dword [edi], 0x43415449
sub esp, 8
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
mov eax, edi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov dword [esp], ebx
call sym.wintrust.dll_CryptCATClose
sub esp, 4
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
mov eax, dword [ebp - 0x2c8]
sub esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20c]
mov dword [esp], eax
call sym._FindNextFileW_8
sub esp, 8
test eax, eax
jne 0x79218520
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20c]
mov dword [esp], eax
call sym._FindClose_4
mov eax, dword [ebp + 8]
sub esp, 4
mov dword [eax + 0x20c], 0xffffffff
mov eax, dword [ebp - 0x2bc]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
sub esp, 8
jmp 0x79218671
test byte [0x7922a138], 4
je 0x79218520
call sym._GetLastError_0
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
mov ebx, eax
call sym._wine_dbgstr_wn
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.couldnt_open__s___u__n
mov dword [esp + 0x10], 0x165
mov dword [esp + 0xc], str.CryptCATAdminEnumCatalogFromHash
mov dword [esp + 8], 0x7922b851
mov dword [esp + 4], 0x7922a138
mov dword [esp], 2
call sym._ros_dbg_log
jmp 0x79218520
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], str._p__p__d__x__p_n
mov dword [esp + 0x10], 0x126
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], str.CryptCATAdminEnumCatalogFromHash
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 0x7922b851
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0x7922a138
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp], 3
mov dword [esp + 0x18], eax
call sym._ros_dbg_log
jmp 0x79218429
lea eax, [ebp - 0x234]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov dword [esp + 0x14], str.file__s_matches_n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x171
mov dword [esp + 0xc], str.CryptCATAdminEnumCatalogFromHash
mov dword [esp + 8], 0x7922b851
mov dword [esp + 4], 0x7922a138
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x792186af
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym.wintrust.dll_CryptCATAdminReleaseCatalogContext
sub esp, 0xc
mov eax, dword [ebp - 0x2bc]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
sub esp, 8
xor edi, edi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov eax, dword [str.Microsoft_Base_Cryptographic_Provider_v1.0]
lea edi, [ebp - 0x2b4]
mov esi, 0x7922a0e2
mov ecx, 0x15
mov dword [ebp - 0x2b6], eax
mov eax, dword [0x7922a132]
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x2b6]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 8], eax
lea eax, [ebp - 0x2bc]
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextW]
sub esp, 0x14
test eax, eax
je 0x79218928
mov eax, dword [ebp + 8]
add eax, 4
mov dword [esp], eax
mov dword [ebp - 0x2c4], eax
call sym._lstrlenW_4
sub esp, 4
mov ebx, eax
call sym._GetProcessHeap_0
lea edx, [ebx + ebx + 0xe]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._HeapAlloc_12
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x79218ac9
mov eax, dword [ebp - 0x2c4]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._lstrcpyW_8
sub esp, 8
mov dword [esp + 4], 0x7922bfc8
mov dword [esp], edi
call sym._lstrcatW_8
mov eax, dword [ebp + 8]
sub esp, 8
mov eax, dword [eax + 0x20c]
mov dword [esp], eax
call sym._FindClose_4
lea eax, [ebp - 0x260]
sub esp, 4
mov dword [ebp - 0x2c8], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._FindFirstFileW_8
mov ecx, dword [ebp + 8]
sub esp, 8
mov dword [ecx + 0x20c], eax
call sym._GetProcessHeap_0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
mov eax, dword [ebp + 8]
sub esp, 0xc
cmp dword [eax + 0x20c], 0xffffffff
jne 0x79218520
jmp 0x7921890e
mov dword [esp], 0xe
xor edi, edi
call sym._SetLastError_4
sub esp, 4
jmp 0x7921892a
mov dword [esp], 0xe
mov edi, 0xffffffff
call sym._SetLastError_4
sub esp, 4
jmp 0x79218721
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20c]
mov dword [esp], eax
call sym._FindClose_4
mov eax, dword [ebp + 8]
sub esp, 4
mov dword [eax + 0x20c], 0xffffffff
jmp 0x792186df
mov eax, dword [ebp - 0x2bc]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
sub esp, 8
mov dword [esp], 0xe
call sym._SetLastError_4
sub esp, 4
jmp 0x79218671