Function at 0x403f30
Capabilities:
Enumerate files on windows
Read file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x40e8d8
push eax
mov eax, 0x1b18
mov dword fs:[0], esp
call fcn.0040e1b0
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebx, ebx
push str.ListContainer
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], ebx
call fcn.00407dc0
add esp, 4
lea eax, [esp + 0x28c]
push eax
call dword [0x415594]
mov edx, dword [esp + 0x1b3c]
lea ecx, [esp + 0x354]
push ecx
push edx
call dword [0x415598]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x354]
lea ecx, [esp + 0x28c]
push eax
push ecx
lea edx, [esp + 0x528]
push str._s_s.cer
push edx
call ebp
lea eax, [esp + 0x364]
lea ecx, [esp + 0x29c]
push eax
push ecx
lea edx, [esp + 0x470]
push str._s_s
push edx
call ebp
add esp, 0x20
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1b30], ebx
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x89]
mov byte [esp + 0x88], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1b30], 1
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x48]
mov byte [esp + 0x1b30], 2
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0x20
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x5e8]
mov byte [esp + 0x1b30], 3
push eax
lea ecx, [esp + 0x524]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x3c], eax
jne 0x4040b3
push 0xffff0002
push 0xffff0000
push ebx
push ebx
push ebx
push 2
push 2
push str.SDNX
push 0x23
lea ecx, [esi + 0x88]
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov edx, dword [esp + 0x1b38]
mov dword [edx], eax
jmp 0x404531
lea eax, [esp + 0x614]
lea ecx, [esp + 0x28c]
push eax
push ecx
lea edx, [esp + 0x190]
push str._s_s
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x188]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4044b6
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [esp + 0xb30]
push 0x1000
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x24]
test esi, esi
jbe 0x4044b6
lea edi, [esp + 0x188]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x188]
dec ecx
sub eax, 6
cmp byte [ecx + eax], 0x5f
jne 0x4044b6
lea edx, [esp + 0x188]
lea edi, [esp + 0x188]
or ecx, 0xffffffff
xor eax, eax
sub edx, 5
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx], 0x31
je 0x40418f
lea edi, [esp + 0x188]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx], 0x32
jne 0x4044b6
lea edi, [esp + 0x458]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [esp + ecx + 0x18c]
lea ecx, [esp + 0xb2c]
push ecx
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x30], ebp
je 0x4044d8
lea edx, [esp + 0x108]
push 0x32
push edx
push str.2.5.4.10
push 1
push 3
push ebp
call dword [sym.imp.CRYPT32.dll_CertGetNameStringA]
lea eax, [esp + 0x108]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
push 0xe047
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::LoadStringA
push 0xe048
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x34]
push ecx
push eax
push edx
mov byte [esp + 0x1b3c], 4
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b34], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x34]
mov byte [esp + 0x1b30], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b30], 3
call sub.MFC42.DLL_CString::CString
mov edi, str.SDNX
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xffff0002
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x8c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x30]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + 0x88]
push 0xffff0000
push 0
push 0
push 0
push 2
lea edx, [esp + 0xa0]
push 2
push edx
push 0x23
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov ecx, dword [esp + 0x1b38]
lea edx, [esp + 0x728]
push 0x400
push edx
push str.2.5.4.3
push 0
push 3
push ebp
mov dword [ecx], eax
call dword [sym.imp.CRYPT32.dll_CertGetNameStringA]
push 0x10c
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
movsx eax, byte [ecx + ebx - 5]
sub eax, 0x30
or ecx, 0xffffffff
mov dword [ebp + 0x104], eax
xor eax, eax
mov dword [ebp + 0x108], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + ebp - 6], al
call dword [0x4155fc]
test eax, eax
jne 0x4044d8
mov eax, dword [esp + 0x1b3c]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [0x4155c0]
test eax, eax
jne 0x4044d8
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x44]
lea eax, [esp + 0x48]
push edx
push eax
push ecx
call dword [0x4155a0]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4043ca
push eax
call dword [0x4155f4]
call dword [0x4155f8]
push 0xe046
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
call sub.MFC42.DLL_AfxGetEmptyString
mov edx, dword [eax]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], edx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
mov byte [esp + 0x1b3c], 6
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1b34], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b30], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x1b30], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1b38]
mov edx, dword [esp + 0x10]
push 0xffff0002
mov eax, dword [ecx]
push eax
mov eax, dword [esp + 0x34]
push 0
push 0
push 0
push 1
push 0
lea esi, [eax + 0x88]
push edx
push 0x23
mov ecx, esi
call sub.MFC42.DLL_CTreeCtrl::InsertItem
push ebp
push 0
push 0
push 0
push 0
push 0
push 4
push eax
mov ecx, esi
call sub.MFC42.DLL_CTreeCtrl::SetItem
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, dword [0x41545c]
mov ebx, 1
test eax, eax
je 0x4044b6
mov edx, dword [ebp + 0x104]
push edx
push ebp
call fcn.004030b0
add esp, 8
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x5e8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x404526
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
jmp 0x4040b3
lea ecx, [esp + 0x10]
mov byte [esp + 0x1b30], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x1b30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x1b30], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4045f2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x4045a6
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x404543
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x404545
xor eax, eax
mov eax, dword [eax + 0x20]
push 2
push 0
push 0x404
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1b30], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x1b30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x1b30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 3
jmp 0x4045f2
lea ecx, [esp + 0x10]
mov byte [esp + 0x1b30], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x1b30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x1b30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x1b28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1b24
ret 0xc