joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100273e4
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x1002741e
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp + 8]
push sym.PCBRhelper.dll_Ordinal_369
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov al, 1
jmp 0x100274bb
push edi
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push 5
mov dword [ebp - 0x24], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
pop edi
test eax, eax
je 0x1002748d
mov eax, dword [ebp - 0x18]
sub eax, 0
je 0x1002746e
dec eax
je 0x10027452
dec eax
je 0x1002746e
dec eax
jne 0x10027417
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
lea edx, [ecx - 0x64]
mov dword [eax], edx
add ecx, 0xfffffff0
jmp 0x10027488
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
jmp 0x10027417
mov esi, dword [ebp + 8]
push 0
push esi
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x100274b9
mov eax, dword [esi + 8]
sub eax, 0x96
mov dword [esi], eax
mov eax, dword [esi + 0xc]
sub eax, 0x1e
mov dword [esi + 4], eax
jmp 0x10027417
xor al, al
pop esi
leave
ret 4

Function at 0x10027e5b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10086038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xc
xor esi, esi
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x10027ec0
mov edx, str.NTFS
lea eax, [ebp - 0x1c]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x10027eb4
cmp cx, si
je 0x10027eb0
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x10027eb4
add eax, 4
add edx, 4
cmp cx, si
jne 0x10027e8e
xor eax, eax
jmp 0x10027eb9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x10027ec0
xor esi, esi
inc esi
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]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10050724
leave
ret 4
Function at 0x100296b2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0x10
mov eax, 0x1005b396
call fcn.100514ef
and dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
mov esi, 0x100693ec
push esi
call dword [0x10061e44]
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
call dword [0x10061e44]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push dword [ebp + 8]
mov byte [ebp - 4], 2
call dword [0x10061e44]
mov byte [ebp - 4], 0
call fcn.10028605
test eax, eax
jne 0x10029724
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10029731
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
jmp 0x10029733
shr eax, 3
and al, 1
jmp 0x10029733
xor al, al
call fcn.10051594
ret

Function at 0x1002ad76
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push 0x1b
mov esi, ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1002ad9d
push 0
push 0x4a0
push 0x111
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
ret
push 2
mov ecx, esi
call sym.PCBRhelper.dll_Ordinal_228
pop esi
ret

Function at 0x1002aee8
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
cmp edi, 0x65
jne 0x1002af41
push 1
xor edi, edi
push edi
call sym.PCBRhelper.dll_Ordinal_373
push esi
call sym.PCBRhelper.dll_Ordinal_267
add esp, 0xc
push edi
push edi
push 0x10
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1002af35
push 1
mov ecx, esi
call sub.mfc90u.dll_CDialog::EndDialog
mov ecx, esi
call sub.mfc90u.dll_CWnd::Default
pop edi
pop esi
ret 4
cmp edi, 0x66
jne 0x1002af35
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_PostQuitMessage]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1002afea
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 2]
mov cx, word [esi]
inc esi
inc esi
test cx, cx
jne 0x1002aff8
push 0x3c
pop ebx
sub esi, eax
push ebx
lea eax, [ebp - 0x3c]
push 0
push eax
sar esi, 1
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
mov ecx, edi
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
lea ebx, [edi + 8]
push esi
mov ecx, ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
lea ecx, [edi + 0x10]
push esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
lea ecx, [edi + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
lea ecx, [edi + 0x18]
push esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
lea ecx, [edi + 0x1c]
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer_1]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
setne byte [ebp + 0xb]
or esi, 0xffffffff
push esi
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push esi
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push esi
lea ecx, [edi + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push esi
lea ecx, [edi + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push esi
lea ecx, [edi + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push esi
lea ecx, [edi + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
mov eax, dword [ebp - 0x30]
mov dword [edi + 4], eax
mov ax, word [ebp - 0x24]
pop esi
mov word [edi + 0xc], ax
mov al, byte [ebp + 0xb]
pop ebx
leave
ret 4
Function at 0x1002b251
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x10086038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x16c], eax
push 0x100638e4
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
and dword [ebp - 0x184], 0
add esp, 0xc
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0x12
mov esi, 0x400
push esi
call edi
mov ebx, dword [sym.imp.MSVCR90.dll__wtol]
lea eax, [ebp - 0x24]
push eax
call ebx
pop ecx
push 0x10
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x24]
push eax
push 0x10
push esi
call edi
lea eax, [ebp - 0x24]
push eax
call ebx
pop ecx
push 0x10
mov dword [ebp - 0x17c], eax
lea eax, [ebp - 0x44]
push eax
push 0xe
push esi
call edi
lea eax, [ebp - 0x44]
push 0x10
mov dword [ebp - 0x178], eax
lea eax, [ebp - 0x64]
push eax
push 0xf
push esi
call edi
lea eax, [ebp - 0x64]
push 0x10
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x24]
push eax
push 0x1010
push esi
call edi
lea eax, [ebp - 0x24]
push eax
call ebx
mov edi, dword [ebp - 0x16c]
mov dword [esp], 0x100
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [edi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea eax, [ebp - 0x168]
push eax
push 0x1006af94
push edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10050724
leave
ret 8
Function at 0x1002e134
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x10059df6
call fcn.100514bc
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 0x3d4]
mov dword [esi], vtable.CDownloadDlg.0
mov dword [edi], vtable.CDownloadDlg.1.0
mov dword [ebp - 4], 4
mov al, byte [esi + 0x3d8]
test al, al
jne 0x1002e17c
cmp byte [0x10086369], al
jne 0x1002e17c
push dword [esi + 0x404]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi + 0x5b4]
call sub.mfc90u.dll_CProgressCtrl::CProgressCtrl
lea ecx, [esi + 0x560]
mov byte [ebp - 4], 3
call sub.mfc90u.dll_CProgressCtrl::CProgressCtrl
lea ecx, [esi + 0x428]
mov byte [ebp - 4], 2
call sym.PCBRhelper.dll_Ordinal_111
lea ecx, [esi + 0x41c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.1002b38a
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call sym.PCBRhelper.dll_Ordinal_90
call fcn.10051594
ret

Function at 0x1002e3cf
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x100554ff
call fcn.100514bc
xor esi, esi
mov dword [ebp - 0x14], esi
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 8]
push 0x10069918
call dword [0x10061e44]
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002e448
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
lea esi, [ebp - 0x20]
call fcn.10005f1d
lea eax, [ebp - 0x18]
push eax
mov eax, esi
push eax
call fcn.10005fd3
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
push eax
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 - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [ebp - 4], bl
push dword [ebp - 0x20]
call sub.mfc90u.dll_delete__
pop ecx
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [ebp + 8]
call fcn.10051594
ret
Function at 0x1002f5ac
Capabilities:
Get mac address on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2884]
mov eax, 0x2884
call fcn.10051170
push 0xffffffffffffffff
push 0x10051c0a
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x10086038]
xor eax, ebp
mov dword [ebp + 0x2880], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x14], 0
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
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 0x14], 0x2880
call sub.IPHLPAPI.DLL_GetAdaptersInfo
lea esi, [ebp]
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [ebp - 0x10]
push str._02X_02X_02X_02X_02X_02X
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov eax, dword [ebp - 0x10]
mov esi, dword [esi]
add esp, 0x20
cmp dword [eax - 0xc], 0
je 0x1002f66d
push 0x100693ec
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
jne 0x1002f671
test esi, esi
jne 0x1002f60e
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call dword [0x10061dd0]
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]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x2880]
xor ecx, ebp
call fcn.10050724
add ebp, 0x2884
leave
ret
Function at 0x1003c3b7
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1003c41f
mov esi, 0x114
xor ebx, ebx
push esi
inc ebx
call dword [sym.imp.MSVCR90.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x1003c479
push esi
push 0
push edi
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x1003c402
push 5
jmp 0x1003c470
cmp eax, 5
jne 0x1003c471
cmp dword [edi + 8], 0
jne 0x1003c411
push 6
jmp 0x1003c470
cmp eax, 5
jne 0x1003c471
cmp dword [edi + 8], ebx
jne 0x1003c471
push 7
jmp 0x1003c470
cmp al, 4
jae 0x1003c427
xor ebx, ebx
jmp 0x1003c479
push 2
pop ebx
mov esi, 0x114
push esi
call dword [sym.imp.MSVCR90.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x1003c479
push esi
push 0
push edi
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x1003c471
cmp dword [edi + 8], 0xa
jne 0x1003c464
push 3
jmp 0x1003c470
cmp eax, 4
jne 0x1003c471
cmp dword [edi + 8], 0x5a
jne 0x1003c471
push eax
pop ebx
push edi
call dword [sym.imp.MSVCR90.dll_free]
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x1004029e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
movzx esi, word [esp + 0x10]
push edi
push 2
push esi
call sub.mfc90u.dll_AfxFindResourceHandle
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 2
mov ebp, eax
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
jne 0x100402d5
push 2
push esi
xor ebp, ebp
push ebp
call ebx
mov edi, eax
test edi, edi
jne 0x100402d5
xor eax, eax
jmp 0x10040316
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100402d1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x100402d1
cmp dword [eax + 0x20], 0
je 0x100402f8
movzx eax, word [eax + 0x20]
jmp 0x10040307
movzx eax, word [eax + 0xe]
dec eax
je 0x10040304
sub eax, 3
jmp 0x1004030b
push 2
pop eax
cmp ax, 0x10
jne 0x100402d1
push 0
push edi
push ebp
call sub.mfc90u.dll_AfxLoadSysColorBitmap
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10040331
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1d8]
sub esp, 0x258
mov eax, dword [0x10086038]
xor eax, ebp
mov dword [ebp + 0x1d4], eax
push esi
xor esi, esi
cmp dword [0x1008a4e0], esi
jne 0x10040400
push ebx
lea eax, [ebp - 0x78]
push eax
push 0x20019
push esi
xor ebx, ebx
push str.SoftwareMicrosoftPlus_ThemesCurrent
inc ebx
push SysReAllocString
mov dword [0x1008a4e0], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100403ff
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
push esi
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x104
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100403f6
push edi
push 0xb
pop ecx
mov esi, str.Windows_Classic.theme
lea edi, [ebp + 0x1a8]
lea eax, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
mov edi, eax
lea eax, [ebp + 0x1a8]
push eax
call esi
cmp edi, eax
jl 0x100403f5
lea eax, [ebp + 0x1a8]
push eax
push eax
call esi
sub edi, eax
lea eax, [ebp + edi*2 - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100403f5
mov dword [0x1008a4dc], ebx
pop edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp + 0x1d4]
mov eax, dword [0x1008a4dc]
xor ecx, ebp
pop esi
call fcn.10050724
add ebp, 0x1d8
leave
ret
Function at 0x1004560e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1f5c
call fcn.10051170
mov eax, dword [0x10086038]
xor eax, esp
mov dword [esp + 0x1f58], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
test eax, eax
jne 0x10045644
xor al, al
jmp 0x100456ff
push 0x100707f4
push eax
call dword [sym.imp.MSVCR90.dll__wfopen]
mov esi, eax
pop ecx
pop ecx
mov dword [esp + 0xc], esi
test esi, esi
je 0x1004563d
mov edi, dword [sym.imp.MSVCR90.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCR90.dll_ftell]
push 0
cdq
push 0
push dword [esp + 0x24]
mov ebx, eax
mov esi, edx
call edi
add esp, 0x1c
mov edi, ebx
mov dword [esp + 0x14], esi
test esi, esi
jl 0x100456eb
jg 0x10045692
test ebx, ebx
jbe 0x100456eb
cmp dword [esp + 0x14], 0
jl 0x100456aa
jg 0x100456a3
cmp edi, 0x1f40
jbe 0x100456aa
mov eax, 0x1f40
jmp 0x100456ac
mov eax, edi
push dword [esp + 0xc]
push eax
lea eax, [esp + 0x28]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fread]
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x10045716
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov eax, ebx
call fcn.1004556a
sub edi, ebx
sbb dword [esp + 0x14], 0
cmp dword [esp + 0x14], 0
jg 0x100456a3
jl 0x100456eb
test edi, edi
ja 0x10045692
push dword [esp + 0xc]
call dword [sym.imp.MSVCR90.dll_fclose]
xor eax, eax
or edi, dword [esp + 0x18]
pop ecx
jne 0x100456ff
inc eax
mov ecx, dword [esp + 0x1f64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10050724
mov esp, ebp
pop ebp
ret 8
push dword [esp + 0xc]
call dword [sym.imp.MSVCR90.dll_fclose]
pop ecx
jmp 0x1004563d

Function at 0x1004598a
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push 0x1b
mov esi, ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x100459a3
push 2
mov ecx, esi
call sym.PCBRhelper.dll_Ordinal_228
pop esi
ret
Function at 0x10048157
Capabilities:
Get system information on windows

Disassembly:
push ebp
sub esp, 0x11c
lea ebp, [esp - 4]
mov eax, dword [0x10086038]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push 0x3c
mov eax, 0x100519de
call fcn.100514ef
mov eax, dword [ebp + 0x128]
and dword [ebp - 4], 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x12c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x130]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x134]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x138]
push 9
mov ebx, ecx
pop ecx
mov dword [ebp - 0x18], eax
xor eax, eax
mov esi, 0x11c
push esi
lea edi, [ebp - 0x48]
push eax
rep stosd dword es:[edi], eax
lea eax, [ebp]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp - 0x24]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
mov dword [ecx], eax
movzx eax, byte [ebp + 0x11a]
mov ecx, dword [ebp - 0x20]
push str.GetNativeSystemInfo
push 0x100636e4
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004821e
lea ecx, [ebp - 0x48]
push ecx
call eax
jmp 0x10048228
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x48]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
movzx eax, word [ebp + 0x114]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
movzx eax, word [ebp + 0x116]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.10050724
add ebp, 0x120
leave
ret 0x14
Function at 0x10048369
Capabilities:
Get memory capacity

Disassembly:
push 0x70
mov eax, 0x10057346
call fcn.100514ef
and dword [ebp - 4], 0
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x68]
mov edi, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x30], eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
push ebx
push edi
mov ebx, str._llu
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
mov edi, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
push ebx
push eax
call edi
add esp, 0x10
push dword [ebp - 0x38]
lea eax, [ebp - 0x20]
push esi
push ebx
push eax
call edi
add esp, 0x10
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x2c]
push ebx
push eax
call edi
add esp, 0x10
push dword [ebp - 0x30]
lea eax, [ebp - 0x18]
push dword [ebp - 0x34]
push ebx
push eax
call edi
mov esi, dword [ebp + 8]
add esp, 0x10
xor edi, edi
inc edi
push edi
push 0
push str.memory_info
push esi
call fcn.10049740
mov eax, esi
call fcn.10048bea
push edi
push dword [ebp - 0x24]
push str.total_phy
push esi
call fcn.10049740
push edi
push dword [ebp - 0x20]
push str.avail_phy
push esi
call fcn.10049740
push edi
push dword [ebp - 0x1c]
push str.total_page_file
push esi
call fcn.10049740
push edi
push dword [ebp - 0x18]
push str.avail_page_file
push esi
call fcn.10049740
call fcn.10048c14
lea ecx, [ebp - 0x18]
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 - 0x1c]
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 - 0x20]
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 - 0x24]
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 4