joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456abc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x456ace
add esp, 0xfffffff0
call fcn.00403cf0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041aaa0
mov eax, dword [0x48b0a0]
mov dword [eax + 4], ebx
mov dword [eax], 0x456e60
mov eax, dword [0x48b0ac]
mov dword [eax + 4], ebx
mov dword [eax], 0x456e6c
mov eax, ebx
call fcn.00456e78
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4126d0]
call fcn.0040399c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4126d0]
call fcn.0040399c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4126d0]
call fcn.0040399c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4126d0]
call fcn.0040399c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4126d0]
call fcn.0040399c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x452910
push eax
push 0
push 0
mov eax, dword [0x48b220]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41fe18]
call fcn.0042166c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41fe18]
call fcn.0042166c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41fe18]
call fcn.0042166c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004572a8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457178
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457178
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457178
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x456c0b
call fcn.00403d48
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x456f5c
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 0x457107
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4570e8
mov dl, 1
mov eax, dword [0x412af4]
call fcn.0040399c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047f8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4570d7
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.00449d5c
test al, al
je 0x4570ca
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, 0x457118
lea eax, [ebp - 0x254]
call fcn.0040981c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4570ca
xor eax, eax
push ebp
push 0x4570c3
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 0x457150
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4570ac
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a68
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 0x4570ac
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4570ca
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x456fcd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041690c
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 0x45710e
lea eax, [ebp - 0x260]
call fcn.004047f8
ret

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

Disassembly:
push ecx
mov eax, dword [0x48f584]
cmp byte [eax + 0xad], 0
jne 0x457af1
cmp dword [0x48f59c], 0
jne 0x457ab2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x457a3c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x48f59c], eax
cmp dword [0x48f598], 0
jne 0x457acd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x48f598], eax
cmp dword [0x48f5a0], 0
jne 0x457af1
push esp
push 0
push 0
push 0x4579e0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x48f5a0], eax
pop edx
ret
Function at 0x457cc4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x457cdb
add esp, 0xfffffff0
call fcn.00403cf0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041aaa0
mov eax, dword [0x48b200]
cmp word [eax + 2], 0
jne 0x457d03
mov eax, dword [0x48b200]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00459804
mov eax, dword [0x48b2cc]
cmp word [eax + 2], 0
jne 0x457d1d
mov eax, dword [0x48b2cc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00459a10
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4126d0]
call fcn.0040399c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4126d0]
call fcn.0040399c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4126d0]
call fcn.0040399c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x420928]
call fcn.00428278
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x457ed4
mov eax, dword [0x48b110]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042864c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45a0e0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x48b110]
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.0040d210
test eax, eax
je 0x457e24
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004091c0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d244
test eax, eax
je 0x457e38
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a68
mov byte [ebx + 0xd4], 0
push ebx
push 0x459364
call fcn.0041bc1c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x48afd8]
cmp byte [eax], 0
jne 0x457e89
mov eax, ebx
call fcn.00458018
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045a2bc
mov eax, ebx
call fcn.0045ae1c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x457ec9
call fcn.00403d48
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458298
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48f584]
cmp dword [eax + 0x30], 0
je 0x458342
cmp dword [ebx + 0x94], 0
jne 0x45833c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x458228
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45833c
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 0x458302
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45833c
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.00414a7c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458311
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45905c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x459091
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.004048e8
jmp 0x45909e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040484c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45a4a0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45a50e
mov eax, esi
call fcn.00444a88
test al, al
je 0x45a50e
mov eax, dword [ebx + 0x84]
call fcn.004446e8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45a50e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45a502
push 0
mov eax, dword [ebx + 0x84]
call fcn.004446e8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043cb00
jmp 0x45a50e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045a2dc
pop esi
pop ebx
ret
Function at 0x461cac
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x461cda
mov eax, ebx
call fcn.00462760
cmp dword [ebx + 0x40], 0
je 0x461cd3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x461d4b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x461d3d
cmp dword [ebx + 8], 0
je 0x461cfc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x461d0e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x461d3d
cmp dword [ebx + 8], 0
je 0x461cef
cmp eax, 3
je 0x461d21
dec eax
jne 0x461cef
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x461cef
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x461cef
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x461d69
cmp dword [ebx + 0x14], 0xcc
je 0x461d69
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00461d74
pop ebx
ret

Function at 0x474ff0
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 6
setae al
add esp, 0x94
ret

Function at 0x481a4c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x10c], ebx
mov esi, ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x481af4
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x481a91
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x23
push 0
call sub.SHFolder.dll_SHGetFolderPathA
jmp 0x481aa5
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x1a
push 0
call sub.SHFolder.dll_SHGetFolderPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x104]
call fcn.004093ac
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.0040d008
mov edx, dword [ebp - 0x108]
mov eax, esi
mov ecx, ebx
call fcn.00404b08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481afb
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.0040481c
ret

Function at 0x481b04
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x481b92
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x23
push 0
call sub.SHFolder.dll_SHGetFolderPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x104]
call fcn.004093ac
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.0040d008
mov edx, dword [ebp - 0x108]
mov eax, ebx
mov ecx, 0x481ba8
call fcn.00404b08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481b99
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.0040481c
ret
Function at 0x481f28
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
xor eax, eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x481fe3
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00481bb8
test al, al
jne 0x481fc2
push 0x24
mov ecx, 0x481ff0
mov edx, 0x481ffc
mov eax, dword [0x48b2ac]
mov eax, dword [eax]
call fcn.00459894
cmp eax, 6
jne 0x481fc2
push 0x105
lea eax, [ebp - 0x109]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x109]
call fcn.004093ac
push dword [ebp - 0x110]
push 0x482050
push 0x48205c
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b7c
push 0x48206c
mov eax, dword [ebp - 4]
call fcn.00404cbc
push eax
call sub.imm32.dll_ImmInstallIMEA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481fea
lea eax, [ebp - 0x110]
call fcn.004047f8
lea eax, [ebp - 4]
call fcn.004047f8
ret

Function at 0x482084
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4820ff
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e]
xor ecx, ecx
mov edx, 4
call fcn.00403310
xor eax, eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], 3
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040d054
mov eax, dword [ebp - 0x24]
call fcn.00404cbc
mov dword [ebp - 0x16], eax
xor eax, eax
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], 0x454
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482106
lea eax, [ebp - 0x24]
call fcn.004047f8
ret

Function at 0x484618
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x484648
cmp dword [esp + 4], 6
jb 0x484648
call fcn.0042fa5c
call fcn.0042fb64
test al, al
je 0x484648
mov al, 1
jmp 0x48464a
xor eax, eax
add esp, 0x94
ret

Function at 0x485404
Capabilities:
Hide graphical window

Disassembly:
push ebx
push 0
mov eax, dword [0x48b2ac]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x48b2ac]
mov eax, dword [eax]
mov ebx, dword [eax + 0x30]
push ebx
call sub.user32.dll_GetWindowLongA
and eax, 0xfffbffff
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x48b2ac]
push ebx
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x48b2ac]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
Function at 0x4012c6
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41f010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push 0x1a
push eax
push esi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call fcn.004056c3
pop ecx
test eax, eax
je 0x40137c
push ebx
mov ebx, 0x417320
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00405674
lea eax, [ebp - 0x20c]
push str.WnPicView
push eax
call fcn.00405674
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00405674
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x401354
lea eax, [ebp - 0x20c]
push eax
call fcn.004032e3
pop ecx
cmp word [ebp - 0x20c], si
je 0x40136c
lea eax, [ebp - 0x20c]
push eax
call fcn.004056c3
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0x34]
call fcn.00402f3a
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00405ae3
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41f010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push 0x1a
push eax
push edi
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call fcn.004056c3
pop ecx
test eax, eax
je 0x40145d
push ebx
mov ebx, 0x417320
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00405674
lea eax, [ebp - 0x20c]
push str.WnPicView.users
push eax
call fcn.00405674
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00405674
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x40141e
lea eax, [ebp - 0x20c]
push eax
call fcn.004032e3
pop ecx
cmp word [ebp - 0x20c], di
je 0x401436
lea eax, [ebp - 0x20c]
push eax
call fcn.004056c3
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x20c]
add esi, 0x1c
push eax
mov ecx, esi
call fcn.00402f3a
cmp dword [esi + 0x14], 8
jb 0x401450
mov esi, dword [esi]
push esi
push str.get_user_path__:_s
call fcn.0040336d
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00405ae3
mov esp, ebp
pop ebp
ret
Function at 0x40150a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41f010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [esi + 0x34]
cmp dword [eax + 0x14], 8
jb 0x40152b
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.00405a40
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401563
lea eax, [ebp - 0x20c]
push eax
call fcn.004032e3
pop ecx
lea eax, [ebp - 0x20c]
push str.Related.ini
push eax
call fcn.00405674
cmp word [ebp - 0x20c], 0
pop ecx
pop ecx
jne 0x401584
xor eax, eax
jmp 0x401591
lea eax, [ebp - 0x20c]
push eax
call fcn.004056c3
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0xac]
call fcn.00402f3a
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405ae3
mov esp, ebp
pop ebp
ret
Function at 0x4015b3
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc38
mov eax, dword [0x41f010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
xor edi, edi
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0xc32]
mov ebx, ecx
push edi
push eax
call fcn.00404f10
xor eax, eax
push esi
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push edi
push eax
call fcn.00404f10
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.00404f10
xor eax, eax
push esi
mov word [ebp - 0xa2c], ax
lea eax, [ebp - 0xa2a]
push edi
push eax
call fcn.00404f10
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.00404f10
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00404f10
add esp, 0x48
lea eax, [ebp - 0xc34]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004056a3
lea eax, [ebp - 0x414]
push eax
call fcn.004056c3
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.004056dc
add esp, 0x14
test eax, eax
je 0x4017e5
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.004056a3
lea eax, [ebp - 0x824]
push str.Local
push eax
call fcn.00405674
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
mov esi, edi
inc ecx
test eax, eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
cmovne esi, ecx
push eax
call fcn.004056a3
lea eax, [ebp - 0x61c]
push str.LocalLow
push eax
call fcn.00405674
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, edi
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xa2c]
mov dword [ebp - 0xc38], ecx
push eax
call fcn.004056a3
lea eax, [ebp - 0xa2c]
push str.Roaming
push eax
call fcn.00405674
add esp, 0x10
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, edi
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x4017e5
cmp dword [ebp - 0xc38], edi
je 0x4017e5
test ecx, ecx
je 0x4017e5
push str.WnPicView
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x4172f0
push eax
call fcn.00405a40
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4017bb
lea eax, [ebp - 0x20c]
push eax
call fcn.004032e3
pop ecx
cmp word [ebp - 0x20c], di
je 0x4017d3
lea eax, [ebp - 0x20c]
push eax
call fcn.004056c3
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebx + 0x34]
call fcn.00402f3a
jmp 0x4017ec
mov ecx, ebx
call fcn.004012c6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405ae3
mov esp, ebp
pop ebp
ret