joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412fd9
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
xor eax, eax
cmp dword [0x4829b4], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
jle 0x413202
push ebx
push esi
push edi
mov esi, 0x482408
push dword [ebp - 8]
mov ecx, 0x4829a8
call fcn.00421fff
mov edi, eax
mov eax, dword [edi + 0x1c]
cmp eax, dword [ebp + 8]
jne 0x4131ed
push dword [edi + 0x20]
call fcn.00414cd2
test al, al
pop ecx
je 0x4131ed
lea ebx, [edi + 4]
mov ecx, esi
push ebx
call fcn.00418e4f
lea eax, [edi + 0x10]
mov ecx, esi
push eax
call fcn.00418e4f
or dword [edi + 0x1c], 0xffffffff
push ebx
mov ecx, esi
call fcn.0041d6f6
lea eax, [edi + 0x10]
mov ecx, esi
push eax
call fcn.0041d6f6
push 0x7fffffff
push ebx
mov ecx, esi
call fcn.0041e39b
lea eax, [edi + 0x10]
push 0x7fffffff
push eax
mov ecx, esi
call fcn.0041e39b
mov eax, dword [edi]
cmp eax, 4
jne 0x41308d
inc dword [ebp - 4]
mov ecx, ebx
call fcn.0041ff07
push eax
call fcn.00428063
jmp 0x4131ed
cmp eax, 5
jne 0x4130a5
mov ecx, ebx
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4131ed
push 0x1e
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00428300
mov eax, dword [0x4825f8]
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0x38], eax
push 0
mov word [ebp - 0x28], 0x650
call fcn.0041f1be
mov ecx, ebx
call fcn.0041ff07
mov dword [ebp - 0x30], eax
mov eax, dword [edi]
test eax, eax
je 0x4130e6
cmp eax, 2
je 0x4130e6
cmp eax, 3
jne 0x4130fc
lea ebx, [edi + 0x10]
push 0
mov ecx, ebx
call fcn.0041f1be
mov ecx, ebx
call fcn.0041ff07
mov dword [ebp - 0x2c], eax
mov eax, dword [edi]
push 1
pop ecx
cmp eax, ecx
jne 0x41310e
mov dword [ebp - 0x34], 3
jmp 0x413124
cmp eax, 2
je 0x413121
xor ecx, ecx
cmp eax, 3
setne cl
dec ecx
and ecx, 2
inc ecx
inc ecx
mov dword [ebp - 0x34], ecx
lea ecx, [edi + 0x10]
call fcn.0041ff07
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x41317f
cmp dword [edi], eax
jne 0x41317f
cmp dword [ebp - 0xc], 0xffffffff
jne 0x41317f
inc dword [ebp - 4]
lea ecx, [edi + 0x10]
call fcn.0041ff07
push eax
call ebx
cmp eax, 0xffffffff
je 0x41317f
test al, 0x10
jne 0x41317f
lea ecx, [edi + 0x10]
call fcn.0041ff07
push 0x482c84
push eax
mov ecx, 0x482c78
call fcn.00425a20
mov eax, dword [edi + 0x10]
lea ebx, [edi + 0x10]
cmp eax, 4
jbe 0x4131ed
mov edi, dword [edi]
cmp edi, 2
je 0x413195
test edi, edi
jne 0x4131ed
add eax, 0xfffffffb
push 4
push eax
mov ecx, ebx
call fcn.0041fe73
push eax
lea ecx, [ebp - 0x18]
call fcn.0041f009
lea ecx, [ebp - 0x18]
call fcn.0041ff51
push 1
push str..TTF
lea ecx, [ebp - 0x18]
call fcn.0041f3c0
test al, al
je 0x4131e5
mov ecx, ebx
call fcn.0041ff07
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x18]
call fcn.0041f06b
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [0x4829b4]
jl 0x412ffb
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x4134d1
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [0x42ff04], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov ecx, 0x482bc0
jne 0x4134f2
mov ecx, 0x482b90
call fcn.0041ff07
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push dword [esi + 0x34]
push dword [ecx]
mov ecx, ebx
push eax
call fcn.0041fd49
test eax, eax
jge 0x41352c
push 0
push str.Couldnt_read_filename___skipping_file
push dword [edi + 8]
mov ecx, 0x482408
call fcn.0041e1f3
xor eax, eax
jmp 0x41365d
mov edi, 0x482408
push ebx
mov ecx, edi
call fcn.00418e4f
push ebx
mov ecx, edi
call fcn.0041d6f6
push 0x7fffffff
push ebx
mov ecx, edi
call fcn.0041e39b
mov eax, dword [ebp + 0x14]
mov ecx, ebx
mov byte [eax], 1
mov eax, dword [esi + 0x34]
add dword [0x4836e0], eax
call fcn.0041ff07
push eax
call fcn.0040f27e
test al, al
pop ecx
jne 0x4135db
lea ecx, [ebp - 0x10]
call fcn.0041ef35
mov ecx, ebx
call fcn.0041ff07
push eax
mov ecx, 0x483374
call fcn.0041ff07
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041f62d
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x4135ca
mov ecx, 0x482bd0
call fcn.0041ff07
mov ecx, dword [ebp - 4]
push 4
push eax
mov esi, dword [ecx + 8]
lea ecx, [ebp - 0x10]
call fcn.0041ff07
push eax
push esi
mov ecx, edi
call fcn.0041e217
cmp eax, 7
jne 0x4135ca
or esi, 0xffffffff
jmp 0x4135cc
xor esi, esi
lea ecx, [ebp - 0x10]
call fcn.0041f06b
mov eax, esi
jmp 0x41365d
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, ebx
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41365a
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x34], eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x18]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x24]
mov ecx, ebx
push eax
lea eax, [esi + 0x20]
push eax
call fcn.0041ff07
push eax
call fcn.0040eb92
add esp, 0xc
add esi, 0x28
mov ecx, ebx
push 0
push esi
call fcn.0041ff07
push eax
call fcn.0040ec26
add esp, 0xc
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x413b5d
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
push str..DLL
push dword [esp + 0x14]
call fcn.00420ef6
mov edi, dword [esp + 0x1c]
pop ecx
pop ecx
mov esi, 0x482770
push edi
mov ecx, esi
call fcn.0041fac3
add edi, 4
mov ecx, esi
push edi
mov ebx, eax
call fcn.0041fac3
test ebx, ebx
mov esi, eax
je 0x413bfc
test esi, esi
je 0x413bfc
push 1
pop eax
mov dword [0x4836fc], eax
mov dword [0x482710], eax
mov eax, dword [0x483770]
test eax, eax
je 0x413bb5
push eax
call fcn.00428bce
pop ecx
push 4
call fcn.00428bd9
pop ecx
mov dword [0x483770], eax
lea ecx, [esi + ebx]
mov dword [eax], ecx
cmp byte [0x42ff04], 0
mov ecx, 0x482bc0
jne 0x413bda
mov ecx, 0x482b90
call fcn.0041ff07
push esi
push ebx
push dword [esp + 0x18]
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
je 0x413c04
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
pop edi
pop esi
pop ebx
ret 8
mov al, 1
jmp 0x413bfe

Function at 0x413c08
Capabilities:
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push ebx
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 1
mov ecx, 0x482408
call fcn.0041e43f
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
cmp byte [0x4837ad], bl
sete al
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x415f9a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7d08
call fcn.004292a0
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x80
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41604c
push dword [ebp + 0xc]
call fcn.0040eb61
pop ecx
push ebx
push edi
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x415ffc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41604c
mov dword [ebp + 8], ebx
mov esi, 0x7d00
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x7d08]
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x7d08]
push dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 8]
call fcn.0041742a
cmp dword [ebp + 8], esi
pop ecx
je 0x416004
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4163cb
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 8]
push ebx
push eax
mov eax, dword [0x483760]
or eax, 0x2001f
xor ebx, ebx
push eax
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416477
lea eax, [ebp - 0xc]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
mov dword [ebp - 0xc], 4
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push 4
push eax
inc dword [ebp - 4]
push 4
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0041efa5
cmp byte [ebp + 0xc], bl
je 0x416457
push ebx
push str.ctrl
lea ecx, [ebp - 0x18]
call fcn.0041f20d
lea ecx, [ebp - 0x18]
call fcn.0041ff07
push 0x482cf0
push eax
mov ecx, 0x482c78
call fcn.00425a20
lea ecx, [ebp - 0x18]
call fcn.0041f06b
pop ebx
leave
ret 8

Function at 0x41647c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push esi
xor esi, esi
cmp dword [0x482b70], esi
je 0x4165ab
mov ecx, 0x482b70
call fcn.0041ff07
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [0x482b70]
inc ecx
push ecx
push eax
call fcn.0042108c
add esp, 0x10
test al, al
je 0x4165ab
cmp dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
jbe 0x416592
push ebx
push edi
mov esi, 0x104
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
shl eax, 2
push 5
mov edi, dword [eax + ecx]
mov ebx, dword [eax + ecx + 4]
add edi, dword [ebp - 0x10]
add ebx, dword [ebp - 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x416580
push 0x482418
lea ecx, [ebp - 0x1c]
call fcn.0041f009
push 0
push str.WININIT.INI
lea ecx, [ebp - 0x1c]
call fcn.0041f20d
push esi
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.00428300
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00428300
add esp, 0x18
lea eax, [ebp - 0x224]
push esi
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
call edi
lea eax, [ebp - 0x120]
push esi
push eax
push ebx
call edi
lea ecx, [ebp - 0x1c]
call fcn.0041ff07
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x224]
push eax
push str.Rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x1c]
call fcn.0041f06b
add dword [ebp - 4], 2
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x4164d5
pop edi
pop ebx
push dword [ebp - 8]
call fcn.00428bce
mov ecx, 0x482b70
mov dword [esp], 0x432518
call fcn.0041f0d8
pop esi
leave
ret
Function at 0x416ea8
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], ecx
xor edi, edi
mov ecx, ebx
call fcn.0041ff07
push eax
call fcn.0040f27e
test al, al
pop ecx
je 0x41701c
push edi
push 0x80
push 3
push edi
push edi
push 0xc0000000
mov ecx, ebx
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xc
je 0x416f11
cmp esi, 0x20
jne 0x41701c
cmp dword [0x48261c], edi
je 0x416f8e
push ebx
lea ecx, [ebp - 0xc]
call fcn.0041f009
push edi
push str..delete_on_reboot0
lea ecx, [ebp - 0xc]
call fcn.0041f20d
push 1
pop esi
lea ecx, [ebp - 0xc]
call fcn.0041ff07
push eax
call fcn.0040f27e
test al, al
pop ecx
je 0x416f6a
mov eax, dword [ebp - 0xc]
push 1
dec eax
lea ecx, [ebp - 0xc]
push eax
call fcn.0041f56f
push esi
lea eax, [ebp - 0xc]
push 0x42ff84
push eax
call fcn.0041f62d
add esp, 0xc
inc esi
jmp 0x416f33
push edi
lea ecx, [ebp - 0xc]
call fcn.0041ff07
push eax
mov ecx, ebx
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x416fff
lea ecx, [ebp - 0xc]
call fcn.0041f06b
test byte [0x482612], 0x40
jne 0x417026
lea ecx, [ebp - 0x1c]
call fcn.0041ef35
mov ecx, ebx
call fcn.0041ff07
push eax
mov ecx, 0x483320
call fcn.0041ff07
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041f62d
add esp, 0xc
mov ecx, 0x482bd0
call fcn.0041ff07
mov ecx, dword [ebp - 0x10]
push 5
push eax
mov esi, dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.0041ff07
push eax
push esi
mov ecx, 0x482408
call fcn.0041e217
cmp eax, 4
lea ecx, [ebp - 0x1c]
jne 0x41707d
call fcn.0041f06b
jmp 0x416ebc
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.0041f146
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [eax], 2
call fcn.0041f06b
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [ebp - 0x120]
push str..tmp
push eax
call fcn.00420ef6
pop ecx
mov esi, 0x482b70
pop ecx
push ebx
mov ecx, esi
call fcn.0041f28b
push edi
mov ecx, esi
call fcn.0041f1be
lea eax, [ebp - 0x120]
push edi
push eax
mov ecx, esi
call fcn.0041f20d
push edi
mov ecx, esi
call fcn.0041f1be
lea eax, [ebp - 0x120]
mov ecx, ebx
push eax
call fcn.0041f0d8
mov ecx, dword [ebp + 0xc]
push 1
pop eax
mov dword [ecx], eax
jmp 0x41701f
call fcn.0041f06b
xor eax, eax
jmp 0x41701f
Function at 0x417302
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0041efa5
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
dec eax
push eax
call fcn.0041f1a9
cmp al, 0x5c
je 0x417337
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0041f1be
lea ecx, [ebp - 0xc]
call fcn.0041ef35
push 0x432518
lea ecx, [ebp - 0xc]
call fcn.0041f0d8
push esi
lea ecx, [ebp - 0x18]
call fcn.0041ff07
push eax
lea eax, [ebp - 0xc]
push str._s_d.tmp
push eax
call fcn.0041f62d
add esp, 0x10
lea ecx, [ebp - 0xc]
inc esi
call fcn.0041ff07
push eax
call fcn.0040f27e
test al, al
pop ecx
jne 0x41733f
xor esi, esi
lea ecx, [ebp - 0xc]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4173fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x417413
lea ecx, [ebp - 0x24]
call fcn.0041ef35
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push str.You_dont_have_write_privilege_to_directory__s._Please_have_your_system_administrator__or_other_user_with_higher_privileges__install_this_software.
push eax
call fcn.0041f62d
add esp, 0xc
lea ecx, [ebp - 0x24]
push esi
call fcn.0041ff07
push eax
mov ecx, 0x482408
push dword [0x4825f8]
call fcn.0041e1f3
lea ecx, [ebp - 0x24]
call fcn.0041f06b
lea ecx, [ebp - 0xc]
call fcn.0041f06b
lea ecx, [ebp - 0x18]
call fcn.0041f06b
xor al, al
jmp 0x417425
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xc]
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0xc]
call fcn.0041f06b
lea ecx, [ebp - 0x18]
call fcn.0041f06b
mov al, 1
pop esi
leave
ret 4
Function at 0x418139
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov ebx, ecx
cmp dword [0x482a3c], esi
jne 0x418157
cmp dword [0x482a48], esi
je 0x4181e2
test byte [0x48260c], 0x40
je 0x418169
mov ecx, ebx
call fcn.0041e5fd
jmp 0x4181ae
lea eax, [ebp - 4]
mov ecx, 0x482a3c
push eax
mov eax, dword [0x483760]
or eax, 0x20019
push eax
push esi
call fcn.0041ff07
push eax
push dword [0x482a38]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4181db
cmp dword [0x482a48], esi
jne 0x4181b2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push esi
mov ecx, ebx
call fcn.00417e29
pop esi
pop ebx
leave
ret
push edi
push esi
push esi
push esi
push esi
mov ecx, 0x482a48
call fcn.0041ff07
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
je 0x4181a5
mov ecx, ebx
call fcn.0041868d
mov al, 1
jmp 0x4181ae
Function at 0x41bdad
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
mov ebx, 0x94
push 0x48265c
mov dword [0x482b10], esi
mov dword [0x482b14], esi
mov dword [0x482b1c], 2
mov dword [0x482940], esi
mov byte [0x4829f4], 1
mov dword [0x4825fc], eax
mov dword [0x482604], esi
mov dword [0x482600], esi
mov dword [0x4825f8], esi
mov dword [0x48265c], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x38
push esi
push 0x482718
mov dword [0x482d3c], esi
call fcn.00428300
push 0x4c
push esi
push 0x482598
call fcn.00428300
push 0x28
push esi
push 0x482c50
call fcn.00428300
push 0x38
push esi
push 0x482780
call fcn.00428300
mov edi, 0x104
mov dword [0x482794], 0x428063
push edi
mov dword [0x482780], 0x428037
mov dword [0x482784], 0x42808f
mov dword [0x48278c], 0x428110
mov dword [0x482788], 0x4281aa
mov dword [0x482790], 0x42824a
mov dword [0x4827ac], 0x420b6e
mov dword [0x4827b4], 0x420a71
mov dword [0x4827a8], 0x420778
mov dword [0x4827b0], 0x420400
mov dword [0x4827a4], 0x482610
call fcn.00428bd9
add esp, 0x34
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x41bedc
mov ecx, 0x482e04
call fcn.0041ff07
push eax
call fcn.00420bbf
pop ecx
push edi
push esi
push dword [ebp + 8]
call fcn.00428300
add esp, 0xc
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push dword [ebp + 8]
mov ecx, 0x482b90
call fcn.0041f0d8
push dword [ebp + 8]
call fcn.00428bce
cmp dword [0x482bc0], esi
pop ecx
jne 0x41bf21
push 0x482b90
mov ecx, 0x482bc0
call fcn.0041f146
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0xc]
call fcn.0041efa5
lea ecx, [ebp - 0xc]
call fcn.0041ff51
push 1
push esi
push str._SILENT
lea ecx, [ebp - 0xc]
call fcn.0041f896
or edi, 0xffffffff
cmp eax, edi
je 0x41bf56
mov byte [0x48375c], 1
push 1
push esi
push str._REVERT
lea ecx, [ebp - 0xc]
call fcn.0041f896
cmp eax, edi
je 0x41bf71
mov byte [0x4837ad], 1
push 1
push esi
push str._ACCEPTLICENSE
lea ecx, [ebp - 0xc]
call fcn.0041f896
cmp eax, edi
je 0x41bf8c
mov byte [0x48375d], 1
push ebx
lea eax, [ebp - 0xa0]
push esi
push eax
mov dword [0x482ba0], edi
mov dword [0x482ba4], edi
mov dword [0x482ba8], edi
mov dword [0x482bac], edi
mov dword [0x482bb0], edi
mov dword [0x482bb4], edi
mov dword [0x482bb8], edi
mov dword [0x482bbc], edi
call fcn.00428300
add esp, 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x41bff5
mov dword [0x48261c], 1
jmp 0x41c014
mov eax, dword [ebp - 0x94]
mov dword [0x48261c], esi
and eax, 0xffff
cmp eax, 0x3e8
ja 0x41c014
mov byte [0x482719], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str._InstallerCommandLine_
call fcn.00420400
lea ecx, [ebp - 0xc]
call fcn.0041f06b
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41c983
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
mov esi, 0x482770
push edi
push 0x2c
mov ecx, esi
call fcn.0041fac3
push 0x28
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.0041fac3
xor edi, edi
mov dword [ebp - 0x18], eax
cmp eax, edi
mov dword [ebp - 8], edi
jle 0x41caf3
mov esi, 0x482a20
mov ebx, 0x42fa7c
push edi
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x14]
call fcn.0041ef35
push 4
lea ecx, [ebp - 0x14]
push dword [ebp + 8]
call fcn.0041fc8b
add dword [ebp - 4], 4
lea eax, [ebp - 0x11c]
push str..TTF
push eax
call fcn.00420ef6
pop ecx
pop ecx
push 1
pop eax
mov dword [0x4836fc], eax
mov dword [0x482710], eax
mov eax, dword [0x483770]
cmp eax, edi
je 0x41ca1a
push eax
call fcn.00428bce
pop ecx
push 4
call fcn.00428bd9
pop ecx
mov dword [0x483770], eax
push edi
lea ecx, [ebp - 0x14]
call fcn.0041fac3
add eax, dword [ebp - 4]
mov ecx, dword [0x483770]
push edi
mov dword [ecx], eax
lea ecx, [ebp - 0x14]
call fcn.0041fac3
push eax
lea eax, [ebp - 0x11c]
push dword [ebp - 4]
mov ecx, 0x482bc0
push eax
call fcn.0041ff07
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
jne 0x41cafc
push edi
lea ecx, [ebp - 0x14]
call fcn.0041fac3
add dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push str..FOT
push eax
call fcn.00420ef6
pop ecx
lea eax, [ebp - 0x11c]
pop ecx
push edi
push eax
lea eax, [ebp - 0x220]
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateScalableFontResourceA]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
lea eax, [ebp - 0x220]
push edi
push eax
mov ecx, esi
call fcn.0041f20d
push edi
push ebx
mov ecx, esi
call fcn.0041f20d
lea eax, [ebp - 0x11c]
push edi
push eax
mov ecx, esi
call fcn.0041f20d
push edi
push ebx
mov ecx, esi
call fcn.0041f20d
lea ecx, [ebp - 0x14]
call fcn.0041f06b
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jl 0x41c9c3
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
call fcn.0041f06b
xor al, al
jmp 0x41caf5

Function at 0x41cb15
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x4827e8
lea ecx, [ebp - 0xc]
call fcn.0041f009
xor ebx, ebx
lea ecx, [ebp - 0xc]
push ebx
push str._inst_m
call fcn.0041f20d
lea ecx, [ebp - 0xc]
call fcn.0041ff07
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41cb92
mov ecx, 0x482d40
call fcn.0041ff07
push eax
push str.AstrumInstaller
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
cmp esi, ebx
je 0x41cb90
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x41cb89
push 3
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov bl, 1
lea ecx, [ebp - 0xc]
call fcn.0041f06b
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x41cc57
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
xor ebx, ebx
cmp dword [0x482ad4], ebx
push esi
je 0x41ccdf
lea eax, [ebp - 4]
mov ecx, 0x482a3c
push eax
mov eax, dword [0x483760]
or eax, 0x20019
mov dword [ebp - 4], ebx
push eax
push ebx
call fcn.0041ff07
push eax
push dword [0x482a38]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41ccdf
push edi
push 0x4d
pop ecx
lea edi, [ebp - 0x19f]
mov byte [ebp - 0x1a0], bl
mov dword [ebp - 0x14], 0x136
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1a0]
push eax
push ebx
push ebx
push str.AutorunCommand
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
pop edi
je 0x41cce6
xor al, al
jmp 0x41cd72
lea eax, [ebp - 0x1a0]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041efa5
push ebx
lea ecx, [ebp - 0x10]
call fcn.0041f1a9
cmp al, 0x22
je 0x41cd17
push ebx
push 0x22
lea ecx, [ebp - 0x10]
call fcn.0041fbc7
push 0x22
lea ecx, [ebp - 0x10]
call fcn.0041f1be
push 0x44
lea eax, [ebp - 0x68]
pop esi
push esi
push ebx
push eax
call fcn.00428300
push 0x10
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 0x68], esi
call fcn.00428300
add esp, 0x18
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
call fcn.0041ff07
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x41cd68
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0x10]
call fcn.0041f06b
mov al, bl
pop esi
pop ebx
leave
ret