joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d9d1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x426a40], 0
je 0x40d9e8
push 1
pop eax
jmp 0x40db80
push 0x1003
push 0x9c4
call fcn.00417ee0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40da08
or eax, 0xffffffff
jmp 0x40db80
push 0x32c
push dword [ebp - 0xc]
call fcn.004184d0
mov dword [0x426a3c], eax
cmp dword [0x426a3c], 0
jne 0x40da2b
or eax, 0xffffffff
jmp 0x40db80
mov eax, dword [0x426a3c]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov eax, dword [0x426a3c]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [0x426a3c]
and byte [eax + 0x226], 0
mov eax, dword [0x426a3c]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [0x426a3c]
and dword [eax + 4], 0
mov eax, dword [0x426a3c]
and dword [eax + 0x18], 0
mov eax, dword [0x426a3c]
and dword [eax + 0x14], 0
mov eax, dword [0x426a3c]
mov dword [eax + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 6
je 0x40da93
cmp dword [ebp + 8], 7
jne 0x40dabe
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xffff
movzx eax, ax
sar eax, 8
and eax, 0xff
movzx eax, al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
jge 0x40dabe
mov eax, dword [0x426a3c]
and dword [eax + 0x10], 0
push dword [ebp + 0x10]
mov eax, dword [0x426a3c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0x14]
mov eax, dword [0x426a3c]
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 [0x426a50], eax
push str.ISMSG16_TERMINATE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x426a54], eax
push str.ISMSG32_REBOOT
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x426a58], eax
push str.ISMSG32_TERMINATE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x426a5c], eax
push str.ISMSG32_DELETEFILE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x426a60], eax
push str.ISMSG32_RENAMEFILE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x426a64], eax
push str.ISMSG32_STRINGLEN
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x426a68], eax
push str.ISMSG32_CHARS
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x426a6c], eax
push str.ISMSG32_DOFILEOP
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x426a70], eax
mov dword [0x426a40], 1
xor eax, eax
leave
ret 0x10
Function at 0x40e09d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push dword [ebp + 8]
push str.file_d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [0x426a3c]
add eax, 0x226
push eax
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x423b28
push str.main
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x423b40
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40e106
xor eax, eax
jmp 0x40e11e
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040e120
pop ecx
pop ecx
push 1
pop eax
leave
ret

Function at 0x40e120
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push dword [ebp + 0xc]
call fcn.0040dca3
and dword [ebp - 4], 0
jmp 0x40e13e
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 5
jge 0x40e1ae
push dword [ebp - 4]
push str.alt_d
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [0x426a3c]
add eax, 0x226
push eax
push 0x105
lea eax, [ebp - 0x214]
push eax
push 0x423b58
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.NOWAYVALUEXX
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40e1a0
jmp 0x40e1ae
lea eax, [ebp - 0x214]
push eax
call fcn.0040dca3
jmp 0x40e137
push 1
pop eax
leave
ret

Function at 0x40eb58
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
xor eax, eax
pop ebp
ret

Function at 0x40ec85
Capabilities:
Check for time delay via gettickcount
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x14]
and dword [eax], 0
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x20
jae 0x40eca9
xor eax, eax
jmp 0x40ed1d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1b58
mov dword [ebp - 0x24], eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40ed01
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x24], eax
jbe 0x40ed01
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
jmp 0x40ecc6
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ed1b
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
push 1
pop eax
jmp 0x40ed1d
xor eax, eax
leave
ret
Function at 0x40ef4b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
mov eax, dword [ebp + 8]
push dword [eax + 0x21c]
lea eax, [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.004130de
push dword [ebp + 8]
call fcn.0040f507
pop ecx
mov dword [ebp - 8], 1
mov dword [ebp - 0x120], 1
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
je 0x40f08d
cmp dword [ebp - 0x120], 0
je 0x40efd9
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40efd7
and dword [ebp - 0xc], 0
jmp 0x40f08d
jmp 0x40f004
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40f004
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
and dword [ebp - 0xc], 0
jmp 0x40f08d
and dword [ebp - 0x120], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
and eax, 2
test eax, eax
je 0x40f025
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
and eax, 4
test eax, eax
je 0x40f045
mov eax, dword [ebp - 0x264]
and eax, 0x10
test eax, eax
je 0x40f043
and dword [ebp - 8], 0
jmp 0x40f088
mov eax, dword [ebp - 0x264]
and eax, 0x10
test eax, eax
jne 0x40f088
mov eax, dword [ebp - 0x264]
and eax, 0x80
test eax, eax
jne 0x40f084
mov eax, dword [ebp - 0x264]
and eax, 0x20
test eax, eax
jne 0x40f084
cmp dword [ebp - 0x264], 0
je 0x40f084
mov eax, dword [ebp - 0x264]
and eax, 1
test eax, eax
je 0x40f088
and dword [ebp - 8], 0
jmp 0x40ef9e
cmp dword [ebp - 0xc], 0
je 0x40f123
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
push dword [ebp + 0xc]
call fcn.00413194
lea eax, [ebp - 0x238]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x105
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx eax, word [ebp - 0x10]
movzx ecx, word [ebp - 0x124]
shl ecx, 0x10
or eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x244]
mov dword [eax + 0x210], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x21c]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x10c], ecx
mov eax, dword [ebp + 0xc]
add eax, 0x105
jmp 0x40f17f
mov eax, dword [ebp + 8]
cmp dword [eax + 0x224], 0
je 0x40f17d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x224]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x36c]
push eax
call fcn.00413dcc
test eax, eax
je 0x40f165
lea eax, [ebp - 0x36c]
push eax
push 1
mov eax, dword [ebp + 8]
push dword [eax + 0x220]
push dword [ebp + 8]
call dword [ebp - 0x14]
jmp 0x40f17d
lea eax, [ebp - 0x36c]
push eax
push 2
mov eax, dword [ebp + 8]
push dword [eax + 0x220]
push dword [ebp + 8]
call dword [ebp - 0x14]
xor eax, eax
leave
ret
Function at 0x40f507
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
and eax, 1
test eax, eax
jne 0x40f524
xor eax, eax
jmp 0x40f68c
lea eax, [ebp - 0x354]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x21c]
call fcn.004130de
push 1
lea eax, [ebp - 0x354]
push eax
call fcn.00413194
push 0x423d24
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x24c]
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
jne 0x40f57d
xor eax, eax
jmp 0x40f68c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
and eax, 2
test eax, eax
je 0x40f597
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
cmp dword [ebp - 4], 0
je 0x40f689
mov eax, dword [ebp - 0x24c]
and eax, 0x10
test eax, eax
je 0x40f648
movsx eax, byte [ebp - 0x220]
cmp eax, 0x2e
je 0x40f648
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x354]
push eax
call fcn.004130de
push 1
lea eax, [ebp - 0x10c]
push eax
call fcn.00413194
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
lea eax, [ebp - 0x10c]
push eax
call fcn.00413194
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x21c]
push dword [eax + 0x114]
call fcn.00419060
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x21c]
push dword [eax + 0x114]
call fcn.00419100
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f66a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop eax
jmp 0x40f68c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
and eax, 2
test eax, eax
je 0x40f684
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
jmp 0x40f597
push 1
pop eax
leave
ret

Function at 0x40f859
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and 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 0x40f880
xor eax, eax
jmp 0x40f895
mov eax, dword [ebp - 8]
shl eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
leave
ret 4

Function at 0x40fb7b
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
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.00414169
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
leave
ret 8
Function at 0x41343e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call fcn.00414169
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x413483
xor eax, eax
jmp 0x413498
mov eax, dword [ebp - 0x10c]
and eax, 0x10
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
leave
ret 4

Function at 0x414495
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
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.00413194
push 0x423e74
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 - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4144f9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop eax
jmp 0x41456f
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x414563
mov eax, dword [ebp - 0x14c]
and eax, 0x10
test eax, eax
je 0x41452b
movsx eax, byte [ebp - 0x120]
cmp eax, 0x2e
jne 0x41452b
mov dword [ebp - 0x258], 1
jmp 0x414532
and dword [ebp - 0x258], 0
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41454e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41456f
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 8], eax
jmp 0x414500
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop eax
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
test eax, eax
je 0x41506c
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 1]
cmp eax, 0x3a
jne 0x41506c
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 2]
test eax, eax
jne 0x41506c
mov byte [ebp - 0x106], 0x5c
and byte [ebp - 0x105], 0
lea eax, [ebp - 0x108]
push eax
call fcn.00414169
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x415099
or eax, 0xffffffff
jmp 0x4150a6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10c]
mov dword [eax], ecx
xor eax, eax
leave
ret
Function at 0x4150a8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0xc], 0xc
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x415102
cmp dword [0x426afc], 0
je 0x415102
push dword [ebp + 8]
call dword [0x426afc]
xor eax, eax
cmp dword [ebp - 0x118], 0
sete al
leave
ret

Function at 0x415e1c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 4
jl 0x415e7a
cmp dword [ebp - 0x814], 5
jle 0x415e42
jmp 0x415e7a
push dword [ebp + 0x1c]
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x800]
push eax
call fcn.0041c120
pop ecx
mov dword [ebp - 0x808], eax
lea eax, [ebp - 0x808]
mov dword [ebp - 0x804], eax
mov dword [ebp + 0x18], 4
jmp 0x415e9f
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x804], eax
cmp dword [ebp + 0x14], 1
je 0x415e8f
cmp dword [ebp + 0x14], 2
jne 0x415e9f
push dword [ebp - 0x804]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x18], 0xffffffff
jne 0x415eb5
push dword [ebp - 0x804]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp + 0x18], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00415b9e
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
jne 0x415ef2
push 0x426b04
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004159da
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
jne 0x415ef2
xor eax, eax
jmp 0x415f50
push dword [ebp + 0x18]
push dword [ebp - 0x804]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
je 0x415f2e
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x415f50
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
je 0x415f4d
xor eax, eax
jmp 0x415f50
push 1
pop eax
leave
ret 0x18
Function at 0x415f54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0041c2d0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00415b9e
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1010], 0
jne 0x415f82
xor eax, eax
jmp 0x4160b7
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x3ff
push dword [ebp + 0x18]
lea eax, [ebp - 0x800]
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 - 0x100c], eax
cmp dword [ebp - 0x100c], 0
je 0x415fcb
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4160b7
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x1014], eax
cmp dword [ebp - 0x1014], 0
jle 0x41604c
cmp dword [ebp - 0x1014], 2
jle 0x415ffc
cmp dword [ebp - 0x1014], 3
jle 0x41604c
cmp dword [ebp - 0x1014], 5
jle 0x416011
jmp 0x41604c
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x416095
lea eax, [ebp - 0x800]
mov dword [ebp - 0x1008], eax
mov eax, dword [ebp - 0x1008]
push dword [eax]
push 0x423ed4
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x416095
and dword [ebp - 0x1004], 0
jmp 0x416062
mov eax, dword [ebp - 0x1004]
inc eax
mov dword [ebp - 0x1004], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x1004]
cmp ecx, dword [eax]
jge 0x416089
mov eax, dword [ebp + 0x1c]
add eax, dword [ebp - 0x1004]
mov ecx, dword [ebp - 0x1004]
mov cl, byte [ebp + ecx - 0x800]
mov byte [eax], cl
jmp 0x416055
mov eax, dword [ebp + 0x1c]
add eax, dword [ebp - 0x1004]
and byte [eax], 0
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x100c], 0
je 0x4160b4
xor eax, eax
jmp 0x4160b7
push 1
pop eax
leave
ret 0x18
Function at 0x4162ed
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0x14], 0
and byte [ebp - 0x10], 0
and byte [ebp - 0xf], 0
and byte [ebp - 0xe], 0
and byte [ebp - 0xd], 0
and byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 5
cmp dword [0x427030], 0
je 0x416320
push 1
pop eax
jmp 0x416451
lea eax, [ebp - 8]
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 0x41636d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x416366
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x416364
xor eax, eax
jmp 0x416451
jmp 0x41636d
xor eax, eax
jmp 0x416451
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x41638b
xor eax, eax
jmp 0x416451
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x41639d
xor eax, eax
jmp 0x416451
mov eax, dword [ebp - 0x1c]
add eax, 3
and al, 0xfc
call fcn.0041c2d0
mov dword [ebp - 0x24], esp
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4163c0
xor eax, eax
jmp 0x416451
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4163dd
xor eax, eax
jmp 0x416451
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x416408
xor eax, eax
jmp 0x416451
and dword [ebp - 4], 0
and dword [ebp - 0x20], 0
jmp 0x416419
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax]
jae 0x416445
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
push dword [ecx + eax*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x416443
mov dword [ebp - 4], 1
jmp 0x416445
jmp 0x416412
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x24]
leave
ret

Function at 0x418d90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push ebx
push esi
mov esi, dword [esp + 0x114]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push eax
call edi
lea ecx, [esp + 0xc]
mov edx, dword [esp + 0x11c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push esi
call edi
xor eax, eax
pop edi
test ebx, ebx
pop esi
pop ebx
setne al
add esp, 0x108
ret 8
Function at 0x4198e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
test eax, eax
push edi
jne 0x4198f5
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x419906
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [0x424158]
push 0x2000
push eax
call fcn.004184d0
mov edi, eax
test edi, edi
jne 0x419924
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov ecx, dword [esp + 0x1c]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x426b50], eax
mov esi, eax
jne 0x419957
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0x426b54
push 0x2000
push edi
push esi
mov dword [esp + 0x24], eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
mov edx, dword [esp + 0x10]
mov dword [0x426b58], eax
mov eax, dword [0x426b54]
sub edx, eax
test eax, eax
mov dword [esp + 0x10], edx
je 0x4199dd
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x20]
push edi
push esi
push eax
call fcn.00419c80
add esp, 0x14
test eax, eax
je 0x4199fe
push 0
push 0x426b54
push 0x2000
push edi
push esi
call ebx
call ebp
mov edx, dword [esp + 0x10]
mov dword [0x426b58], eax
mov eax, dword [0x426b54]
sub edx, eax
test eax, eax
mov dword [esp + 0x10], edx
jne 0x41999a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x424158]
push edi
push edx
call fcn.004180f0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x424158]
push edi
push ecx
call fcn.004180f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8