joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c00
Capabilities:
Enumerate files on windows
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x56f190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x104
lea eax, [ebp - 0x110]
push 0
mov esi, 0x490
push eax
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x260], 0
call fcn.00503970
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x110]
push 0x5c
push edx
call fcn.00502050
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x401c92
lea eax, [ebp - 0x110]
push 0x2f
push eax
call fcn.00502050
add esp, 8
test eax, eax
jne 0x401c90
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x254], ecx
mov ebx, ecx
jmp 0x401c99
mov ebx, eax
inc ebx
mov dword [ebp - 0x254], ebx
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x110]
mov edx, 0x2a
push ecx
mov word [ebx], dx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x401e33
jmp 0x401cd0
test byte [ebp - 0x250], 0x10
jne 0x401dc7
push str..chm
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x401dc7
lea eax, [ebp - 0x224]
mov edx, ebx
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401d03
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401dc7
test esi, esi
je 0x401dc7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [edi + 0xc0], eax
call fcn.004031dd
add esp, 4
mov dword [edi + 0xbc], eax
test eax, eax
je 0x401dc0
mov ecx, dword [edi + 0xc0]
push ecx
push 0
push eax
call fcn.00503970
mov eax, dword [edi + 0xc0]
mov ecx, dword [edi + 0xbc]
add esp, 0xc
push 0
lea edx, [ebp - 0x260]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401dc0
mov ebx, dword [edi + 0xbc]
cmp dword [ebx + 0x1c], 0x50464844
je 0x401e06
mov eax, dword [edi + 0xc0]
mov ecx, ebx
call fcn.00401910
cmp dword [ebx + 0x1c], 0x50464844
je 0x401e06
mov ebx, dword [ebp - 0x254]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x25c]
lea edx, [ebp - 0x250]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401cd0
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x258]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501afe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x25c]
push ecx
mov dword [ebp - 0x258], 0
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x258]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501afe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501afe
mov esp, ebp
pop ebp
ret
Function at 0x402560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, eax
test esi, esi
jne 0x40256e
mov eax, 0x57
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402567
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x4025c7
push esi
call fcn.00402470
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push 0x54edac
push str.CabinetWClass
call esi
test eax, eax
jne 0x4025b4
push str.Desktop
push str.CabinetWClass
call esi
test eax, eax
je 0x4025c1
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
ret

Function at 0x4025d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x56f190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x402667
push 0x128
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.00503970
add esp, 0xc
lea ecx, [ebp - 0x130]
push ecx
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402660
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea edx, [ebp - 0x10c]
push str.explorer.exe
push edx
call fcn.0050f4a2
add esp, 8
test eax, eax
je 0x40265a
lea eax, [ebp - 0x130]
push eax
push esi
call edi
test eax, eax
jne 0x402632
jmp 0x402660
mov ebx, dword [ebp - 0x128]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00501afe
mov esp, ebp
pop ebp
ret
Function at 0x4027b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x56f190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
mov esi, ecx
call fcn.00503970
add esp, 0xc
test esi, esi
je 0x4027fc
lea edx, [ebp - 0x110]
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4027f0
jmp 0x402810
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x110]
push 0x5c
push edx
call fcn.00502050
mov esi, eax
add esp, 8
test esi, esi
jne 0x40283e
lea eax, [ebp - 0x110]
push 0x2f
push eax
call fcn.00502050
mov esi, eax
add esp, 8
test esi, esi
je 0x402849
inc esi
mov ecx, 0x2a
mov word [esi], cx
jmp 0x40285b
mov edx, 0x2a
mov word [ebp - 0x110], dx
lea esi, [ebp - 0x110]
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x254], eax
cmp eax, 0xffffffff
je 0x4028ef
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test byte [ebp - 0x250], 0x10
jne 0x4028d7
lea eax, [ebp - 0x224]
mov edx, esi
mov ecx, eax
sub edx, ecx
jmp 0x4028a0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4028a0
push 0x80
lea edx, [ebp - 0x110]
push edx
call edi
lea eax, [ebp - 0x110]
push eax
call ebx
cmp eax, 1
je 0x4028d7
push 4
push 0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, dword [ebp - 0x254]
lea edx, [ebp - 0x250]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402886
lea ecx, [ebp - 0x110]
push ecx
mov word [esi - 1], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp eax, 1
je 0x402918
push 4
push 0
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501afe
mov esp, ebp
pop ebp
ret
Function at 0x402930
Capabilities:
Get common file path
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x56f190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
mov dword [ebp - 0x210], ebx
call fcn.00503970
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea edx, [ebp - 0x108]
push ebx
push edx
call fcn.00503970
mov eax, dword [edi + 0xc4]
mov ecx, 1
sub ecx, dword [eax - 4]
add esp, 0xc
or ecx, dword [eax - 8]
jge 0x4029a9
push ebx
lea ecx, [edi + 0xc4]
call fcn.00401530
mov eax, dword [edi + 0xc4]
lea edx, [ebp - 0x108]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4029b7
lea edx, [ebp - 0x108]
push 0x5c
push edx
call fcn.00502050
add esp, 8
test eax, eax
jne 0x402a55
lea eax, [ebp - 0x108]
push 0x2f
push eax
call fcn.00502050
add esp, 8
test eax, eax
jne 0x402a55
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x108]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402a04
mov edx, dword [str.TempAliPayX_]
mov ecx, dword [0x54ede0]
mov dword [eax], edx
mov edx, dword [0x54ede4]
mov dword [eax + 4], ecx
mov cx, word [0x54ede8]
mov dword [eax + 8], edx
mov dl, byte [0x54edea]
mov word [eax + 0xc], cx
mov byte [eax + 0xe], dl
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402a43
sub eax, edx
lea eax, [ebp + eax - 0x108]
jmp 0x402a56
inc eax
mov ecx, dword [str.mschk.chm]
mov dword [eax], ecx
mov edx, dword [0x54edf0]
mov dword [eax + 4], edx
mov cx, word [0x54edf4]
push 0x80
lea edx, [ebp - 0x108]
push edx
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 6
push 2
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402af6
test esi, esi
je 0x402af6
mov edx, dword [edi + 0xc0]
mov eax, dword [edi + 0xbc]
push 0
lea ecx, [ebp - 0x210]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x402ad6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501afe
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00501afe
mov esp, ebp
pop ebp
ret
Function at 0x402b10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x56f190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.004025d0
push 0
push 2
mov dword [ebp - 0x134], eax
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, edi
je 0x402be0
push 0x128
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.00503970
add esp, 0xc
lea ecx, [ebp - 0x130]
push ecx
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402bcc
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
mov edx, dword [ebp - 0x134]
cmp edx, dword [ebp - 0x118]
jne 0x402ba6
lea eax, [ebp - 0x10c]
push str.msinfo.exe
push eax
call fcn.0050f4a2
add esp, 8
test eax, eax
je 0x402bb6
lea ecx, [ebp - 0x130]
push ecx
push esi
call ebx
test eax, eax
jne 0x402b80
jmp 0x402bcc
mov edx, dword [ebp - 0x128]
push edx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x402be0
test edi, edi
je 0x402be0
push 0xffffffffffffffff
jmp 0x402be5
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501afe
mov esp, ebp
pop ebp
ret

Function at 0x402d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402d7b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402db2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x402dae
jmp 0x402da0
cmp esi, eax
jae 0x402db2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402da0
cmp esi, eax
jb 0x402db9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403900
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x56f190]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x403948
push 0x527018
push 4
push eax
call fcn.00502a94
push eax
call fcn.00403241
add esp, 0x10
jmp 0x40395e
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4039e1
push edi
call fcn.0050372c
mov edi, dword [eax]
call fcn.0050372c
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.005036c9
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.0050372c
cmp dword [eax], 0
je 0x4039b5
call fcn.0050372c
push dword [eax]
call fcn.0040326d
pop ecx
jmp 0x4039bc
call fcn.0050372c
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x4039e1
cmp dword [ebp - 0x11c], esi
jae 0x4039e1
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x4039e3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00501afe
leave
ret
Function at 0x4039f0
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x56f190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00403791
pop ecx
cmp eax, esi
je 0x403ada
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x403ada
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00503970
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x403ada
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x403ada
cmp esi, 0x14
jge 0x403ada
push 0x10
push 0
push edi
call fcn.00503952
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x403ac9
call fcn.0050372c
cmp dword [eax], 0x22
je 0x403ac9
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00503775
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x403a9f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x57010c], 0
jne 0x403b65
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x403b8e
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00403900
pop ecx
pop ecx
test eax, eax
jne 0x403b90
inc edi
cmp edi, esi
jl 0x403b6b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501afe
leave
ret 8
Function at 0x404a2a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x404a72
call fcn.0040c2f0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x404a72
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x404ab5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x404a9e
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x404a9e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x404ab2
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4068e3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0040c2f0
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40691c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00406525
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40697a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x40699e
cmp dword [edi + 0x74], 0
jne 0x40699e
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0040c2f0
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040693b
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40cb46
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x51beef
call fcn.00502ed7
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x40cb6b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40cbbd
call fcn.00407db2
push eax
lea ecx, [ebp - 0x10]
call fcn.00401400
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00503fcb
push eax
call fcn.00403241
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004017e0
mov eax, esi
call fcn.00502faf
ret 8

Function at 0x4132e7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41332e
call fcn.0040c2f0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41332e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41334a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00412dec
mov esi, eax
test edi, edi
je 0x413348
test ebx, ebx
je 0x413348
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x414074
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x56f190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4140a9
xor eax, eax
jmp 0x4140fc
lea eax, [ebp - 0x210]
push eax
call fcn.00503775
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4140da
push 0x528b68
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00505fd6
add esp, 0xc
test eax, eax
jne 0x4140a5
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00505fd6
add esp, 0xc
test eax, eax
jne 0x4140a5
lea eax, [ebp - 0x210]
push eax
call fcn.0040e98b
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00501afe
leave
ret
Function at 0x45a7fd
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004dcdbe
call fcn.0040bd21
cmp dword [eax + 0x14], 0
jne 0x45a81a
mov ecx, esi
pop esi
jmp fcn.0045a302
pop esi
ret

Function at 0x45dec0
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004f1350
call fcn.0040bd21
cmp dword [eax + 0x14], 0
jne 0x45dedd
mov ecx, esi
pop esi
jmp fcn.0045d893
pop esi
ret

Function at 0x46a792
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0046a451
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x46a7dc
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040b9c8
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405be5
jmp 0x46a7e7
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00415d75
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x46a7ed
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0040c415
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x46a82a
call fcn.0046a451
mov dword [esi + 0xc], 1
jmp 0x46a82f
call fcn.0046a451
cmp dword [esi], 0
je 0x46a878
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x46a850
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040b9c8
jmp 0x46a862
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401590
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405be5
jmp 0x46a89c
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x46a89c
push dword [esi]
push dword [ebp + 8]
call fcn.00415d75
pop esi
pop ebp
ret 0xc