joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41224f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x47f200]
push ebx
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x412270
mov eax, dword [eax + 4]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x41228b
mov eax, dword [0x47f050]
cmp eax, esi
je 0x412283
mov eax, dword [eax + 4]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x41228b
mov eax, dword [0x47f268]
mov dword [ebp - 4], eax
push esi
push 0x40581a
push dword [ebp - 4]
push 0x12
push dword [0x47f26c]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], eax
call fcn.0041cf73
push str.___Internal_WaitExternal___
call fcn.0041e6cf
cmp eax, esi
je 0x4122c6
push eax
lea ecx, [ebp - 0x14]
call fcn.0041d0c0
jmp 0x4122d3
push 0x480144
lea ecx, [ebp - 0x14]
call fcn.0041d12e
push 1
lea ecx, [ebp - 0x14]
pop edi
push edi
push esi
push esi
push 0x42cd24
push str.__n_
call fcn.0041dda7
lea ecx, [ebp - 0x14]
call fcn.0041decc
push eax
push 0x422
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, 0x47f960
call fcn.0041decc
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x10
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00425890
push 0x44
lea eax, [ebp - 0x84]
pop ebx
push ebx
push esi
push eax
call fcn.00425890
add esp, 0x18
lea eax, [ebp - 0x24]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x58], edi
push eax
lea eax, [ebp - 0x84]
push eax
mov word [ebp - 0x54], di
push dword [ebp + 0xc]
push esi
push 0x4000000
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4123de
mov eax, dword [ebp - 0x24]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov dword [ebp + 0xc], eax
push 0xff
push 0xffffffffffffffff
lea eax, [ebp + 0xc]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
je 0x4123ce
cmp eax, edi
jne 0x4123ce
push esi
push esi
push esi
lea eax, [ebp - 0x40]
push esi
push eax
call ebx
test eax, eax
je 0x41237e
push esi
push esi
lea eax, [ebp - 0x40]
push esi
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x41237e
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x412399
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [ebp - 0x14]
call fcn.0041d0a9
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x412400
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push dword [esi + 0x34]
mov ecx, 0x47f7b8
mov dword [ebp - 4], edi
push dword [eax]
call fcn.0041decc
mov ebx, dword [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.0041dc73
test eax, eax
jge 0x41244d
push 0
push str.Couldnt_read_filename___skipping_file
push dword [edi + 8]
mov ecx, 0x47f0a8
call fcn.0041c44f
xor eax, eax
jmp 0x412578
mov edi, 0x47f0a8
push ebx
mov ecx, edi
call fcn.00417516
push ebx
mov ecx, edi
call fcn.0041b9e6
push 0x7fffffff
push ebx
mov ecx, edi
call fcn.0041c560
mov eax, dword [ebp + 0x14]
mov ecx, ebx
mov byte [eax], 1
mov eax, dword [esi + 0x34]
add dword [0x480300], eax
call fcn.0041decc
push eax
call fcn.0040ea5b
test al, al
pop ecx
jne 0x4124f6
lea ecx, [ebp - 0x10]
call fcn.0041cf73
mov ecx, ebx
call fcn.0041decc
push eax
mov ecx, 0x47ff94
call fcn.0041decc
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041d600
add esp, 0xc
mov ecx, 0x47f7f0
call fcn.0041decc
mov ecx, dword [ebp - 4]
push 4
push eax
mov esi, dword [ecx + 8]
lea ecx, [ebp - 0x10]
call fcn.0041decc
push eax
push esi
mov ecx, edi
call fcn.0041c473
cmp eax, 7
jne 0x4124e5
or esi, 0xffffffff
jmp 0x4124e7
xor esi, esi
lea ecx, [ebp - 0x10]
call fcn.0041d0a9
mov eax, esi
jmp 0x412578
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, ebx
call fcn.0041decc
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x412575
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.0041decc
push eax
call fcn.0040e38c
add esp, 0xc
add esi, 0x28
mov ecx, ebx
push 0
push esi
call fcn.0041decc
push eax
call fcn.0040e420
add esp, 0xc
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x412a47
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
push str..DLL
push dword [esp + 0x14]
call fcn.0041ee6f
mov edi, dword [esp + 0x1c]
pop ecx
pop ecx
mov esi, 0x47f3e0
push edi
mov ecx, esi
call fcn.0041daab
add edi, 4
mov ecx, esi
push edi
mov ebx, eax
call fcn.0041daab
test ebx, ebx
mov esi, eax
je 0x412ad8
test esi, esi
je 0x412ad8
push 1
pop eax
mov dword [0x48031c], eax
mov dword [0x47f380], eax
mov eax, dword [0x48038c]
test eax, eax
je 0x412a9f
push eax
call fcn.0042615e
pop ecx
push 4
call fcn.00426169
pop ecx
mov dword [0x48038c], eax
push esi
lea ecx, [esi + ebx]
push ebx
mov dword [eax], ecx
push dword [esp + 0x18]
mov ecx, 0x47f7b8
call fcn.0041decc
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
je 0x412ae0
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 0x412ada

Function at 0x412ae4
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, 0x47f0a8
call fcn.0041c604
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
cmp byte [0x4803cd], bl
sete al
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x413a33
Capabilities:
Inspect section memory permissions

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x413a40
mov al, 1
pop esi
ret
mov edx, dword [esi]
push 1
pop eax
test al, dl
jne 0x413ac7
mov ecx, dword [0x47f2dc]
test edx, 0x40000000
je 0x413a5b
cmp ecx, eax
je 0x413ac7
test edx, 0x20000000
je 0x413a68
cmp ecx, 2
je 0x413ac7
cmp ecx, eax
jne 0x413a90
mov ecx, dword [0x47f2d4]
cmp ecx, 0x5a
je 0x413a8b
cmp dword [0x47f2d0], 4
jne 0x413a8b
neg ecx
sbb ecx, ecx
and ecx, 2
inc ecx
inc ecx
jmp 0x413abf
push 8
pop ecx
jmp 0x413abf
mov ecx, dword [0x47f2d0]
cmp ecx, 4
ja 0x413a9f
push 0x10
jmp 0x413a8d
cmp ecx, 5
jne 0x413aba
mov ecx, dword [0x47f2d4]
test ecx, ecx
jne 0x413ab2
push 0x20
jmp 0x413a8d
cmp ecx, eax
jne 0x413aba
push 0x40
jmp 0x413a8d
mov ecx, 0x80
test ecx, edx
jne 0x413ac7
xor al, al
pop esi
ret
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x413ae2
shr edx, 0x1f
and dl, al
push edx
push 0
push dword [esi + 4]
push ecx
call fcn.00413684
add esp, 0x10
pop esi
ret
Function at 0x414c05
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7d08
call fcn.00426630
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 0x414cb7
push dword [ebp + 0xc]
call fcn.0040e368
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 0x414c67
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x414cb7
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.00415fa0
cmp dword [ebp + 8], esi
pop ecx
je 0x414c6f
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 0x415040
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
xor ebx, ebx
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4150e6
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.0041cfe3
cmp byte [ebp + 0xc], bl
je 0x4150c6
push ebx
push str.ctrl
lea ecx, [ebp - 0x18]
call fcn.0041d1e0
lea ecx, [ebp - 0x18]
call fcn.0041decc
push 0x47f910
push eax
mov ecx, 0x47f898
call fcn.00422fde
lea ecx, [ebp - 0x18]
call fcn.0041d0a9
pop ebx
leave
ret 8

Function at 0x4150eb
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push esi
xor esi, esi
cmp dword [0x47f7a0], esi
je 0x41521a
mov ecx, 0x47f7a0
call fcn.0041decc
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [0x47f7a0]
inc ecx
push ecx
push eax
call fcn.0041f005
add esp, 0x10
test al, al
je 0x41521a
cmp dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
jbe 0x415201
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 0x4151ef
push 0x47f0b8
lea ecx, [ebp - 0x1c]
call fcn.0041d047
push 0
push str.WININIT.INI
lea ecx, [ebp - 0x1c]
call fcn.0041d1e0
push esi
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.00425890
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00425890
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.0041decc
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.0041d0a9
add dword [ebp - 4], 2
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x415144
pop edi
pop ebx
push dword [ebp - 8]
call fcn.0042615e
mov ecx, 0x47f7a0
mov dword [esp], 0x42f1b8
call fcn.0041d0c0
pop esi
leave
ret
Function at 0x41553f
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [esp + 0x10]
mov edi, eax
cmp edi, 0xffffffff
je 0x415596
mov eax, dword [esi + 8]
lea edx, [esi + 0x10]
mov ecx, eax
and cl, 0x10
neg cl
sbb ecx, ecx
and al, 8
and ecx, edx
neg al
push ecx
lea ecx, [esi + 0x18]
sbb eax, eax
push 0
and eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esi + 8]
test cl, 2
je 0x4155ad
test cl, 4
jne 0x4155c7
mov ecx, dword [esi + 0xc]
and al, 0xdc
test cl, 4
je 0x4155b9
or al, 2
test cl, 8
je 0x4155c0
or al, 0x20
test cl, 0x10
je 0x4155c7
or al, 1
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
ret 8
Function at 0x415a1e
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.0041decc
push eax
call fcn.0040ea5b
test al, al
pop ecx
je 0x415b92
push edi
push 0x80
push 3
push edi
push edi
push 0xc0000000
mov ecx, ebx
call fcn.0041decc
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 0x415a87
cmp esi, 0x20
jne 0x415b92
cmp dword [0x47f28c], edi
je 0x415b04
push ebx
lea ecx, [ebp - 0xc]
call fcn.0041d047
push edi
push str..delete_on_reboot0
lea ecx, [ebp - 0xc]
call fcn.0041d1e0
push 1
pop esi
lea ecx, [ebp - 0xc]
call fcn.0041decc
push eax
call fcn.0040ea5b
test al, al
pop ecx
je 0x415ae0
mov eax, dword [ebp - 0xc]
push 1
dec eax
lea ecx, [ebp - 0xc]
push eax
call fcn.0041d542
push esi
lea eax, [ebp - 0xc]
push 0x42d044
push eax
call fcn.0041d600
add esp, 0xc
inc esi
jmp 0x415aa9
push edi
lea ecx, [ebp - 0xc]
call fcn.0041decc
push eax
mov ecx, ebx
call fcn.0041decc
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x415b75
lea ecx, [ebp - 0xc]
call fcn.0041d0a9
test byte [0x47f282], 0x40
jne 0x415b9c
lea ecx, [ebp - 0x1c]
call fcn.0041cf73
mov ecx, ebx
call fcn.0041decc
push eax
mov ecx, 0x47ff40
call fcn.0041decc
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041d600
add esp, 0xc
mov ecx, 0x47f7f0
call fcn.0041decc
mov ecx, dword [ebp - 0x10]
push 5
push eax
mov esi, dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.0041decc
push eax
push esi
mov ecx, 0x47f0a8
call fcn.0041c473
cmp eax, 4
lea ecx, [ebp - 0x1c]
jne 0x415bf3
call fcn.0041d0a9
jmp 0x415a32
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.0041d12e
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [eax], 2
call fcn.0041d0a9
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [ebp - 0x120]
push str..tmp
push eax
call fcn.0041ee6f
pop ecx
mov esi, 0x47f7a0
pop ecx
push ebx
mov ecx, esi
call fcn.0041d25e
push edi
mov ecx, esi
call fcn.0041d191
lea eax, [ebp - 0x120]
push edi
push eax
mov ecx, esi
call fcn.0041d1e0
push edi
mov ecx, esi
call fcn.0041d191
lea eax, [ebp - 0x120]
mov ecx, ebx
push eax
call fcn.0041d0c0
mov ecx, dword [ebp + 0xc]
push 1
pop eax
mov dword [ecx], eax
jmp 0x415b95
call fcn.0041d0a9
xor eax, eax
jmp 0x415b95
Function at 0x415e78
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.0041cfe3
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
dec eax
push eax
call fcn.0041da75
cmp al, 0x5c
je 0x415ead
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0041d191
lea ecx, [ebp - 0xc]
call fcn.0041cf73
push 0x42f1b8
lea ecx, [ebp - 0xc]
call fcn.0041d0c0
push esi
lea ecx, [ebp - 0x18]
call fcn.0041decc
push eax
lea eax, [ebp - 0xc]
push str._s_d.tmp
push eax
call fcn.0041d600
add esp, 0x10
lea ecx, [ebp - 0xc]
inc esi
call fcn.0041decc
push eax
call fcn.0040ea5b
test al, al
pop ecx
jne 0x415eb5
xor esi, esi
lea ecx, [ebp - 0xc]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
call fcn.0041decc
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x415f73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x415f89
lea ecx, [ebp - 0x24]
call fcn.0041cf73
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.0041d600
add esp, 0xc
lea ecx, [ebp - 0x24]
push esi
call fcn.0041decc
push eax
mov ecx, 0x47f0a8
push dword [0x47f268]
call fcn.0041c44f
lea ecx, [ebp - 0x24]
call fcn.0041d0a9
lea ecx, [ebp - 0xc]
call fcn.0041d0a9
lea ecx, [ebp - 0x18]
call fcn.0041d0a9
xor al, al
jmp 0x415f9b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xc]
call fcn.0041decc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0xc]
call fcn.0041d0a9
lea ecx, [ebp - 0x18]
call fcn.0041d0a9
mov al, 1
pop esi
leave
ret 4
Function at 0x416903
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 [0x47f67c], esi
jne 0x416921
cmp dword [0x47f688], esi
je 0x4169a6
test byte [0x47f27c], 0x40
je 0x416933
mov ecx, ebx
call fcn.0041c7c2
jmp 0x416972
lea eax, [ebp - 4]
mov ecx, 0x47f67c
push eax
push 0x20019
push esi
call fcn.0041decc
push eax
push dword [0x47f678]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41699f
cmp dword [0x47f688], esi
jne 0x416976
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push esi
mov ecx, ebx
call fcn.004165f3
pop esi
pop ebx
leave
ret
push edi
push esi
push esi
push esi
push esi
mov ecx, 0x47f688
call fcn.0041decc
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 0x416969
mov ecx, ebx
call fcn.00416db8
mov al, 1
jmp 0x416972
Function at 0x41a263
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 0x47f2cc
mov dword [0x47f740], esi
mov dword [0x47f744], esi
mov dword [0x47f74c], 2
mov dword [0x47f580], esi
mov byte [0x47f634], 1
mov dword [0x47f26c], eax
mov dword [0x47f274], esi
mov dword [0x47f270], esi
mov dword [0x47f268], esi
mov dword [0x47f2cc], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x38
push esi
push 0x47f388
mov dword [0x47f95c], esi
call fcn.00425890
push 0x4c
push esi
push 0x47f208
call fcn.00425890
push 0x28
push esi
push 0x47f870
call fcn.00425890
push 0x38
push esi
push 0x47f3f0
call fcn.00425890
mov edi, 0x104
mov dword [0x47f404], 0x4255f6
push edi
mov dword [0x47f3f0], 0x4255ca
mov dword [0x47f3f4], 0x425622
mov dword [0x47f3fc], 0x4256a3
mov dword [0x47f3f8], 0x425737
mov dword [0x47f400], 0x4257d7
mov dword [0x47f41c], 0x41eaa0
mov dword [0x47f424], 0x41e9a3
mov dword [0x47f418], 0x41e6cf
mov dword [0x47f420], 0x41e373
mov dword [0x47f414], 0x47f280
call fcn.00426169
add esp, 0x34
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x41a392
mov ecx, 0x47fa24
call fcn.0041decc
push eax
call fcn.0041eaf1
pop ecx
push edi
push esi
push dword [ebp + 8]
call fcn.00425890
add esp, 0xc
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push dword [ebp + 8]
mov ecx, 0x47f7b8
call fcn.0041d0c0
push dword [ebp + 8]
call fcn.0042615e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0xc]
call fcn.0041cfe3
lea ecx, [ebp - 0xc]
call fcn.0041df16
push 1
push esi
push str._SILENT
lea ecx, [ebp - 0xc]
call fcn.0041d869
or edi, 0xffffffff
cmp eax, edi
je 0x41a3f5
mov byte [0x48037c], 1
push 1
push esi
push str._REVERT
lea ecx, [ebp - 0xc]
call fcn.0041d869
cmp eax, edi
je 0x41a410
mov byte [0x4803cd], 1
push ebx
lea eax, [ebp - 0xa0]
push esi
push eax
mov dword [0x47f7c8], edi
mov dword [0x47f7cc], edi
mov dword [0x47f7d0], edi
mov dword [0x47f7d4], edi
mov dword [0x47f7d8], edi
mov dword [0x47f7dc], edi
mov dword [0x47f7e0], edi
mov dword [0x47f7e4], edi
call fcn.00425890
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 0x41a479
mov dword [0x47f28c], 1
jmp 0x41a498
mov eax, dword [ebp - 0x94]
mov dword [0x47f28c], esi
and eax, 0xffff
cmp eax, 0x3e8
ja 0x41a498
mov byte [0x47f389], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str._InstallerCommandLine_
call fcn.0041e373
lea ecx, [ebp - 0xc]
call fcn.0041d0a9
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41ad65
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
mov esi, 0x47f3e0
push edi
push 0x2c
mov ecx, esi
call fcn.0041daab
push 0x28
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.0041daab
xor edi, edi
mov dword [ebp - 0x18], eax
cmp eax, edi
mov dword [ebp - 8], edi
jle 0x41aed2
mov esi, 0x47f660
mov ebx, 0x42cc5c
lea ecx, [ebp - 0x14]
call fcn.0041cf73
push 4
mov ecx, 0x47f7b8
push dword [ebp - 4]
call fcn.0041decc
push eax
lea ecx, [ebp - 0x14]
call fcn.0041dc73
add dword [ebp - 4], 4
lea eax, [ebp - 0x11c]
push str..TTF
push eax
call fcn.0041ee6f
pop ecx
pop ecx
push 1
pop eax
mov dword [0x48031c], eax
mov dword [0x47f380], eax
mov eax, dword [0x48038c]
cmp eax, edi
je 0x41adf9
push eax
call fcn.0042615e
pop ecx
push 4
call fcn.00426169
pop ecx
mov dword [0x48038c], eax
push edi
lea ecx, [ebp - 0x14]
call fcn.0041daab
add eax, dword [ebp - 4]
mov ecx, dword [0x48038c]
push edi
mov dword [ecx], eax
lea ecx, [ebp - 0x14]
call fcn.0041daab
push eax
lea eax, [ebp - 0x11c]
push dword [ebp - 4]
mov ecx, 0x47f7b8
push eax
call fcn.0041decc
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
jne 0x41aed9
push edi
lea ecx, [ebp - 0x14]
call fcn.0041daab
add dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push str..FOT
push eax
call fcn.0041ee6f
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.0041d1e0
push edi
push ebx
mov ecx, esi
call fcn.0041d1e0
lea eax, [ebp - 0x11c]
push edi
push eax
mov ecx, esi
call fcn.0041d1e0
push edi
push ebx
mov ecx, esi
call fcn.0041d1e0
lea ecx, [ebp - 0x14]
call fcn.0041d0a9
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jl 0x41ada5
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
call fcn.0041d0a9
xor al, al
jmp 0x41aed4

Function at 0x41aef2
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x47f44c
lea ecx, [ebp - 0xc]
call fcn.0041d047
xor ebx, ebx
lea ecx, [ebp - 0xc]
push ebx
push str._inst_m
call fcn.0041d1e0
lea ecx, [ebp - 0xc]
call fcn.0041decc
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41af6f
mov ecx, 0x47f960
call fcn.0041decc
push eax
push str.AstrumInstaller
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
cmp esi, ebx
je 0x41af6d
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x41af66
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.0041d0a9
mov al, bl
pop esi
pop ebx
leave
ret