joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402360
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f330
push 0x405bec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x1c]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4023ed
push 1
push str.SeDebugPrivilege
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004022b0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, edi
je 0x4023ed
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4023ed
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00402412
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402430
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x33c
mov eax, dword [0x412100]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x33c], eax
push esi
xor eax, eax
test ebx, ebx
push edi
je 0x4025ba
mov byte [esp + 0x140], al
mov ecx, 0x7f
lea edi, [esp + 0x141]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x140]
stosb byte es:[edi], al
mov eax, ebx
sub edx, ebx
jmp 0x402480
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402480
mov eax, ebx
xor edi, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402491
sub eax, edx
mov dword [esp + 0x10], eax
je 0x4024ed
mov eax, ebx
lea ecx, [esp + 0x140]
sub eax, ecx
mov dword [esp + 0x10], eax
jmp 0x4024c0
mov eax, dword [esp + 0x10]
jmp 0x4024c0
lea esi, [esp + edi + 0x140]
movsx edx, byte [eax + esi]
push edx
call fcn.00405db5
mov byte [esi], al
mov eax, ebx
add esp, 4
inc edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4024e0
sub eax, edx
cmp edi, eax
jb 0x4024b1
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
je 0x4025ba
mov ecx, 0x49
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4025af
lea ecx, [ecx]
lea eax, [esp + 0x3c]
xor esi, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402540
sub eax, edx
mov dword [esp + 0x14], eax
je 0x40257d
nop
movsx ecx, byte [esp + esi + 0x3c]
push ecx
call fcn.00405db5
mov byte [esp + esi + 0x40], al
lea eax, [esp + 0x40]
add esp, 4
inc esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402570
sub eax, edx
cmp esi, eax
jb 0x402550
lea edx, [esp + 0x140]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00404a60
add esp, 8
test eax, eax
jne 0x4025a7
lea ecx, [esp + 0x18]
push ecx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402530
jmp 0x4025af
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x344]
call fcn.00404b17
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4025d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f340
push 0x405bec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
mov eax, dword [0x412100]
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x14c], esi
cmp esi, 0xffffffff
jne 0x40261c
xor eax, eax
jmp 0x4026bc
mov dword [ebp - 0x148], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x144], edi
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x140]
rep stosd dword es:[edi], eax
mov ebx, 0x128
mov dword [ebp - 0x144], ebx
lea eax, [ebp - 0x144]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4026aa
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x120]
push edx
call fcn.00404ffd
add esp, 8
test eax, eax
jne 0x402684
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x13c]
mov dword [eax], ecx
mov dword [ebp - 0x148], 1
jmp 0x4026aa
mov ecx, 0x4a
xor eax, eax
lea edi, [ebp - 0x144]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x144], ebx
lea edx, [ebp - 0x144]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402656
mov dword [ebp - 4], 0xffffffff
call fcn.004026db
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00404b17
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4026f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x18]
test esi, esi
push edi
mov dword [esp + 8], 0
jne 0x40270c
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov eax, dword [esp + 0x14]
movzx ecx, word [esp + 0x10]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x402728
pop edi
pop esi
pop ecx
ret
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
jne 0x40273c
pop ebp
pop edi
pop esi
pop ecx
ret
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x402751
pop ebx
pop ebp
pop edi
pop esi
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4027aa
mov edx, dword [esp + 0x20]
push 0
push 0x80
push 2
push 0
push 0
push 0x1f01ff
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4027aa
push 0
lea eax, [esp + 0x28]
push eax
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop ebp
mov eax, edi
pop edi
pop esi
pop ecx
ret
mov edi, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop ebp
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x402810
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x402819
ret
lea ecx, [esp + 4]
push ecx
push eax
mov dword [esp + 0xc], 0
call fcn.004025d0
add esp, 8
test eax, eax
jne 0x402839
mov eax, 1
ret
mov edx, dword [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00402360

Function at 0x402a60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x412100]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push edi
push 0
push str._pmc
mov dword [esp + 0x814], eax
call esi
push eax
call fcn.004012a0
add esp, 0xc
test al, al
je 0x402b2f
xor eax, eax
mov byte [esp + 0x408], 0
mov ecx, 0xff
lea edi, [esp + 0x409]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0xff
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3ff
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call esi
push str._pmc
push eax
call fcn.00404c00
add eax, 4
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x418]
push str.__s__s
push edx
call fcn.0040514d
push 0x20
lea eax, [esp + 0x424]
push 0
push eax
call fcn.00402060
add esp, 0x24
mov eax, 1
mov ecx, dword [esp + 0x80c]
call fcn.00404b17
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x80c]
xor eax, eax
call fcn.00404b17
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403560
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x40e83b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x408
mov eax, dword [0x412100]
lea ecx, [esp]
mov dword [esp + 0x404], eax
call fcn.004022a0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
lea ecx, [esp + 8]
mov dword [esp + 0x418], 0
call fcn.004032a0
test eax, eax
je 0x4035d1
lea eax, [esp + 4]
push eax
call fcn.00401cd0
add esp, 4
lea ecx, [esp + 4]
push ecx
push str.RzxMon
lea ecx, [esp + 8]
call fcn.00403230
lea ecx, [esp]
mov dword [esp + 0x410], 0xffffffff
call fcn.00403280
mov ecx, dword [esp + 0x408]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x404]
call fcn.00404b17
add esp, 0x414
ret
Function at 0x403610
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebx
push esi
push 0xf003f
push 0
push 0
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x403644
push str.OpenSCManager_error_r_n
call fcn.00405f46
add esp, 4
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret
push edi
push 0xf01ff
push str.rzxnm
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x40366f
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4036b5
mov eax, dword [esp + 0x10]
cmp eax, 4
jne 0x40368f
mov esi, 2
jmp 0x4036b5
cmp eax, 1
je 0x4036a0
cmp eax, 7
je 0x4036a0
mov esi, 3
jmp 0x4036b5
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
xor ecx, ecx
test eax, eax
setne cl
inc ecx
mov esi, ecx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push ebx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x40629a
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x40fbe0
call fcn.00407958
mov edi, 0x94
mov eax, edi
call fcn.00404b30
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x412d4c], ecx
mov eax, dword [esi + 4]
mov dword [0x412d58], eax
mov edx, dword [esi + 8]
mov dword [0x412d5c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x412d50], esi
cmp ecx, 2
je 0x4062fa
or esi, 0x8000
mov dword [0x412d50], esi
shl eax, 8
add eax, edx
mov dword [0x412d54], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406335
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406335
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40634d
cmp eax, 0x20b
je 0x40633a
mov dword [ebp - 0x1c], esi
jmp 0x406361
cmp dword [ecx + 0x84], 0xe
jbe 0x406335
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40635b
cmp dword [ecx + 0x74], 0xe
jbe 0x406335
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call 0x40aec2
pop ecx
test eax, eax
jne 0x406375
push 0x1c
call fcn.00406276
pop ecx
call fcn.004073c7
test eax, eax
jne 0x406386
push 0x10
call fcn.00406276
pop ecx
call 0x40c7d8
mov dword [ebp - 4], esi
call 0x409c3f
test eax, eax
jge 0x40639f
push 0x1b
call fcn.00406251
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4145b4], eax
call 0x40c6b6
mov dword [0x412d28], eax
call 0x40c614
test eax, eax
jge 0x4063c5
push 8
call fcn.00406251
pop ecx
call 0x40c3e1
test eax, eax
jge 0x4063d6
push 9
call fcn.00406251
pop ecx
push 1
call fcn.00407773
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4063ec
push eax
call fcn.00406251
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call 0x40c384
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40640d
movzx eax, word [ebp - 0x40]
jmp 0x406410
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401a90
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40642e
push edi
call fcn.004078a0
call fcn.004078c2
jmp 0x406460
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00407993
ret
Function at 0x401ce0
Capabilities:
Delete file

Disassembly:
sub esp, 0x54
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 8], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
push str.Kernel32.dll
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x416288
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x60]
test eax, eax
je 0x401d51
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call eax
mov eax, dword [esp + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
add esp, 0x54
ret 4
Function at 0x402db0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc18
push ebx
push esi
push edi
lea eax, [ebp - 0x824]
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 0x14], ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.MSVCRT.dll_tmpnam]
or ecx, 0xffffffff
mov edi, 0x416508
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x424]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
mov byte [ebp - 0x424], 0x54
lea edx, [ebp - 0x424]
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.test
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [ebp - 0x824]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x424]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [ebp - 0x424]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x824]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::CFile
push 0
lea ecx, [ebp - 0x424]
push 0x9011
push ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFile::Open
push 0
push 0
push str.Start_Write__
call sub.MFC42.DLL_AfxMessageBox
mov esi, dword [ebp + 8]
mov edx, dword [esi]
lea eax, [ebp - 0xc24]
push 0x400
push eax
mov ecx, esi
call dword [edx + 0x3c]
cmp eax, 1
jl 0x402f18
lea ecx, [ebp - 0xc24]
push eax
push ecx
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Write
jmp 0x402eee
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::GetLength
test eax, eax
jne 0x402f30
push eax
push eax
push str.Length_no_equl__
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Close
push 0
lea ecx, [ebp - 0x424]
push str.Write_Finish__
push ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00406abe
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404320
Capabilities:
Create thread
Print debug messages
Resume thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4072c0
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x404361
push str.Call_one_of_the_CPictureEx::Load___member_functions_before_calling_Draw___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov ecx, esi
call fcn.00405180
test eax, eax
je 0x4043b9
push str.IsAnimateGIF__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0x14]
push eax
push 4
push esi
push 0x404aa0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x94], eax
test eax, eax
je 0x4044e5
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.No_IsAnimateGIF__
call edi
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x4044de
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push ebx
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x9c]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 0x14]
push 0
mov ebx, ecx
mov eax, dword [esi + 0x9c]
neg ebx
push ebx
mov ebx, dword [esp + 0x20]
push ebx
push ecx
mov ecx, dword [esi + 0x54]
mov edx, dword [eax]
push 0
push ecx
mov ecx, dword [esi + 0x50]
push ecx
mov ecx, dword [esi + 0x7c]
push 0
push 0
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
pop ebx
jne 0x404489
mov edx, dword [esi + 0x20]
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 8]
call fcn.00406a16
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xc]
push str.Invalidate:_d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x14]
add esp, 0xc
push ecx
call edi
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 0xc]
call fcn.00406a16
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push str.m_pPicture:_d
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
call edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push str.m_pPicture_is_NULL
call edi
mov ecx, dword [esp + 0x18]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x404500
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4072e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
push esi
call edi
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00406a16
push 0
push 0x20
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x404580
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x14]
push str.Load__file_:_Error_opening_file__s___ErrorCode:_d_n
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
call edi
jmp 0x4046b2
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFile::GetLength
mov ebx, eax
push ebx
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
mov dword [ebp - 0x20], esi
jne 0x4045bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x14]
push str.Load__file_:_Error_allocating_memory__ErrorCode:_d_n
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
call edi
jmp 0x4046b2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x4045e0
push str.Load__file_:_Error_locking_memory_n
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4046b2
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov ecx, dword [ebp - 0x18]
push ebx
push ecx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFile::Read
mov dword [ebp - 4], 1
call sub.MFC42.DLL_AfxTryCleanup
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFile::Close
mov ecx, dword [ebp - 0x1c]
push ebx
push esi
call fcn.00403c50
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push str.Load_File_Success
call edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00406abe
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00406abe
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405820
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x4c
push ebx
push ebp
mov ebp, ecx
mov ebx, dword [esp + 0x5c]
mov ecx, dword [eax]
cmp ebx, 1
mov dword [ebp], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0xc], edx
jae 0x405870
lea eax, [esp + 0x60]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x64], str.Incorrect_key_length
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
lea ecx, [esp + 0x10]
push 0x415088
push ecx
call sub.MSVCRT.dll__CxxThrowException
cmp ebx, 0x38
jbe 0x40587a
mov ebx, 0x38
mov ecx, ebx
push esi
mov esi, dword [esp + 0x5c]
mov edx, ecx
push edi
lea edi, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp + 0x10]
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x12
mov esi, 0x409908
mov edi, edx
mov dword [esp + 0x64], 0x12
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x58]
mov ecx, 0x400
mov esi, 0x409950
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x24]
mov esi, edx
xor edx, edx
mov dword [esp + 0x68], 4
mov edi, edx
xor edx, edx
mov dl, byte [ecx]
shl edi, 8
or edx, edi
inc ecx
inc eax
cmp eax, ebx
jne 0x4058e5
xor eax, eax
lea ecx, [esp + 0x24]
mov edi, dword [esp + 0x68]
dec edi
mov dword [esp + 0x68], edi
jne 0x4058ce
mov edi, dword [esi]
add esi, 4
xor edi, edx
mov edx, dword [esp + 0x64]
mov dword [esi - 4], edi
dec edx
mov dword [esp + 0x64], edx
jne 0x4058c4
xor edi, edi
lea esi, [ebp + 0x10]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00405990
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], ecx
add esi, 4
inc edi
mov dword [esi], edx
inc edi
add esi, 4
cmp edi, 0x12
jb 0x405912
lea eax, [ebp + 0x58]
mov dword [esp + 0x68], 4
mov ebx, eax
xor edi, edi
mov esi, ebx
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00405990
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], ecx
add esi, 4
inc edi
mov dword [esi], edx
inc edi
add esi, 4
cmp edi, 0x100
jl 0x405948
mov eax, dword [esp + 0x68]
add ebx, 0x400
dec eax
mov dword [esp + 0x68], eax
jne 0x405944
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0xc