joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e23c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44e3e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e3c8
mov dl, 1
mov eax, dword [0x411a98]
call fcn.004034f8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040427c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44e3b7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043be60
test al, al
je 0x44e3aa
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44e3f8
lea eax, [ebp - 0x254]
call fcn.00409014
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e3aa
xor eax, eax
push ebp
push 0x44e3a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44e430
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e38c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044e4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44e38c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e3aa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e2ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415be0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e3ee
lea eax, [ebp - 0x260]
call fcn.0040427c
ret

Function at 0x44ed1c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x457bfc]
cmp byte [eax + 0xa5], 0
jne 0x44ed8d
cmp dword [0x457c14], 0
jne 0x44ed4e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44ecd8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x457c14], eax
cmp dword [0x457c10], 0
jne 0x44ed69
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x457c10], eax
cmp dword [0x457c18], 0
jne 0x44ed8d
push esp
push 0
push 0
push 0x44ec7c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x457c18], eax
pop edx
ret
Function at 0x44ee84
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44ee9b
add esp, 0xfffffff0
call fcn.00403874
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b548
mov eax, dword [0x455eac]
cmp word [eax + 2], 0
jne 0x44eec3
mov eax, dword [0x455eac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004504b8
mov eax, dword [0x455f34]
cmp word [eax + 2], 0
jne 0x44eedd
mov eax, dword [0x455f34]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004506b0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4115a8]
call fcn.004034f8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4115a8]
call fcn.004034f8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41d6e0]
call fcn.004232ec
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44f064
mov eax, dword [0x455de4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004236bc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x450c20
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x455de4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040a910
test eax, eax
je 0x44efd2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040895c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040a938
test eax, eax
je 0x44efe6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004044e4
mov eax, dword [0x455d00]
cmp byte [eax], 0
jne 0x44f01a
mov eax, ebx
call fcn.0044f18c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00450dfc
mov eax, ebx
call fcn.0045173c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f05a
call fcn.004038cc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f400
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x457bfc]
cmp dword [eax + 0x30], 0
je 0x44f4aa
cmp dword [ebx + 0x94], 0
jne 0x44f4a4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f390
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f4a4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44f46a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f4a4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413c48
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f479
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44ff88
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44ffbd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040436c
jmp 0x44ffca
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042d0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x450fd8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451019
mov eax, esi
call fcn.00437724
test al, al
je 0x451019
mov eax, dword [ebx + 0x84]
call fcn.00437420
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451019
push 0
mov eax, dword [ebx + 0x84]
call fcn.00437420
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0xc
push 0
mov dword [edi], 0x41c7a4
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 0xc
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x401082
sub eax, esi
sub eax, 0xa
mov dword [esi + 6], eax
mov byte [esi], 0xb9
mov byte [esi + 5], 0xe9
mov dword [esi + 1], edi
mov dword [edi + 8], esi
mov eax, edi
pop esi
leave
ret

Function at 0x4016cc
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCR80.dll_srand]
pop ecx
lea ecx, [esp + 0xc]
call fcn.0040e653
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.004016a7
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0
push 0x4281f0
push 0x428634
call sub.gdiplus.dll_GdiplusStartup
test eax, eax
je 0x40174b
push 0x41c7bc
push 0x42043c
call fcn.00411e0e
pop ecx
pop ecx
call fcn.004010c5
mov ebx, eax
call fcn.00401985
test eax, eax
je 0x401795
mov eax, dword [ebx]
push dword [eax + 0x5d4]
call fcn.0040d5e1
pop ecx
call fcn.00402f51
call fcn.00407d70
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [0x428634]
call sub.gdiplus.dll_GdiplusShutdown
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 2
pop esi
jmp 0x40177a
Function at 0x402f51
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx]
sub esp, 0x28
push esi
xor esi, esi
cmp dword [eax + 0xc], esi
push edi
je 0x40309a
cmp dword [eax + 8], esi
je 0x40309a
mov ecx, dword [ebx + 4]
mov eax, dword [eax + 0x20]
mov dword [ebp - 4], esi
push 4
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
call fcn.0040184b
push 8
lea edi, [ebp - 0x24]
call fcn.0040184b
cmp dword [ebp - 0x18], 0
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
je 0x402fdd
cmp dword [ebp - 0x20], 0
je 0x402fdd
mov eax, dword [ebx]
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push 4
add eax, 8
push eax
lea eax, [edi + 4]
push eax
push dword [ebp - 0x14]
call esi
mov eax, dword [ebx]
lea ecx, [ebp - 8]
push ecx
push 4
add eax, 0xc
push eax
lea eax, [edi + 8]
push eax
push dword [ebp - 0x14]
call esi
mov dword [ebp - 4], 1
jmp 0x402fe0
mov edi, dword [ebp - 0x10]
push 0x20
mov ecx, ebx
call fcn.00402548
test eax, eax
mov dword [ebp - 8], eax
jne 0x403001
push str.create_mini_dump_fail
push 0x420428
call fcn.00411e0e
pop ecx
pop ecx
push dword [ebp - 8]
mov ecx, ebx
call fcn.0040231b
mov ecx, ebx
call fcn.004025f3
test eax, eax
jne 0x403027
push str.create_bug_info_txt_fail
push 0x420428
call fcn.00411e0e
pop ecx
pop ecx
push 0x60
mov ecx, ebx
call fcn.00402548
test eax, eax
jne 0x403045
push str.create_midd_dump_fail
push 0x420428
call fcn.00411e0e
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x403071
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
lea eax, [edi + 4]
push eax
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
add edi, 8
push edi
push dword [ebp - 0x14]
call esi
xor esi, esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
push esi
mov dword [ebp - 0xc], esi
push dword [eax + 0x5d4]
push 0x402eff
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x28], eax
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
push 0x20
mov ecx, ebx
call fcn.00402548
mov edi, eax
cmp edi, esi
jne 0x4030ba
push str.create_mini_dump_fail
push 0x420428
call fcn.00411e0e
pop ecx
pop ecx
push edi
mov ecx, ebx
call fcn.0040231b
mov ecx, ebx
call fcn.004025f3
test eax, eax
jne 0x4030de
push str.create_bug_info_txt_fail
push 0x420428
call fcn.00411e0e
pop ecx
pop ecx
push 0x60
mov ecx, ebx
call fcn.00402548
test eax, eax
jne 0x403073
push str.create_midd_dump_fail
push 0x420428
call fcn.00411e0e
pop ecx
pop ecx
jmp 0x403073
Function at 0x403189
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [ebp - 0x5c], 0x44
call sub.MSVCR80.dll_memset
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push esi
stosd dword es:[edi], eax
push esi
push esi
xor eax, eax
inc eax
push esi
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push esi
push dword [eax + 0x5e0]
push dword [eax + 0x5dc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, esi
je 0x4031fb
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x40320c
push str.CBugReportInfo::RestartCrashProcess_Fail_
push str.BugReport
call fcn.00411e0e
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x403e21
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push 0x218
mov eax, 0x41ade0
call fcn.0041a007
mov esi, ecx
mov eax, dword [esi]
xor edi, edi
cmp dword [eax + 0x5e4], edi
jne 0x403e46
xor eax, eax
call fcn.0041a08a
ret
mov eax, dword [0x428220]
mov ecx, 0x428220
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push ecx
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov ecx, esp
mov dword [ebp - 0x224], esp
push ecx
mov ecx, dword [eax + 0x5e4]
call fcn.0040453a
lea ecx, [ebp - 0x21c]
call fcn.0040eb6b
lea eax, [ebp - 0x21c]
mov dword [esp], str..tlg
push eax
call fcn.004045ef
push 0x206
lea eax, [ebp - 0x216]
push edi
push eax
mov word [ebp - 0x218], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x403ef4
push 0x420fb4
lea eax, [ebp - 0x218]
push eax
call esi
push 0x420fb8
lea eax, [ebp - 0x218]
push eax
call esi
mov ebx, dword [ebp - 0x21c]
cmp dword [ebx - 4], 1
jle 0x403f23
push dword [ebx - 0xc]
lea eax, [ebp - 0x21c]
push eax
call fcn.004015bf
mov ebx, dword [ebp - 0x21c]
push ebx
lea eax, [ebp - 0x218]
push eax
call esi
cmp ebx, edi
jne 0x403f35
xor eax, eax
jmp 0x403f3d
push ebx
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x21c]
call fcn.004014bf
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403f66
lea eax, [ebx - 0x10]
call fcn.004016a7
jmp 0x403e3e
lea eax, [ebp - 0x218]
push eax
mov edi, 0x4286f4
push edi
call fcn.0040146d
lea eax, [ebp - 0x220]
push eax
call fcn.0040d670
pop ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
xor esi, esi
cmp dword [eax - 0xc], esi
jne 0x403fb3
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.004016a7
lea eax, [ebx - 0x10]
call fcn.004016a7
mov eax, esi
jmp 0x403e40
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x220]
call fcn.004046d7
pop ecx
pop ecx
mov byte [ebp - 4], 2
call fcn.00404596
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.004016a7
push dword [0x4286f4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push dword [0x4286f4]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
jmp 0x403f96
Function at 0x4058dc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405934
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405925
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405921
cmp edi, eax
jae 0x405925
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405913
cmp edi, eax
jb 0x405929
xor eax, eax
jmp 0x405933
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x405a8a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x41b481
call fcn.00419f9e
and dword [ebp - 0x10], 0
mov eax, dword [0x428220]
mov ecx, 0x428220
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x405afb
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
push eax
push eax
lea esi, [ebp - 0x10]
call fcn.00401497
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x405aeb
xor eax, eax
jmp 0x405af3
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x10]
call fcn.004014bf
add esi, 0xfffffff0
mov eax, esi
call fcn.00404f3d
add eax, 0x10
mov dword [ebx], eax
mov eax, esi
call fcn.004016a7
mov eax, ebx
call fcn.0041a076
ret 8
Function at 0x406a15
Capabilities:
Check if file exists
Get file system object information

Disassembly:
push 0x2f4
mov eax, 0x41b4c8
call fcn.0041a007
mov ebx, ecx
push 0x3f2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
mov dword [ebp - 0x2d0], eax
je 0x406c4a
push 0x405fb1
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
push 1
push 0x21
push 0x20
push 0x20
mov dword [0x42863c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x110
push 0x2b4
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 0x2cc]
push eax
push 0x80
push str.file.txt
call edi
push dword [ebp - 0x2cc]
mov esi, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push 0xffffffffffffffff
push dword [ebx + 0x1c]
call esi
push 0x110
push 0x2b4
lea eax, [ebp - 0x2cc]
push eax
push 0x80
push str.file.dmp
call edi
push dword [ebp - 0x2cc]
push 0xffffffffffffffff
push dword [ebx + 0x1c]
call esi
push 0x110
push 0x2b4
lea eax, [ebp - 0x2cc]
push eax
push 0x80
push str.file.tlg
call edi
push dword [ebp - 0x2cc]
push 0xffffffffffffffff
push dword [ebx + 0x1c]
call esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x2fc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x300]
push eax
push 0
push 0x1061
push dword [ebp - 0x2d0]
mov dword [ebp - 0x300], 4
mov dword [ebp - 0x2f4], str.name
call esi
push dword [ebx + 0x1c]
push 0
push 0x1003
push dword [ebp - 0x2d0]
call esi
xor edi, edi
inc edi
lea eax, [ebp - 0x2dc]
push edi
push eax
call fcn.004010c5
mov ebx, eax
call fcn.00403920
and dword [ebp - 4], 0
push 0
push dword [ebp - 0x2d0]
mov ecx, eax
call fcn.00408017
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2dc]
add eax, 0xfffffff0
call fcn.004016a7
lea eax, [ebp - 0x2d8]
push 2
push eax
call fcn.004010c5
mov ebx, eax
call fcn.00403920
mov dword [ebp - 4], edi
push dword [ebp - 0x2d8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x406bba
push 0
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2d8]
call fcn.00408017
lea eax, [ebp - 0x2d4]
push 0x20
push eax
call fcn.004010c5
call fcn.004038fb
mov byte [ebp - 4], 2
push dword [ebp - 0x2d4]
call esi
test eax, eax
je 0x406bef
push edi
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2d4]
call fcn.00408017
cmp dword [0x42866c], 0
je 0x406c2e
lea eax, [ebp - 0x2e0]
push 0x167
push eax
call fcn.004010c5
call fcn.004038fb
push edi
push dword [ebp - 0x2d0]
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00408017
mov eax, dword [ebp - 0x2e0]
add eax, 0xfffffff0
call fcn.004016a7
mov eax, dword [ebp - 0x2d4]
add eax, 0xfffffff0
call fcn.004016a7
mov eax, dword [ebp - 0x2d8]
add eax, 0xfffffff0
call fcn.004016a7
call fcn.0041a08a
ret
Function at 0x407c92
Capabilities:
Hide graphical window

Disassembly:
push 0x10
mov eax, 0x41bb97
call fcn.00419f9e
mov eax, dword [ebp + 8]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x428220]
mov ecx, 0x428220
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
call fcn.004010c5
mov eax, dword [eax]
push dword [eax + 0x1c]
lea eax, [ebp + 8]
push 0x4204d0
push eax
call fcn.0040556c
add esp, 0xc
push 0x37
lea esi, [ebp + 8]
call fcn.00404616
cmp eax, 0xffffffff
mov edi, dword [ebp + 8]
je 0x407d60
mov ecx, dword [edi - 0xc]
dec ecx
cmp eax, ecx
jne 0x407d60
lea eax, [ebp - 0x18]
mov esi, 0x4211c8
push eax
mov ecx, esi
call fcn.0040453a
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040453a
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0040453a
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 3
call fcn.00405f7a
push eax
call fcn.0040a6f5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004016a7
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004016a7
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004016a7
lea eax, [edi - 0x10]
call fcn.004016a7
call fcn.0041a076
ret 4
Function at 0x40a0ef
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
or dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp byte [esi + 0x2c], bl
mov dword [esi + 0x3c], eax
jne 0x40a126
push str.GIF_not_initialized
push 0x420374
call fcn.00411e0e
pop ecx
pop ecx
jmp 0x40a16e
cmp dword [esi + 0x24], 1
jbe 0x40a16e
cmp dword [esi + 0x14], ebx
jne 0x40a16e
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x40a376
push ebx
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x14], eax
jne 0x40a167
push str.Couldnt_start_a_GIF_animation_thread_n
push 0x420374
call fcn.00411e0e
pop ecx
pop ecx
mov al, 1
jmp 0x40a170
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor al, al
pop ebx
pop ebp
ret 0xc

Function at 0x40a1cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x41c790
push 0x86
mov esi, eax
mov byte [ebp - 1], 0
call fcn.0040e47e
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40a1ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x40a268
push edi
call fcn.0040e47e
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x40a1fb
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40a25b
cmp dword [ebp + 8], 0
push edi
jne 0x40a238
call fcn.0040e47e
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
jmp 0x40a257
mov esi, dword [esi]
call fcn.0040e47e
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, eax
jl 0x40a25b
push esi
push ebx
push dword [ebp + 8]
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, byte [ebp - 1]
pop ebx
pop edi
pop esi
leave
ret 4