joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410806
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x4f8004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10
mov edi, ecx
mov ebx, 0x104
xor ecx, ecx
mov esi, edx
cmp dword [ebp + 0xc], ecx
pop eax
cmovne eax, ecx
mov dword [ebp - 0xa34], esi
mov dword [ebp - 0xa30], eax
lea eax, [ebp - 0x61c]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push ebx
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x20c]
push eax
xor eax, eax
push eax
push eax
push 5
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp dword [ebp + 0x14], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
je 0x410924
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x410924
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
jne 0x410924
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
je 0x410924
push dword [ebp - 0xa30]
lea eax, [ebp - 0x20c]
push edi
push 0x10
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRelativePathToW]
test eax, eax
je 0x410924
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push str._CSIDL:MYDOCUMENTS_
push eax
call esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
mov esi, dword [ebp - 0xa34]
jmp 0x410978
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x410969
push eax
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCommonPrefixW]
test eax, eax
jne 0x410969
push dword [ebp - 0xa30]
lea eax, [ebp - 0x61c]
push edi
push 0x10
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRelativePathToW]
test eax, eax
jne 0x410978
push 0x104
push edi
lea eax, [ebp - 0x414]
push eax
call ebx
push 0x104
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnExpandEnvStringsW]
test eax, eax
jne 0x4109aa
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push eax
call ebx
test esi, esi
je 0x4109c1
cmp edi, esi
je 0x4109c1
push 0x104
lea eax, [ebp - 0x824]
push eax
push esi
jmp 0x4109ce
push 0x104
lea eax, [ebp - 0x824]
push eax
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486c63
leave
ret
Function at 0x4109df
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4f8004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x13
mov esi, ecx
mov ebx, edx
push str._CSIDL:MYDOCUMENTS_
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor edx, edx
test eax, eax
mov ecx, 0x104
lea eax, [ebp - 0x414]
jne 0x410a3d
push eax
push edx
push edx
push 5
push edx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esi + 0x26]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x410a42
push ecx
push esi
push eax
call edi
mov edx, 0x104
lea ecx, [ebp - 0x414]
call fcn.004110cd
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
mov eax, 0x104
push eax
je 0x410a9b
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x410aab
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
lea ecx, [ebp - 0x20c]
call fcn.0041111a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, 0xffffffff
je 0x410ad7
push 1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
test ebx, ebx
je 0x410af7
cmp esi, ebx
je 0x410af7
mov eax, dword [ebp + 8]
mov ecx, 0x104
test eax, eax
cmove eax, ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
jmp 0x410b0d
mov eax, dword [ebp + 8]
mov ecx, 0x104
test eax, eax
cmove eax, ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486c63
leave
ret
Function at 0x410cd8
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xce0
mov eax, dword [0x4f8004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x52a900
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x410e67
push 0x104
lea eax, [ebp - 0xacc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x28c]
push ebx
push eax
call edi
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push 0x4c2bb0
lea eax, [ebp - 0x4b4]
push eax
call edi
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x4b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
inc eax
push eax
push 0x10
lea eax, [ebp - 0x6bc]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x271d
push dword [0x52a6a0]
call dword [sym.imp.USER32.dll_LoadStringW]
push 2
lea eax, [ebp - 0xce0]
push eax
lea eax, [ebp - 0x8c4]
push eax
lea eax, [ebp - 0x6bc]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetNewLinkInfoW]
test eax, eax
je 0x410e6a
lea eax, [ebp - 0xcd8]
xor ebx, ebx
push eax
push 0x4b19f0
inc ebx
push ebx
push esi
push 0x4b1a20
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x410e63
mov eax, dword [ebp - 0xcd8]
lea edx, [ebp - 0xcdc]
push edx
push 0x4b1a00
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x410e57
lea eax, [ebp - 0x8c4]
push eax
lea eax, [ebp - 0xcd4]
push eax
call edi
mov eax, dword [ebp - 0xcd8]
lea edx, [ebp - 0xacc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0xcd8]
lea edx, [ebp - 0x4b4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0xcd8]
lea edx, [ebp - 0x84]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0xcdc]
lea edx, [ebp - 0xcd4]
push ebx
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
mov eax, dword [ebp - 0xcdc]
push eax
cmovns esi, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0xcd8]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, esi
jmp 0x410e6a
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486c63
leave
ret
Function at 0x411192
Capabilities:
Check if file exists
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4111db
push 0x200
push 0x2b4
push esi
push 0
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call edi
mov ecx, dword [ebp + 8]
mov esi, eax
add ecx, 0xc
push ecx
jmp 0x41120e
push 0x210
push 0x2b4
push esi
push 0x80
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call edi
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
call edi
cmp eax, esi
jge 0x41122e
push 0x104
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411236
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f8004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, ecx
push esi
xor ebx, ebx
call edi
test eax, eax
je 0x4112c1
push 8
lea eax, [ebp - 0x14]
push eax
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x411278
push 0x27
pop eax
mov word [ebp - 0x14], ax
push esi
call edi
lea eax, [esi + eax*2]
push eax
jmp 0x4112ad
inc ebx
cmp ebx, 3
jne 0x4112ac
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [edi + 2]
push edi
push eax
call fcn.0048a080
mov ax, word [ebp - 0x14]
add esp, 0xc
mov word [edi], ax
push edi
push esi
call dword [sym.imp.USER32.dll_CharPrevW]
mov edi, eax
cmp edi, esi
jne 0x411281
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486c63
leave
ret
Function at 0x4117c3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x4f8004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x10000
push 0x40
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, esi
mov ebx, eax
call fcn.00411724
push 0x522d98
push ebx
call dword [sym.imp.KERNEL32.dll_LocalSize]
shr eax, 1
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor eax, eax
cmp dword [esi + 0x204], eax
jle 0x411872
push edi
lea edi, [esi + 0x208]
inc eax
push eax
mov dword [ebp - 0x848], eax
lea eax, [ebp - 0x44]
push str._.2i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x400
lea eax, [ebp - 0x844]
mov ecx, ebx
push eax
push 0x4bc498
lea edx, [ebp - 0x44]
call fcn.0040f575
add esp, 0x18
test eax, eax
je 0x411863
lea eax, [ebp - 0x844]
push eax
call dword [sym.imp.SHLWAPI.dll_StrDupW]
mov dword [edi], eax
add edi, 4
mov eax, dword [ebp - 0x848]
cmp eax, dword [esi + 0x204]
jl 0x411818
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00486c63
leave
ret
Function at 0x411b23
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4f8004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 5
mov esi, edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x411caa
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x411ca0
lea ecx, [ebx + 0x40]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x411ca0
push ebx
push dword [ebp - 0x48]
push esi
call fcn.0048a080
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x44]
call fcn.004119e9
test eax, eax
je 0x411c9c
movzx ecx, word [esi + 2]
lea edx, [esi + 0xc]
mov eax, ecx
mov dword [ebp - 0x58], eax
mov eax, 0xffff
mov dword [ebp - 0x48], eax
cmp cx, ax
mov eax, esi
je 0x411bcc
mov edx, esi
mov edx, dword [edx]
push 2
and edx, 0x40
cmp cx, word [ebp - 0x48]
pop edi
mov dword [ebp - 0x54], edx
push 6
pop edx
cmove edi, edx
mov edx, 0xffff
mov dword [ebp - 0x48], edi
cmp cx, dx
jne 0x411bf4
or dword [eax + 0xc], 0x48
jmp 0x411bf7
or dword [esi], 0x48
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, esi
lea edi, [edi + eax*2]
add edi, 2
call fcn.00411ad5
mov ecx, eax
mov eax, dword [ebp - 0x48]
add eax, ecx
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x54], 0
mov dword [ebp - 0x5c], eax
je 0x411c36
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x50]
add edx, 2
lea edx, [edx + eax*2]
jmp 0x411c38
xor edx, edx
mov eax, dword [ebp - 0x50]
add ecx, 3
add eax, 3
add ecx, edx
add eax, edi
and ecx, 0xfffffffc
and eax, 0xfffffffc
mov dword [ebp - 0x54], eax
mov eax, 0xffff
cmp word [ebp - 0x58], ax
jne 0x411c5f
movzx eax, word [esi + 0x10]
jmp 0x411c63
movzx eax, word [esi + 8]
cmp edi, edx
je 0x411c7f
test ax, ax
je 0x411c7f
mov eax, esi
sub eax, ecx
add eax, ebx
push eax
push ecx
push dword [ebp - 0x54]
call fcn.0048a080
add esp, 0xc
mov ecx, dword [ebp - 0x50]
mov ax, word [ebp - 0x4c]
sub edi, dword [ebp - 0x48]
push edi
mov word [ecx], ax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x5c]
call fcn.0048a080
add esp, 0xc
mov eax, esi
jmp 0x411ca9
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00486c63
leave
ret
Function at 0x411dda
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4f8004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowExW]
xor ebx, ebx
push ebx
push str.Shell_TrayWnd
push ebx
push ebx
mov esi, ecx
call edi
test eax, eax
je 0x411e20
push ebx
push str.TrayNotifyWnd
push ebx
push eax
call edi
test eax, eax
je 0x411e20
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x411ee2
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x24
push eax
push 5
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x411e86
mov eax, dword [ebp - 0x1c]
sub eax, ebx
je 0x411e6a
sub eax, 1
je 0x411e51
sub eax, 1
je 0x411e6a
sub eax, 1
jne 0x411ee2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc], eax
lea eax, [ecx - 0x64]
mov dword [esi], eax
lea eax, [ecx - 0x10]
jmp 0x411e81
mov ecx, dword [ebp - 0xc]
lea eax, [ecx - 0x64]
mov dword [esi + 4], eax
lea eax, [ecx - 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
jmp 0x411ee2
push ebx
push str.Shell_TrayWnd
push ebx
push ebx
call edi
test eax, eax
je 0x411ec4
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, dword [esi]
cmp eax, 0x96
jle 0x411eb2
lea eax, [ecx - 0x96]
mov dword [esi], eax
mov ecx, dword [esi + 0xc]
mov eax, ecx
sub eax, dword [esi + 4]
cmp eax, 0x1e
jle 0x411ee2
lea eax, [ecx - 0x1e]
jmp 0x411edf
push ebx
push esi
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esi + 8]
sub eax, 0x96
mov dword [esi], eax
mov eax, dword [esi + 0xc]
sub eax, 0x1e
mov dword [esi + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486c63
leave
ret

Function at 0x411f15
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f8004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00411ef1
test eax, eax
je 0x411f55
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x14]
call fcn.00411dda
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push 3
push esi
call dword [sym.imp.USER32.dll_DrawAnimatedRects]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00486c63
leave
ret
Function at 0x41221b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov ecx, dword [0x52a67c]
mov esi, ebx
push 0
push edi
push 0x8af
mov eax, dword [ecx]
and esi, 1
call dword [eax + 0x104]
test eax, 0x2000
jne 0x4122ac
cmp dword [0x5267c4], edi
jne 0x4122ca
cmp dword [0x5267c8], ebx
jne 0x4122ca
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
sub esi, dword [0x5267cc]
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
cmp esi, eax
ja 0x4122ca
mov ecx, dword [0x52a67c]
or dword [0x5267c4], 0xffffffff
push 0
push edi
mov eax, dword [ecx]
push 0x8b1
call dword [eax + 0x104]
mov edi, eax
test edi, edi
js 0x4122c6
mov ecx, dword [0x52a67c]
push 0
push edi
push 0x8b6
mov eax, dword [ecx]
call dword [eax + 0x104]
test eax, eax
je 0x4122c6
xor esi, esi
inc esi
push 0
mov edx, ebx
mov ecx, edi
call fcn.00412113
test esi, esi
je 0x4122c6
push 0
lea edx, [edi + 1]
call fcn.0040ba9b
pop ecx
pop edi
pop esi
pop ebx
ret
mov dword [0x5267c4], edi
mov dword [0x5267c8], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x5267cc], eax
jmp 0x4122c6
Function at 0x41c37d
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
push edi
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
push 0x522d98
shr eax, 1
push eax
push esi
push str.Settings2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor ebx, ebx
xor edi, edi
inc ebx
cmp dword [0x5235fc], edi
jne 0x41c3fd
cmp dword [0x5233cc], edi
jne 0x41c3fd
push edi
mov edx, str.ReuseWindow
mov ecx, esi
call fcn.0040f633
mov ecx, dword [0x5233cc]
test eax, eax
push edi
cmove ecx, ebx
mov edx, str.SingleFileInstance
mov dword [0x5233cc], ecx
mov ecx, esi
call fcn.0040f633
pop ecx
pop ecx
mov ecx, dword [0x523d94]
test eax, eax
cmovne ecx, ebx
mov dword [0x523d94], ecx
cmp dword [0x5235ec], edi
jne 0x41c427
push edi
mov edx, str.MultiFileArg
mov ecx, esi
call fcn.0040f633
pop ecx
mov ecx, dword [0x5235ec]
test eax, eax
push 2
pop eax
cmovne ecx, eax
mov dword [0x5235ec], ecx
push ebx
mov edx, str.RelativeFileMRU
mov ecx, esi
call fcn.0040f633
mov ecx, dword [0x5233c8]
test eax, eax
mov edx, str.PortableMyDocs
cmovne ecx, ebx
mov dword [0x5233c8], ecx
push ecx
mov ecx, esi
call fcn.0040f633
mov ecx, dword [0x522fbc]
test eax, eax
push edi
cmovne ecx, ebx
mov edx, str.NoFadeHidden
mov dword [0x522fbc], ecx
mov ecx, esi
call fcn.0040f633
mov ecx, dword [0x522d94]
test eax, eax
mov edx, str.ToolbarLook
cmovne ecx, ebx
xor eax, eax
mov dword [0x522d94], ecx
mov ecx, 0x501
cmp word [0x52a5ec], cx
mov ecx, esi
setb al
inc eax
push eax
call fcn.0040f633
push 2
pop edx
cmp eax, edx
mov ecx, edx
push edi
cmovl ecx, eax
mov edx, str.SimpleIndentGuides
xor eax, eax
test ecx, ecx
cmovg eax, ecx
mov ecx, esi
mov dword [0x523804], eax
call fcn.0040f633
mov ecx, dword [0x524fc4]
test eax, eax
push edi
cmovne ecx, ebx
mov edx, str.NoHTMLGuess
mov dword [0x524fc4], ecx
mov ecx, esi
call fcn.0040f633
mov ecx, dword [0x5235f0]
test eax, eax
push edi
cmovne ecx, ebx
mov edx, str.NoCGIGuess
mov dword [0x5235f0], ecx
mov ecx, esi
call fcn.0040f633
mov ecx, dword [0x524fd0]
test eax, eax
push edi
cmovne ecx, ebx
mov edx, str.NoFileVariables
mov dword [0x524fd0], ecx
mov ecx, esi
call fcn.0040f633
mov ecx, dword [0x522fac]
add esp, 0x20
test eax, eax
cmovne ecx, ebx
mov ebx, 0x523a18
push ebx
mov dword [0x522fac], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x41c558
push 0x20
push ebx
push str._default_
mov edx, str.ShellAppUserModelID
mov ecx, esi
call fcn.0040f575
add esp, 0xc
cmp dword [0x5235e0], edi
jne 0x41c582
push edi
mov edx, str.ShellUseSystemMRU
mov ecx, esi
call fcn.0040f633
pop ecx
mov ecx, dword [0x5235e0]
test eax, eax
push 2
pop eax
cmovne ecx, eax
mov dword [0x5235e0], ecx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
ret
Function at 0x41ca2d
Capabilities:
Create directory
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x41cab8
push edi
push 0x5c
pop eax
push eax
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov edi, eax
test edi, edi
je 0x41ca63
push ebx
push esi
xor eax, eax
push ebx
mov word [edi], ax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x5c
pop eax
mov word [edi], ax
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x52ab8c], eax
pop edi
cmp esi, 0xffffffff
je 0x41cab8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x41caac
push ebx
lea eax, [ebp - 4]
push eax
push 0x1a
push str._Notepad2__r_n
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x41caba
xor eax, eax
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x4f8004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x260], eax
mov esi, ecx
mov eax, dword [ebp + 0x1c]
push edi
mov edi, edx
mov dword [ebp - 0x268], eax
call fcn.00404ef9
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov eax, esi
neg eax
sbb eax, eax
add eax, 0x271a
push eax
lea eax, [ebp - 0x25c]
push 0x12c
push eax
call fcn.00410803
lea eax, [ebp - 0x25c]
mov edx, 0xff
push eax
call fcn.0041049a
add esp, 0x14
xor ebx, ebx
inc ebx
push 0
push ebx
push 0x409
push dword [0x526ce4]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 0
push dword [0x526ce4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [0x526ce4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, edi
test esi, esi
je 0x41d059
push dword [ebp - 0x260]
mov ecx, dword [0x52a68c]
push dword [ebp - 0x264]
push 0x5278d4
push 0x5278e4
push 0
call fcn.004061aa
add esp, 0x14
jmp 0x41d070
push dword [ebp + 0x20]
push dword [ebp - 0x268]
push dword [0x5278e4]
call fcn.0040698f
add esp, 0xc
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41d082
test al, 1
jne 0x41d084
xor ebx, ebx
push 0
push 0
push 0x409
push dword [0x526ce4]
mov dword [0x524fc8], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.00404f0f
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486c63
leave
ret