joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40688d
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x423198], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x4068b1
test al, 0x10
jne 0x4068b4
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x423198
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4068df
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x406a12
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x406a41
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x406a85
test edi, edi
jne 0x406a4c
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x406a7f

Function at 0x406a89
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406aed
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 8], 0x400
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406adc
cmp dword [ebp + 0x14], 1
je 0x406ade
cmp dword [ebp + 0x14], 2
je 0x406ade
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x406c45
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406c6a
mov eax, dword [0x40a058]
cmp eax, 0xffffffff
je 0x406c61
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a058], 0xffffffff
jmp 0x406cdf
cmp dword [0x423b20], ebx
je 0x406cdf
cmp byte [0x425340], bl
je 0x406ca9
cmp dword [0x40a058], 0xffffffff
jne 0x406cb2
push 4
push 0x40000000
push 0x425340
call fcn.00406a12
cmp eax, 0xffffffff
mov dword [0x40a058], eax
je 0x406cdf
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a058], 0xffffffff
je 0x406cdf
push esi
push 0x408bd8
mov esi, 0x423b40
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [0x40a058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x406d91
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push dword [esp + 8]
mov esi, 0x4231e0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.0040699f
test eax, eax
jne 0x406db0
xor eax, eax
jmp 0x406e01
test byte [0x425ffc], 0x80
je 0x406dc4
mov cl, byte [eax]
test cl, cl
je 0x406dac
cmp cl, 0x5c
je 0x406dac
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov edi, eax
sub edi, esi
jmp 0x406de7
push esi
call fcn.00406d00
test eax, eax
je 0x406de1
test byte [eax], 0x10
je 0x406e05
push esi
call fcn.00406d6b
push esi
call ebx
cmp eax, edi
jg 0x406dd2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop ebx
pop esi
ret 4
xor eax, eax
jmp 0x406dff
Function at 0x406e5f
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x406e97
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406e97
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x406fdd
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x4235e0], 0x4c554e
mov edi, 0x400
mov ebp, 0x4235e0
je 0x406edb
push 1
push 0
push esi
call fcn.00406a12
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406fe3
cmp eax, edi
jg 0x406fe3
push edi
mov esi, 0x422d98
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406fe3
cmp eax, edi
jg 0x406fe3
push esi
push ebp
push str._s_s_r_n
push 0x422998
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x3f0
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406fdd
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x406fc5
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x406fb9
push str._Rename__r_n
push edi
call fcn.00406e09
test eax, eax
jne 0x406fea
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov eax, esi
push ebp
push 0x422998
add eax, edi
push eax
call fcn.004069ee
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x426030]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x408bdc
add eax, 0xa
push eax
call fcn.00406e09
test eax, eax
je 0x406fa0
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x407013
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x407006
sub eax, edi
jmp 0x406fa2
Function at 0x40726e
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00406d91
test eax, eax
je 0x4072e1
test byte [ebp + 0xc], 1
push esi
je 0x4072bc
mov eax, dword [0x425fa0]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax + esi + 1], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x18], esi
mov word [ebp - 0x10], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
jmp 0x4072e1
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4072e1
test byte [ebp + 0xc], 2
je 0x4072e1
push esi
push str.Remove_folder_on_reboot:__s
call fcn.00406ce4
pop ecx
pop ecx
push 0
push esi
call fcn.00406e5f
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406ce4
pop ecx
pop ecx
pop esi
leave
ret 8
Function at 0x401c00
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567246
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
push esi
push edi
mov eax, dword [0x5ca004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 8
push eax
mov dword [ebp - 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.004053a6
push 0
call fcn.0040655f
push 0xc
call fcn.0040492b
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x401c75
mov ecx, eax
call fcn.00407401
mov esi, eax
jmp 0x401c77
xor esi, esi
push 0x5ab6c0
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.00407ead
push 0
push 0x66
lea ecx, [ebp - 0x2b8]
call fcn.0040dd90
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1e0]
mov dword [ebp - method.CDialogEx.virtual_0], 0x5abe94
call fcn.0040e426
mov dword [ebp - method.CComboBox.virtual_0], vtable.CComboBox.0
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 2
call fcn.0040e426
mov dword [ebp - method.CComboBox.virtual_0], vtable.CComboBox.0
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 3
call fcn.0040e426
mov dword [ebp - 0xe0], vtable.CComboBox.0
mov byte [ebp - 4], 4
movaps xmm0, xmmword [0x5ac200]
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x38], 0
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x20], 0
call fcn.004162b0
call fcn.004162b0
push 0x80
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x1e8], eax
lea eax, [ebp - 0x2b8]
mov dword [ebp - 4], 5
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.004086df
test esi, esi
je 0x401d5f
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
lea ecx, [ebp - 0xe0]
call fcn.00408ed8
lea ecx, [ebp - 0x160]
call fcn.00408ed8
lea ecx, [ebp - 0x1e0]
call fcn.00408ed8
lea ecx, [ebp - 0x1f8]
call fcn.0040bfb7
lea ecx, [ebp - 0x204]
mov dword [ebp - method.CBrush.virtual_0], vtable.CBrush.0
call fcn.00402a00
lea ecx, [ebp - 0x2b8]
call fcn.00408188
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401fc0
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]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x401fe9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401fff
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401ff6
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402032
nop
cmp esi, ecx
jae 0x401ff6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402020
cmp esi, ecx
jae 0x401ff6
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4020e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
call fcn.0040a783
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x4021e1
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x4021e1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4021e1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4021e1
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402168
cmp esi, ecx
jae 0x4021e1
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402152
cmp esi, ecx
jae 0x4021e1
movzx eax, word [esi]
test ax, ax
je 0x4021e1
mov edx, dword [ebx]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x40219b
push edi
mov ecx, ebx
call fcn.00402750
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x40219e
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.005508ca
add esp, 0x10
cmp eax, 0x50
ja case.0x4021bc.1
movzx eax, byte [eax + 0x402210]
jmp dword [eax*4 + 0x402200]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x4021f1
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0040a12d
push 0x80070057
call fcn.00402800
call fcn.0040a113
ret
Function at 0x403ee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0040836c

Function at 0x406bb6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x406bfb
call fcn.004162b0
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x406bf8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406c42
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x406c1e
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5779a4]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x406c3f
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x5779a4]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x407b27
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x407b7a
push esi
push dword [ebp + 8]
call fcn.00407d10
mov edi, eax
test edi, edi
je 0x407b75
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x407b75
mov eax, dword [ebp - 8]
jmp 0x407b8c
mov eax, dword [ebp + 0x10]
jmp 0x407b8c
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x4083c4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.004162b0
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4083f7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.0040840a
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4103b1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x4103f0
call fcn.004162b0
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4103f0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4103f8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0041645f
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x410df8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x410e84
cmp dword [esi + 0x20], 0
je 0x410e84
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x410e84
cmp dword [ebp + 8], 0
je 0x410e84
xor edi, edi
mov ebx, edi
call fcn.004162b0
push 0x57a828
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x410e68
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x410e84
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.00443154
mov edi, eax
add esp, 0xc
test edi, edi
je 0x410e80
mov ecx, esi
call fcn.00410b96
mov eax, edi
jmp 0x410e86
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x415886
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5676ce
call fcn.0054a892
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x4158ac
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x415906
lea ecx, [ebp - 0x10]
call fcn.00401f60
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5779a4]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00556c48
push eax
call fcn.00402050
add esp, 0x14
test esi, esi
je 0x4158f9
push esi
call fcn.00551186
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402660
mov eax, ebx
call fcn.0054a860
ret 8
Function at 0x4166f9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00415463
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x416735
call fcn.00416916
mov dword [esi + 0xc], 1
jmp 0x41673a
call fcn.00416916
cmp dword [esi], 0
je 0x416785
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x416760
push edi
call fcn.00409252
lea ecx, [edi + 1]
push ecx
jmp 0x41676f
push 0xff
call fcn.004027b0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00407e4c
pop edi
jmp 0x4167a9
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4167a9
push dword [esi]
push dword [ebp - 4]
call fcn.00419743
pop esi
leave
ret 0xc

Function at 0x41686d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00416916
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4168b5
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00409252
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00407e4c
jmp 0x4168c0
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00419743
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x444c26
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x444c7c
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x444c55
call fcn.0040b23f
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x444c6a
call fcn.0040b23f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x444c7c
call fcn.0040b23f
call fcn.004162b0
cmp dword [eax + 0x3c], 0
je 0x444c91
push edi
mov ecx, ebx
call fcn.00444349
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00444e77
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x444cba
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x444cc6
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x45162c
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x56aa99
call fcn.0054a8c5
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004042b0
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x57992c
call fcn.00404550
cmp eax, 0xffffffff
jne 0x451707
push 0
push 0x5813ec
lea ecx, [ebp - 0x4d0]
call fcn.00404550
cmp eax, 0xffffffff
jne 0x451707
push 0
push 0x57834c
lea ecx, [ebp - 0x4d0]
call fcn.00404550
cmp eax, 0xffffffff
jne 0x451707
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004042b0
add eax, 0x10
pop ecx
mov dword [ebp - 0x4d8], eax
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x218]
push ecx
push 0x104
push edx
push eax
lea edi, [eax - 0x10]
push edx
mov dword [ebp - 0x4d4], edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4516d6
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x5779a4]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.00402660
jmp 0x451740
lea eax, [ebp - 0x218]
push eax
call fcn.00551186
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00402370
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00402660
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x45172d
mov edi, dword [ebp - 0x4cc]
jmp 0x451740
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x5779a4]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00402660
mov eax, edi
call fcn.0054a874
ret

Function at 0x457a27
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x457a40
call fcn.004162b0
mov esi, dword [eax + 0xc]
push 0x581c84
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x457a82
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x457a82
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x457a82
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00457a8b
jmp 0x457a84
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x513732
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00559c2a
pop ecx
test eax, eax
jne 0x513774
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040810d
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x51373a
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret