joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456130
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4dc
mov eax, dword [0x53a090]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
lea eax, [ebp - 0x4d0]
push eax
push 0x4018d8
push 1
xor esi, esi
push esi
push 0x4018e8
mov edi, edx
mov dword [ebp - 0x4d8], ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4561f8
mov eax, dword [ebp - 0x4d0]
lea edx, [ebp - 0x4d4]
mov ecx, dword [eax]
push edx
push 0x4018f8
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x4561ea
push dword [ebp - 0x4d8]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x4d4]
push esi
mov ecx, dword [eax]
lea edx, [ebp - 0x214]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
js 0x4561dc
mov eax, dword [ebp - 0x4d0]
push esi
mov ecx, dword [eax]
lea edx, [ebp - 0x4cc]
push edx
push dword [ebp + 8]
push edi
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x4561dc
lea esi, [eax + 1]
mov eax, dword [ebp - 0x4d4]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov eax, dword [ebp - 0x4d0]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x456213
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x45625f
push 0x138
lea eax, [ebp - 0x27c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x45623f
push dword [ebp + 8]
lea eax, [ebp - 0x27c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
test eax, eax
je 0x45625f
lea eax, [ebp - 0x214]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret
Function at 0x456340
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xce0
mov eax, dword [0x53a090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x56e260
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4564ff
push edi
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]
push 0x56e260
lea eax, [ebp - 0x28c]
push eax
call edi
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push 0x409ccc
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]
push 1
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 [0x56e6cc]
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 0x56e260
call dword [sym.imp.SHELL32.dll_SHGetNewLinkInfoW]
test eax, eax
jne 0x456422
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xcd8]
push eax
push 0x4018d8
push 1
push 0
push 0x4018e8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4564ed
mov eax, dword [ebp - 0xcd8]
lea edx, [ebp - 0xcdc]
mov ecx, dword [eax]
push edx
push 0x4018f8
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x4564df
lea eax, [ebp - 0x8c4]
push eax
lea eax, [ebp - 0xcd4]
push eax
call edi
mov eax, dword [ebp - 0xcd8]
lea edx, [ebp - 0xacc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [ebp - 0xcd8]
lea edx, [ebp - 0x4b4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [ebp - 0xcd8]
lea edx, [ebp - 0x84]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [ebp - 0xcdc]
push 1
mov ecx, dword [eax]
lea edx, [ebp - 0xcd4]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
js 0x4564d1
mov esi, 1
mov eax, dword [ebp - 0xcdc]
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 edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret
Function at 0x4568d0
Capabilities:
Check if file exists
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp + 8]
test eax, eax
je 0x456941
push 0x200
push 0x2b4
push esi
push 0
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [ebp - 8], eax
lea eax, [esi + 0xc]
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
push dword [ebp - 4]
mov esi, eax
call edi
cmp eax, esi
jge 0x456992
push 0x104
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x210
push 0x2b4
push esi
push 0x80
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [ebp - 8], eax
lea eax, [esi + 0xc]
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
push dword [ebp - 4]
mov esi, eax
call edi
cmp eax, esi
jge 0x456992
push 0x104
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4569a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x53a090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov ebx, ecx
push ebx
xor edi, edi
call esi
test eax, eax
jne 0x4569d5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ecf7
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 0x4569f5
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 0x456a49
lea esp, [esp]
inc edi
cmp edi, 3
jne 0x456a3b
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.0050f410
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 0x456a10
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.0050ecf7
mov esp, ebp
pop ebp
ret
Function at 0x456fa0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x53a090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10000
push 0x40
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov ecx, ebx
mov dword [ebp - 0x848], esi
call fcn.00456f60
push 0x565908
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 edi, edi
cmp dword [ebx + 0x204], edi
jle 0x457057
lea esi, [ebx + 0x208]
jmp 0x457000
inc edi
push edi
lea eax, [ebp - 0x44]
push 0x409cd4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x848]
push 0x400
lea eax, [ebp - 0x844]
push eax
push 0x407d38
lea edx, [ebp - 0x44]
call fcn.004546a0
add esp, 0x18
test eax, eax
je 0x457049
lea eax, [ebp - 0x844]
push eax
call dword [sym.imp.SHLWAPI.dll_StrDupW]
mov dword [esi], eax
add esi, 4
cmp edi, dword [ebx + 0x204]
jl 0x457000
mov esi, dword [ebp - 0x848]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret
Function at 0x457480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x53a090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
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 - 0x60], edi
test edi, edi
je 0x4575f9
lea ecx, [edi + 0x40]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4575f9
push edi
push dword [ebp - 0x48]
push esi
call fcn.0051b4f0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x44]
call fcn.00457320
test eax, eax
je 0x4575e6
movzx eax, word [esi + 2]
xor ecx, ecx
mov edx, 0xffff
cmp ax, dx
sete cl
mov dword [ebp - 0x48], ecx
cmp ax, dx
jne 0x45751b
mov edi, dword [esi + 0xc]
jmp 0x45751d
mov edi, dword [esi]
xor ebx, ebx
and edi, 0x40
test ecx, ecx
setne bl
lea ebx, [ebx*2 + 1]
add ebx, ebx
mov dword [ebp - 0x58], ebx
test ecx, ecx
je 0x45753d
or dword [esi + 0xc], 0x48
jmp 0x457540
or dword [esi], 0x48
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov ecx, esi
lea eax, [ebx + eax*2]
mov dword [ebp - 0x54], eax
call fcn.00457430
mov ecx, eax
mov dword [ebp - 0x50], ecx
test edi, edi
je 0x457573
add ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x50]
inc eax
lea eax, [ebx + eax*2]
jmp 0x457575
xor eax, eax
mov edi, dword [ebp - 0x54]
lea edx, [ecx + 3]
lea ebx, [edi + 3]
add edx, eax
add ebx, ecx
and ebx, 0xfffffffc
and edx, 0xfffffffc
cmp dword [ebp - 0x48], 0
mov dword [ebp - 0x5c], ebx
je 0x45759d
movzx ecx, word [esi + 0x10]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x50]
jmp 0x4575a7
movzx edi, word [esi + 8]
mov dword [ebp - 0x48], edi
mov edi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x58]
cmp edi, eax
je 0x4575cc
cmp word [ebp - 0x48], 0
jbe 0x4575cc
mov eax, esi
sub eax, edx
add eax, dword [ebp - 0x60]
push eax
push edx
push dword [ebp - 0x5c]
call fcn.0050f410
mov ecx, dword [ebp - 0x50]
add esp, 0xc
mov ax, word [ebp - 0x4c]
mov word [ecx], ax
sub edi, ebx
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ecx + ebx]
push eax
call fcn.0050f410
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret
Function at 0x4578c0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x53a090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowExW]
push 0
push 0x409d50
push 0
push 0
mov esi, ecx
call edi
test eax, eax
je 0x457913
push 0
push 0x409d6c
push 0
push eax
call edi
test eax, eax
je 0x457913
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.0050ecf7
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
push 5
mov dword [ebp - 0x28], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x457991
mov eax, dword [ebp - 0x1c]
cmp eax, 3
ja case.default.0x457936
jmp dword [eax*4 + 0x457a14]
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.0050ecf7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
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.0050ecf7
mov esp, ebp
pop ebp
ret
push 0
push 0x409d50
push 0
push 0
call edi
test eax, eax
je 0x4579e3
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 0x4579c0
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.0x457936
lea eax, [ecx - 0x1e]
pop edi
mov dword [esi + 4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ecf7
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.0050ecf7
mov esp, ebp
pop ebp
ret

Function at 0x457a30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x53a090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
lea eax, [ebp - 0xc]
push eax
push 8
push 0x48
mov esi, ecx
mov dword [ebp - 0xc], 8
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp dword [ebp - 8], 0
je 0x457a84
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x14]
call fcn.004578c0
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.0050ecf7
mov esp, ebp
pop ebp
ret
Function at 0x457e00
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [0x56e1a4]
push 0
mov eax, dword [ecx]
mov ebx, edx
push edi
mov esi, ebx
push 0x8af
and esi, 1
call dword [eax + 0xcc]
test eax, 0x2000
jne 0x457ea7
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x5694a0], edi
jne 0x457eeb
cmp dword [0x5694a4], ebx
jne 0x457eeb
call eax
mov esi, eax
sub esi, dword [0x5694a8]
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
cmp esi, eax
ja 0x457ee6
mov ecx, dword [0x56e1a4]
push 0
mov eax, dword [ecx]
push edi
push 0x8b1
mov dword [0x5694a0], 0xffffffff
call dword [eax + 0xcc]
mov edi, eax
test edi, edi
js 0x457f11
mov ecx, dword [0x56e1a4]
push 0
mov eax, dword [ecx]
push edi
push 0x8b6
call dword [eax + 0xcc]
test eax, eax
je 0x457f11
mov esi, 1
push 0
mov edx, ebx
mov ecx, edi
call fcn.00457ce0
test esi, esi
je 0x457f11
mov esi, dword [0x56e17c]
push 0
push 0
push 0x86a
lea ebx, [edi + 1]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push esi
call edi
cmp ebx, 0xffffffff
jne 0x457f02
push 0
push 0
push 0x90e
push esi
call edi
pop edi
pop esi
pop ebx
ret
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x5694a0], edi
mov dword [0x5694a4], ebx
call eax
pop edi
pop esi
mov dword [0x5694a8], eax
pop ebx
ret
push eax
push 0
mov edx, ebx
mov ecx, esi
call fcn.0044f030
add esp, 8
pop edi
pop esi
pop ebx
ret
Function at 0x465560
Capabilities:
Read .ini file

Disassembly:
push esi
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
push 0x565908
shr eax, 1
push eax
push esi
push 0x408a0c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp dword [0x5674a4], 0
jne 0x4655db
cmp dword [0x567938], 0
jne 0x4655db
push 0
mov edx, 0x40a244
mov ecx, esi
call fcn.00454760
add esp, 4
test eax, eax
jne 0x4655bc
mov dword [0x567938], 1
push 0
mov edx, 0x40a25c
mov ecx, esi
call fcn.00454760
add esp, 4
test eax, eax
je 0x4655db
mov dword [0x5674bc], 1
cmp dword [0x565b2c], 0
jne 0x465603
push 0
mov edx, 0x40b4b8
mov ecx, esi
call fcn.00454760
add esp, 4
test eax, eax
je 0x465603
mov dword [0x565b2c], 2
push 1
mov edx, 0x40b4d4
mov ecx, esi
call fcn.00454760
add esp, 4
test eax, eax
je 0x465624
mov eax, 1
mov dword [0x567288], eax
jmp 0x465629
mov eax, dword [0x567288]
push eax
mov edx, 0x40b4f4
mov ecx, esi
call fcn.00454760
add esp, 4
test eax, eax
je 0x465647
mov dword [0x5674b4], 1
push 0
mov edx, 0x40b514
mov ecx, esi
call fcn.00454760
add esp, 4
test eax, eax
je 0x465666
mov dword [0x565b10], 1
mov eax, 0x501
cmp word [0x56e1ac], ax
mov edx, 0x40b530
sbb eax, eax
neg eax
inc eax
push eax
mov ecx, esi
call fcn.00454760
add esp, 4
mov dword [0x5674b0], eax
cmp eax, 2
jge 0x4656a1
test eax, eax
jg 0x4656ab
mov dword [0x5674b0], 0
jmp 0x4656ab
mov dword [0x5674b0], 2
push 0
mov edx, 0x40b548
mov ecx, esi
call fcn.00454760
add esp, 4
test eax, eax
je 0x4656ca
mov dword [0x567294], 1
push 0
mov edx, 0x40b570
mov ecx, esi
call fcn.00454760
add esp, 4
test eax, eax
je 0x4656e9
mov dword [0x567284], 1
push 0
mov edx, 0x40b588
mov ecx, esi
call fcn.00454760
add esp, 4
test eax, eax
je 0x465708
mov dword [0x565f44], 1
push 0
mov edx, 0x40b5a0
mov ecx, esi
call fcn.00454760
add esp, 4
test eax, eax
je 0x465727
mov dword [0x565b24], 1
push 0x5678e0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x465751
push 0x20
push 0x5678e0
push 0x409bc8
mov edx, 0x40b5c0
mov ecx, esi
call fcn.004546a0
add esp, 0xc
cmp dword [0x565f3c], 0
jne 0x465779
push 0
mov edx, 0x40b5e8
mov ecx, esi
call fcn.00454760
add esp, 4
test eax, eax
je 0x465779
mov dword [0x565f3c], 2
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
ret
Function at 0x465d50
Capabilities:
Create directory
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp word [esi], 0
je 0x465de6
push edi
push 0x5c
push 0
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov edi, eax
test edi, edi
je 0x465d89
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 [0x56e220], eax
pop edi
cmp esi, 0xffffffff
je 0x465de6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x465dd5
push eax
lea eax, [ebp - 4]
push eax
push 0x1a
push 0x40b634
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x53a090]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push edi
push 0
mov dword [ebp - 0x270], eax
mov eax, dword [ebp + 0x18]
push 4
push 0x952
push dword [0x56e17c]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp + 0x1c]
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x268], eax
call ebx
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 - 0x264]
push 0x12c
push eax
call fcn.00455ce0
add esp, 0x10
lea eax, [ebp - 0x264]
push eax
push 0x1ff
push 0x40b
push dword [0x56a9b4]
call ebx
push 0
push 1
push 0x409
push dword [0x56a9b4]
call ebx
push 1
push 0
push dword [0x56a9b4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [0x56a9b4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, edi
test esi, esi
je 0x466569
push dword [ebp - 0x274]
push dword [ebp - 0x270]
sub esp, 0xc
call fcn.00448610
add esp, 0x14
jmp 0x466580
push dword [ebp + 0x20]
push dword [ebp - 0x268]
push dword [0x56d450]
call fcn.00448e60
add esp, 0xc
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46659c
mov dword [0x567b48], 1
test al, 1
jne 0x4665a6
mov dword [0x567b48], 0
push 0
push 0
push 0x409
push dword [0x56a9b4]
call ebx
push 0
push 0xffffffffffffffff
push 0x952
push dword [0x56e17c]
call ebx
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp - 0x268]
push dword [ebp - 0x26c]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret
Function at 0x467280
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13e84
call fcn.00520ea0
mov eax, dword [0x53a090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x56e928]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x13e24], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov dword [ebp - 0x13e28], edx
call fcn.00518020
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
lea eax, [ebp - 0x620]
push 0x407d38
push eax
call edi
lea ecx, [ebp - 0x13e20]
call fcn.0046c2e0
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test ebx, ebx
jne 0x4673aa
push 0x56e260
call esi
test eax, eax
je 0x467324
push 0x56e260
lea eax, [ebp - 0x210]
push eax
call edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x4673aa
push 0x56dac0
call esi
test eax, eax
lea eax, [ebp - 0x210]
je 0x4673a2
push 0x104
push eax
push 0x56dac0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4673aa
push 0x104
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
jmp 0x4673aa
push 0x567298
push eax
call edi
push 0x58
lea eax, [ebp - 0x13e80]
push 0
push eax
call fcn.00518020
mov eax, dword [ebp - 0x13e24]
mov dword [ebp - 0x13e7c], eax
lea eax, [ebp - 0x13e20]
mov dword [ebp - 0x13e74], eax
add esp, 0xc
lea eax, [ebp - 0x620]
mov dword [ebp - 0x13e80], 0x58
mov dword [ebp - 0x13e64], eax
test ebx, ebx
je 0x4673f7
mov dword [ebp - 0x13e54], ebx
jmp 0x467403
lea eax, [ebp - 0x210]
mov dword [ebp - 0x13e54], eax
push 0x56a920
mov dword [ebp - 0x13e60], 0x104
mov dword [ebp - 0x13e4c], 0x2005804
call esi
neg eax
sbb eax, eax
and eax, 0x56a920
mov dword [ebp - 0x13e44], eax
lea eax, [ebp - 0x13e80]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x46746c
push 0x104
lea eax, [ebp - 0x620]
push eax
push dword [ebp - 0x13e28]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret