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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax]
test eax, eax
jne 0x403c90
xor eax, eax
jmp 0x403dc2
push dword [ebp + 8]
call fcn.00403a43
add esp, 4
cmp dword [0x41a500], 0
je 0x403cbf
push 0x41c260
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x403cd1
push 0x41c298
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea eax, [ebp - 0x108]
push eax
call fcn.004091d8
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
add eax, 0x29e
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
movsx eax, byte [ebp - 0x418]
test eax, eax
jne 0x403d6e
push 0x105
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
lea eax, [ebp - 0x418]
push eax
call fcn.004091d8
push str.uninst.exe
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x41c2dc
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
add eax, 0x135
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x418]
push eax
push 0xffffffffffffffff
push 1
push str.UninstallString
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call fcn.0040f1e4
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 8]
add eax, 0x23a
push eax
push 0xffffffffffffffff
push 1
push str.DisplayName
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call fcn.0040f1e4
mov eax, 1
jmp 0x403dc2
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405489
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
push edi
push 0x41a1d0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x90]
push eax
push str.Programs
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
push 0x80000001
call fcn.0040f34d
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4054e5
push 0x105
push 0x41a1d0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Start_MenuPrograms
push 0x41a1d0
call fcn.0040af55
push dword [ebp + 8]
call fcn.0040a3be
test eax, eax
jne 0x405523
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x405523
push dword [ebp + 8]
push 0x41a1d0
push dword [ebp + 0x10]
call fcn.0040af82
push 1
push dword [ebp + 0x10]
call fcn.004091d8
jmp 0x405539
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
push dword [ebp + 0x10]
call fcn.004091d8
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call fcn.0040af82
lea eax, [ebp - 0x8c]
push eax
push dword [ebp + 0xc]
call fcn.0040a675
push 0x41c4a4
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40557e
push str..lnk
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 1
jmp 0x405588
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405c36
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push ebx
push esi
push edi
cmp dword [0x41a3e8], 0
je 0x405c59
mov eax, 1
jmp 0x405d59
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.00409244
lea eax, [ebp - 0x31c]
push eax
push dword [ebp + 8]
call fcn.004090f4
push 0x105
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 1
lea eax, [ebp - 0x428]
push eax
call fcn.004091d8
push 1
lea eax, [ebp - 0x31c]
push eax
call fcn.004091d8
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x405ccb
mov eax, 1
jmp 0x405d59
mov dword [ebp - 0x320], 0x579
push 0x105
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x320]
push dword [0x41a4fc]
call dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405d4f
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405d23
xor eax, eax
jmp 0x405d59
inc dword [ebp - 0x320]
push 0x105
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x320]
push dword [0x41a4fc]
call dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 4], eax
jmp 0x405cf6
mov eax, 1
jmp 0x405d59
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408887
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4088b1
xor eax, eax
jmp 0x4088c3
shl dword [ebp - 8], 0x10
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4088c3
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x408ac5
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x408ae9
mov eax, 0xffffffff
jmp 0x408bea
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 0x408b50
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 2
push dword [ebp + 8]
call fcn.00405fe9
mov dword [ebp - 0xc], eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [ebp - 0xc], 0xffffffff
je 0x408b46
push dword [ebp - 0xc]
call fcn.00406688
mov eax, 0xfffffff8
jmp 0x408bea
mov eax, 0xfffffffe
jmp 0x408bea
mov eax, dword [ebp - 0x14]
inc eax
push eax
push 0x7ffe
call fcn.00414460
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x408b76
mov eax, 0xffffffff
jmp 0x408bea
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 0x408b99
mov eax, 0xffffffff
jmp 0x408bea
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x41c708
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x408bc0
mov eax, 0xffffffff
jmp 0x408bea
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.00414020
xor eax, eax
jmp 0x408bea
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
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.0040a482
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x408c3a
xor eax, eax
jmp 0x408c42
mov eax, dword [ebp - 4]
jmp 0x408c42
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408c49
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.0040a482
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x408c86
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4094bb
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.0040a482
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x409504
xor eax, eax
jmp 0x409515
mov eax, dword [ebp - 8]
and eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x409515
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40a8dd
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.004091d8
push 0x41c728
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 0x40a94d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x40a9d3
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x40a9c0
test byte [ebp - 0x14c], 0x10
je 0x40a987
movsx eax, byte [ebp - 0x120]
cmp eax, 0x2e
jne 0x40a987
mov dword [ebp - 8], 1
jmp 0x40a98e
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x40a9a8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40a9d3
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 4], eax
jmp 0x40a954
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x40a9d3
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40b337
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 0x40b356
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x5c
jne 0x40b442
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 1]
cmp eax, 0x5c
jne 0x40b442
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.0040afbb
test eax, eax
jne 0x40b39a
xor eax, eax
jmp 0x40b4be
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x40b3c7
cmp dword [ebp - 0x224], 1
jne 0x40b3e8
cmp dword [ebp - 0x224], 0x64
jle 0x40b3e8
cmp dword [ebp - 0x224], 0
jge 0x40b3e8
xor eax, eax
jmp 0x40b4be
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 0x40b423
mov eax, 0xffffffff
jmp 0x40b4be
push dword [ebp - 0x114]
push dword [ebp - 0x220]
push dword [ebp - 0x10c]
call fcn.0040bca4
add esp, 0xc
jmp 0x40b4be
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 0x40b49f
xor eax, eax
jmp 0x40b4be
push dword [ebp - 0x114]
push dword [ebp - 0x220]
push dword [ebp - 0x10c]
call fcn.0040bca4
add esp, 0xc
jmp 0x40b4be
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40b653
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 0x40b6aa
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 1]
cmp eax, 0x3a
jne 0x40b6aa
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 2]
test eax, eax
jne 0x40b6aa
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
lea eax, [ebp - 0x10c]
push eax
call fcn.0040a482
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40b6da
mov eax, 0xffffffff
jmp 0x40b6e9
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x40b6e9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b6ee
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 0x40b753
cmp dword [0x41c70c], 0
je 0x40b753
push dword [ebp + 8]
call dword [0x41c70c]
cmp dword [ebp - 4], 0
jne 0x40b767
mov eax, 1
jmp 0x40b769
xor eax, eax
jmp 0x40b76e
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f1e4
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 0x40f264
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.00417310
add esp, 4
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x80c]
mov dword [ebp - 8], eax
mov dword [ebp + 0x18], 4
jmp 0x40f283
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x14], 1
je 0x40f252
cmp dword [ebp + 0x14], 2
jne 0x40f25f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp + 0x18], eax
jmp 0x40f283
cmp dword [ebp - 0x814], 4
jl 0x40f238
cmp dword [ebp - 0x814], 5
jle 0x40f1fe
jmp 0x40f238
cmp dword [ebp + 0x18], 0xffffffff
jne 0x40f29a
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.0040ee87
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
jne 0x40f2e2
push 0x41c8a0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ec8f
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
jne 0x40f2e2
xor eax, eax
jmp 0x40f346
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 0x40f31c
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40f346
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40f33c
xor eax, eax
jmp 0x40f346
mov eax, 1
jmp 0x40f346
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x40f34d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.004173b4
push ebx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040ee87
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1010], 0
jne 0x40f382
xor eax, eax
jmp 0x40f4f2
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 0x40f3c9
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40f4f2
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x1014], eax
jmp 0x40f482
lea eax, [ebp - 0x804]
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40f4c8
lea eax, [ebp - 0x804]
mov dword [ebp - 0x100c], eax
mov eax, dword [ebp - 0x100c]
push dword [eax]
push 0x41c8a4
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 0x40f4c8
mov dword [ebp - 0x1008], 0
jmp 0x40f441
inc dword [ebp - 0x1008]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x1008]
cmp dword [eax], ecx
jle 0x40f470
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 0x40f43b
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp + 0x1c]
mov byte [eax + ecx], 0
jmp 0x40f4c8
cmp dword [ebp - 0x1014], 1
jl 0x40f42c
cmp dword [ebp - 0x1014], 2
jle 0x40f3d9
cmp dword [ebp - 0x1014], 4
jl 0x40f42c
cmp dword [ebp - 0x1014], 5
jle 0x40f3ee
cmp dword [ebp - 0x1014], 7
je 0x40f3d9
jmp 0x40f42c
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40f4e8
xor eax, eax
jmp 0x40f4f2
mov eax, 1
jmp 0x40f4f2
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x40f4f9
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.0040ee87
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f521
xor eax, eax
jmp 0x40f554
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 0x40f54d
mov eax, 1
jmp 0x40f54f
xor eax, eax
jmp 0x40f554
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40f746
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
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 0x40f7ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x40f7c3
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 0x40f7be
xor eax, eax
jmp 0x40f8da
jmp 0x40f7ca
xor eax, eax
jmp 0x40f8da
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 0x40f7ec
xor eax, eax
jmp 0x40f8da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x40f802
xor eax, eax
jmp 0x40f8da
mov eax, dword [ebp - 8]
add eax, 3
and al, 0xfc
call fcn.004173b4
mov dword [ebp - 0x10], esp
cmp dword [ebp - 0x10], 0
jne 0x40f823
xor eax, eax
jmp 0x40f8da
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 0x40f847
xor eax, eax
jmp 0x40f8da
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 0x40f879
xor eax, eax
jmp 0x40f8da
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
jmp 0x40f88f
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp dword [eax], ecx
jbe 0x40f8c9
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 0x40f8c4
mov dword [ebp - 0x14], 1
jmp 0x40f8c9
jmp 0x40f88c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x14]
jmp 0x40f8da
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410412
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 0x410451
xor eax, eax
jmp 0x4104ce
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 0x4104ce
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410e42
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
call fcn.00410fce
mov dword [ebp - 0x1c], 1
cmp dword [ebp + 0x10], 0
je 0x410e68
mov dword [ebp - 0x1c], 2
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x410e80
xor eax, eax
jmp 0x410fc7
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x410e98
xor eax, eax
jmp 0x410fc7
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 0x410ebd
xor eax, eax
jmp 0x410fc7
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 0x410ee0
xor eax, eax
jmp 0x410fc7
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 0x410f26
xor eax, eax
jmp 0x410fc7
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 0x410f4e
xor eax, eax
jmp 0x410fc7
mov eax, dword [ebp + 0x10]
mov dword [0x41c8ac], eax
push 0
push dword [0x41a4fc]
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 0x41c8d4
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 0x410fb4
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 0x410fc7
pop edi
pop esi
pop ebx
leave
ret 0xc