joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002ed0b
Capabilities:
Get mac address on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2884]
mov eax, 0x2884
call fcn.100592a0
push 0xffffffffffffffff
push 0x1005a852
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x100a8050]
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 0x1002edcc
push 0x10074b84
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 0x1002edd0
test esi, esi
jne 0x1002ed6d
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call dword [0x1006ce0c]
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.1005883e
add ebp, 0x2884
leave
ret
Function at 0x1002f456
Capabilities:
Check if file exists
Delete file

Disassembly:
push 4
mov eax, 0x10063fb0
call fcn.1005970d
mov dword [ebp - 4], 1
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002f47f
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x1002f4eb
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
je 0x1002f4eb
mov byte [ebp - 4], 2
call fcn.1002dd6d
cmp eax, ebx
je 0x1002f4eb
call fcn.1002dd38
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002dd26
mov ebx, 0x100751c0
call fcn.1002dd9e
call fcn.1002dc21
lea ecx, [ebp + 8]
test eax, eax
je 0x1002f4e1
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 bl, 1
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 al, bl
call fcn.100597b2
ret 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]
xor bl, bl
jmp 0x1002f4ce
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 0x1002f4ce
Function at 0x10030622
Capabilities:
Check if file exists
Delete file
Download url
Receive data

Disassembly:
push 4
mov eax, 0x1005e607
call fcn.1005970d
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 2
call sym.SACOhelper.dll_public:_static_bool___cdecl_CSystweakApp::IsInternetConnected_void_
cmp al, bl
jne 0x10030665
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x3e8af0
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]
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]
xor eax, eax
call fcn.100597b2
ret 0xc
push dword [ebp + 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x1003067d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x1003069d
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call sub.urlmon.dll_URLDownloadToFileW
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x10030640
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]
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]
xor eax, eax
inc eax
jmp 0x1003065d
Function at 0x1003cfb9
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1003d021
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 0x1003d07b
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 0x1003d004
push 5
jmp 0x1003d072
cmp eax, 5
jne 0x1003d073
cmp dword [edi + 8], 0
jne 0x1003d013
push 6
jmp 0x1003d072
cmp eax, 5
jne 0x1003d073
cmp dword [edi + 8], ebx
jne 0x1003d073
push 7
jmp 0x1003d072
cmp al, 4
jae 0x1003d029
xor ebx, ebx
jmp 0x1003d07b
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 0x1003d07b
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 0x1003d073
cmp dword [edi + 8], 0xa
jne 0x1003d066
push 3
jmp 0x1003d072
cmp eax, 4
jne 0x1003d073
cmp dword [edi + 8], 0x5a
jne 0x1003d073
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 0x10040ea0
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 0x10040ed7
push 2
push esi
xor ebp, ebp
push ebp
call ebx
mov edi, eax
test edi, edi
jne 0x10040ed7
xor eax, eax
jmp 0x10040f18
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10040ed3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x10040ed3
cmp dword [eax + 0x20], 0
je 0x10040efa
movzx eax, word [eax + 0x20]
jmp 0x10040f09
movzx eax, word [eax + 0xe]
dec eax
je 0x10040f06
sub eax, 3
jmp 0x10040f0d
push 2
pop eax
cmp ax, 0x10
jne 0x10040ed3
push 0
push edi
push ebp
call sub.mfc90u.dll_AfxLoadSysColorBitmap
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100411c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1d8]
sub esp, 0x258
mov eax, dword [0x100a8050]
xor eax, ebp
mov dword [ebp + 0x1d4], eax
push esi
xor esi, esi
cmp dword [0x100ac6fc], esi
jne 0x10041298
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 [0x100ac6fc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10041297
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 0x1004128e
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 0x1004128d
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 0x1004128d
mov dword [0x100ac6f8], ebx
pop edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp + 0x1d4]
mov eax, dword [0x100ac6f8]
xor ecx, ebp
pop esi
call fcn.1005883e
add ebp, 0x1d8
leave
ret
Function at 0x10045128
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x18], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret

Function at 0x10046527
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1f5c
call fcn.100592a0
mov eax, dword [0x100a8050]
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 0x1004655d
xor al, al
jmp 0x10046618
push 0x1007c964
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 0x10046556
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 0x10046604
jg 0x100465ab
test ebx, ebx
jbe 0x10046604
cmp dword [esp + 0x14], 0
jl 0x100465c3
jg 0x100465bc
cmp edi, 0x1f40
jbe 0x100465c3
mov eax, 0x1f40
jmp 0x100465c5
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 0x1004662f
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov eax, ebx
call fcn.10046483
sub edi, ebx
sbb dword [esp + 0x14], 0
cmp dword [esp + 0x14], 0
jg 0x100465bc
jl 0x10046604
test edi, edi
ja 0x100465ab
push dword [esp + 0xc]
call dword [sym.imp.MSVCR90.dll_fclose]
xor eax, eax
or edi, dword [esp + 0x18]
pop ecx
jne 0x10046618
inc eax
mov ecx, dword [esp + 0x1f64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005883e
mov esp, ebp
pop ebp
ret 8
push dword [esp + 0xc]
call dword [sym.imp.MSVCR90.dll_fclose]
pop ecx
jmp 0x10046556

Function at 0x100468be
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push 0x1b
mov esi, ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x100468d7
push 2
mov ecx, esi
call sym.SACOhelper.dll_public:_void___thiscall_CDlgBaseWndPopupNagBase::ActionOnBtnClick_enum_CDlgBaseWndPopupNagBase::BTN_CLICKED_
pop esi
ret
Function at 0x100491c2
Capabilities:
Get system information on windows

Disassembly:
push ebp
sub esp, 0x11c
lea ebp, [esp - 4]
mov eax, dword [0x100a8050]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push 0x3c
mov eax, 0x1005a626
call fcn.1005970d
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 0x1006ee78
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10049289
lea ecx, [ebp - 0x48]
push ecx
call eax
jmp 0x10049293
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.1005883e
add ebp, 0x120
leave
ret 0x14
Function at 0x100493d4
Capabilities:
Get memory capacity

Disassembly:
push 0x70
mov eax, 0x1005f8b5
call fcn.1005970d
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.1004a7b3
mov eax, esi
call fcn.10049c5d
push edi
push dword [ebp - 0x24]
push str.total_phy
push esi
call fcn.1004a7b3
push edi
push dword [ebp - 0x20]
push str.avail_phy
push esi
call fcn.1004a7b3
push edi
push dword [ebp - 0x1c]
push str.total_page_file
push esi
call fcn.1004a7b3
push edi
push dword [ebp - 0x18]
push str.avail_page_file
push esi
call fcn.1004a7b3
call fcn.10049c87
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.100597b2
ret 4
Function at 0x1004ac5f
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x100a8050]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
mov dword [ebp - 0x80], eax
xor edi, edi
xor eax, eax
mov esi, 0x100
mov byte [ebp + eax + 0x90], al
inc eax
cmp eax, esi
jb 0x1004ac8f
xor eax, eax
xor ecx, ecx
cmp eax, 0x31
jne 0x1004aca6
xor eax, eax
mov dl, byte [eax + str._hardwareidentifier_pci_ven__s_hardwareidentifier_]
inc eax
mov byte [ebp + ecx - 0x74], dl
inc ecx
cmp ecx, esi
jb 0x1004ac9f
mov dword [ebp - 0x78], edi
mov eax, 0xff
movsx esi, byte [ebp + edi - 0x74]
add esi, dword [ebp - 0x78]
lea ecx, [ebp + edi + 0x90]
mov dl, byte [ecx]
movsx ebx, dl
add ebx, esi
and ebx, eax
mov esi, ebx
mov dword [ebp - 0x78], esi
lea esi, [ebp + esi + 0x90]
mov bl, byte [esi]
inc edi
mov byte [ecx], bl
mov byte [esi], dl
cmp edi, 0x100
jb 0x1004acbe
xor edi, edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
cmp dword [ebp + 0x1a4], edi
jbe 0x1004ad4c
inc edi
and edi, eax
lea ecx, [ebp + edi + 0x90]
mov dl, byte [ecx]
movsx esi, dl
add esi, dword [ebp - 0x78]
and esi, eax
mov dword [ebp - 0x78], esi
lea esi, [ebp + esi + 0x90]
mov bl, byte [esi]
mov byte [ecx], bl
mov ebx, dword [ebp - 0x80]
mov byte [esi], dl
movsx ecx, byte [ecx]
mov esi, dword [ebp - 0x7c]
movsx edx, dl
add ecx, edx
and ecx, eax
mov cl, byte [ebp + ecx + 0x90]
add ebx, esi
xor byte [ebx], cl
inc esi
mov dword [ebp - 0x7c], esi
cmp esi, dword [ebp + 0x1a4]
jb 0x1004ad01
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005883e
add ebp, 0x198
leave
ret 8

Function at 0x1004b912
Capabilities:
Hash data with md5

Disassembly:
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], vtable.CMD5Checksum.0
call sub.MSVCR90.dll_memset
and dword [esi + 0x48], 0
and dword [esi + 0x44], 0
add esp, 0xc
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
ret
Function at 0x1004e77f
Capabilities:
Get common file path
Shutdown system

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x100a8050]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x24
mov eax, 0x1005cf7c
call fcn.100596da
lea eax, [ebp - 0x18]
push eax
push 0x28
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1004e8c3
lea eax, [ebp - 0x20]
push eax
push str.SeShutdownPrivilege
xor ebx, ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, ebx
je 0x1004e8c3
mov eax, dword [ebp - 0x20]
push ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
push ebx
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1004e8c3
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]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp]
push eax
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]
push str.winsxspending.xml
lea ecx, [ebp - 0x14]
call dword [0x1006ce70]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call sym.SACOhelper.dll_enum_PCO_ERROR_CODES___cdecl_STPathAppend_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
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 eax, [ebp - 0x10]
push eax
call sym.SACOhelper.dll_enum_PCO_ERROR_CODES___cdecl_DoesPathExists_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__
pop ecx
test eax, eax
je 0x1004e893
call sym.SACOhelper.dll_unsigned_long_int___cdecl__winmajor_void_
cmp eax, 5
jbe 0x1004e893
push 0x12
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x1004e8ba
xor eax, eax
cmp byte [esi + 0x3d8], bl
push 0x10
setne al
inc eax
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
call fcn.10010207
push ebx
push ebx
push 0x10
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
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 ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1005883e
add ebp, 0x20c
leave
ret
Function at 0x1004fa35
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x100a8050]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
mov esi, ecx
push edi
push esi
mov ecx, 0x100ac738
mov dword [0x100ac734], 0x1000
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov eax, esi
push 2
lea edx, [eax + 2]
pop edi
xor ebx, ebx
mov cx, word [eax]
add eax, edi
cmp cx, bx
jne 0x1004fa75
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x1004fafa
cmp word [esi + 2], 0x3a
je 0x1004fafa
push 0x104
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x7c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
cmp cx, bx
jne 0x1004faa5
sub eax, edx
sar eax, 1
lea ecx, [ebp + eax*2 - 0x7e]
je 0x1004fac6
sub ecx, edi
dec eax
cmp word [ecx], 0x5c
je 0x1004facc
cmp eax, ebx
jne 0x1004fab9
cmp word [ecx], 0x5c
jne 0x1004fae3
lea edx, [ecx + 2]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, edi
cmp cx, bx
jne 0x1004fad3
jmp 0x1004fb0f
lea edx, [ebp - 0x7c]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, edi
cmp cx, bx
jne 0x1004faea
jmp 0x1004fb0f
lea edx, [ebp - 0x7c]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, edi
cmp cx, bx
jne 0x1004fb01
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1004fb32
push ecx
lea eax, [ebp - 0x7c]
mov ecx, esp
mov dword [ebp - 0x80], esp
push eax
call dword [0x1006ce70]
call fcn.1004fc24
push ebx
push 0x8b041
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [0x100ac720]
mov esi, 0x100ac720
mov ecx, esi
call dword [eax + 0x28]
test eax, eax
je 0x1004fb65
mov eax, dword [0x100ac720]
push edi
push ebx
push ebx
mov ecx, esi
mov byte [0x100ac730], 1
call dword [eax + 0x30]
jmp 0x1004fb6b
mov byte [0x100ac730], bl
push 0x100ac704
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005883e
add ebp, 0x194
leave
ret
Function at 0x10050066
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
push dword [esi + 0xc]
mov dword [esi + 0x10], edi
push 0xa
push str.ncacn_np
call dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
test eax, eax
je 0x10050093
mov dword [esi + 0x10], 4
xor eax, eax
jmp 0x100500d3
push sym.SACOhelper.dll_protected:_struct_HBRUSH______thiscall_CTransparentStatic2::CtlColor_class_CDC___unsigned_int_
push 0x4d2
push 0x10
push edi
push edi
push dword [esi + 8]
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIfEx]
test eax, eax
jne 0x10050088
lea eax, [ebp - 4]
push eax
push edi
push edi
push sym.SACOhelper.dll_private:_static_unsigned_long_int___stdcall_CRpcServer::RpcServerListenThreadProc_void__
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
cmp eax, edi
je 0x10050088
mov eax, dword [ebp + 8]
mov dword [esi], eax
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4

Function at 0x100500d9
Capabilities:
Listen for remote procedure calls

Disassembly:
push 0
push 0x4d2
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
ret 4