joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4949c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4babd0
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 0x4949f1
lea ecx, [esi + 0x14dc]
call fcn.004a9930
mov edi, dword [esp + 0x38]
test edi, edi
jne 0x494a0e
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.004aa980
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4bd52c
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.00495e40
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], 0x4bd504
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 0x495dc0
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 0x495e34
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 0x495e29
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 0x497430
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bacc8
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 0x49746e
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.0048ed10
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 0x4a2b70
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4bb4b2
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], 0x4c5b34
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0x110]
test eax, eax
je 0x4a2bc3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x4a2bc3
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], 0x4c5b50
mov esi, dword [ebx + 4]
mov byte [esp + 0x24], 3
test esi, esi
je 0x4a2c5f
mov eax, dword [ebx + 8]
mov dword [esp + 0x14], esi
mov ecx, eax
dec eax
test ecx, ecx
je 0x4a2c53
inc eax
push edi
mov dword [esp + 0x10], eax
mov dword [esi], 0x4c5b78
mov eax, dword [esi + 4]
mov byte [esp + 0x28], 4
test eax, eax
je 0x4a2c35
mov eax, dword [esi + 8]
mov edi, dword [esi + 4]
mov edx, eax
dec eax
test edx, edx
je 0x4a2c29
lea ebp, [eax + 1]
push 0
mov ecx, edi
call fcn.004a4f90
add edi, 0x24
dec ebp
jne 0x4a2c16
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], 0x4bd4f0
add esi, 0x24
dec eax
mov byte [esp + 0x28], 3
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
jne 0x4a2bf4
pop edi
mov eax, dword [ebx + 4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea esi, [ebp + 0xe8]
mov dword [ebx], 0x4bd4f0
mov dword [esp + 0x18], esi
mov dword [esi], 0x4c5b64
mov eax, dword [esi + 4]
mov byte [esp + 0x24], 5
test eax, eax
pop ebx
je 0x4a2c8b
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp + 0xcc]
mov dword [esi], 0x4bd4f0
mov byte [esp + 0x20], 0
call fcn.0045563e
lea ecx, [ebp + 0xb8]
mov dword [esp + 0x20], 0xffffffff
call fcn.0045563e
mov ecx, dword [esp + 0x18]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4ab9e0
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 0x4abaac
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 0x4aba23
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 0x4aba49
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 0x4aba75
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 0x4aba8c
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.004ab5b0
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 0x4abace
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 0x4abaea
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4abafb
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebx
push eax
call fcn.004ab5b0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4abb10
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4e3700]
sub esp, 0x104
test eax, eax
jne 0x4abcf1
mov eax, dword [0x4e3704]
test eax, eax
jne 0x4abd28
mov eax, dword [0x4db5d4]
test eax, eax
je 0x4abb4e
push 0x4e36e8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4db5d4], 0
push 0x4e36e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4e3700]
test eax, eax
jne 0x4abce6
mov al, byte [0x4e3768]
test al, al
je 0x4abb89
push 0x4e3768
lea eax, [esp + 4]
push str._sGLJPG.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4abb9c
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 [0x4e3700], eax
jne 0x4abbce
push 0x4e36e8
mov dword [0x4e3704], 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 [0x4e3708], eax
mov eax, dword [0x4e3700]
push str.LoadJpgImageDataFromMem
push eax
call esi
mov ecx, dword [0x4e3700]
push str.LoadJpgFile
push ecx
mov dword [0x4e370c], eax
call esi
mov edx, dword [0x4e3700]
push str.LoadJpgFromMem
push edx
mov dword [0x4e3710], eax
call esi
mov dword [0x4e3714], eax
mov eax, dword [0x4e3700]
push str.WriteBitmapToJpeg
push eax
call esi
mov ecx, dword [0x4e3700]
push str.WriteDibToJpeg
push ecx
mov dword [0x4e3718], eax
call esi
mov edx, dword [0x4e3700]
push str.WriteDibToJpegMEM
push edx
mov dword [0x4e371c], eax
call esi
mov dword [0x4e3720], eax
mov eax, dword [0x4e3700]
push str.GetPointerFromHandleLock
push eax
call esi
mov ecx, dword [0x4e3700]
push str.UnLockDataHandle
push ecx
mov dword [0x4e3724], eax
call esi
mov edx, dword [0x4e3700]
push str.FreeDataHandle
push edx
mov dword [0x4e3728], eax
call esi
mov ecx, dword [0x4e3708]
mov dword [0x4e372c], eax
test ecx, ecx
pop esi
je 0x4abcfd
mov ecx, dword [0x4e370c]
test ecx, ecx
je 0x4abcfd
mov ecx, dword [0x4e3710]
test ecx, ecx
je 0x4abcfd
mov ecx, dword [0x4e3714]
test ecx, ecx
je 0x4abcfd
mov ecx, dword [0x4e3718]
test ecx, ecx
je 0x4abcfd
mov ecx, dword [0x4e371c]
test ecx, ecx
je 0x4abcfd
test eax, eax
je 0x4abcfd
mov eax, dword [0x4e3720]
test eax, eax
je 0x4abcfd
mov eax, dword [0x4e3724]
test eax, eax
je 0x4abcfd
mov eax, dword [0x4e3728]
test eax, eax
je 0x4abcfd
push 0x4e36e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
add esp, 0x104
ret
mov eax, dword [0x4e3700]
mov dword [0x4e3704], 1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x4e36e8
mov dword [0x4e3700], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add esp, 0x104
ret
Function at 0x4abd80
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4e375c]
sub esp, 0x104
test eax, eax
jne 0x4abed4
mov eax, dword [0x4e3760]
test eax, eax
jne 0x4abf0c
mov eax, dword [0x4db6b8]
test eax, eax
je 0x4abdbe
push 0x4e3730
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4db6b8], 0
push 0x4e3730
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4e375c]
test eax, eax
jne 0x4abec9
mov al, byte [0x4e3768]
test al, al
je 0x4abdf9
push 0x4e3768
lea eax, [esp + 4]
push str._sGLPNG.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4abe0c
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 [0x4e375c], eax
jne 0x4abe3e
push 0x4e3730
mov dword [0x4e3760], 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 [0x4e3748], eax
mov eax, dword [0x4e375c]
push str.LoadPNGFromMem
push eax
call esi
mov ecx, dword [0x4e375c]
push str.WriteBmpToPNGMem
push ecx
mov dword [0x4e374c], eax
call esi
mov edx, dword [0x4e375c]
push str.WriteBmpToPNGFile
push edx
mov dword [0x4e3750], eax
call esi
mov dword [0x4e3754], eax
mov eax, dword [0x4e375c]
push str.WriteImageDataToPNGMem
push eax
call esi
mov ecx, dword [0x4e3748]
mov dword [0x4e3758], eax
test ecx, ecx
pop esi
je 0x4abee0
mov ecx, dword [0x4e374c]
test ecx, ecx
je 0x4abee0
mov ecx, dword [0x4e3750]
test ecx, ecx
je 0x4abee0
mov ecx, dword [0x4e3754]
test ecx, ecx
je 0x4abee0
test eax, eax
je 0x4abee0
push 0x4e3730
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
add esp, 0x104
ret
mov ecx, dword [0x4e375c]
mov dword [0x4e3760], 1
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x4e3730
mov dword [0x4e375c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add esp, 0x104
ret
Function at 0x4ac2d0
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 0x4ac3f9
push edi
mov dword [esi + 4], edi
call dword [sym.imp.MSVCRT.dll__filelength]
add esp, 4
test eax, eax
jne 0x4ac32e
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.004ac860
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 0x4ac3f2
push 0x4db73c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4ac3f2
mov eax, dword [esi + 0x194]
cmp eax, 1
jne 0x4ac3a3
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 0x4ac3be
cmp eax, 0x101
jne 0x4ac3f2
lea edx, [esi + 0x198]
push 8
push edx
push edi
call ebp
add esp, 0xc
cmp eax, 8
jne 0x4ac3f9
push 1
push esi
push edi
call ebp
add esp, 0xc
cmp eax, 1
je 0x4ac3db
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 4
mov ecx, esi
call fcn.004ac8a0
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.004ac7c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 4

Function at 0x4ac410
Capabilities:
Move file

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov ebx, ecx
call fcn.004ac7c0
mov esi, dword [esp + 0x114]
test esi, esi
jne 0x4ac439
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 0x4ac471
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 0x4ac48e
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 0x4ac511
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 0x4ac501
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 0x4ac501
push 1
push esi
mov ecx, ebx
call fcn.004ac410
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.004ac2d0
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8
Function at 0x4ac530
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
cmp ebx, 0xffffffff
push edi
je 0x4ac574
mov esi, dword [esp + 0x14]
test esi, esi
ja 0x4ac55a
push ebx
call dword [sym.imp.MSVCRT.dll__filelength]
mov esi, eax
add esp, 4
test esi, esi
jbe 0x4ac574
push 0
push 0
jmp 0x4ac565
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x4ac57c
push 0
push eax
push ebx
call dword [sym.imp.MSVCRT.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4ac57c
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 0x4ac591
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 0x4ac5b2
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 0x4ac620
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 0x4ac67a
cmp dword [esp + 0x12c], ebx
je 0x4ac67a
cmp dword [esp + 0x134], ebx
je 0x4ac67a
mov esi, dword [ebp + 0x1a4]
cmp esi, ebx
je 0x4ac67a
mov eax, esi
mov esi, dword [esi]
mov edi, dword [eax + 8]
mov al, byte [edi + 0x108]
test al, al
jne 0x4ac676
mov eax, dword [esp + 0x12c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4ac689
cmp esi, ebx
jne 0x4ac652
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 0x4ac67a
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 0x4ac67a
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.004ac530
mov esi, eax
test esi, esi
je 0x4ac67a
mov eax, dword [esp + 0x120]
test eax, eax
je 0x4ac752
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
push edx
push esi
call fcn.004ade40
mov ecx, dword [esp + 0x138]
add esp, 8
test eax, eax
mov dword [ecx], eax
jne 0x4ac743
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 0x4ac75b
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 0x4ac7ae
mov edi, dword [esp + 0x13c]
test edi, edi
je 0x4ac7ae
test ebx, ebx
jbe 0x4ac7a2
mov ecx, dword [ebp + 4]
push 0xffffffffffffffff
push ebx
push ecx
mov ecx, ebp
call fcn.004ac530
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 0x4ac8a0
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 0x4ac8d2
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 0x4ac8f9
mov ecx, 0x89
jmp 0x4ac905
cmp eax, 0x101
jne 0x4ac905
mov ecx, 0x91
mov edx, dword [ebp + 4]
push edi
push ecx
push edx
call ebx
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4ac922
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 0x4aca69
cmp dword [esp + 0x124], edi
jg 0x4ac976
mov dword [esp + 0x124], edi
cmp dword [esp + 0x11c], edi
jle 0x4aca69
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 0x4aca69
push 0x10c
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, edi
je 0x4ac915
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 0x4aca67
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 0x4aca67
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 0x4aca67
mov esi, dword [sym.imp.MSVCRT.dll__tell]
xor edi, edi
jmp 0x4ac966
xor edi, edi
cmp dword [ebp + 0x1bc], edi
jne 0x4aca85
cmp ebx, dword [esp + 0x10]
jge 0x4aca85
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 0x4acb10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bb98b
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], 0x4c5f48
mov dword [esp + 0x10], 0
call fcn.004acb70
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x20], 0x4c5f4c
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
Function at 0x41fd44
Capabilities:
Encode data using xor

Disassembly:
imul ebx
xor edi, dword [esi]
pop ebp
or bh, dl
add eax, 0xbcb76010
pop ecx
and edi, ebx
xor byte [ebx], al
pushal
fist word [edx + 0x30]
mov ebx, 0xdf6087dd
push esp
mov byte [0xf10c33e3], al
mov ch, bl
invalid