joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415c70
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xce0
mov eax, dword [0x633754]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
test esi, esi
je 0x415e32
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x415e32
push ebx
push 0x104
lea eax, [ebp - 0xacc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x28c]
push esi
push eax
call ebx
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push 0x5df3e8
lea eax, [ebp - 0x4b4]
push eax
call ebx
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x4b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 1
push 0x10
lea eax, [ebp - 0x6bc]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x271d
push dword [0x640194]
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 esi
call dword [sym.imp.SHELL32.dll_SHGetNewLinkInfoW]
test eax, eax
jne 0x415d53
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xcd8]
push eax
push 0x5bd7b4
push 1
push 0
push 0x5c0f64
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x415e1f
mov eax, dword [ebp - 0xcd8]
lea edx, [ebp - 0xcdc]
push edx
push 0x5be374
push eax
mov ecx, dword [eax]
mov eax, dword [ecx]
call eax
test eax, eax
js 0x415e11
lea eax, [ebp - 0x8c4]
push eax
lea eax, [ebp - 0xcd4]
push eax
call ebx
mov eax, dword [ebp - 0xcd8]
lea edx, [ebp - 0xacc]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [ebp - 0xcd8]
lea edx, [ebp - 0x4b4]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [ebp - 0xcd8]
lea edx, [ebp - 0x84]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [ebp - 0xcdc]
lea edx, [ebp - 0xcd4]
push 1
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
mov ecx, 1
mov eax, dword [ebp - 0xcdc]
cmovns edi, ecx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0xcd8]
push ecx
mov edx, dword [ecx]
mov ecx, dword [edx + 8]
call ecx
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0052a352
mov esp, ebp
pop ebp
ret
Function at 0x416310
Capabilities:
Check if file exists
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416357
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
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 + 0x10]
mov esi, eax
add ecx, 0xc
push ecx
jmp 0x41638a
mov eax, dword [ebp + 0x18]
or eax, 0x10
push eax
push dword [ebp + 0x14]
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 + 0x10]
add eax, 0xc
push eax
call edi
cmp eax, esi
jge 0x4163aa
push 0x104
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
mov eax, dword [ebp + 0x10]
add eax, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4163c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x633754]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push ebx
xor edi, edi
call esi
test eax, eax
jne 0x4163f6
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret
push 8
lea eax, [ebp - 0x14]
push eax
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x416416
mov eax, 0x27
mov word [ebp - 0x14], ax
push ebx
call esi
lea eax, [ebx + eax*2]
push eax
push ebx
call dword [sym.imp.USER32.dll_CharPrevW]
mov esi, eax
cmp esi, ebx
je 0x416469
nop word [eax + eax]
inc edi
cmp edi, 3
jne 0x41645b
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [esi + 2]
push esi
push eax
call fcn.00546ae0
mov ax, word [ebp - 0x14]
add esp, 0xc
mov word [esi], ax
push esi
push ebx
call dword [sym.imp.USER32.dll_CharPrevW]
mov esi, eax
cmp esi, ebx
jne 0x416430
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052a352
mov esp, ebp
pop ebp
ret
Function at 0x416b90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x633754]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push ebx
mov dword [ebp - 0x848], esi
call fcn.00416ac0
add esp, 4
push 0x637260
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
shr eax, 1
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor esi, esi
cmp dword [ebx + 0x204], esi
jle 0x416c43
push edi
lea edi, [ebx + 0x208]
nop
inc esi
lea eax, [ebp - 0x44]
push esi
push 0x5df404
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x400
lea eax, [ebp - 0x844]
push eax
push 0x637258
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x848]
call fcn.00413fc0
add esp, 0x20
test eax, eax
je 0x416c3a
lea eax, [ebp - 0x844]
push eax
call dword [sym.imp.SHLWAPI.dll_StrDupW]
mov dword [edi], eax
add edi, 4
cmp esi, dword [ebx + 0x204]
jl 0x416bf0
pop edi
push dword [ebp - 0x848]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.0052a352
mov esp, ebp
pop ebp
ret
Function at 0x416f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x633754]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x416f38
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x5c], edi
test edi, edi
je 0x41708d
lea ecx, [edi + 0x40]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x41708d
push edi
push dword [ebp - 0x48]
push esi
call fcn.00546560
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00416df0
add esp, 8
test eax, eax
je 0x41707a
push esi
call fcn.00417590
mov ebx, eax
push esi
mov dword [ebp - 0x48], ebx
call fcn.00417570
push ebx
mov dword [ebp - 0x58], eax
call fcn.004174f0
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 0x48], 0
mov dword [ebp - 0x54], ebx
je 0x416fd2
or dword [esi + 0xc], 0x48
jmp 0x416fd5
or dword [esi], 0x48
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x44]
push eax
call edi
push esi
lea ebx, [ebx + eax*2]
add ebx, 2
call fcn.00417510
add esp, 4
mov ecx, eax
cmp dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], ecx
je 0x41700f
add ecx, dword [ebp - 0x54]
push ecx
call edi
mov ecx, dword [ebp - 0x54]
add ecx, 2
lea eax, [ecx + eax*2]
mov ecx, dword [ebp - 0x4c]
jmp 0x417011
xor eax, eax
lea edx, [ecx + 3]
lea edi, [ebx + 3]
add edx, eax
add edi, ecx
and edx, 0xfffffffc
and edi, 0xfffffffc
cmp dword [ebp - 0x48], 0
mov dword [ebp - 0x58], edi
je 0x417030
movzx ecx, word [esi + 0x10]
jmp 0x417034
movzx ecx, word [esi + 8]
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x4c]
cmp ebx, eax
je 0x41705e
cmp word [ebp - 0x48], 0
jbe 0x41705e
mov eax, esi
sub eax, edx
add eax, edi
push eax
push edx
push dword [ebp - 0x58]
call fcn.00546ae0
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
mov ax, word [ebp - 0x50]
lea edx, [ebp - 0x44]
mov word [ecx], ax
mov eax, dword [ebp - 0x54]
sub ebx, eax
push ebx
push edx
add eax, ecx
push eax
call fcn.00546ae0
add esp, 0xc
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0052a352
mov esp, ebp
pop ebp
ret
Function at 0x417190
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x633754]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.00417160
test eax, eax
je 0x4171d5
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
call fcn.004175f0
add esp, 4
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.0052a352
mov esp, ebp
pop ebp
ret

Function at 0x4175f0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x633754]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowExW]
push 0
push 0x5df498
push 0
push 0
call edi
test eax, eax
je 0x417644
push 0
push str.TrayNotifyWnd
push 0
push eax
call edi
test eax, eax
je 0x417644
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x24
push eax
push 5
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x4176c2
mov eax, dword [ebp - 0x1c]
cmp eax, 3
ja case.default.0x417667
jmp dword [eax*4 + 0x417744]
mov ecx, dword [ebp - 0xc]
pop edi
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
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret
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]
pop edi
mov dword [esi + 8], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret
push 0
push str.Shell_TrayWnd
push 0
push 0
call edi
test eax, eax
je 0x417714
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 0x4176f1
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 case.default.0x417667
lea eax, [ecx - 0x1e]
pop edi
mov dword [esi + 4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret
push 0
push esi
push 0
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
xor ecx, ebp
pop esi
call fcn.0052a352
mov esp, ebp
pop ebp
ret
Function at 0x418c40
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword [0x637884]
sub esp, 0x68
cmp dword [0x63943c], 2
push esi
push edi
jne 0x418e11
cmp eax, 1
jle 0x418e11
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrDupW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea eax, [eax*2 + 2]
push eax
push 0x40
call esi
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call edi
lea eax, [eax*2 + 2]
push eax
push 0x40
call esi
mov esi, dword [ebp - 4]
push esi
mov dword [ebp - 0x10], eax
call fcn.00416190
mov ecx, dword [0x637888]
add esp, 4
push 0x639550
lea ecx, [esi + ecx*2]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call edi
mov edi, dword [sym.imp.USER32.dll_CharPrevW]
lea eax, [esi + eax*2]
push eax
push esi
call edi
mov edx, eax
mov eax, 0x20
movzx ecx, word [edx]
cmp ecx, 0x20
je 0x418d09
cmp ecx, 0x2d
je 0x418d09
cmp ecx, 0x2b
jne 0x418d2d
push edx
push esi
mov word [edx], ax
call edi
mov ecx, dword [ebp - 8]
mov edx, eax
mov eax, ecx
inc ecx
cmp eax, 1
mov dword [ebp - 8], ecx
mov eax, 0x20
jle 0x418cf7
dec dword [0x637888]
jmp 0x418cf7
cmp dword [0x637884], 0
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0
jle 0x418dea
nop word [eax + eax]
mov eax, dword [0x637888]
push str.__n__
lea eax, [esi + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 4]
push dword [eax*4 + 0x63c640]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 4]
push dword [eax*4 + 0x63c640]
call edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x68], 0x44
push eax
lea eax, [ebp - 0x68]
xorps xmm0, xmm0
push eax
push 0x639230
push 0
push 0
push 0
push 0
push 0
push esi
push 0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movaps xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [0x637884]
jl 0x418d50
push esi
call edi
push dword [ebp - 0xc]
call edi
push dword [ebp - 0x10]
call edi
push dword [0x63788c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xor esi, esi
test eax, eax
jle 0x418e32
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [eax]
push dword [esi*4 + 0x63c640]
call edi
inc esi
cmp esi, dword [0x637884]
jl 0x418e20
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x418e40
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x600
sub esp, 0x88
cmp word [0x640190], ax
jb 0x418f5e
cmp dword [0x6391e8], 0
jne 0x418f5e
cmp dword [0x63949c], 0
je 0x418f5e
cmp dword [0x6394a0], 0
jne 0x418f5e
push ebx
push esi
push edi
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push edi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea eax, [eax*2 + 2]
push eax
push 0x40
call esi
push edi
mov dword [ebp - 8], eax
call ebx
lea eax, [eax*2 + 2]
push eax
push 0x40
call esi
mov esi, dword [ebp - 8]
push eax
push esi
push edi
mov dword [ebp - 4], eax
call fcn.004160a0
add esp, 0xc
push esi
call ebx
test eax, eax
je 0x418f43
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x40], 0x800500
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
movzx eax, word [ebp - 0x58]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x38], str.runas
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0x639230
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x418f46
mov edi, dword [ebp - 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push edi
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41b900
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 0x637260
shr eax, 1
push eax
push esi
push str.Settings2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp dword [0x639438], 0
mov edi, 1
jne 0x41b983
cmp dword [0x6391ec], 0
jne 0x41b983
push 0
push str.ReuseWindow
push esi
call fcn.00414090
mov ecx, dword [0x6391ec]
test eax, eax
push 0
cmove ecx, edi
push str.SingleFileInstance
push esi
mov dword [0x6391ec], ecx
call fcn.00414090
mov ecx, dword [0x639440]
add esp, 0x18
test eax, eax
cmovne ecx, edi
mov dword [0x639440], ecx
cmp dword [0x63943c], 0
mov ebx, 2
jne 0x41b9b2
push 0
push str.MultiFileArg
push esi
call fcn.00414090
mov ecx, dword [0x63943c]
add esp, 0xc
test eax, eax
cmovne ecx, ebx
mov dword [0x63943c], ecx
push 1
push str.RelativeFileMRU
push esi
call fcn.00414090
mov ecx, dword [0x63944c]
test eax, eax
cmovne ecx, edi
push ecx
push str.PortableMyDocs
push esi
mov dword [0x63944c], ecx
call fcn.00414090
mov ecx, dword [0x639450]
test eax, eax
push 0
cmovne ecx, edi
push str.NoFadeHidden
push esi
mov dword [0x639450], ecx
call fcn.00414090
mov ecx, dword [0x639454]
test eax, eax
mov eax, 0x501
cmovne ecx, edi
cmp word [0x640190], ax
mov dword [0x639454], ecx
sbb eax, eax
neg eax
inc eax
push eax
push str.ToolbarLook
push esi
call fcn.00414090
cmp eax, 2
mov ecx, ebx
push 0
cmovl ecx, eax
xor eax, eax
test ecx, ecx
push str.SimpleIndentGuides
cmovg eax, ecx
push esi
mov dword [0x639458], eax
call fcn.00414090
mov ecx, dword [0x63945c]
test eax, eax
push 0
cmovne ecx, edi
push str.NoHTMLGuess
push esi
mov dword [0x63945c], ecx
call fcn.00414090
mov ecx, dword [0x639460]
add esp, 0x48
test eax, eax
cmovne ecx, edi
push 0
push str.NoCGIGuess
push esi
mov dword [0x639460], ecx
call fcn.00414090
mov ecx, dword [0x639464]
test eax, eax
push 0
cmovne ecx, edi
push str.NoFileVariables
push esi
mov dword [0x639464], ecx
call fcn.00414090
mov ecx, dword [0x639468]
add esp, 0x18
test eax, eax
cmovne ecx, edi
push 0x6391f0
mov dword [0x639468], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x41bae3
push 0x20
push 0x6391f0
push str._default_
push str.ShellAppUserModelID
push esi
call fcn.00413fc0
add esp, 0x14
cmp dword [0x639498], 0
jne 0x41bb0d
push 0
push str.ShellUseSystemMRU
push esi
call fcn.00414090
mov ecx, dword [0x639498]
add esp, 0xc
test eax, eax
cmovne ecx, ebx
mov dword [0x639498], ecx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
ret
Function at 0x41bc70
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x633754]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push edi
push 0x104
push eax
push 0x639514
push 0x5e1c80
push 0x5e1c9c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x41bd69
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0041bb20
add esp, 8
test eax, eax
je 0x41bcec
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x41bd46
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call esi
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call esi
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0052a352
mov esp, ebp
pop ebp
ret

Function at 0x41c0f0
Capabilities:
Create directory
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
je 0x41c184
push edi
push 0x5c
push 0
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov edi, eax
test edi, edi
je 0x41c129
xor eax, eax
push eax
push esi
push eax
mov word [edi], ax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, 0x5c
mov word [edi], ax
push 0
push 0x80
push 4
push 0
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 [0x63c618], eax
pop edi
cmp esi, 0xffffffff
je 0x41c184
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x41c175
push eax
lea eax, [ebp + 8]
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]
mov eax, 1
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41c760
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x633754]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0x20]
push esi
mov dword [ebp - 0x260], eax
mov eax, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x26c], eax
call fcn.00413e50
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, dword [ebp + 8]
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.00415680
lea eax, [ebp - 0x25c]
push eax
push 0xff
push dword [0x640184]
call fcn.004151d0
add esp, 0x1c
push 0
push 1
push 0x409
push dword [0x640184]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0
push dword [0x640184]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [0x640184]
call dword [sym.imp.USER32.dll_UpdateWindow]
test esi, esi
je 0x41c843
push dword [ebp - 0x260]
push dword [ebp - 0x264]
push dword [ebp - 0x268]
push ebx
push dword [ebp + 0x10]
push edi
push dword [0x64018c]
call fcn.00408110
add esp, 0x1c
jmp 0x41c85d
push dword [ebp + 0x28]
push dword [ebp - 0x26c]
push dword [ebx]
push edi
push dword [0x64018c]
call fcn.004088f0
add esp, 0x14
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41c876
test al, 1
je 0x41c876
mov eax, 1
jmp 0x41c878
xor eax, eax
push 0
push 0
push 0x409
push dword [0x640184]
mov dword [0x63789c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.00413e70
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052a352
mov esp, ebp
pop ebp
ret