joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485960
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x4e1a70]
sub esp, 0x134
test eax, eax
jne 0x485a35
lea eax, [esp]
mov dword [0x4e1a70], 1
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x485a35
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x485a28
mov ecx, 5
mov esi, str.Windows_Classic.theme
lea edi, [esp + 0x14]
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x485a28
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x485a28
mov dword [0x4e1a6c], 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [0x4e1a6c]
add esp, 0x134
ret
Function at 0x48bba0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b9f33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00454c04
lea ebp, [esi + 0x10]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], 0x4bd52c
mov ebx, dword [esp + 0x2c]
mov dword [esi], 0x4c44e8
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
mov edi, dword [ebx + 0xc]
xor eax, eax
cmp edi, ecx
mov byte [esp + 0x24], 1
sete al
cmp eax, ecx
mov dword [esi + 0x30], eax
je 0x48bcc1
mov eax, dword [esp + 0x30]
lea edi, [esi + 0x20]
cmp eax, ecx
je 0x48bc19
push eax
push edi
call dword [sym.imp.USER32.dll_CopyRect]
jmp 0x48bc21
mov eax, dword [ebx]
push edi
mov ecx, ebx
call dword [eax + 0x58]
test ebx, ebx
jne 0x48bc29
xor eax, eax
jmp 0x48bc2c
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
push eax
sub ecx, edx
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call sub.MFC42.DLL_CGdiObject::Attach
test ebp, ebp
je 0x48bc65
mov ebp, dword [ebp + 4]
mov edx, dword [esi + 4]
push ebp
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [edi]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x24]
lea edx, [esp + 0x14]
push eax
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SetWindowOrg
mov eax, dword [esp + 0x34]
test eax, eax
je 0x48bcd3
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov ebx, dword [edi]
mov ebp, dword [esi + 0x1c]
mov edx, dword [esi + 0x24]
sub eax, ecx
mov ecx, dword [edi + 8]
sub ecx, ebx
test ebp, ebp
je 0x48bca9
mov ebp, dword [ebp + 4]
push 0xcc0020
push edx
push ebx
push ebp
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x48bcd3
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 4]
mov dword [esi + 4], edx
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x48bd10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b9f5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4c44e8
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x48bda0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x48bd67
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x48bd91
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x48bda6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x48bda6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x4bd504
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x4bd4f0
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x48c860
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ba060
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 0x48c89d
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 0x48c8bb
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.004ac400
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 0x48c92c
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 0x48c9a0
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.004551bc
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.004551bc
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 0x4943c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ba9d0
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 0x4943f1
lea ecx, [esi + 0x14dc]
call fcn.004a9710
mov edi, dword [esp + 0x38]
test edi, edi
jne 0x49440e
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.004aa760
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.00495840
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 0x4957c0
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 0x495834
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 0x495829
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 0x496e30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4baac8
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 0x496e6e
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.0048e710
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 0x4a2870
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4bb2b2
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], 0x4c5b44
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0x110]
test eax, eax
je 0x4a28c3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x4a28c3
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], 0x4c5b60
mov esi, dword [ebx + 4]
mov byte [esp + 0x24], 3
test esi, esi
je 0x4a295f
mov eax, dword [ebx + 8]
mov dword [esp + 0x14], esi
mov ecx, eax
dec eax
test ecx, ecx
je 0x4a2953
inc eax
push edi
mov dword [esp + 0x10], eax
mov dword [esi], 0x4c5b88
mov eax, dword [esi + 4]
mov byte [esp + 0x28], 4
test eax, eax
je 0x4a2935
mov eax, dword [esi + 8]
mov edi, dword [esi + 4]
mov edx, eax
dec eax
test edx, edx
je 0x4a2929
lea ebp, [eax + 1]
push 0
mov ecx, edi
call fcn.004a4c40
add edi, 0x24
dec ebp
jne 0x4a2916
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 0x4a28f4
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], 0x4c5b74
mov eax, dword [esi + 4]
mov byte [esp + 0x24], 5
test eax, eax
pop ebx
je 0x4a298b
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.0045549e
lea ecx, [ebp + 0xb8]
mov dword [esp + 0x20], 0xffffffff
call fcn.0045549e
mov ecx, dword [esp + 0x18]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4ab7c0
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 0x4ab88c
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 0x4ab803
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 0x4ab829
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 0x4ab855
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 0x4ab86c
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.004ab390
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 0x4ab8ae
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 0x4ab8ca
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4ab8db
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebx
push eax
call fcn.004ab390
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4ab8f0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4e36d0]
sub esp, 0x104
test eax, eax
jne 0x4abad1
mov eax, dword [0x4e36d4]
test eax, eax
jne 0x4abb08
mov eax, dword [0x4db5ac]
test eax, eax
je 0x4ab92e
push 0x4e36b8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4db5ac], 0
push 0x4e36b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4e36d0]
test eax, eax
jne 0x4abac6
mov al, byte [0x4e3738]
test al, al
je 0x4ab969
push 0x4e3738
lea eax, [esp + 4]
push str._sGLJPG.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4ab97c
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 [0x4e36d0], eax
jne 0x4ab9ae
push 0x4e36b8
mov dword [0x4e36d4], 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 [0x4e36d8], eax
mov eax, dword [0x4e36d0]
push str.LoadJpgImageDataFromMem
push eax
call esi
mov ecx, dword [0x4e36d0]
push str.LoadJpgFile
push ecx
mov dword [0x4e36dc], eax
call esi
mov edx, dword [0x4e36d0]
push str.LoadJpgFromMem
push edx
mov dword [0x4e36e0], eax
call esi
mov dword [0x4e36e4], eax
mov eax, dword [0x4e36d0]
push str.WriteBitmapToJpeg
push eax
call esi
mov ecx, dword [0x4e36d0]
push str.WriteDibToJpeg
push ecx
mov dword [0x4e36e8], eax
call esi
mov edx, dword [0x4e36d0]
push str.WriteDibToJpegMEM
push edx
mov dword [0x4e36ec], eax
call esi
mov dword [0x4e36f0], eax
mov eax, dword [0x4e36d0]
push str.GetPointerFromHandleLock
push eax
call esi
mov ecx, dword [0x4e36d0]
push str.UnLockDataHandle
push ecx
mov dword [0x4e36f4], eax
call esi
mov edx, dword [0x4e36d0]
push str.FreeDataHandle
push edx
mov dword [0x4e36f8], eax
call esi
mov ecx, dword [0x4e36d8]
mov dword [0x4e36fc], eax
test ecx, ecx
pop esi
je 0x4abadd
mov ecx, dword [0x4e36dc]
test ecx, ecx
je 0x4abadd
mov ecx, dword [0x4e36e0]
test ecx, ecx
je 0x4abadd
mov ecx, dword [0x4e36e4]
test ecx, ecx
je 0x4abadd
mov ecx, dword [0x4e36e8]
test ecx, ecx
je 0x4abadd
mov ecx, dword [0x4e36ec]
test ecx, ecx
je 0x4abadd
test eax, eax
je 0x4abadd
mov eax, dword [0x4e36f0]
test eax, eax
je 0x4abadd
mov eax, dword [0x4e36f4]
test eax, eax
je 0x4abadd
mov eax, dword [0x4e36f8]
test eax, eax
je 0x4abadd
push 0x4e36b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
add esp, 0x104
ret
mov eax, dword [0x4e36d0]
mov dword [0x4e36d4], 1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x4e36b8
mov dword [0x4e36d0], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add esp, 0x104
ret
Function at 0x4abb60
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4e372c]
sub esp, 0x104
test eax, eax
jne 0x4abcb4
mov eax, dword [0x4e3730]
test eax, eax
jne 0x4abcec
mov eax, dword [0x4db690]
test eax, eax
je 0x4abb9e
push 0x4e3700
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4db690], 0
push 0x4e3700
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4e372c]
test eax, eax
jne 0x4abca9
mov al, byte [0x4e3738]
test al, al
je 0x4abbd9
push 0x4e3738
lea eax, [esp + 4]
push str._sGLPNG.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4abbec
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 [0x4e372c], eax
jne 0x4abc1e
push 0x4e3700
mov dword [0x4e3730], 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 [0x4e3718], eax
mov eax, dword [0x4e372c]
push str.LoadPNGFromMem
push eax
call esi
mov ecx, dword [0x4e372c]
push str.WriteBmpToPNGMem
push ecx
mov dword [0x4e371c], eax
call esi
mov edx, dword [0x4e372c]
push str.WriteBmpToPNGFile
push edx
mov dword [0x4e3720], eax
call esi
mov dword [0x4e3724], eax
mov eax, dword [0x4e372c]
push str.WriteImageDataToPNGMem
push eax
call esi
mov ecx, dword [0x4e3718]
mov dword [0x4e3728], eax
test ecx, ecx
pop esi
je 0x4abcc0
mov ecx, dword [0x4e371c]
test ecx, ecx
je 0x4abcc0
mov ecx, dword [0x4e3720]
test ecx, ecx
je 0x4abcc0
mov ecx, dword [0x4e3724]
test ecx, ecx
je 0x4abcc0
test eax, eax
je 0x4abcc0
push 0x4e3700
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
add esp, 0x104
ret
mov ecx, dword [0x4e372c]
mov dword [0x4e3730], 1
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x4e3700
mov dword [0x4e372c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add esp, 0x104
ret
Function at 0x4ac0b0
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 0x4ac1d9
push edi
mov dword [esi + 4], edi
call dword [sym.imp.MSVCRT.dll__filelength]
add esp, 4
test eax, eax
jne 0x4ac10e
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.004ac640
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 0x4ac1d2
push 0x4db714
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4ac1d2
mov eax, dword [esi + 0x194]
cmp eax, 1
jne 0x4ac183
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 0x4ac19e
cmp eax, 0x101
jne 0x4ac1d2
lea edx, [esi + 0x198]
push 8
push edx
push edi
call ebp
add esp, 0xc
cmp eax, 8
jne 0x4ac1d9
push 1
push esi
push edi
call ebp
add esp, 0xc
cmp eax, 1
je 0x4ac1bb
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 4
mov ecx, esi
call fcn.004ac680
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.004ac5a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 4

Function at 0x4ac1f0
Capabilities:
Move file

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov ebx, ecx
call fcn.004ac5a0
mov esi, dword [esp + 0x114]
test esi, esi
jne 0x4ac219
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 0x4ac251
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 0x4ac26e
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 0x4ac2f1
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 0x4ac2e1
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 0x4ac2e1
push 1
push esi
mov ecx, ebx
call fcn.004ac1f0
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.004ac0b0
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8