joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4139c0
Capabilities:
Inspect section memory permissions

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x4139cd
mov al, 1
pop esi
ret
mov edx, dword [esi]
push 1
pop eax
test al, dl
jne 0x413a54
mov ecx, dword [0x47f2ec]
test edx, 0x40000000
je 0x4139e8
cmp ecx, eax
je 0x413a54
test edx, 0x20000000
je 0x4139f5
cmp ecx, 2
je 0x413a54
cmp ecx, eax
jne 0x413a1d
mov ecx, dword [0x47f2e4]
cmp ecx, 0x5a
je 0x413a18
cmp dword [0x47f2e0], 4
jne 0x413a18
neg ecx
sbb ecx, ecx
and ecx, 2
inc ecx
inc ecx
jmp 0x413a4c
push 8
pop ecx
jmp 0x413a4c
mov ecx, dword [0x47f2e0]
cmp ecx, 4
ja 0x413a2c
push 0x10
jmp 0x413a1a
cmp ecx, 5
jne 0x413a47
mov ecx, dword [0x47f2e4]
test ecx, ecx
jne 0x413a3f
push 0x20
jmp 0x413a1a
cmp ecx, eax
jne 0x413a47
push 0x40
jmp 0x413a1a
mov ecx, 0x80
test ecx, edx
jne 0x413a54
xor al, al
pop esi
ret
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x413a6f
shr edx, 0x1f
and dl, al
push edx
push 0
push dword [esi + 4]
push ecx
call fcn.00413611
add esp, 0x10
pop esi
ret
Function at 0x414b91
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7d08
call fcn.004265c0
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 0x414c43
push dword [ebp + 0xc]
call fcn.0040e321
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 0x414bf3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x414c43
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.00415f4b
cmp dword [ebp + 8], esi
pop ecx
je 0x414bfb
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 0x414fcc
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 0x415072
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.0041cf98
cmp byte [ebp + 0xc], bl
je 0x415052
push ebx
push str.ctrl
lea ecx, [ebp - 0x18]
call fcn.0041d195
lea ecx, [ebp - 0x18]
call fcn.0041de81
push 0x47f920
push eax
mov ecx, 0x47f8a8
call fcn.00422f7e
lea ecx, [ebp - 0x18]
call fcn.0041d05e
pop ebx
leave
ret 8

Function at 0x415077
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push esi
xor esi, esi
cmp dword [0x47f7b0], esi
je 0x4151a6
mov ecx, 0x47f7b0
call fcn.0041de81
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [0x47f7b0]
inc ecx
push ecx
push eax
call fcn.0041ef9f
add esp, 0x10
test al, al
je 0x4151a6
cmp dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
jbe 0x41518d
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 0x41517b
push 0x47f0c8
lea ecx, [ebp - 0x1c]
call fcn.0041cffc
push 0
push str.WININIT.INI
lea ecx, [ebp - 0x1c]
call fcn.0041d195
push esi
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.00425820
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00425820
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.0041de81
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.0041d05e
add dword [ebp - 4], 2
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x4150d0
pop edi
pop ebx
push dword [ebp - 8]
call fcn.004260ee
mov ecx, 0x47f7b0
mov dword [esp], 0x42f1c8
call fcn.0041d075
pop esi
leave
ret
Function at 0x4154cb
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 0x415522
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 0x415539
test cl, 4
jne 0x415553
mov ecx, dword [esi + 0xc]
and al, 0xdc
test cl, 4
je 0x415545
or al, 2
test cl, 8
je 0x41554c
or al, 0x20
test cl, 0x10
je 0x415553
or al, 1
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
ret 8
Function at 0x4159c9
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.0041de81
push eax
call fcn.0040ea14
test al, al
pop ecx
je 0x415b3d
push edi
push 0x80
push 3
push edi
push edi
push 0xc0000000
mov ecx, ebx
call fcn.0041de81
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 0x415a32
cmp esi, 0x20
jne 0x415b3d
cmp dword [0x47f29c], edi
je 0x415aaf
push ebx
lea ecx, [ebp - 0xc]
call fcn.0041cffc
push edi
push str..delete_on_reboot0
lea ecx, [ebp - 0xc]
call fcn.0041d195
push 1
pop esi
lea ecx, [ebp - 0xc]
call fcn.0041de81
push eax
call fcn.0040ea14
test al, al
pop ecx
je 0x415a8b
mov eax, dword [ebp - 0xc]
push 1
dec eax
lea ecx, [ebp - 0xc]
push eax
call fcn.0041d4f7
push esi
lea eax, [ebp - 0xc]
push 0x42d044
push eax
call fcn.0041d5b5
add esp, 0xc
inc esi
jmp 0x415a54
push edi
lea ecx, [ebp - 0xc]
call fcn.0041de81
push eax
mov ecx, ebx
call fcn.0041de81
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x415b20
lea ecx, [ebp - 0xc]
call fcn.0041d05e
test byte [0x47f292], 0x40
jne 0x415b47
lea ecx, [ebp - 0x1c]
call fcn.0041cf28
mov ecx, ebx
call fcn.0041de81
push eax
mov ecx, 0x47ff50
call fcn.0041de81
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041d5b5
add esp, 0xc
mov ecx, 0x47f800
call fcn.0041de81
mov ecx, dword [ebp - 0x10]
push 5
push eax
mov esi, dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.0041de81
push eax
push esi
mov ecx, 0x47f0b8
call fcn.0041c428
cmp eax, 4
lea ecx, [ebp - 0x1c]
jne 0x415b9e
call fcn.0041d05e
jmp 0x4159dd
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.0041d0e3
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [eax], 2
call fcn.0041d05e
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [ebp - 0x120]
push str..tmp
push eax
call fcn.0041ee09
pop ecx
mov esi, 0x47f7b0
pop ecx
push ebx
mov ecx, esi
call fcn.0041d213
push edi
mov ecx, esi
call fcn.0041d146
lea eax, [ebp - 0x120]
push edi
push eax
mov ecx, esi
call fcn.0041d195
push edi
mov ecx, esi
call fcn.0041d146
lea eax, [ebp - 0x120]
mov ecx, ebx
push eax
call fcn.0041d075
mov ecx, dword [ebp + 0xc]
push 1
pop eax
mov dword [ecx], eax
jmp 0x415b40
call fcn.0041d05e
xor eax, eax
jmp 0x415b40
Function at 0x415e23
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.0041cf98
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
dec eax
push eax
call fcn.0041da2a
cmp al, 0x5c
je 0x415e58
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0041d146
lea ecx, [ebp - 0xc]
call fcn.0041cf28
push 0x42f1c8
lea ecx, [ebp - 0xc]
call fcn.0041d075
push esi
lea ecx, [ebp - 0x18]
call fcn.0041de81
push eax
lea eax, [ebp - 0xc]
push str._s_d.tmp
push eax
call fcn.0041d5b5
add esp, 0x10
lea ecx, [ebp - 0xc]
inc esi
call fcn.0041de81
push eax
call fcn.0040ea14
test al, al
pop ecx
jne 0x415e60
xor esi, esi
lea ecx, [ebp - 0xc]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
call fcn.0041de81
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x415f1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x415f34
lea ecx, [ebp - 0x24]
call fcn.0041cf28
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.0041d5b5
add esp, 0xc
lea ecx, [ebp - 0x24]
push esi
call fcn.0041de81
push eax
mov ecx, 0x47f0b8
push dword [0x47f278]
call fcn.0041c404
lea ecx, [ebp - 0x24]
call fcn.0041d05e
lea ecx, [ebp - 0xc]
call fcn.0041d05e
lea ecx, [ebp - 0x18]
call fcn.0041d05e
xor al, al
jmp 0x415f46
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xc]
call fcn.0041de81
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0xc]
call fcn.0041d05e
lea ecx, [ebp - 0x18]
call fcn.0041d05e
mov al, 1
pop esi
leave
ret 4
Function at 0x4168ae
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 [0x47f68c], esi
jne 0x4168cc
cmp dword [0x47f698], esi
je 0x416951
test byte [0x47f28c], 0x40
je 0x4168de
mov ecx, ebx
call fcn.0041c777
jmp 0x41691d
lea eax, [ebp - 4]
mov ecx, 0x47f68c
push eax
push 0x20019
push esi
call fcn.0041de81
push eax
push dword [0x47f688]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41694a
cmp dword [0x47f698], esi
jne 0x416921
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push esi
mov ecx, ebx
call fcn.0041659e
pop esi
pop ebx
leave
ret
push edi
push esi
push esi
push esi
push esi
mov ecx, 0x47f698
call fcn.0041de81
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 0x416914
mov ecx, ebx
call fcn.00416d63
mov al, 1
jmp 0x41691d
Function at 0x41a21b
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 0x47f2dc
mov dword [0x47f750], esi
mov dword [0x47f754], esi
mov dword [0x47f75c], 2
mov dword [0x47f590], esi
mov byte [0x47f644], 1
mov dword [0x47f27c], eax
mov dword [0x47f284], esi
mov dword [0x47f280], esi
mov dword [0x47f278], esi
mov dword [0x47f2dc], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x38
push esi
push 0x47f398
mov dword [0x47f96c], esi
call fcn.00425820
push 0x4c
push esi
push 0x47f218
call fcn.00425820
push 0x28
push esi
push 0x47f880
call fcn.00425820
push 0x38
push esi
push 0x47f400
call fcn.00425820
mov edi, 0x104
mov dword [0x47f414], 0x425589
push edi
mov dword [0x47f400], 0x42555d
mov dword [0x47f404], 0x4255b5
mov dword [0x47f40c], 0x425636
mov dword [0x47f408], 0x4256ca
mov dword [0x47f410], 0x42576a
mov dword [0x47f42c], 0x41ea3a
mov dword [0x47f434], 0x41e93d
mov dword [0x47f428], 0x41e684
mov dword [0x47f430], 0x41e328
mov dword [0x47f424], 0x47f290
call fcn.004260f9
add esp, 0x34
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x41a34a
mov ecx, 0x47fa34
call fcn.0041de81
push eax
call fcn.0041ea8b
pop ecx
push edi
push esi
push dword [ebp + 8]
call fcn.00425820
add esp, 0xc
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push dword [ebp + 8]
mov ecx, 0x47f7c8
call fcn.0041d075
push dword [ebp + 8]
call fcn.004260ee
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0xc]
call fcn.0041cf98
lea ecx, [ebp - 0xc]
call fcn.0041decb
push 1
push esi
push str._SILENT
lea ecx, [ebp - 0xc]
call fcn.0041d81e
or edi, 0xffffffff
cmp eax, edi
je 0x41a3ad
mov byte [0x48038c], 1
push 1
push esi
push str._REVERT
lea ecx, [ebp - 0xc]
call fcn.0041d81e
cmp eax, edi
je 0x41a3c8
mov byte [0x4803dd], 1
push ebx
lea eax, [ebp - 0xa0]
push esi
push eax
mov dword [0x47f7d8], edi
mov dword [0x47f7dc], edi
mov dword [0x47f7e0], edi
mov dword [0x47f7e4], edi
mov dword [0x47f7e8], edi
mov dword [0x47f7ec], edi
mov dword [0x47f7f0], edi
mov dword [0x47f7f4], edi
call fcn.00425820
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 0x41a431
mov dword [0x47f29c], 1
jmp 0x41a450
mov eax, dword [ebp - 0x94]
mov dword [0x47f29c], esi
and eax, 0xffff
cmp eax, 0x3e8
ja 0x41a450
mov byte [0x47f399], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str._InstallerCommandLine_
call fcn.0041e328
lea ecx, [ebp - 0xc]
call fcn.0041d05e
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41ad1a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
mov esi, 0x47f3f0
push edi
push 0x2c
mov ecx, esi
call fcn.0041da60
push 0x28
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.0041da60
xor edi, edi
mov dword [ebp - 0x18], eax
cmp eax, edi
mov dword [ebp - 8], edi
jle 0x41ae87
mov esi, 0x47f670
mov ebx, 0x42cc5c
lea ecx, [ebp - 0x14]
call fcn.0041cf28
push 4
mov ecx, 0x47f7c8
push dword [ebp - 4]
call fcn.0041de81
push eax
lea ecx, [ebp - 0x14]
call fcn.0041dc28
add dword [ebp - 4], 4
lea eax, [ebp - 0x11c]
push str..TTF
push eax
call fcn.0041ee09
pop ecx
pop ecx
push 1
pop eax
mov dword [0x48032c], eax
mov dword [0x47f390], eax
mov eax, dword [0x48039c]
cmp eax, edi
je 0x41adae
push eax
call fcn.004260ee
pop ecx
push 4
call fcn.004260f9
pop ecx
mov dword [0x48039c], eax
push edi
lea ecx, [ebp - 0x14]
call fcn.0041da60
add eax, dword [ebp - 4]
mov ecx, dword [0x48039c]
push edi
mov dword [ecx], eax
lea ecx, [ebp - 0x14]
call fcn.0041da60
push eax
lea eax, [ebp - 0x11c]
push dword [ebp - 4]
mov ecx, 0x47f7c8
push eax
call fcn.0041de81
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
jne 0x41ae8e
push edi
lea ecx, [ebp - 0x14]
call fcn.0041da60
add dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push str..FOT
push eax
call fcn.0041ee09
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.0041d195
push edi
push ebx
mov ecx, esi
call fcn.0041d195
lea eax, [ebp - 0x11c]
push edi
push eax
mov ecx, esi
call fcn.0041d195
push edi
push ebx
mov ecx, esi
call fcn.0041d195
lea ecx, [ebp - 0x14]
call fcn.0041d05e
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jl 0x41ad5a
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.0041d05e
xor al, al
jmp 0x41ae89

Function at 0x41aea7
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x47f45c
lea ecx, [ebp - 0xc]
call fcn.0041cffc
xor ebx, ebx
lea ecx, [ebp - 0xc]
push ebx
push str._inst_m
call fcn.0041d195
lea ecx, [ebp - 0xc]
call fcn.0041de81
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41af24
mov ecx, 0x47f970
call fcn.0041de81
push eax
push str.AstrumInstaller
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
cmp esi, ebx
je 0x41af22
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x41af1b
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.0041d05e
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x41afe9
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 [0x47f718], ebx
push esi
je 0x41b06b
lea eax, [ebp - 4]
mov ecx, 0x47f68c
push eax
push 0x20019
push ebx
mov dword [ebp - 4], ebx
call fcn.0041de81
push eax
push dword [0x47f688]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41b06b
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 0x41b072
xor al, al
jmp 0x41b0fe
lea eax, [ebp - 0x1a0]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041cf98
push ebx
lea ecx, [ebp - 0x10]
call fcn.0041da2a
cmp al, 0x22
je 0x41b0a3
push ebx
push 0x22
lea ecx, [ebp - 0x10]
call fcn.0041db64
push 0x22
lea ecx, [ebp - 0x10]
call fcn.0041d146
push 0x44
lea eax, [ebp - 0x68]
pop esi
push esi
push ebx
push eax
call fcn.00425820
push 0x10
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 0x68], esi
call fcn.00425820
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.0041de81
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x41b0f4
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0x10]
call fcn.0041d05e
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x41c1f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x47f714], edi
mov esi, ecx
mov ebx, 0x42cc78
je 0x41c270
and byte [ebp - 0x110], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add esi, 0x124
lea eax, [ebp - 0x110]
push eax
mov ecx, esi
call fcn.0041d075
mov eax, dword [esi]
mov ecx, esi
dec eax
push eax
call fcn.0041da2a
cmp al, 0x5c
jne 0x41c29e
mov eax, dword [esi]
push 1
dec eax
mov ecx, esi
push eax
call fcn.0041d4f7
jmp 0x41c29e
add esi, 0x124
push 0x47f7c8
mov ecx, esi
call fcn.0041d0e3
push 1
push edi
push ebx
mov ecx, esi
call fcn.0041d929
push eax
push edi
mov ecx, esi
call fcn.0041ddf8
push eax
mov ecx, esi
call fcn.0041d0e3
cmp dword [0x47f714], 0
je 0x41c33c
and byte [ebp - 0x110], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x110]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x110]
lea ecx, [ebp - 0xc]
push eax
call fcn.0041cf98
push 1
push esi
push ebx
lea ecx, [ebp - 0xc]
call fcn.0041d929
cmp eax, 0xffffffff
je 0x41c334
mov ecx, dword [ebp - 0xc]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.0041d4f7
push 1
push esi
push ebx
lea ecx, [ebp - 0xc]
call fcn.0041d929
cmp eax, 0xffffffff
je 0x41c334
mov ecx, dword [ebp - 0xc]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.0041d4f7
lea eax, [ebp - 0xc]
mov ecx, 0x47f728
push eax
call fcn.0041d0e3
lea ecx, [ebp - 0xc]
jmp 0x41c3fa
and byte [ebp - 0x110], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [ebp - 0x110], 0
je 0x41c3ff
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x111], 0x5c
je 0x41c397
lea eax, [ebp - 0x110]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea ecx, [ebp - 0xc]
and esi, 0x7fffffff
call fcn.0041cf28
push 0x42f1c8
lea ecx, [ebp - 0xc]
call fcn.0041d075
mov eax, esi
inc esi
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push str._sinst_d
push eax
call fcn.0041d5b5
add esp, 0x10
lea ecx, [ebp - 0xc]
call fcn.0041de81
push eax
call fcn.0040ea14
test al, al
pop ecx
jne 0x41c3ad
lea eax, [ebp - 0xc]
mov ecx, 0x47f728
push eax
call fcn.0041d0e3
lea ecx, [ebp - 0xc]
call fcn.0041d05e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c5b9
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea esi, [ecx + 0x158]
xor ebx, ebx
push edi
mov ecx, dword [esi]
cmp ecx, ebx
je 0x41c5d6
push ebx
call fcn.00407c04
mov dword [esi], ebx
push dword [0x47f284]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [0x47f870], ebx
je 0x41c619
cmp byte [0x480399], 0
je 0x41c5fd
push ebx
call dword [0x47f814]
pop ecx
cmp byte [0x480398], 0
je 0x41c60f
push 1
call dword [0x47f814]
pop ecx
mov ecx, 0x47f810
call fcn.0041f91b
mov ecx, 0x47f3d0
call fcn.0041ce90
cmp byte [ebp + 8], 0
je 0x41c63f
mov eax, dword [0x48037c]
cmp eax, ebx
je 0x41c63f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x48037c], ebx
cmp dword [0x47f884], ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp + 8], ebx
jle 0x41c678
xor edi, edi
mov eax, dword [0x47f880]
cmp dword [edi + eax], ebx
lea ecx, [edi + eax]
jbe 0x41c667
call fcn.0041de81
push eax
call esi
inc dword [ebp + 8]
add edi, 0xc
mov eax, dword [ebp + 8]
cmp eax, dword [0x47f884]
jl 0x41c652
cmp dword [0x47f62c], ebx
mov dword [ebp + 8], ebx
mov edi, 0x47f620
jle 0x41c6c2
push dword [ebp + 8]
mov ecx, edi
call fcn.0041fafa
mov ebx, eax
lea ecx, [ebx + 4]
call fcn.0041de81
push eax
call esi
test ebx, ebx
je 0x41c6b2
lea ecx, [ebx + 4]
call fcn.0041d05e
push ebx
call fcn.004260ee
pop ecx
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [0x47f62c]
jl 0x41c688
xor ebx, ebx
mov ecx, edi
call fcn.0041fbbb
lea ecx, [ebp - 0x10]
call fcn.0041cf28
mov dword [ebp - 4], ebx
push ebx
mov edi, 0x47f670
mov ecx, edi
call fcn.0041db35
test al, al
je 0x41c719
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
inc ebx
call fcn.0041da92
test bl, 1
je 0x41c709
lea ecx, [ebp - 0x10]
call fcn.0041de81
push eax
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
lea ecx, [ebp - 0x10]
call fcn.0041de81
push eax
call esi
push dword [ebp - 4]
jmp 0x41c6da
push 0x42f1c8
mov ecx, edi
call fcn.0041d075
mov ecx, 0x47f09c
call fcn.0041de81
push eax
call esi
mov ecx, 0x47f0a8
call fcn.0041de81
push eax
call esi
mov ecx, 0x47f090
call fcn.0041de81
push eax
call esi
mov ecx, 0x47f8a8
call fcn.0041de81
push eax
call esi
push dword [0x47f280]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [ebp - 0x10]
call fcn.0041d05e
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4