joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53f8b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push edi
lea eax, [ebp - 4]
push eax
mov edi, str.SoftwareNCH_SoftwarePicoPDFScheduler
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x53f8ea
lea eax, [ebp - 4]
push eax
push edi
push SysReAllocString
call esi
test eax, eax
jne 0x53f95b
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x53f952
mov edi, dword [ebp - 0xc]
cmp edi, esi
jbe 0x53f952
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [edi - 1]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x53f952
cmp word [ebp - 0x218], si
je 0x53f94f
cmp dword [ebp - 8], esi
jbe 0x53f94f
lea eax, [ebp - 0x218]
push eax
call fcn.0053f6a7
dec edi
jne 0x53f90e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret

Function at 0x54222a
Capabilities:
Encode data using xor
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and word [ebp - 0x20c], 0
push esi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 4], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
xor ecx, ecx
xor edi, edi
xor esi, esi
cmp word [ebp - 0x20c], cx
je 0x54228c
movzx eax, word [ebp - 0x20c]
movzx eax, ax
shl eax, cl
xor edx, edx
push 0x19
xor edi, eax
lea eax, [ecx + 6]
pop ecx
div ecx
movzx eax, word [ebp + esi*2 - 0x20a]
inc esi
test ax, ax
mov ecx, edx
jne 0x54226b
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x542634
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea ebx, [esi + 0xd]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 4], edi
je 0x54266c
mov al, byte [esi + 8]
test al, al
jne 0x542699
push 0x3e8
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
push dword [esi + 9]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x5426a6
push edi
push edi
mov byte [esi + 8], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp + 8]
mov dword [esi + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
leave
ret 4
Function at 0x542975
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x205c
call fcn.0060f180
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x58]
push 0
push eax
mov esi, ecx
call fcn.005fc0d0
mov dword [ebp - 0x58], edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
movzx eax, word [esi]
push 2
xor edx, edx
pop edi
lea ecx, [esi + 2]
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], dx
mov dword [ebx], edi
xor esi, esi
jmp 0x5429da
cmp edx, 0xfff
jae 0x5429df
mov word [ebp + edx*2 - 0x2058], ax
movzx eax, word [ecx]
inc edx
add ecx, edi
cmp ax, si
jne 0x5429c4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x10
push esi
push esi
push esi
lea eax, [ebp - 0x2058]
push eax
push esi
mov word [ebp + edx*2 - 0x2058], si
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x542a35
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x36ee80
push ecx
mov ecx, dword [ebp - 0x10]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
lea edx, [ebp + 8]
push edx
call dword [eax + 8]
mov eax, dword [eax]
push dword [ebp - 0x10]
mov dword [ebx], eax
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x542a3e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2054
call fcn.0060f180
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x54]
push 0
push eax
mov esi, ecx
call fcn.005fc0d0
mov dword [ebp - 0x54], edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
movzx eax, word [esi]
push 2
xor edx, edx
pop edi
lea ecx, [esi + 2]
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], dx
mov dword [ebx], edi
xor esi, esi
jmp 0x542aa3
cmp edx, 0xfff
jae 0x542aa8
mov word [ebp + edx*2 - 0x2054], ax
movzx eax, word [ecx]
inc edx
add ecx, edi
cmp ax, si
jne 0x542a8d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x10
push esi
push esi
push esi
lea eax, [ebp - 0x2054]
push eax
push esi
mov word [ebp + edx*2 - 0x2054], si
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x542b17
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x1388
push ecx
mov ecx, dword [ebp - 0x10]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
lea edx, [ebp + 8]
push edx
call dword [eax + 8]
mov eax, dword [eax]
cmp eax, edi
mov dword [ebx], eax
je 0x542b12
cmp eax, 1
je 0x542b12
test eax, eax
jne 0x542b12
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x543fc9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x494
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [esp + 0x90]
push eax
call fcn.00401d7a
push 7
pop ecx
push 0x631a7c
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x98]
push eax
mov esi, str.Installer.exe
lea edi, [esp + 0x80]
lea eax, [esp + 0x2a4]
rep movsd dword es:[edi], dword [esi]
call fcn.0053768f
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x298]
push eax
mov eax, dword [ebp + 0x10]
push dword [eax + 8]
lea eax, [esp + 0x18]
push esi
push eax
call fcn.004d17c6
xor edi, edi
inc edi
cmp dword [esp + 0x10], edi
je 0x5440e2
cmp dword [esp + 0x10], 2
jne 0x54408a
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
cmp word [eax], 0
je 0x544076
lea ecx, [esp + 0x298]
push ecx
push eax
push esi
lea eax, [esp + 0x20]
push eax
call fcn.004d17c6
mov eax, dword [eax]
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x5440e2
cmp eax, 2
jne 0x54408a
push str.The_installer_could_not_be_downloaded.
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov dword [ebx], 2
jmp 0x5440e4
push 0x44
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.005fc0d0
mov dword [esp + 0x60], edi
mov word [esp + 0x64], di
xor eax, eax
lea edi, [esp + 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
xor edi, edi
lea eax, [esp + 0x2c]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x2b8]
push eax
push edi
mov dword [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x5440e2
push str.The_installer_could_not_be_run.
jmp 0x54407b
mov dword [ebx], edi
lea ecx, [esp + 0x90]
call fcn.00537db1
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push eax
call fcn.00545907
test al, al
jne 0x544d28
xor al, al
leave
ret
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x544d59
push 0x10
push 0xfffe
push str.Install_Error
push str.To_install_software_you_must_be_logged_on_as_this_computers_Administrator._If_you_are_not_able_to_do_this__ask_your_computer_Administrator_to_log_in_and_run_the_setup_file_again.
push 0
mov ecx, str.Continue
call fcn.00559794
jmp 0x544d24
call fcn.00530bbc
test al, al
je 0x544d24
push 0xfffffffffffffffe
call fcn.00542634
mov al, 1
leave
ret
Function at 0x5452ea
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x108c
call fcn.0060f180
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x45c]
push eax
push edi
push edi
push 0x26
push edi
mov word [ebp - 0x45c], di
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x631a7c
push 0x631ac4
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x108c]
call fcn.0053768f
push str.NCH_Swift_Sound
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0xe84]
push eax
call fcn.00401f51
lea eax, [ebp - 0x664]
call fcn.005366fc
push str.NCH_SoftwareProgram_Files
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0xc7c]
push eax
call fcn.00401f51
push str.NCH_Swift_SoundProgram_Files
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0xa74]
push eax
call fcn.00401f51
xor ebx, ebx
cmp word [ebp - 0x108c], di
mov word [ebp - 0x86c], di
je 0x545407
lea eax, [ebp - 0x108c]
mov ecx, 0x631b08
lea esi, [ebp - 0x254]
call fcn.00401e87
jmp 0x5453e9
lea eax, [ebp - 0x254]
call fcn.00401ee5
test al, al
jne 0x5453de
mov eax, dword [ebp - 0x250]
shr eax, 4
test al, 1
je 0x5453de
mov ecx, str.Components
lea eax, [ebp - 0x224]
call fcn.0040106b
test eax, eax
jne 0x54540e
lea esi, [ebp - 0x254]
call fcn.00401ec4
cmp dword [ebp - 0x254], 0xffffffff
jne 0x5453ae
inc ebx
mov eax, ebx
imul eax, eax, 0x208
lea eax, [ebp + eax - 0x108c]
cmp word [eax], di
jne 0x54539c
xor al, al
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 0x254], 0xffffffff
je 0x545423
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
jmp 0x545409
Function at 0x545907
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc30
cmp word [0x6a9888], 0
je 0x54592c
push dword [ebp + 8]
mov eax, 0x6a9888
call fcn.00401050
jmp 0x545a45
push ebx
push esi
push edi
lea eax, [ebp - 0xa28]
push eax
call fcn.00545a4b
mov esi, 0x631a7c
push esi
mov ebx, 0x631ae0
push ebx
lea eax, [ebp - 0xa28]
push eax
mov edi, 0x6a9888
mov eax, edi
call fcn.0053768f
push dword [ebp + 8]
mov eax, edi
call fcn.00401050
push str.InstalledByAdmin
push str.Settings
call fcn.00531f86
lea eax, [ebp - 0x410]
call fcn.005366fc
push esi
push 0x631ac4
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x618]
call fcn.0053768f
push esi
push str.Program_Files
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x820]
call fcn.0053768f
push esi
push ebx
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0xc30]
call fcn.0053768f
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push edi
call ebx
push esi
push str.testfolder
push edi
lea eax, [ebp - 0x208]
call fcn.0053768f
push 0
lea eax, [ebp - 0x208]
push eax
call ebx
test eax, eax
je 0x545a0e
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 1
push str.InstalledByAdmin
push str.Settings
call fcn.004017b1
jmp 0x545a42
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x545a1e
cmp eax, 5
jne 0x545a42
push edi
lea eax, [ebp - 0xc30]
call fcn.00401050
mov ecx, edi
call fcn.00537bf5
push dword [ebp + 8]
mov eax, edi
call fcn.00401050
mov byte [0x6a9adb], 1
pop edi
pop esi
pop ebx
mov al, 1
leave
ret 4

Function at 0x545a4b
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
xor eax, eax
lea ecx, [ebp - 0x208]
push ecx
push eax
push eax
push 0x26
push eax
mov word [ebp - 0x208], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x631ac4
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.00401f51
push dword [ebp + 8]
call fcn.00401e3b
test al, al
jne 0x545a97
push dword [ebp + 8]
call fcn.00401e26
leave
ret 4

Function at 0x545d62
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
lea eax, [ebp - 0x208]
call fcn.0053680f
cmp word [ebp - 0x208], 0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, str..lnk
mov edi, 0x63b6c4
je 0x545db0
push ebx
push edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
call fcn.0053768f
lea eax, [ebp - 0x410]
push eax
call esi
lea eax, [ebp - 0x208]
call fcn.00536821
cmp word [ebp - 0x208], 0
je 0x545de2
push ebx
push edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
call fcn.0053768f
lea eax, [ebp - 0x410]
push eax
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5460b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push esi
mov esi, dword [ebp + 0x10]
push 0xd
push str.Applications_
push dword [ebp + 0xc]
xor ebx, ebx
mov word [esi], bx
call fcn.005f9a6d
add esp, 0xc
test eax, eax
jne 0x5460ff
push 0x631a7c
push ebx
push dword [ebp + 0xc]
mov eax, esi
push SysReAllocString
call fcn.00401162
cmp word [esi], bx
jne 0x54621b
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
push str.SoftwareRegisteredApplications
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x54621b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x428]
push eax
push ebx
push dword [ebp - 0x10]
mov esi, 0x104
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x546212
push edi
lea eax, [ebp - 0x220]
push eax
push str._sFileAssociations
mov eax, esi
lea edi, [ebp - 0x838]
call fcn.005383cd
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
push 1
push ebx
mov eax, edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5461cc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x630]
push eax
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
push dword [ebp - 0x14]
mov word [ebp - 0x630], bx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x630]
push eax
push dword [ebp + 0xc]
call fcn.00613e25
test eax, eax
pop ecx
pop ecx
je 0x546203
inc dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
push dword [ebp - 0x10]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x546157
jmp 0x546211
push dword [ebp + 0x10]
lea eax, [ebp - 0x428]
call fcn.00401050
pop edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
leave
ret 0xc
Function at 0x546221
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe40
push ebx
push esi
push edi
push dword [ebp + 8]
mov eax, 0x104
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_s
lea edi, [ebp - 0x418]
call fcn.005383cd
pop ecx
pop ecx
push 0x631a7c
mov esi, str.PicoPDF.BAK
push esi
mov eax, edi
push eax
mov ebx, SysReAllocString
push ebx
lea eax, [ebp - 0x210]
call fcn.00401162
push esi
mov eax, edi
push eax
push ebx
call fcn.004cb815
push dword [ebp + 8]
lea edi, [ebp - 0x620]
call fcn.00545e8a
lea ecx, [ebp - 0x210]
mov eax, edi
call fcn.0040106b
xor edi, edi
test eax, eax
jne 0x546298
mov word [ebp - 0x210], di
call fcn.004012d6
test al, al
je 0x5463ac
cmp word [ebp - 0x210], di
je 0x54634b
lea esi, [ebp - 1]
call fcn.004cc098
lea eax, [ebp - 8]
push eax
push str._n_vSN
push 1
push edi
push 0x6861a8
mov dword [ebp - 8], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [ebp - 8], edi
je 0x54633f
lea eax, [ebp - 0xc38]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call fcn.005460b8
cmp word [ebp - 0xc38], di
je 0x546332
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push edi
push dword [ebp + 8]
lea edx, [ebp - 0xc38]
push edx
push eax
call dword [ecx + 0x18]
cmp eax, edi
jne 0x546332
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x54631d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 1], 0
je 0x546416
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x546416
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x54633f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 1], 0
je 0x54634b
call dword [sym.imp.ole32.dll_CoUninitialize]
push str.UserChoice
lea eax, [ebp - 0x418]
push eax
push 0x631a90
mov eax, 0x104
lea edi, [ebp - 0x828]
call fcn.005383cd
add esp, 0xc
push 0x631a7c
mov esi, str.Progid
push esi
mov eax, edi
push eax
push ebx
lea eax, [ebp - 0xe40]
call fcn.00401162
lea ecx, [ebp - 0x620]
lea eax, [ebp - 0xe40]
call fcn.0040106b
test eax, eax
jne 0x5463a8
mov eax, edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor edi, edi
jmp 0x5463b1
mov esi, str.Progid
push 0x631a7c
push esi
lea eax, [ebp - 0x418]
push eax
push ebx
lea eax, [ebp - 0xa30]
call fcn.00401162
cmp word [ebp - 0xa30], di
je 0x546416
lea ecx, [ebp - 0x620]
lea eax, [ebp - 0xa30]
call fcn.0040106b
test eax, eax
jne 0x546416
cmp word [ebp - 0x210], di
jne 0x546401
push esi
lea eax, [ebp - 0x418]
push eax
push ebx
call fcn.004cb815
jmp 0x546416
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x418]
push eax
push ebx
call fcn.004011af
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x54641d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.005fc0d0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], str.runas
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0x4e20
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret 8
Function at 0x546a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push 0x631a7c
xor esi, esi
push esi
push dword [ebp + 8]
mov eax, ebx
push SysReAllocString
call fcn.00401162
cmp word [ebx], si
jne 0x546b28
push edi
push dword [ebp + 8]
mov eax, 0x104
push str._sOpenWithProgIds
lea edi, [ebp - 0x414]
call fcn.005383cd
pop ecx
pop ecx
lea eax, [ebp + 0xc]
push eax
mov eax, edi
push eax
push SysReAllocString
mov dword [ebp + 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x546ac2
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 4], 0x104
jmp 0x546aa6
cmp word [ebx], si
jne 0x546ab9
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push ebx
push esi
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x546aa1
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebx], si
jne 0x546b27
push dword [ebp + 8]
mov eax, 0x104
push str.softwareclasses_s
lea edi, [ebp - 0x20c]
call fcn.005383cd
pop ecx
pop ecx
push 0x631a7c
push esi
mov eax, edi
push eax
push SysReAllocString
mov eax, ebx
call fcn.00401162
cmp word [ebx], si
jne 0x546b18
push dword [ebp + 8]
mov edi, ebx
call fcn.00545e8a
push ebx
push esi
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call fcn.004011af
push ebx
push esi
push dword [ebp + 8]
push SysReAllocString
call fcn.004011af
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5470e0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc30
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov ebx, 0x30c
push dword [ebp + 0xc]
mov eax, ebx
push str._sShell_scommand
lea edi, [ebp - 0x618]
call fcn.005383cd
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 0xc
mov eax, edi
push eax
push SysReAllocString
call esi
mov eax, edi
push eax
push str.softwareclasses_s
mov eax, ebx
lea edi, [ebp - 0xc30]
call fcn.005383cd
pop ecx
pop ecx
mov eax, edi
push eax
push SysReAllocString
call esi
push dword [ebp + 0x10]
mov eax, ebx
push dword [ebp + 8]
lea edi, [ebp - 0x618]
push str.SystemFileAssociations_sShell_scommand
call fcn.005383cd
add esp, 0xc
mov eax, edi
push eax
push SysReAllocString
call esi
push dword [ebp + 0x10]
mov eax, ebx
push dword [ebp + 8]
push str.SoftwareClassesSystemFileAssociations_sShell_scommand
call fcn.005383cd
add esp, 0xc
mov eax, edi
push eax
push SysReAllocString
call esi
push dword [ebp + 0x10]
mov eax, ebx
push dword [ebp + 0xc]
push str._sShell_s
call fcn.005383cd
add esp, 0xc
mov eax, edi
push eax
push SysReAllocString
call esi
mov eax, edi
push eax
push str.softwareclasses_s
mov eax, ebx
lea edi, [ebp - 0xc30]
call fcn.005383cd
pop ecx
pop ecx
mov eax, edi
push eax
push SysReAllocString
call esi
push dword [ebp + 0x10]
mov eax, ebx
push dword [ebp + 8]
lea edi, [ebp - 0x618]
push str.SystemFileAssociations_sShell_s
call fcn.005383cd
add esp, 0xc
mov eax, edi
push eax
push SysReAllocString
call esi
push dword [ebp + 0x10]
mov eax, ebx
push dword [ebp + 8]
push str.SoftwareClassesSystemFileAssociations_sShell_s
call fcn.005383cd
add esp, 0xc
mov eax, edi
push eax
push SysReAllocString
call esi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x547eba
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push eax
call ebx
test eax, eax
je 0x547f62
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x547ef6
xor eax, eax
jmp 0x547f60
lea eax, [ebp - 0x234]
push eax
push esi
mov dword [ebp - 0x234], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x547f4b
lea eax, [ebp - 0x210]
push str.explorer.exe
push eax
call fcn.00613e25
test eax, eax
pop ecx
pop ecx
jne 0x547f3e
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x22c]
call ebx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
je 0x547f51
lea eax, [ebp - 0x234]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x547f0f
jmp 0x547f57
mov edi, dword [ebp - 0x22c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret