joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40accb
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40ad04
mov eax, 0xffffffff
jmp 0x40ae05
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40ad6b
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 2
push dword [ebp + 8]
call fcn.00408037
mov dword [ebp - 0xc], eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [ebp - 0xc], 0xffffffff
je 0x40ad61
push dword [ebp - 0xc]
call fcn.004086d6
mov eax, 0xfffffff8
jmp 0x40ae05
mov eax, 0xfffffffe
jmp 0x40ae05
mov eax, dword [ebp - 0x14]
inc eax
push eax
push 0x7ffe
call fcn.00419120
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40ad91
mov eax, 0xffffffff
jmp 0x40ae05
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40adb4
mov eax, 0xffffffff
jmp 0x40ae05
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x4219e4
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40addb
mov eax, 0xffffffff
jmp 0x40ae05
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x18]
push 0x7ffe
call fcn.00418ce0
xor eax, eax
jmp 0x40ae05
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x210]
push eax
call fcn.0040c6b9
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40ae5c
xor eax, eax
jmp 0x40ae64
mov eax, dword [ebp - 4]
jmp 0x40ae64
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40ae6b
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040c6b9
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x40aea8
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40b6d7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x110]
push eax
call fcn.0040c6b9
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40b720
xor eax, eax
jmp 0x40b731
mov eax, dword [ebp - 8]
and eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x40b731
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40cb0c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea eax, [ebp - 0x254]
push eax
call fcn.0040b3f6
push 0x421a04
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40cb7c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x40cc02
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x40cbef
test byte [ebp - 0x14c], 0x10
je 0x40cbb6
movsx eax, byte [ebp - 0x120]
cmp eax, 0x2e
jne 0x40cbb6
mov dword [ebp - 8], 1
jmp 0x40cbbd
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x40cbd7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40cc02
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 4], eax
jmp 0x40cb83
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x40cc02
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40d595
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
push edi
cmp dword [ebp + 0xc], 0
je 0x40d5b4
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x5c
jne 0x40d6a0
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 1]
cmp eax, 0x5c
jne 0x40d6a0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.0040d1e6
test eax, eax
jne 0x40d5f8
xor eax, eax
jmp 0x40d71c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x40d625
cmp dword [ebp - 0x224], 1
jne 0x40d646
cmp dword [ebp - 0x224], 0x64
jle 0x40d646
cmp dword [ebp - 0x224], 0
jge 0x40d646
xor eax, eax
jmp 0x40d71c
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x40d681
mov eax, 0xffffffff
jmp 0x40d71c
push dword [ebp - 0x114]
push dword [ebp - 0x220]
push dword [ebp - 0x10c]
call fcn.0040defa
add esp, 0xc
jmp 0x40d71c
mov eax, dword [ebp + 8]
mov al, byte [eax]
mov byte [ebp - 0x108], al
mov eax, dword [ebp + 8]
mov al, byte [eax + 1]
mov byte [ebp - 0x107], al
mov byte [ebp - 0x106], 0x5c
mov byte [ebp - 0x105], 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x40d6fd
xor eax, eax
jmp 0x40d71c
push dword [ebp - 0x114]
push dword [ebp - 0x220]
push dword [ebp - 0x10c]
call fcn.0040defa
add esp, 0xc
jmp 0x40d71c
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
test eax, eax
je 0x40d908
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 1]
cmp eax, 0x3a
jne 0x40d908
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 2]
test eax, eax
jne 0x40d908
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
lea eax, [ebp - 0x10c]
push eax
call fcn.0040c6b9
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40d938
mov eax, 0xffffffff
jmp 0x40d947
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x40d947
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d94c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d9b1
cmp dword [0x4219e8], 0
je 0x40d9b1
push dword [ebp + 8]
call dword [0x4219e8]
cmp dword [ebp - 4], 0
jne 0x40d9c5
mov eax, 1
jmp 0x40d9c7
xor eax, eax
jmp 0x40d9cc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4117b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x814], eax
jmp 0x411830
push dword [ebp + 0x1c]
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x808]
push eax
call fcn.0041c1d0
add esp, 4
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x80c]
mov dword [ebp - 8], eax
mov dword [ebp + 0x18], 4
jmp 0x41184f
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x14], 1
je 0x41181e
cmp dword [ebp + 0x14], 2
jne 0x41182b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp + 0x18], eax
jmp 0x41184f
cmp dword [ebp - 0x814], 4
jl 0x411804
cmp dword [ebp - 0x814], 5
jle 0x4117ca
jmp 0x411804
cmp dword [ebp + 0x18], 0xffffffff
jne 0x411866
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp + 0x18], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00411453
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
jne 0x4118ae
push 0x421b80
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004111d6
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
jne 0x4118ae
xor eax, eax
jmp 0x411912
push dword [ebp + 0x18]
push dword [ebp - 8]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4118e8
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x411912
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x411908
xor eax, eax
jmp 0x411912
mov eax, 1
jmp 0x411912
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x411919
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0041c290
push ebx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00411453
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1010], 0
jne 0x41194e
xor eax, eax
jmp 0x411ab1
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x3ff
push dword [ebp + 0x18]
lea eax, [ebp - 0x804]
push eax
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x411995
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x411ab1
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x1014], eax
jmp 0x411a4e
lea eax, [ebp - 0x804]
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x411a87
lea eax, [ebp - 0x804]
mov dword [ebp - 0x100c], eax
mov eax, dword [ebp - 0x100c]
push dword [eax]
push 0x421b84
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x411a87
mov dword [ebp - 0x1008], 0
jmp 0x411a0d
inc dword [ebp - 0x1008]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x1008]
cmp dword [eax], ecx
jle 0x411a3c
mov eax, dword [ebp - 0x1008]
mov al, byte [ebp + eax - 0x804]
mov ecx, dword [ebp - 0x1008]
mov edx, dword [ebp + 0x1c]
mov byte [ecx + edx], al
jmp 0x411a07
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp + 0x1c]
mov byte [eax + ecx], 0
jmp 0x411a87
cmp dword [ebp - 0x1014], 1
jl 0x4119f8
cmp dword [ebp - 0x1014], 2
jle 0x4119a5
cmp dword [ebp - 0x1014], 4
jl 0x4119f8
cmp dword [ebp - 0x1014], 5
jle 0x4119ba
jmp 0x4119f8
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x411aa7
xor eax, eax
jmp 0x411ab1
mov eax, 1
jmp 0x411ab1
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x411ab8
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00411453
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x411ae0
xor eax, eax
jmp 0x411b13
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jne 0x411b0c
mov eax, 1
jmp 0x411b0e
xor eax, eax
jmp 0x411b13
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x411d05
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 5
cmp dword [0x423174], 0
je 0x411d44
mov eax, 1
jmp 0x411eb0
lea eax, [ebp - 0x18]
push eax
push 0
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x411da0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x411d99
lea eax, [ebp - 0x18]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x411d94
xor eax, eax
jmp 0x411eb0
jmp 0x411da0
xor eax, eax
jmp 0x411eb0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x411dc2
xor eax, eax
jmp 0x411eb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x411dd8
xor eax, eax
jmp 0x411eb0
mov eax, dword [ebp - 8]
add eax, 3
and al, 0xfc
call fcn.0041c290
mov dword [ebp - 0x10], esp
cmp dword [ebp - 0x10], 0
jne 0x411df9
xor eax, eax
jmp 0x411eb0
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x411e1d
xor eax, eax
jmp 0x411eb0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x411e4f
xor eax, eax
jmp 0x411eb0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
jmp 0x411e65
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp dword [eax], ecx
jbe 0x411e9f
push dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push dword [ecx + eax*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x411e9a
mov dword [ebp - 0x14], 1
jmp 0x411e9f
jmp 0x411e62
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x14]
jmp 0x411eb0
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4129f5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetRectEmpty]
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0xa0]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x412a34
xor eax, eax
jmp 0x412ab1
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0xa0]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xa0]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0xc], eax
xor eax, eax
jmp 0x412ab1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413425
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
call fcn.004135b1
mov dword [ebp - 0x1c], 1
cmp dword [ebp + 0x10], 0
je 0x41344b
mov dword [ebp - 0x1c], 2
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x413463
xor eax, eax
jmp 0x4135aa
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x41347b
xor eax, eax
jmp 0x4135aa
push 0xfffffffffffffff4
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov word [ebp - 0x74], ax
movsx eax, word [ebp - 0x74]
cmp eax, 0x514
je 0x4134a0
xor eax, eax
jmp 0x4135aa
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
cmp eax, 0x23
jle 0x4134c3
xor eax, eax
jmp 0x4135aa
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x50
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
push str.static
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x413509
xor eax, eax
jmp 0x4135aa
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
and eax, 0xf
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 7
je 0x413531
xor eax, eax
jmp 0x4135aa
mov eax, dword [ebp + 0x10]
mov dword [0x421b8c], eax
push 0
push dword [0x4232a0]
push 0xffffffffffffffff
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x50000000
push str.CutWinName
push 0x421bb4
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x78], eax
push dword [ebp - 0x78]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x413597
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
push 5
push dword [ebp - 0x78]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x78]
jmp 0x4135aa
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41588a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x4158a7
xor eax, eax
jmp 0x4158f5
push 0x105
lea eax, [ebp - 0x108]
push eax
push 0x489
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 8]
add eax, 0x30f
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 8]
mov dword [eax + 0x62c], 1
mov eax, 1
jmp 0x4158f5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415921
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
cmp dword [0x421e50], 0
je 0x415941
mov eax, 1
jmp 0x415afd
push 0x1003
push 0x9c4
call fcn.00418ab0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x415967
mov eax, 0xffffffff
jmp 0x415afd
push 0x32c
push dword [ebp - 0xc]
call fcn.00419120
mov dword [0x421e4c], eax
cmp dword [0x421e4c], 0
jne 0x415990
mov eax, 0xffffffff
jmp 0x415afd
mov eax, dword [ebp + 8]
mov ecx, dword [0x421e4c]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x421e4c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x421e4c]
mov byte [eax + 0x226], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x421e4c]
mov dword [ecx], eax
mov eax, dword [0x421e4c]
mov dword [eax + 4], 0
mov eax, dword [0x421e4c]
mov dword [eax + 0x18], 0
mov eax, dword [0x421e4c]
mov dword [eax + 0x14], 0
mov eax, dword [0x421e4c]
mov dword [eax + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 6
je 0x415a0c
cmp dword [ebp + 8], 7
jne 0x415a36
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xffff
movzx eax, ax
movzx eax, ah
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 5
jge 0x415a36
mov eax, dword [0x421e4c]
mov dword [eax + 0x10], 0
push dword [ebp + 0x10]
mov eax, dword [0x421e4c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0x14]
mov eax, dword [0x421e4c]
add eax, 0x121
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.ISMSG16_REBOOT
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421e64], eax
push str.ISMSG16_TERMINATE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421e68], eax
push str.ISMSG32_REBOOT
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421e6c], eax
push str.ISMSG32_TERMINATE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421e70], eax
push str.ISMSG32_DELETEFILE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421e74], eax
push str.ISMSG32_RENAMEFILE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421e78], eax
push str.ISMSG32_STRINGLEN
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421e7c], eax
push str.ISMSG32_CHARS
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421e80], eax
push str.ISMSG32_DOFILEOP
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x421e84], eax
mov dword [0x421e50], 1
xor eax, eax
jmp 0x415afd
pop edi
pop esi
pop ebx
leave
ret 0x10