joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c772
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x12dc
call fcn.004537c0
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x43c]
xor bl, bl
call fcn.0040c4bf
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x64c]
call fcn.0040c4bf
pop ecx
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x43c]
push eax
call fcn.0040c5b1
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
pop ecx
mov byte [esp + 0x17], al
pop ecx
lea eax, [esp + 0x438]
push eax
call esi
cmp eax, 0xffffffff
mov edi, str..
je 0x40c7f0
test al, 0x10
je 0x40c7f0
lea eax, [esp + 0x438]
push edi
push eax
call fcn.0044e238
pop ecx
pop ecx
lea eax, [esp + 0x648]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c813
test al, 0x10
je 0x40c813
lea eax, [esp + 0x648]
push edi
push eax
call fcn.0044e238
pop ecx
pop ecx
lea eax, [esp + 0x10d8]
push eax
lea eax, [esp + 0xaac]
push eax
lea eax, [esp + 0xcc0]
push eax
lea eax, [esp + 0xed4]
push eax
lea eax, [esp + 0x448]
push eax
call fcn.00450ca8
add esp, 0x14
lea eax, [esp + 0x858]
push eax
lea eax, [esp + 0x43c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
mov byte [esp + 0x12], 1
je 0x40c9ab
mov edi, dword [sym.imp.KERNEL32.DLL_5]
cmp byte [esp + 0x12], 1
jne 0x40c9ab
test byte [esp + 0x858], 0x10
jne 0x40c986
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x10dc]
push eax
lea eax, [esp + 0xab0]
push eax
lea eax, [esp + 0x890]
push eax
lea esi, [esp + 0x238]
call fcn.0040c9be
lea eax, [esp + 0xed8]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044e262
lea eax, [esp + 0xcd0]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0044e238
lea eax, [esp + 0x8a4]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044e238
mov eax, esi
push eax
call fcn.0040c46c
add esp, 0x2c
test al, al
je 0x40c91c
cmp byte [ebp + 0x10], 0
je 0x40c967
mov eax, esi
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
mov eax, esi
push eax
je 0x40c975
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x228]
jne 0x40c959
cmp byte [esp + 0x13], 0
jne 0x40c93e
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
jmp 0x40c963
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x40c967
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x40c963
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x40c984
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x40c9b7
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x40c9a9
mov bl, 1
lea eax, [esp + 0x858]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40c871
mov byte [esp + 0x12], al
jmp 0x40c871
xor bl, bl
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cbda
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.0044e874
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
pop ecx
jne 0x40cbf6
and word [eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40cc6d
call dword [sym.imp.KERNEL32.DLL_vSt_Tpq_XQ__7s___7KmMfl45cK53_83JXcKMju]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jne 0x40cc20
push 0
push esi
call ebp
test eax, eax
je 0x40cc25
mov al, 1
jmp 0x40cc73
cmp eax, 3
jne 0x40cc71
push esi
call fcn.0040d6b8
mov edi, eax
push 0x5c
push edi
call fcn.00451f24
add esp, 0xc
test eax, eax
jne 0x40cc45
push edi
call fcn.0044e346
pop ecx
jmp 0x40cc71
and word [eax], 0
push ebx
push edi
call fcn.0040cbda
push edi
mov bl, al
call fcn.0044e346
test bl, bl
pop ecx
pop ecx
je 0x40cc68
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40cc73
test al, 0x10
jne 0x40cc1c
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x40cc77
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x438]
call fcn.0040c4bf
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.0040c4bf
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x40ccf0
cmp byte [ebp + 0x10], al
je 0x40ccec
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0044e81b
test eax, eax
pop ecx
pop ecx
je 0x40cce8
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
mov al, 1
leave
ret
xor al, al
leave
ret
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
lea eax, [ebp - 0x438]
push eax
call esi
cmp eax, 0xffffffff
je 0x40cd09
test al, 0x10
jne 0x40cd10
xor al, al
jmp 0x40cdc9
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40cd2a
test al, 0x10
je 0x40cd2a
cmp byte [ebp + 0x10], bl
jmp 0x40cd4b
lea eax, [ebp - 0x22c]
push eax
call fcn.0040cbda
test al, al
pop ecx
je 0x40cd4d
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40cd4d
test al, 0x10
jne 0x40cd51
xor al, al
jmp 0x40cdc8
lea eax, [ebp - 0x438]
push str..
push eax
call fcn.0044e238
lea eax, [ebp - 0x438]
push eax
call fcn.0044e874
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
push eax
call fcn.0044e874
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x14], eax
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 2
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret
Function at 0x40d088
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
push esi
mov esi, eax
lea eax, [ebp - 0x29c]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x40d148
push 0x100
lea eax, [ebp - 0x10c]
push eax
call sub.WSOCK32.dll_gethostname
lea eax, [ebp - 0x10c]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40d148
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40d0e2
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40d0d9
cmp esi, edx
jle 0x40d0f7
push str.0.0.0.0
push dword [ebp + 8]
call fcn.0044e262
pop ecx
pop ecx
jmp 0x40d141
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.00450640
add esp, 0xc
push dword [ebp - 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004504b0
lea eax, [ebp - 0x10c]
push eax
or eax, 0xffffffff
call fcn.0040dead
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.0044e262
push esi
call fcn.0044e346
add esp, 0x18
call sub.WSOCK32.dll_WSACleanup
jmp 0x40d157
push 0x46af60
push dword [ebp + 8]
call fcn.0044e262
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x40d266
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x48a7ac], 0
push ebx
push esi
mov ebx, eax
je 0x40d2d1
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40d294
xor eax, eax
jmp 0x40d313
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_vSt_Tpq_XQ__7s___7KmMfl45cK53_83JXcKMju]
test eax, eax
je 0x40d2d3
jmp 0x40d290
xor esi, esi
cmp byte [0x48a7ad], 0
je 0x40d2f0
test bl, 4
je 0x40d2f0
push esi
push 0x40d317
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x40d304
cmp ebx, 0x40
je 0x40d304
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40d313
xor eax, eax
cmp ebx, 0x20
sete al
push esi
push eax
call sub.KERNEL32.DLL_SetSystemPowerState
pop esi
pop ebx
leave
ret

Function at 0x40d353
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x40d36c
push dword [esp + 4]
call fcn.0040d32e
test al, al
pop ecx
jne 0x40d388
push 1
jmp 0x40d36e
push 0
push 0
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
ret
Function at 0x427994
Capabilities:
Set socket configuration

Disassembly:
push ebx
push edi
push dword [esp + 0x10]
or eax, 0xffffffff
mov word [esi], 2
call fcn.0040df1c
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.0044e346
cmp edi, 0xffffffff
pop ecx
jne 0x4279c5
xor ecx, ecx
push 0
inc ecx
jmp 0x4279ea
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
cmp ecx, 0xfffe
mov dword [esi + 4], edi
ja 0x4279e5
push eax
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x4279f5
push 0
push 2
pop ecx
mov eax, dword [esp + 0x10]
call fcn.0041a88b
xor al, al
pop edi
pop ebx
ret 0xc

Function at 0x428614
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0x80004002
mov dword [ebp - 4], 0x28
call fcn.0040e2b7
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.interface
mov edi, SysReAllocString
push edi
call esi
test eax, eax
je 0x428672
mov esi, 0x80004002
push dword [ebp - 0x20]
call fcn.0044e346
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x28]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x428740
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x78], 0
push str.interface_
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0x1fe
call fcn.0040e446
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x20]
call fcn.0040e4de
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x42872b
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x280]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428722
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x280], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x280]
push eax
call fcn.0044e1a7
test eax, eax
pop ecx
pop ecx
jne 0x428722
push dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x428740
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x428672
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
jmp 0x428662
Function at 0x428751
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040e2b7
fld1
lea eax, [ebp - 0xc]
fstp qword [ebp - 0x28]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromIID]
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x4288e8
push dword [ebp - 0xc]
call fcn.0040d6b8
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], str.interface_
call fcn.0040e446
push esi
lea eax, [ebp - 0x20]
call fcn.0040e4de
push str.TypeLib
lea eax, [ebp - 0x20]
call fcn.0040e4de
push esi
call fcn.0044e346
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
push dword [ebp - 0x20]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x4288e8
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call ebx
mov esi, eax
cmp esi, edi
jne 0x4288df
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x240], di
lea eax, [ebp - 0x240]
push eax
call fcn.0040d6b8
pop ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
push dword [ebp - 0x14]
mov esi, eax
call fcn.0044e346
cmp esi, edi
pop ecx
jl 0x4288df
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.Version
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call ebx
test eax, eax
jne 0x42888a
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x240], di
lea eax, [ebp - 0x240]
push eax
call fcn.00450f44
fstp qword [ebp - 0x28]
pop ecx
fld1
lea eax, [ebp - 0x10]
push eax
push edi
sub esp, 0x10
fstp qword [esp + 8]
fld qword [ebp - 0x28]
fstp qword [esp]
call fcn.00452eb0
add esp, 0x10
call fcn.00465706
fld qword [ebp - 0x28]
push eax
call fcn.00465706
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, edi
jl 0x4288df
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call fcn.0044e346
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4350aa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x435132
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileType]
cmp eax, 1
jne 0x435132
mov esi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push eax
xor ebx, ebx
push ebx
push ebx
push edi
call esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
je 0x435106
cmp dword [ebp + 0x10], ebx
jbe 0x435106
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4350fe
call dword [sym.imp.KERNEL32.DLL_vSt_Tpq_XQ__7s___7KmMfl45cK53_83JXcKMju]
push eax
jmp 0x435134
push ebx
push ebx
push dword [ebp - 4]
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x435126
push 2
push ebx
push ebx
push edi
call esi
push ebx
push ebx
push dword [ebp - 4]
mov edi, eax
push dword [ebp + 8]
call esi
sub edi, dword [ebp - 4]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
inc eax
jmp 0x43513c
push 6
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43ab30
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push 0x44
xor ebx, ebx
push ebx
mov edi, 0x48cd08
push edi
call fcn.00450e40
push 0x10
push ebx
mov esi, 0x48ccf8
push esi
call fcn.00450e40
add esp, 0x18
push esi
push edi
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [esp + 0x30]
xor eax, eax
inc eax
push ebx
mov dword [0x48cd08], 0x44
mov dword [0x48cd34], eax
mov word [0x48cd38], ax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
pop edi
pop esi
pop ebx
je 0x43ab93
push dword [0x48ccf8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
ret 4
Function at 0x440085
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor esi, esi
cmp word [eax], si
push edi
mov dword [ebp - 0xc], esi
je 0x44018d
push esi
push esi
push 3
push esi
push esi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4400bc
xor eax, eax
jmp 0x4401b9
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push 2
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push esi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x10]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 0xc]
push eax
push 0x466900
push esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x4400b5
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x30]
push eax
push 0x18
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
cmp edx, esi
mov eax, dword [ebp + 0x10]
jne 0x440164
cmp dword [eax], esi
jne 0x440164
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
jmp 0x44016c
mov dword [ebp - 0x2c], edx
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
push 0x2000
push dword [eax]
push dword [ecx]
push esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x440190
mov dword [ebp - 8], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x44]
cmp eax, esi
je 0x4401a1
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 8]
push eax
push esi
mov dword [edi + 0x44], eax
mov edi, dword [edi]
push 0x172
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x451a22
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x451a5f
cmp dword [ebp + 0x14], edi
je 0x451a5f
cmp ecx, edi
jne 0x451a66
call fcn.0045496c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0045490d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x451a7a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x451a9b
cmp ebx, 0xffffffff
je 0x451a8a
push ebx
push edi
push ecx
call fcn.00450e40
add esp, 0xc
cmp esi, edi
je 0x451a47
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x451a47
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x451ab7
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x451abe
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x451baf
test word [esi + 0xc], 0x10c
je 0x451b12
mov eax, dword [esi + 4]
test eax, eax
je 0x451b12
jl 0x451c10
cmp ebx, eax
mov edi, ebx
jb 0x451ae3
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x451bb7
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045a948
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x451ba7
cmp ebx, dword [ebp - 0xc]
jb 0x451b7f
cmp dword [ebp - 0xc], 0
je 0x451b3c
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x451b31
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x451b38
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x451b47
mov eax, SysReAllocString
cmp ebx, eax
ja 0x451b47
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x451be3
push eax
push dword [ebp - 8]
push esi
call fcn.0045238a
pop ecx
push eax
call fcn.0045a84b
add esp, 0xc
test eax, eax
je 0x451c22
cmp eax, 0xffffffff
je 0x451c10
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x451ba7
push esi
call fcn.0045a16a
cmp eax, 0xffffffff
pop ecx
je 0x451c14
cmp dword [ebp - 4], 0
je 0x451be3
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x451ac6
mov eax, dword [ebp + 0x14]
jmp 0x451a61
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x451bce
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00450e40
add esp, 0xc
call fcn.0045496c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x451a57
cmp dword [ebp + 0xc], 0xffffffff
je 0x451bf9
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00450e40
add esp, 0xc
call fcn.0045496c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x451a57
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x451a61
or dword [esi + 0xc], 0x10
jmp 0x451c14
Function at 0x422eef
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x422f27
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x422f15
mov al, 1
jmp 0x422f71
cmp dword [ebx + 0x54], ecx
jne 0x422f1e
mov al, 2
jmp 0x422f71
cmp dword [ebx + 0x7c], ecx
jne 0x422f71
mov al, 3
jmp 0x422f71
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x422f3c
mov al, 4
jmp 0x422f71
cmp ecx, 5
jne 0x422f5c
cmp ebx, 0
jne 0x422f4a
mov al, 5
jmp 0x422f71
cmp ebx, 1
jne 0x422f53
mov al, 6
jmp 0x422f71
cmp ebx, 2
jne 0x422f5c
mov al, 7
jmp 0x422f71
cmp ecx, 6
jne 0x422f68
cmp ebx, 0
jne 0x422f6a
mov al, 8
jmp 0x422f71
cmp ebx, 1
jne 0x422f71
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret