joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51af00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x100
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x18]
push ebp
push 0x5965b8
push str._shistory_s_symgroups.raw
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x10]
push 0x581660
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
xor edi, edi
add esp, 8
cmp ebx, edi
je 0x51af7e
push ebx
lea edi, [esi + 0x60]
push 1
push 0xa00
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x51af72
mov ecx, 0x280
xor eax, eax
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor edi, edi
mov eax, dword [esi + 0x58]
cmp eax, edi
je 0x51af91
push eax
call fcn.004c2eb0
add esp, 4
mov dword [esi + 0x58], edi
push ebp
push 0x5965b8
push str._shistory_s_symbols.raw
lea edx, [esp + 0x1c]
push 0xff
push edx
mov dword [esi + 0x5c], edi
mov dword [esi + 0xa60], edi
call dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [esp + 0x24]
push 0x581660
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x1c
cmp ebx, edi
je 0x51b055
mov ecx, dword [ebx + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll__filelength]
mov edi, eax
mov eax, 0xecf56bf
mul edi
sub edi, edx
add esp, 4
shr edi, 1
add edi, edx
shr edi, 0xa
test edi, edi
jle 0x51b04b
lea eax, [edi + edi*2 + 3]
lea edx, [eax + eax*4]
lea eax, [edi + edx*8 + 1]
shl eax, 4
push eax
call fcn.004c2e90
add esp, 4
mov dword [esi + 0x58], eax
test eax, eax
push ebx
je 0x51b04c
lea ecx, [edi + edi*2]
push 1
lea ecx, [ecx + ecx*4]
lea edx, [edi + ecx*8]
shl edx, 4
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x51b03e
mov dword [esi + 0xa60], 1
jmp 0x51b04b
mov dword [esi + 0x5c], edi
mov dword [esi + 0xa60], 0
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
Function at 0x51b070
Capabilities:
Check if file exists
Create directory
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x100
push ebp
mov ebp, ecx
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0xa60], 1
jne 0x51b18b
push ebx
push esi
mov ebx, dword [sym.imp.MSVCRT.dll__snprintf]
push edi
lea edi, [ebp + 0x18]
lea eax, [esp + 0x10]
push edi
push 0x5965b8
push str._shistory_s
push 0xff
push eax
call ebx
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x51b0d0
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
push 0x5965b8
push str._shistory_s_symbols.raw
lea eax, [esp + 0x1c]
push 0xff
push eax
call ebx
lea ecx, [esp + 0x24]
push 0x581698
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x51b132
mov edx, dword [ebp + 0x58]
test edx, edx
je 0x51b128
mov eax, dword [ebp + 0x5c]
test eax, eax
jle 0x51b128
lea ecx, [eax + eax*2]
push esi
push 1
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*8]
shl eax, 4
push eax
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push edi
push 0x5965b8
push str._shistory_s_symgroups.raw
lea ecx, [esp + 0x1c]
push 0xff
push ecx
call ebx
lea edx, [esp + 0x24]
push 0x581698
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x51b17e
push esi
push 1
lea eax, [ebp + 0x60]
push 0xa00
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
mov dword [ebp + 0xa60], 0
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
add esp, 0x100
ret
Function at 0x51c630
Capabilities:
Check if file exists
Create directory
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x104
push ebx
push esi
mov esi, ecx
mov ebx, dword [sym.imp.MSVCRT.dll__snprintf]
push edi
lea eax, [esp + 0x10]
lea edi, [esi + 0x18]
mov dword [esp + 0xc], 0x190
push edi
push 0x5965b8
push str._shistory_s
push 0xff
push eax
call ebx
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x51c683
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push 0x5965b8
push str._shistory_s_symbols.sel
lea eax, [esp + 0x1c]
push 0xff
push eax
call ebx
lea ecx, [esp + 0x24]
push 0x581698
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x51c6fa
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
push edi
push 1
lea edx, [esp + 0x14]
push 4
push edx
call ebx
mov ecx, dword [esi + 0xa64]
add esp, 0x10
test ecx, ecx
je 0x51c6f0
mov eax, dword [esi + 0xa68]
test eax, eax
jle 0x51c6f0
push edi
push 1
shl eax, 7
push eax
push ecx
call ebx
add esp, 0x10
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x51f900
Capabilities:
Read file on windows

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
mov esi, ecx
je 0x51f984
mov eax, dword [esi + 0x10]
test eax, eax
je 0x51f924
push eax
call fcn.004c2eb0
add esp, 4
mov dword [esi + 0x10], 0
push 0x581660
push edi
mov dword [esi + 8], 0
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x51f947
push str.TemplateFile:_cannot_open_the_template_file
jmp 0x51f975
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
mov ebp, eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.004c2e90
add esp, 8
mov dword [esi + 0x10], eax
test eax, eax
push edi
jne 0x51f98c
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push str.TemplateFile:_not_enough_memory_for_template
push 4
push 0x596558
call fcn.004aa400
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebp
ret 4
push 1
push ebp
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
push edi
je 0x51f9d4
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push str.TemplateFile:_reading_error
push 4
push 0x596558
call fcn.004aa400
mov edx, dword [esi + 0x10]
push edx
call fcn.004c2eb0
add esp, 0x10
mov dword [esi + 0x10], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esi + 0x10]
add esp, 4
mov byte [eax + ebp], 0
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], ecx
pop edi
pop esi
mov eax, 1
pop ebp
ret 4

Function at 0x51fa00
Capabilities:
Delete file
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
mov dword [esp + 8], 0
jne 0x51fa1d
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x51fa4c
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x51fa6a
mov eax, dword [edi + 8]
test eax, eax
jle 0x51fa6a
lea edx, [esp + 8]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ecx
ret 4
Function at 0x540e60
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x304]
test eax, eax
je 0x540f47
mov eax, dword [ebx + 0x308]
test eax, eax
je 0x540f47
mov dword [ebx + 0x2e4], 0
mov eax, dword [ebx + 0x30c]
test eax, eax
jle 0x541033
mov eax, dword [ebx + 0x318]
mov ecx, dword [ebx + 0x2f0]
cmp eax, ecx
jge 0x540f53
mov ecx, dword [ebx + 0x2d8]
test ecx, ecx
je 0x540f47
mov eax, dword [ebx + 0x31c]
push 0
mov dword [ebx + 0x2f0], eax
lea edx, [eax + eax*2 + 0x2a]
lea eax, [eax + edx*4 + 0xe]
shl eax, 2
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x540f47
mov esi, dword [ebx + 0x2f4]
mov edx, dword [ebx + 0x2f0]
mov eax, dword [ebx + 0x2ec]
sub esi, edx
cmp esi, eax
jle 0x540efd
mov esi, eax
mov ecx, dword [ebx + 0x2d8]
lea edx, [esi + esi*2]
push ecx
mov ecx, dword [ebx + 0x2dc]
lea eax, [esi + edx*4]
push 1
shl eax, 2
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x540f4d
mov ebx, dword [ebx + 0x304]
mov edx, dword [ebx + 0x2c]
add ebx, 0x20
push edx
push ebx
push str.TestGenerator:_error_reading_file_for__s_d
push 1
push 0x5960a0
call fcn.0046b660
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov dword [ebx + 0x2e8], esi
mov eax, dword [ebx + 0x314]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [ebx + 0x304]
mov ecx, dword [eax + 4]
mov eax, dword [ebx + 0x318]
lea edx, [ecx + edx*4 - 0x2c]
mov ecx, dword [ebx + 0x2f0]
sub eax, ecx
mov dword [ebx + 0x300], edx
mov edi, dword [ebx + 0x300]
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
mov eax, dword [ebx + 0x2dc]
mov ecx, 0xb
lea esi, [eax + edx*4]
mov dword [ebx + 0x2f8], esi
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x304]
mov edx, dword [ebx + 0x314]
mov dword [ecx + 8], edx
mov esi, dword [ebx + 0x310]
mov eax, dword [ebx + 0x2e8]
test esi, esi
jne 0x540fdf
lea ecx, [eax + eax*2]
pop edi
pop esi
lea edx, [eax + ecx*4]
mov eax, dword [ebx + 0x2dc]
lea ecx, [eax + edx*4]
mov eax, 1
mov dword [ebx + 0x2fc], ecx
pop ebx
ret
mov ecx, dword [ebx + 0x2dc]
lea edx, [eax + eax*2]
lea edx, [eax + edx*4]
mov edi, dword [ecx + edx*4 - 8]
lea edx, [ecx + edx*4]
cmp edi, esi
jge 0x541005
pop edi
mov dword [ebx + 0x2fc], edx
pop esi
mov eax, 1
pop ebx
ret
xor edx, edx
mov dword [ebx + 0x2fc], ecx
test eax, eax
jle 0x54108e
mov ecx, dword [ebx + 0x2fc]
cmp dword [ecx + 0x2c], esi
jge 0x54108e
inc edx
add ecx, 0x34
cmp edx, eax
mov dword [ebx + 0x2fc], ecx
jl 0x541011
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov ecx, ebx
mov dword [ebx + 0x2f0], 0
call fcn.005412b0
test eax, eax
je 0x540f47
cmp dword [ebx + 0x2e8], 0x64
jl 0x540f47
mov eax, dword [ebx + 0x2dc]
mov dword [ebx + 0x2f8], eax
mov eax, dword [ebx + 0x304]
mov ecx, dword [eax + 4]
mov dword [ebx + 0x300], ecx
mov dword [eax + 8], 1
mov esi, dword [ebx + 0x2f8]
mov edi, dword [ebx + 0x300]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x543300
Capabilities:
Write file on windows

Disassembly:
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov eax, dword [esi + 0x2dc]
test eax, eax
jne 0x543313
pop esi
pop ebp
ret
mov ecx, dword [esi + 0x2e8]
mov edx, dword [esi + 0x2f4]
cmp edx, ecx
push edi
jne 0x543387
mov eax, dword [esi + 0x2d8]
push 0
push 0
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [esi + 0x2d8]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push ecx
push 1
push 0x2d8
push esi
call edi
add esp, 0x1c
cmp eax, 1
jne 0x5433df
mov edx, dword [esi + 0x2d8]
mov eax, dword [esi + 0x2e8]
mov ecx, dword [esi + 0x2dc]
push edx
push eax
push 0x34
push ecx
call edi
mov ecx, dword [esi + 0x2e8]
add esp, 0x10
mov ebp, eax
xor eax, eax
cmp ebp, ecx
pop edi
pop esi
pop ebp
sete al
ret
mov edx, dword [esi + 0x2d8]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push edx
push ecx
push 0x34
push eax
call edi
mov ebp, eax
mov eax, dword [esi + 0x2d8]
push eax
call dword [sym.imp.MSVCRT.dll_fflush]
mov ecx, dword [esi + 0x2d8]
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push 0
push ecx
call ebx
mov edx, dword [esi + 0x2d8]
push edx
push 1
push 0x2d8
push esi
call edi
mov eax, dword [esi + 0x2d8]
push 2
push 0
push eax
call ebx
add esp, 0x3c
pop ebx
mov ecx, dword [esi + 0x2e8]
xor eax, eax
cmp ebp, ecx
pop edi
pop esi
pop ebp
sete al
ret
Function at 0x5492d1
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
push str.UxTheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
mov dword [esi], eax
cmp eax, ebx
je 0x549349
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi]
push str.CloseThemeData
push eax
call edi
mov ecx, dword [esi]
push str.DrawThemeBackground
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi]
push str.DrawThemeParentBackground
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push str.DrawThemeText
push eax
call edi
mov ecx, dword [esi]
push str.IsAppThemed
push ecx
mov dword [esi + 0x14], eax
call edi
cmp eax, ebx
mov dword [esi + 0x18], eax
pop edi
je 0x54935b
call eax
mov dword [esi + 0x1c], eax
mov eax, esi
pop esi
pop ebx
ret
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov eax, esi
pop esi
pop ebx
ret

Function at 0x5495b0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
test eax, eax
je 0x5495ec
lea ecx, [esp + 4]
mov dword [esp + 4], 0xffffffff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 4], 0x103
je 0x549628
mov edx, dword [esi + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x68], 0
lea eax, [esp + 8]
mov dword [esi + 0x250], 0
push eax
push 0
push esi
push 0x549630
push 0x1f400
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x68], eax
mov eax, 1
pop esi
add esp, 8
ret
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x54cc50
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x248
push ebx
mov ebx, dword [esp + 0x250]
test ebx, ebx
push esi
mov dword [esp + 8], 0
je 0x54ce0f
mov eax, dword [ebx + 4]
push 2
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sub.MFC42.DLL_CMenu::FromHandle
mov esi, eax
test esi, esi
je 0x54cc98
mov ecx, dword [esi + 4]
push 0x400
push 0
push ecx
call dword [sym.imp.USER32.dll_DeleteMenu]
push edi
push 0x5965b8
push str._s_templates.tpl
lea edx, [esp + 0x1c]
push 0xff
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [esp + 0x114]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x54cdc7
mov ebx, dword [sym.imp.USER32.dll_AppendMenuA]
push ebp
mov ebp, 0x8854
test byte [esp + 0x118], 0x10
jne 0x54cd99
lea edx, [esp + 0x144]
push 0xff
lea eax, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
movsx ecx, byte [esp + 0x24]
push ecx
mov byte [esp + 0x127], 0
call dword [sym.imp.MSVCRT.dll_toupper]
mov byte [esp + 0x28], al
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
test ecx, ecx
jle 0x54cd45
cmp byte [esp + ecx + 0x18], 0x2e
je 0x54cd45
dec ecx
test ecx, ecx
jg 0x54cd39
mov byte [esp + ecx + 0x18], 0
mov ecx, dword [esp + 0x25c]
lea edx, [esp + 0x18]
lea eax, [ebp - 0x64]
push edx
mov edx, dword [ecx + 4]
push eax
push 0
push edx
call ebx
test esi, esi
je 0x54cd8b
lea eax, [esp + 0x18]
push str.default
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x54cd8b
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push ebp
push 0
push edx
call ebx
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
inc ecx
inc ebp
mov dword [esp + 0x10], ecx
cmp ebp, 0x8894
jge 0x54cdb8
lea eax, [esp + 0x118]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x54cce4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x25c]
pop ebp
mov eax, dword [esp + 0x25c]
pop edi
test eax, eax
je 0x54ce0f
test esi, esi
je 0x54cdf7
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, 1
jae 0x54cdf7
mov edx, dword [ebx + 4]
push 0x400
push 2
push edx
call dword [sym.imp.USER32.dll_DeleteMenu]
cmp dword [esp + 8], 1
jge 0x54ce0f
mov eax, dword [ebx + 4]
push 0x400
push 2
push eax
call dword [sym.imp.USER32.dll_DeleteMenu]
pop esi
pop ebx
add esp, 0x248
ret
Function at 0x54ce20
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x244
push ebp
push esi
push edi
mov edi, dword [esp + 0x254]
test edi, edi
je 0x54cfbb
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
push 0x400
push 4
push eax
call esi
test eax, eax
je 0x54ce60
mov ecx, dword [edi + 4]
push 0x400
push 4
push ecx
call esi
test eax, eax
jne 0x54ce4f
mov edx, dword [edi + 4]
push 2
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sub.MFC42.DLL_CMenu::FromHandle
mov ebp, eax
test ebp, ebp
je 0x54ce9a
mov eax, dword [ebp + 4]
push 0x400
push 0
push eax
call esi
test eax, eax
je 0x54ce9a
mov ecx, dword [ebp + 4]
push 0x400
push 0
push ecx
call esi
test eax, eax
jne 0x54ce89
push 0x5965b8
push str._s_templates.tpl
lea edx, [esp + 0x18]
push 0xff
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [esp + 0x110]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0xc], edi
je 0x54cfbb
push ebx
mov ebx, dword [sym.imp.USER32.dll_AppendMenuA]
mov esi, 0x8854
test byte [esp + 0x114], 0x10
jne 0x54cf91
lea edx, [esp + 0x140]
push 0xff
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
movsx ecx, byte [esp + 0x20]
push ecx
mov byte [esp + 0x123], 0
call dword [sym.imp.MSVCRT.dll_toupper]
mov byte [esp + 0x24], al
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
test ecx, ecx
jle 0x54cf46
cmp byte [esp + ecx + 0x14], 0x2e
je 0x54cf46
dec ecx
test ecx, ecx
jg 0x54cf3a
mov byte [esp + ecx + 0x14], 0
mov ecx, dword [esp + 0x258]
lea edx, [esp + 0x14]
lea eax, [esi - 0x64]
push edx
mov edx, dword [ecx + 4]
push eax
push 0
push edx
call ebx
test ebp, ebp
je 0x54cf8c
lea eax, [esp + 0x14]
push str.default
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x54cf8c
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push esi
push 0
push edx
call ebx
mov edi, dword [esp + 0x10]
inc esi
lea eax, [esi - 0x8854]
cmp eax, 0x40
jge 0x54cfb3
lea ecx, [esp + 0x114]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x54cee5
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x244
ret
Function at 0x54d170
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x248
push ebx
mov ebx, dword [esp + 0x250]
test ebx, ebx
mov dword [esp + 4], 0
je 0x54d310
mov eax, dword [ebx + 4]
push esi
push 1
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sub.MFC42.DLL_CMenu::FromHandle
mov esi, eax
test esi, esi
je 0x54d1b8
mov ecx, dword [esi + 4]
push 0x400
push 0
push ecx
call dword [sym.imp.USER32.dll_DeleteMenu]
push edi
push 0x5965b8
push str._s_symbolsets.set
lea edx, [esp + 0x1c]
push 0xff
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [esp + 0x114]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x54d2d0
mov ebx, dword [sym.imp.USER32.dll_AppendMenuA]
push ebp
mov ebp, 0x89e4
test byte [esp + 0x118], 0x10
jne 0x54d2a2
lea edx, [esp + 0x144]
push 0xff
lea eax, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
movsx ecx, byte [esp + 0x24]
push ecx
mov byte [esp + 0x127], 0
call dword [sym.imp.MSVCRT.dll_toupper]
mov byte [esp + 0x28], al
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
test ecx, ecx
jle 0x54d265
cmp byte [esp + ecx + 0x18], 0x2e
je 0x54d265
dec ecx
test ecx, ecx
jg 0x54d259
mov byte [esp + ecx + 0x18], 0
mov ecx, dword [esp + 0x25c]
lea edx, [esp + 0x18]
lea eax, [ebp - 0x64]
push edx
mov edx, dword [ecx + 4]
push eax
push 0
push edx
call ebx
test esi, esi
je 0x54d294
mov ecx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
push ebp
push 0
push ecx
call ebx
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
inc ecx
inc ebp
mov dword [esp + 0x10], ecx
cmp ebp, 0x8a24
jge 0x54d2c1
lea edx, [esp + 0x118]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x54d204
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x25c]
pop ebp
test esi, esi
pop edi
je 0x54d2f5
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, 1
jae 0x54d2f5
mov ecx, dword [ebx + 4]
push 0x400
push 1
push ecx
call dword [sym.imp.USER32.dll_DeleteMenu]
mov eax, dword [esp + 8]
pop esi
cmp eax, 1
jge 0x54d310
mov edx, dword [ebx + 4]
push 0x400
push 1
push edx
call dword [sym.imp.USER32.dll_DeleteMenu]
pop ebx
add esp, 0x248
ret
Function at 0x54fb70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebx, [esi + 8]
mov dword [esi], 0x57d778
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x37f8]
xor edi, edi
cmp eax, 1
jne 0x54fc09
cmp dword [esi + 0x37c0], edi
jne 0x54fc09
push 0x5965b8
push str._sprofiles_trailingstops.ini
lea eax, [esp + 0x18]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea ecx, [esp + 0x20]
push 0x581698
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 0x18
cmp ebp, edi
je 0x54fc03
mov ecx, dword [esi + 0x37ec]
cmp ecx, edi
je 0x54fbf9
mov eax, dword [esi + 0x37f0]
cmp eax, edi
jle 0x54fbf9
push ebp
push 1
shl eax, 4
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x37f8], edi
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x37c8]
cmp eax, edi
je 0x54fc32
push eax
call fcn.004c2eb0
add esp, 4
mov dword [esi + 0x37c8], edi
mov eax, dword [esi + 0x37cc]
mov dword [esi + 0x37d0], edi
cmp eax, edi
mov dword [esi + 0x37d4], edi
je 0x54fc57
push eax
call fcn.004c2eb0
add esp, 4
mov dword [esi + 0x37cc], edi
mov eax, dword [esi + 0x37d8]
cmp eax, edi
je 0x54fc70
push eax
call fcn.004c2eb0
add esp, 4
mov dword [esi + 0x37d8], edi
mov eax, dword [esi + 0x37dc]
mov dword [esi + 0x37e0], edi
cmp eax, edi
mov dword [esi + 0x37e4], edi
je 0x54fc95
push eax
call fcn.004c2eb0
add esp, 4
mov dword [esi + 0x37dc], edi
mov eax, dword [esi + 0x37ec]
mov dword [esi + 0x37e8], edi
cmp eax, edi
je 0x54fcb4
push eax
call fcn.004c2eb0
add esp, 4
mov dword [esi + 0x37ec], edi
push ebx
mov dword [esi + 0x37f0], edi
call ebp
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret