joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000245b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10052125
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x10086038]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 8]
mov edi, 0x1000
push 2
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.MSVCR90.dll_calloc]
pop ecx
pop ecx
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x28]
push eax
push 0
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x20]
mov edx, eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], eax
xor esi, esi
mov dword [esp + 0x1c], edx
cmp edx, esi
jne 0x10002585
cmp ecx, 3
jne 0x10002585
push esi
push eax
push dword [esp + 0x18]
lea ecx, [esp + 0x30]
call sub.mfc90u.dll_CMemFile::CMemFile
push esi
push edi
push 1
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0xb0], esi
call sub.mfc90u.dll_CArchive::CArchive
or edi, 0xffffffff
push edi
push esi
mov ecx, ebx
mov byte [esp + 0xa8], 1
call sub.mfc90u.dll_CStringArray::SetSize
push edi
push 0xa
mov ecx, ebx
call sub.mfc90u.dll_CStringArray::SetSize
mov eax, dword [ebx]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebx
call dword [eax + 8]
push edi
push dword [esp + 0x1c]
mov ecx, ebx
call sub.mfc90u.dll_CStringArray::SetSize
lea ecx, [esp + 0x4c]
call sub.mfc90u.dll_CArchive::Close
lea ecx, [esp + 0x24]
call sub.mfc90u.dll_CMemFile::Close
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa0], 0
call fcn.1004fc8a
lea ecx, [esp + 0x24]
mov dword [esp + 0xa0], edi
call fcn.1004fc7e
cmp dword [esp + 0x10], esi
je 0x10002596
push dword [esp + 0x10]
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
xor eax, eax
cmp dword [esp + 0x1c], esi
sete al
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100025b7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100520f4
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x10086038]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x1c]
call sub.mfc90u.dll_CDWordArray::CDWordArray
push 0x1e
pop eax
xor ebx, ebx
push 2
mov dword [esp + 0xb4], ebx
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCR90.dll_calloc]
pop ecx
pop ecx
mov edi, eax
lea eax, [esp + 0x18]
push eax
push edi
lea eax, [esp + 0x38]
push eax
push ebx
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x10002724
cmp dword [esp + 0x30], 3
jne 0x10002724
push ebx
push dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push edi
call sub.mfc90u.dll_CMemFile::CMemFile
push ebx
push 0x1000
push 1
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xc0], 1
call sub.mfc90u.dll_CArchive::CArchive
push 0xffffffffffffffff
mov byte [esp + 0xb4], 2
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x68], ebx
call sub.mfc90u.dll_CDWordArray::SetSize
push 0xffffffffffffffff
push 5
lea ecx, [esp + 0x24]
call sub.mfc90u.dll_CDWordArray::SetSize
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x20]
call sub.mfc90u.dll_CDWordArray::Serialize
lea ecx, [esp + 0x5c]
call sub.mfc90u.dll_CArchive::Close
lea ecx, [esp + 0x34]
call sub.mfc90u.dll_CMemFile::Close
cmp dword [esp + 0x24], ebx
jg 0x100026bd
call sub.mfc90u.dll_AfxThrowInvalidArgException
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov dword [edx + 4], ecx
cmp dword [esp + 0x24], 1
jle 0x100026b8
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 4]
mov edx, dword [eax]
mov dword [edx + 0xc], ecx
cmp dword [esp + 0x24], 2
jle 0x100026b8
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 8]
mov edx, dword [eax]
mov dword [edx], ecx
cmp dword [esp + 0x24], 3
jle 0x100026b8
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0xc]
mov eax, dword [eax]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x5c]
mov byte [esp + 0xb0], 1
call fcn.1004fc8a
lea ecx, [esp + 0x34]
mov byte [esp + 0xb0], bl
call fcn.1004fc7e
mov eax, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 1
mov dword [esi + 0x18], 0x10
cmp edi, ebx
je 0x10002745
push edi
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
or dword [esp + 0xb0], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.1004fcae
xor eax, eax
cmp dword [esp + 0x14], ebx
jne 0x1000275f
inc eax
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10002777
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100520b8
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x10086038]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x20]
call sub.mfc90u.dll_CDWordArray::CDWordArray
push 0x14
pop eax
xor ebx, ebx
push 2
mov dword [esp + 0xb4], ebx
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCR90.dll_calloc]
pop ecx
pop ecx
mov edi, eax
lea eax, [esp + 0x14]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push ebx
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x100028be
cmp dword [esp + 0x1c], 3
jne 0x100028be
push ebx
push dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push edi
call sub.mfc90u.dll_CMemFile::CMemFile
push ebx
push 0x1000
push 1
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xc0], 1
call sub.mfc90u.dll_CArchive::CArchive
push 0xffffffffffffffff
mov byte [esp + 0xb4], 2
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x68], ebx
call sub.mfc90u.dll_CDWordArray::SetSize
push 0xffffffffffffffff
push 5
lea ecx, [esp + 0x28]
call sub.mfc90u.dll_CDWordArray::SetSize
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x24]
call sub.mfc90u.dll_CDWordArray::Serialize
lea ecx, [esp + 0x5c]
call sub.mfc90u.dll_CArchive::Close
lea ecx, [esp + 0x34]
call sub.mfc90u.dll_CMemFile::Close
cmp dword [esp + 0x28], ebx
jg 0x1000287d
call sub.mfc90u.dll_AfxThrowInvalidArgException
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ecx]
mov dword [edx], eax
cmp dword [esp + 0x28], 1
jle 0x10002878
mov eax, dword [esp + 0x24]
mov ecx, dword [ecx]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xb0], 1
call fcn.1004fc8a
lea ecx, [esp + 0x34]
mov byte [esp + 0xb0], bl
call fcn.1004fc7e
mov eax, dword [esp + 0x18]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 2
mov dword [esi + 0x18], 8
cmp edi, ebx
je 0x100028df
push edi
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
or dword [esp + 0xb0], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.1004fcae
xor eax, eax
cmp dword [esp + 0x18], ebx
jne 0x100028f9
inc eax
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000373b
Capabilities:
Create process on windows

Disassembly:
push 8
mov eax, 0x10056002
call fcn.100514bc
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
and dword [ebp - 4], 0
push dword [0x1008905c]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
pop ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.TRIALPAY
call dword [0x10061e44]
lea eax, [ebp - 0x10]
push eax
call sym.PCBRhelper.dll_Ordinal_966
pop ecx
pop ecx
push 3
mov eax, 0x100693ec
push eax
push eax
push dword [ebp - 0x10]
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call fcn.10051594
ret

Function at 0x100037ad
Capabilities:
Create process on windows

Disassembly:
push 8
mov eax, 0x10056002
call fcn.100514bc
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
and dword [ebp - 4], 0
push dword [0x10089060]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
pop ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.WEBSITE
call dword [0x10061e44]
lea eax, [ebp - 0x10]
push eax
call sym.PCBRhelper.dll_Ordinal_966
pop ecx
pop ecx
push 3
mov eax, 0x100693ec
push eax
push eax
push dword [ebp - 0x10]
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call fcn.10051594
ret
Function at 0x1000381f
Capabilities:
Create process on windows

Disassembly:
push 8
mov eax, 0x100570f8
call fcn.100514bc
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x100038a0
push 0xffffffffffffffff
push dword [ebp + 8]
call sub.mfc90u.dll_AfxIsValidString
test eax, eax
je 0x100038a0
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
cmp eax, 1
jle 0x100038a9
push 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::operator__]
cmp ax, 0x26
je 0x100038a9
lea eax, [ebp + 8]
push 0x10063684
push eax
lea ecx, [ebp - 0x10]
call fcn.10004d0b
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x100038a9
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov byte [ebp - 4], 2
push dword [0x10089064]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
pop ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x10063688
call dword [0x10061e44]
lea eax, [ebp - 0x14]
push eax
call sym.PCBRhelper.dll_Ordinal_966
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.10004938
add esp, 0x10
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 3
mov eax, 0x100693ec
push eax
push eax
push dword [ebp - 0x14]
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call fcn.10051594
ret
Function at 0x10003962
Capabilities:
Create process on windows

Disassembly:
push 4
mov eax, 0x10055960
call fcn.100514bc
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
and dword [ebp - 4], 0
push dword [0x10089068]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
pop ecx
pop ecx
push 3
mov eax, 0x100693ec
push eax
push eax
push dword [ebp - 0x10]
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call fcn.10051594
ret
Function at 0x10005061
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x10086038]
xor eax, ebp
mov dword [ebp + 0x398], eax
push esi
mov esi, dword [ebp + 0x3a8]
push edi
xor eax, eax
push 0x40e
mov word [ebp - 0x78], ax
xor edi, edi
lea eax, [ebp - 0x76]
push edi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a4]
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x100050cd
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
inc edi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0x398]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10050724
add ebp, 0x39c
leave
ret

Function at 0x10005299
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x234
mov eax, 0x10051ea1
call fcn.1005155b
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [edi]
cmp dword [eax - 0xc], esi
jne 0x100052bc
push 0xfffffffffffffffc
pop eax
jmp 0x1000531b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100052cd
xor eax, eax
inc eax
jmp 0x1000531b
mov byte [ebp - 4], 1
mov edi, dword [edi]
lea eax, [ebp - 0x240]
push eax
push edi
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
call sub.mfc90u.dll_CFile::GetStatus
cmp eax, esi
jne 0x100052c8
xor eax, eax
jmp 0x1000531b
call fcn.100515b7
ret

Function at 0x10005321
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1000532b
sub eax, ecx
sar eax, 1
jne 0x1000533f
xor eax, eax
leave
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10005351
or eax, eax
leave
ret
not al
movzx eax, al
shr eax, 4
and eax, 1
leave
ret
Function at 0x10005e2f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10086038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
cmp edi, 0x104
jbe 0x10005e55
xor eax, eax
jmp 0x10005ea9
push 0x20c
lea eax, [ebp - 0x210]
push 0
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x210]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x10005e76
and dword [esi + 0xc], 0
xor eax, eax
mov word [ebp + edi*2 - 0x20e], ax
lea eax, [ebp - 0x210]
push esi
mov dword [esi + 4], 3
mov dword [esi + 8], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10050724
leave
ret 8
Function at 0x1000c3b7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x10086038]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x10
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x50], eax
cmp eax, ebx
je 0x1000c452
push 0xf4
lea eax, [ebp - 0x148]
push ebx
push eax
mov dword [ebp - 0x14c], ebx
call sub.MSVCR90.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
add esp, 0xc
push ebx
push 0x40
lea eax, [ebp - 0x4c]
push eax
push edi
push dword [ebp - 0x50]
call esi
mov eax, 0x5a4d
cmp ax, word [ebp - 0x4c]
jne 0x1000c435
push ebx
push 0xf8
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0x10]
add edi, eax
push edi
push dword [ebp - 0x50]
call esi
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14c], 0x4550
jne 0x1000c452
mov eax, dword [ebp - 0x118]
jmp 0x1000c454
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10050724
leave
ret 4

Function at 0x1000caaf
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push 0x100636e4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esi + 0x28], eax
test eax, eax
jne 0x1000cada
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x28], eax
test eax, eax
jne 0x1000cada
xor al, al
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1006567c
push dword [esi + 0x28]
call edi
test eax, eax
je 0x1000cb33
push str.Process32First
push dword [esi + 0x28]
mov dword [esi + 0x10], eax
call edi
test eax, eax
je 0x1000cb33
push str.Process32Next
push dword [esi + 0x28]
mov dword [esi + 0x14], eax
call edi
test eax, eax
je 0x1000cb33
push str.Module32First
push dword [esi + 0x28]
mov dword [esi + 0x18], eax
call edi
test eax, eax
je 0x1000cb33
push str.Module32Next
push dword [esi + 0x28]
mov dword [esi + 0x1c], eax
call edi
test eax, eax
jne 0x1000cb47
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x30], 2
xor al, al
jmp 0x1000cb50
mov dword [esi + 0x20], eax
mov byte [esi + 0x2d], 1
mov al, 1
pop edi
pop esi
ret
Function at 0x1000dd4c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4008
call fcn.10051170
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ebx, eax
add ebx, 3
push 0
mov esi, ecx
pop ecx
mov edi, edx
adc edi, ecx
and ebx, 0xfffffffc
mov dword [ebp - 8], ebx
cmp eax, ecx
jne 0x1000dd7e
cmp edx, ecx
je 0x1000dd8a
cmp edx, dword [esi + 0x14]
jb 0x1000dd95
ja 0x1000dd8a
cmp eax, dword [esi + 0x10]
jbe 0x1000dd95
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
mov dword [ebp - 8], eax
mov ebx, eax
cmp dword [ebp + 0x10], ecx
je 0x1000dda0
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x30], ecx
mov eax, dword [esi + 0x3c]
cmp ecx, edi
ja 0x1000deda
jb 0x1000ddb5
cmp eax, ebx
jae 0x1000deda
mov eax, dword [esi + 4]
push ecx
push 0x8000000
push 3
push ecx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [ebp + 0x10]
push ecx
push dword [esi + 0x3c]
mov dword [ebp + 0xc], eax
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x3c]
xor ecx, ecx
cmp ecx, edi
ja 0x1000ded1
jb 0x1000ddfe
cmp eax, ebx
jae 0x1000ded1
jmp 0x1000ddfe
mov ebx, dword [ebp - 8]
mov eax, 0x4000
cmp ebx, eax
jbe 0x1000de09
mov ebx, eax
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
lea eax, [ebp - 0x4008]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000ded1
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jbe 0x1000ded1
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x1000de44
mov eax, dword [eax]
test eax, eax
jne 0x1000ded1
test dword [ebp + 0x10], 0xfffffffc
jbe 0x1000de7b
mov eax, dword [ebp + ebx*4 - 0x4008]
add dword [esi + 0x30], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1000de6e
mov ecx, dword [eax]
add ecx, 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
inc ebx
shr ecx, 2
cmp ebx, ecx
jb 0x1000de4d
jmp 0x1000de7e
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
and edx, 3
je 0x1000dea3
push 4
pop ecx
sub ecx, edx
shl ecx, 3
or ebx, 0xffffffff
shr ebx, cl
mov ecx, dword [ebp + 0x10]
shr ecx, 2
and ebx, dword [ebp + ecx*4 - 0x4008]
add dword [esi + 0x30], ebx
test eax, eax
je 0x1000deb3
mov ecx, dword [eax]
add ecx, edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp + 0x10]
add dword [esi + 0x3c], eax
mov eax, dword [esi + 0x3c]
xor ecx, ecx
cmp ecx, edi
jb 0x1000ddfb
ja 0x1000ded1
cmp eax, dword [ebp - 8]
jb 0x1000ddfb
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebx
leave
ret 0x14