joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e53
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 0x403e74
xor eax, eax
jmp 0x403f84
push dword [ebp + 8]
call fcn.00403c27
add esp, 4
push 0x42128c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea eax, [ebp - 0x108]
push eax
call fcn.0040b491
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
add eax, 0x2a6
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
movsx eax, byte [ebp - 0x418]
test eax, eax
jne 0x403f2e
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.0040b491
push str.uninst.exe
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4212d0
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
add eax, 0x13d
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 dword [0x4211e0]
call fcn.00411857
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 8]
add eax, 0x242
push eax
push 0xffffffffffffffff
push 1
push str.DisplayName
lea eax, [ebp - 0x108]
push eax
push dword [0x4211e0]
call fcn.00411857
mov eax, 1
jmp 0x403f84
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406377
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea eax, [ebp - 0x354]
push eax
call fcn.0040b491
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x406463
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push pe_nt_image_headers32
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40644a
jmp 0x406463
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4063fa
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x406476
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40653f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov byte [ebp - 0x88], 0
lea edi, [ebp - 0x87]
xor eax, eax
mov ecx, 0x20
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov byte [ebp - 0x190], 0
lea edi, [ebp - 0x18f]
xor eax, eax
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov dword [ebp - 0x198], 0x17
cmp dword [0x4232e4], 0
jne 0x4065a0
cmp dword [ebp + 0x18], 0
jne 0x4065aa
mov dword [ebp - 0x198], 2
lea eax, [ebp - 0x194]
push eax
push dword [ebp - 0x198]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4065e7
push 0x4212f0
push dword [ebp - 0x194]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDList]
test eax, eax
jl 0x4065e7
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
jne 0x406610
push 0x105
push 0x4212f0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Start_MenuPrograms
push 0x4212f0
call fcn.0040d21b
push dword [ebp + 8]
call fcn.0040c692
test eax, eax
jne 0x40664e
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x40664e
push dword [ebp + 8]
push 0x4212f0
push dword [ebp + 0x10]
call fcn.0040d248
push 1
push dword [ebp + 0x10]
call fcn.0040b491
jmp 0x406664
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
push dword [ebp + 0x10]
call fcn.0040b491
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call fcn.0040d248
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 0xc]
call fcn.0040c942
push 0x4216b0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4066a9
push str..lnk
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 1
jmp 0x4066b3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407e9f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push ebx
push esi
push edi
cmp dword [0x4231c0], 0
je 0x407ec2
mov eax, 1
jmp 0x407fc2
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.0040b4fc
lea eax, [ebp - 0x31c]
push eax
push dword [ebp + 8]
call fcn.0040b3af
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.0040b491
push 1
lea eax, [ebp - 0x31c]
push eax
call fcn.0040b491
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x407f34
mov eax, 1
jmp 0x407fc2
mov dword [ebp - 0x320], 0x579
push 0x105
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x320]
push dword [0x4232e0]
call dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407fb8
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x407f8c
xor eax, eax
jmp 0x407fc2
inc dword [ebp - 0x320]
push 0x105
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x320]
push dword [0x4232e0]
call dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 4], eax
jmp 0x407f5f
mov eax, 1
jmp 0x407fc2
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40aab2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
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 0x40aaea
xor eax, eax
jmp 0x40aafc
shl dword [ebp - 8], 0x10
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40aafc
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40ac7c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40acc1
mov eax, 0xffffffff
jmp 0x40acd1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
jmp 0x40acd1
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40acd8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ad1d
mov eax, 0xffffffff
jmp 0x40ad2d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
jmp 0x40ad2d
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40ad66
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 0x40ad9f
mov eax, 0xffffffff
jmp 0x40aea0
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 0x40ae06
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 2
push dword [ebp + 8]
call fcn.004080d2
mov dword [ebp - 0xc], eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [ebp - 0xc], 0xffffffff
je 0x40adfc
push dword [ebp - 0xc]
call fcn.00408771
mov eax, 0xfffffff8
jmp 0x40aea0
mov eax, 0xfffffffe
jmp 0x40aea0
mov eax, dword [ebp - 0x14]
inc eax
push eax
push 0x7ffe
call fcn.00419550
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40ae2c
mov eax, 0xffffffff
jmp 0x40aea0
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 0x40ae4f
mov eax, 0xffffffff
jmp 0x40aea0
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 0x40ae76
mov eax, 0xffffffff
jmp 0x40aea0
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.00419110
xor eax, eax
jmp 0x40aea0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40aea7
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.0040c754
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40aef7
xor eax, eax
jmp 0x40aeff
mov eax, dword [ebp - 4]
jmp 0x40aeff
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40af06
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.0040c754
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x40af43
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40b772
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.0040c754
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40b7bb
xor eax, eax
jmp 0x40b7cc
mov eax, dword [ebp - 8]
and eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x40b7cc
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40cba7
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.0040b491
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 0x40cc17
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x40cc9d
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x40cc8a
test byte [ebp - 0x14c], 0x10
je 0x40cc51
movsx eax, byte [ebp - 0x120]
cmp eax, 0x2e
jne 0x40cc51
mov dword [ebp - 8], 1
jmp 0x40cc58
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x40cc72
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40cc9d
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 4], eax
jmp 0x40cc1e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x40cc9d
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40d630
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 0x40d64f
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x5c
jne 0x40d73b
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 1]
cmp eax, 0x5c
jne 0x40d73b
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.0040d281
test eax, eax
jne 0x40d693
xor eax, eax
jmp 0x40d7b7
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x40d6c0
cmp dword [ebp - 0x224], 1
jne 0x40d6e1
cmp dword [ebp - 0x224], 0x64
jle 0x40d6e1
cmp dword [ebp - 0x224], 0
jge 0x40d6e1
xor eax, eax
jmp 0x40d7b7
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 0x40d71c
mov eax, 0xffffffff
jmp 0x40d7b7
push dword [ebp - 0x114]
push dword [ebp - 0x220]
push dword [ebp - 0x10c]
call fcn.0040df95
add esp, 0xc
jmp 0x40d7b7
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 0x40d798
xor eax, eax
jmp 0x40d7b7
push dword [ebp - 0x114]
push dword [ebp - 0x220]
push dword [ebp - 0x10c]
call fcn.0040df95
add esp, 0xc
jmp 0x40d7b7
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40d94c
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 0x40d9a3
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 1]
cmp eax, 0x3a
jne 0x40d9a3
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 2]
test eax, eax
jne 0x40d9a3
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
lea eax, [ebp - 0x10c]
push eax
call fcn.0040c754
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40d9d3
mov eax, 0xffffffff
jmp 0x40d9e2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x40d9e2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d9e7
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 0x40da4c
cmp dword [0x4219e8], 0
je 0x40da4c
push dword [ebp + 8]
call dword [0x4219e8]
cmp dword [ebp - 4], 0
jne 0x40da60
mov eax, 1
jmp 0x40da62
xor eax, eax
jmp 0x40da67
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411857
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 0x4118d7
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.0041c600
add esp, 4
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x80c]
mov dword [ebp - 8], eax
mov dword [ebp + 0x18], 4
jmp 0x4118f6
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x14], 1
je 0x4118c5
cmp dword [ebp + 0x14], 2
jne 0x4118d2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp + 0x18], eax
jmp 0x4118f6
cmp dword [ebp - 0x814], 4
jl 0x4118ab
cmp dword [ebp - 0x814], 5
jle 0x411871
jmp 0x4118ab
cmp dword [ebp + 0x18], 0xffffffff
jne 0x41190d
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.004114fa
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
jne 0x411955
push 0x421b80
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041127d
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
jne 0x411955
xor eax, eax
jmp 0x4119b9
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 0x41198f
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4119b9
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4119af
xor eax, eax
jmp 0x4119b9
mov eax, 1
jmp 0x4119b9
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x4119c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0041c6c0
push ebx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004114fa
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1010], 0
jne 0x4119f5
xor eax, eax
jmp 0x411b58
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 0x411a3c
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x411b58
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x1014], eax
jmp 0x411af5
lea eax, [ebp - 0x804]
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x411b2e
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 0x411b2e
mov dword [ebp - 0x1008], 0
jmp 0x411ab4
inc dword [ebp - 0x1008]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x1008]
cmp dword [eax], ecx
jle 0x411ae3
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 0x411aae
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp + 0x1c]
mov byte [eax + ecx], 0
jmp 0x411b2e
cmp dword [ebp - 0x1014], 1
jl 0x411a9f
cmp dword [ebp - 0x1014], 2
jle 0x411a4c
cmp dword [ebp - 0x1014], 4
jl 0x411a9f
cmp dword [ebp - 0x1014], 5
jle 0x411a61
jmp 0x411a9f
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x411b4e
xor eax, eax
jmp 0x411b58
mov eax, 1
jmp 0x411b58
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x411b5f
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.004114fa
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x411b87
xor eax, eax
jmp 0x411bba
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 0x411bb3
mov eax, 1
jmp 0x411bb5
xor eax, eax
jmp 0x411bba
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x411dac
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 [0x4231b4], 0
je 0x411deb
mov eax, 1
jmp 0x411f57
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 0x411e47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x411e40
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 0x411e3b
xor eax, eax
jmp 0x411f57
jmp 0x411e47
xor eax, eax
jmp 0x411f57
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 0x411e69
xor eax, eax
jmp 0x411f57
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x411e7f
xor eax, eax
jmp 0x411f57
mov eax, dword [ebp - 8]
add eax, 3
and al, 0xfc
call fcn.0041c6c0
mov dword [ebp - 0x10], esp
cmp dword [ebp - 0x10], 0
jne 0x411ea0
xor eax, eax
jmp 0x411f57
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 0x411ec4
xor eax, eax
jmp 0x411f57
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 0x411ef6
xor eax, eax
jmp 0x411f57
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
jmp 0x411f0c
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp dword [eax], ecx
jbe 0x411f46
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 0x411f41
mov dword [ebp - 0x14], 1
jmp 0x411f46
jmp 0x411f09
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x14]
jmp 0x411f57
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412b1d
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 0x412b5c
xor eax, eax
jmp 0x412bd9
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 0x412bd9
pop edi
pop esi
pop ebx
leave
ret