joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48cab0
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ba230
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x30c], ebx
je 0x48caed
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
mov eax, dword [esp + 0x40]
cmp eax, ebx
jne 0x48cb0b
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [eax]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esi + 8]
mov dword [esp + 0x4c], ebx
call fcn.004ac5b0
test eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
sete byte [esp + 0x40]
call sub.MFC42.DLL_CString::CString
cmp byte [esp + 0x40], bl
je 0x48cb7c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.temp.cur
call edi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::CFile
push ebx
push 0x1001
push str.temp.cur
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 1
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x48cbf0
mov eax, dword [esp + 0xc]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x14]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045527c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Close
mov ecx, dword [esp + 0xc]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x14]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 8
push str.temp.cur
call dword [sym.imp.USER32.dll_LoadCursorFromFileA]
push str.temp.cur
mov esi, eax
call edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045527c
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x4947e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4baba0
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x14ec]
test eax, eax
je 0x494811
lea ecx, [esi + 0x14dc]
call fcn.004a98c0
mov edi, dword [esp + 0x38]
test edi, edi
jne 0x49482e
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
push edi
lea ecx, [esi + 0x14dc]
call fcn.004aa910
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4bd530
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 8]
mov dword [esi + 0x1520], edx
mov dword [esi + 0x1524], eax
call sub.MFC42.DLL_CGdiObject::Detach
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, esi
call fcn.00495c60
mov ecx, dword [esi + 0x20]
push 1
push 0
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esp + 8], 0x4bd508
lea ecx, [esp + 8]
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x495be0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push bind
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x495c54
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x495c49
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_strtoul]
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret

Function at 0x497250
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bac98
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x2c]
push esi
xor esi, esi
push edi
cmp ebx, esi
mov edi, ecx
jge 0x49728e
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CString::CString_5
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov ecx, dword [edi + 0x1270]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x30], esi
mov edx, dword [ecx + ebx*4]
lea ecx, [edi + 0x12ec]
push edx
call fcn.0048eb30
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x4a2960
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4bb482
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
mov ebp, ecx
push esi
mov dword [esp + 0xc], ebp
mov dword [ebp], 0x4c5b54
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0x110]
test eax, eax
je 0x4a29b3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x4a29b3
mov eax, dword [ebp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
lea ebx, [ebp + 0xfc]
mov dword [esp + 0x18], ebx
mov dword [ebx], 0x4c5b70
mov esi, dword [ebx + 4]
mov byte [esp + 0x24], 3
test esi, esi
je 0x4a2a4f
mov eax, dword [ebx + 8]
mov dword [esp + 0x14], esi
mov ecx, eax
dec eax
test ecx, ecx
je 0x4a2a43
inc eax
push edi
mov dword [esp + 0x10], eax
mov dword [esi], 0x4c5b98
mov eax, dword [esi + 4]
mov byte [esp + 0x28], 4
test eax, eax
je 0x4a2a25
mov eax, dword [esi + 8]
mov edi, dword [esi + 4]
mov edx, eax
dec eax
test edx, edx
je 0x4a2a19
lea ebp, [eax + 1]
push 0
mov ecx, edi
call fcn.004a4bf0
add edi, 0x24
dec ebp
jne 0x4a2a06
mov ebp, dword [esp + 0x14]
mov eax, dword [esi + 4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esi], 0x4bd4f4
add esi, 0x24
dec eax
mov byte [esp + 0x28], 3
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
jne 0x4a29e4
pop edi
mov eax, dword [ebx + 4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea esi, [ebp + 0xe8]
mov dword [ebx], 0x4bd4f4
mov dword [esp + 0x18], esi
mov dword [esi], 0x4c5b84
mov eax, dword [esi + 4]
mov byte [esp + 0x24], 5
test eax, eax
pop ebx
je 0x4a2a7b
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp + 0xcc]
mov dword [esi], 0x4bd4f4
mov byte [esp + 0x20], 0
call fcn.0045555e
lea ecx, [ebp + 0xb8]
mov dword [esp + 0x20], 0xffffffff
call fcn.0045555e
mov ecx, dword [esp + 0x18]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4ab970
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
test edi, edi
jne 0x4aba3c
mov eax, dword [esp + 0x1c]
push edi
push 0x80
push 3
push edi
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ab9b3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push esi
call ebp
mov ebx, eax
push ebx
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
test edi, edi
jne 0x4ab9d9
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push esi
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4aba05
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push esi
cmp eax, ebx
je 0x4aba1c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
call fcn.004ab540
push edi
mov esi, eax
call sub.MFC42.DLL_operatordelete
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x4aba5e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4aba7a
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4aba8b
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebx
push eax
call fcn.004ab540
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4abaa0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4e3728]
sub esp, 0x104
test eax, eax
jne 0x4abc81
mov eax, dword [0x4e372c]
test eax, eax
jne 0x4abcb8
mov eax, dword [0x4db5f4]
test eax, eax
je 0x4abade
push 0x4e3710
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4db5f4], 0
push 0x4e3710
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4e3728]
test eax, eax
jne 0x4abc76
mov al, byte [0x4e3790]
test al, al
je 0x4abb19
push 0x4e3790
lea eax, [esp + 4]
push str._sGLJPG.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4abb2c
lea ecx, [esp]
push str.GLJPG.dll
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4e3728], eax
jne 0x4abb5e
push 0x4e3710
mov dword [0x4e372c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add esp, 0x104
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LoadJpgFileImageData
push eax
call esi
mov dword [0x4e3730], eax
mov eax, dword [0x4e3728]
push str.LoadJpgImageDataFromMem
push eax
call esi
mov ecx, dword [0x4e3728]
push str.LoadJpgFile
push ecx
mov dword [0x4e3734], eax
call esi
mov edx, dword [0x4e3728]
push str.LoadJpgFromMem
push edx
mov dword [0x4e3738], eax
call esi
mov dword [0x4e373c], eax
mov eax, dword [0x4e3728]
push str.WriteBitmapToJpeg
push eax
call esi
mov ecx, dword [0x4e3728]
push str.WriteDibToJpeg
push ecx
mov dword [0x4e3740], eax
call esi
mov edx, dword [0x4e3728]
push str.WriteDibToJpegMEM
push edx
mov dword [0x4e3744], eax
call esi
mov dword [0x4e3748], eax
mov eax, dword [0x4e3728]
push str.GetPointerFromHandleLock
push eax
call esi
mov ecx, dword [0x4e3728]
push str.UnLockDataHandle
push ecx
mov dword [0x4e374c], eax
call esi
mov edx, dword [0x4e3728]
push str.FreeDataHandle
push edx
mov dword [0x4e3750], eax
call esi
mov ecx, dword [0x4e3730]
mov dword [0x4e3754], eax
test ecx, ecx
pop esi
je 0x4abc8d
mov ecx, dword [0x4e3734]
test ecx, ecx
je 0x4abc8d
mov ecx, dword [0x4e3738]
test ecx, ecx
je 0x4abc8d
mov ecx, dword [0x4e373c]
test ecx, ecx
je 0x4abc8d
mov ecx, dword [0x4e3740]
test ecx, ecx
je 0x4abc8d
mov ecx, dword [0x4e3744]
test ecx, ecx
je 0x4abc8d
test eax, eax
je 0x4abc8d
mov eax, dword [0x4e3748]
test eax, eax
je 0x4abc8d
mov eax, dword [0x4e374c]
test eax, eax
je 0x4abc8d
mov eax, dword [0x4e3750]
test eax, eax
je 0x4abc8d
push 0x4e3710
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
add esp, 0x104
ret
mov eax, dword [0x4e3728]
mov dword [0x4e372c], 1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x4e3710
mov dword [0x4e3728], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add esp, 0x104
ret
Function at 0x4abd10
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4e3784]
sub esp, 0x104
test eax, eax
jne 0x4abe64
mov eax, dword [0x4e3788]
test eax, eax
jne 0x4abe9c
mov eax, dword [0x4db6d8]
test eax, eax
je 0x4abd4e
push 0x4e3758
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4db6d8], 0
push 0x4e3758
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4e3784]
test eax, eax
jne 0x4abe59
mov al, byte [0x4e3790]
test al, al
je 0x4abd89
push 0x4e3790
lea eax, [esp + 4]
push str._sGLPNG.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4abd9c
lea ecx, [esp]
push str.GLPNG.dll
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4e3784], eax
jne 0x4abdce
push 0x4e3758
mov dword [0x4e3788], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add esp, 0x104
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LoadPNGFile
push eax
call esi
mov dword [0x4e3770], eax
mov eax, dword [0x4e3784]
push str.LoadPNGFromMem
push eax
call esi
mov ecx, dword [0x4e3784]
push str.WriteBmpToPNGMem
push ecx
mov dword [0x4e3774], eax
call esi
mov edx, dword [0x4e3784]
push str.WriteBmpToPNGFile
push edx
mov dword [0x4e3778], eax
call esi
mov dword [0x4e377c], eax
mov eax, dword [0x4e3784]
push str.WriteImageDataToPNGMem
push eax
call esi
mov ecx, dword [0x4e3770]
mov dword [0x4e3780], eax
test ecx, ecx
pop esi
je 0x4abe70
mov ecx, dword [0x4e3774]
test ecx, ecx
je 0x4abe70
mov ecx, dword [0x4e3778]
test ecx, ecx
je 0x4abe70
mov ecx, dword [0x4e377c]
test ecx, ecx
je 0x4abe70
test eax, eax
je 0x4abe70
push 0x4e3758
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
add esp, 0x104
ret
mov ecx, dword [0x4e3784]
mov dword [0x4e3788], 1
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x4e3758
mov dword [0x4e3784], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add esp, 0x104
ret
Function at 0x4ac260
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, ecx
cmp edi, 0xffffffff
je 0x4ac389
push edi
mov dword [esi + 4], edi
call dword [sym.imp.MSVCRT.dll__filelength]
add esp, 4
test eax, eax
jne 0x4ac2be
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x198], edx
push 0xffffffffffffffff
mov ecx, esi
mov dword [esi + 0x19c], eax
call fcn.004ac7f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
mov ebp, dword [sym.imp.MSVCRT.dll__read]
lea ebx, [esi + 0x110]
push 0x88
push ebx
push edi
mov dword [esi + 4], edi
call ebp
add esp, 0xc
cmp eax, 0x88
jne 0x4ac382
push 0x4db75c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4ac382
mov eax, dword [esi + 0x194]
cmp eax, 1
jne 0x4ac333
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x198], eax
mov dword [esi + 0x19c], ecx
mov dword [esi + 0x1bc], 1
jmp 0x4ac34e
cmp eax, 0x101
jne 0x4ac382
lea edx, [esi + 0x198]
push 8
push edx
push edi
call ebp
add esp, 0xc
cmp eax, 8
jne 0x4ac389
push 1
push esi
push edi
call ebp
add esp, 0xc
cmp eax, 1
je 0x4ac36b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 4
mov ecx, esi
call fcn.004ac830
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x18
ret 4
mov ecx, esi
call fcn.004ac750
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 4

Function at 0x4ac3a0
Capabilities:
Move file

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov ebx, ecx
call fcn.004ac750
mov esi, dword [esp + 0x114]
test esi, esi
jne 0x4ac3c9
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret 8
lea eax, [ebx + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x118]
test eax, eax
jne 0x4ac401
mov ebp, dword [sym.imp.MSVCRT.dll__open]
push 0x100
push 0x8000
push esi
call ebp
add esp, 0xc
mov dword [ebx + 0x1bc], 1
jmp 0x4ac41e
mov ebp, dword [sym.imp.MSVCRT.dll__open]
push 0
push 0x8002
push esi
mov dword [ebx + 0x1bc], 0
call ebp
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4ac4a1
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x10]
push str..bak
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea eax, [esp + 0x14]
push 0
push eax
call ebp
add esp, 0xc
cmp eax, 0xffffffff
pop edi
je 0x4ac491
push eax
call dword [sym.imp.MSVCRT.dll__close]
lea ecx, [esp + 0x10]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 0xc
test eax, eax
jne 0x4ac491
push 1
push esi
mov ecx, ebx
call fcn.004ac3a0
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8
push 0x180
push 0x8102
push esi
call ebp
add esp, 0xc
push eax
mov ecx, ebx
call fcn.004ac260
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8
Function at 0x4ac4c0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
cmp ebx, 0xffffffff
push edi
je 0x4ac504
mov esi, dword [esp + 0x14]
test esi, esi
ja 0x4ac4ea
push ebx
call dword [sym.imp.MSVCRT.dll__filelength]
mov esi, eax
add esp, 4
test esi, esi
jbe 0x4ac504
push 0
push 0
jmp 0x4ac4f5
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x4ac50c
push 0
push eax
push ebx
call dword [sym.imp.MSVCRT.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4ac50c
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
push esi
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
test edi, edi
jne 0x4ac521
pop edi
pop esi
pop ebx
ret 0xc
push esi
push edi
push ebx
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp esi, eax
je 0x4ac542
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x4ac5b0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x118
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov ebp, ecx
je 0x4ac60a
cmp dword [esp + 0x12c], ebx
je 0x4ac60a
cmp dword [esp + 0x134], ebx
je 0x4ac60a
mov esi, dword [ebp + 0x1a4]
cmp esi, ebx
je 0x4ac60a
mov eax, esi
mov esi, dword [esi]
mov edi, dword [eax + 8]
mov al, byte [edi + 0x108]
test al, al
jne 0x4ac606
mov eax, dword [esp + 0x12c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4ac619
cmp esi, ebx
jne 0x4ac5e2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x118
ret 0x14
mov edi, dword [edi + 0x104]
mov ecx, dword [ebp + 4]
push ebx
push edi
push ecx
mov byte [esp + 0x20], 0
mov dword [esp + 0x128], ebx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x130], ebx
call dword [sym.imp.MSVCRT.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
je 0x4ac60a
mov eax, dword [ebp + 4]
lea edx, [esp + 0x14]
push 0x114
push edx
push eax
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, 0x114
jne 0x4ac60a
mov edi, dword [esp + 0x11c]
mov ecx, dword [ebp + 4]
mov ebx, dword [esp + 0x124]
push 0xffffffffffffffff
push edi
push ecx
mov ecx, ebp
call fcn.004ac4c0
mov esi, eax
test esi, esi
je 0x4ac60a
mov eax, dword [esp + 0x120]
test eax, eax
je 0x4ac6e2
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
push edx
push esi
call fcn.004addd0
mov ecx, dword [esp + 0x138]
add esp, 8
test eax, eax
mov dword [ecx], eax
jne 0x4ac6d3
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 0x14
mov edi, dword [esp + 0x10]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x4ac6eb
mov edx, dword [esp + 0x130]
mov dword [edx], esi
mov eax, dword [esp + 0x134]
mov esi, dword [esp + 0x138]
test esi, esi
mov dword [eax], edi
je 0x4ac73e
mov edi, dword [esp + 0x13c]
test edi, edi
je 0x4ac73e
test ebx, ebx
jbe 0x4ac732
mov ecx, dword [ebp + 4]
push 0xffffffffffffffff
push ebx
push ecx
mov ecx, ebp
call fcn.004ac4c0
mov dword [esi], eax
mov dword [edi], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x118
ret 0x14
mov dword [esi], 0
mov dword [edi], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x118
ret 0x14
Function at 0x4ac830
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x118
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__lseek]
push ebp
push esi
mov ebp, ecx
push edi
xor edi, edi
push 2
mov eax, dword [ebp + 4]
push edi
push eax
call ebx
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4ac862
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x118
ret
mov ecx, dword [ebp + 4]
mov esi, dword [sym.imp.MSVCRT.dll__tell]
push ecx
call esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x194]
add esp, 4
xor ecx, ecx
cmp eax, 1
jne 0x4ac889
mov ecx, 0x89
jmp 0x4ac895
cmp eax, 0x101
jne 0x4ac895
mov ecx, 0x91
mov edx, dword [ebp + 4]
push edi
push ecx
push edx
call ebx
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4ac8b2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x118
ret
mov eax, dword [ebp + 4]
mov byte [esp + 0x14], 0
push eax
mov dword [esp + 0x120], edi
mov dword [esp + 0x124], edi
mov dword [esp + 0x128], edi
call esi
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x18]
push 0x114
push ecx
push edx
mov ebx, eax
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0x10
cmp eax, 0x114
jne 0x4ac9f9
cmp dword [esp + 0x124], edi
jg 0x4ac906
mov dword [esp + 0x124], edi
cmp dword [esp + 0x11c], edi
jle 0x4ac9f9
mov eax, dword [ebp + 4]
push eax
call esi
mov esi, dword [esp + 0x120]
mov edx, dword [esp + 0x128]
mov ecx, dword [esp + 0x14]
add eax, esi
add eax, edx
add esp, 4
cmp eax, ecx
jg 0x4ac9f9
push 0x10c
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, edi
je 0x4ac8a5
mov ecx, 0x41
xor eax, eax
mov edi, esi
lea edx, [esp + 0x15]
rep stosd dword es:[edi], eax
mov dword [esi + 0x104], eax
mov byte [esi + 0x108], al
mov cl, byte [esp + 0x14]
push edx
push esi
mov byte [esi + 0x108], cl
mov dword [esi + 0x104], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea ecx, [ebp + 0x1a0]
call sub.MFC42.DLL_CPtrList::AddTail
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x11c]
mov edx, dword [ebp + 4]
add ecx, eax
push 1
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
je 0x4ac9f7
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.MSVCRT.dll__tell]
mov ebx, eax
mov eax, dword [esp + 0x14]
add esp, 4
cmp ebx, eax
jg 0x4ac9f7
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x14]
push 0x114
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, 0x114
jne 0x4ac9f7
mov esi, dword [sym.imp.MSVCRT.dll__tell]
xor edi, edi
jmp 0x4ac8f6
xor edi, edi
cmp dword [ebp + 0x1bc], edi
jne 0x4aca15
cmp ebx, dword [esp + 0x10]
jge 0x4aca15
mov eax, dword [ebp + 4]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__chsize]
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x118
ret
Function at 0x4acaa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bb95b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x4c5f68
mov dword [esp + 0x10], 0
call fcn.004acb00
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x20], 0x4c5f6c
push ecx
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [esp + 0xc]
add esp, 4
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret