joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406eb0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x42856d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x42a4cc
lea ecx, [esi + 0x118]
mov dword [esp + 0x10], 0x1a
call fcn.0041ef53
lea ecx, [esi + 0x104]
mov byte [esp + 0x10], 0x19
call fcn.0041e72a
lea ecx, [esi + 0x100]
mov byte [esp + 0x10], 0x18
call fcn.0041ef53
lea ecx, [esi + 0xfc]
mov byte [esp + 0x10], 0x17
call fcn.0041ef53
lea ecx, [esi + 0xf8]
mov byte [esp + 0x10], 0x16
call fcn.0041ef53
lea ecx, [esi + 0xf4]
mov byte [esp + 0x10], 0x15
call fcn.0041ef53
lea ecx, [esi + 0xf0]
mov byte [esp + 0x10], 0x14
call fcn.0041ef53
lea ecx, [esi + 0xec]
mov byte [esp + 0x10], 0x13
call fcn.0041ef53
lea ecx, [esi + 0xd8]
mov byte [esp + 0x10], 0x12
call fcn.0041e72a
lea ecx, [esi + 0xc4]
mov byte [esp + 0x10], 0x11
call fcn.0041e72a
lea ecx, [esi + 0xb0]
mov byte [esp + 0x10], 0x10
call fcn.0041e72a
lea ecx, [esi + 0x9c]
mov byte [esp + 0x10], 0xf
call fcn.0041e72a
lea ecx, [esi + 0x88]
mov byte [esp + 0x10], 0xe
call fcn.0041e72a
lea ecx, [esi + 0x74]
mov byte [esp + 0x10], 0xd
call fcn.0041e72a
lea ecx, [esi + 0x60]
mov byte [esp + 0x10], 0xc
call fcn.0041e72a
lea ecx, [esi + 0x4c]
mov byte [esp + 0x10], 0xb
call fcn.0041e72a
mov byte [esp + 0x10], 0xa
lea ecx, [esi + 0x40]
call fcn.0041ef53
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 9
call fcn.0041ef53
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 8
call fcn.0041ef53
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 7
call fcn.0041ef53
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 6
call fcn.0041ef53
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 5
call fcn.0041ef53
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 4
call fcn.0041ef53
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 3
call fcn.0041ef53
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 2
call fcn.0041ef53
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call fcn.0041ef53
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call fcn.0041ef53
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.0041ef53
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x407b70
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x8c0
push esi
push edi
push 2
lea eax, [esp + 0xcc]
push 0x400
push eax
mov dword [esp + 0x14], 0x64
mov dword [esp + 0x18], 0x50
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x7c]
push edx
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push str.Everyone
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov ecx, dword [esp + 0x8d0]
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0xd0]
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
mov edi, dword [esp + 0x8cc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 4
lea ecx, [esp + 0x4dc]
push 4
push ecx
call sub.ADVAPI32.dll_SetNamedSecurityInfoA
lea edx, [esp + 0xc8]
push 0
push edx
push 0
push 0
push 4
lea eax, [esp + 0x4dc]
push 4
push eax
call sub.ADVAPI32.dll_SetNamedSecurityInfoA
lea ecx, [esp + 0x8cc]
call fcn.0041ef53
pop edi
pop esi
add esp, 0x8c0
ret 8

Function at 0x407c60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4286c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 8]
lea eax, [esi + 0x24]
push eax
call fcn.0041ecc8
xor ebx, ebx
push str.MicrosoftInternet_ExplorerQuick_Launch
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], ebx
call fcn.0041f32f
push ebx
push 1
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x433004
call fcn.0041efc1
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x34], 1
call fcn.0041ecc8
mov ecx, esi
mov byte [esp + 0x30], bl
call fcn.00407d60
push ebx
push ebx
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Internet_Explorer.lnk
call fcn.0041efc1
push ecx
lea eax, [esi + 0x30]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x34], 2
call fcn.0041ecc8
mov ecx, esi
mov byte [esp + 0x30], bl
call fcn.00407d60
push ebx
push ebx
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x438170
call fcn.0041efc1
push ecx
lea edx, [esi + 0x2c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x34], 3
call fcn.0041ecc8
mov ecx, esi
mov byte [esp + 0x30], bl
call fcn.00407d60
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0041ef53
mov ecx, dword [esp + 0x14]
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret
Function at 0x408160
Capabilities:
Create shortcut via ishelllink
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x428786
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x238]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x234], 1
call fcn.0041ecc8
lea ecx, [esp + 0x23c]
mov byte [esp + 0x230], 2
push ecx
lea ecx, [esp + 0x14]
call fcn.0041f36b
lea edx, [esp + 0x10]
lea ecx, [esp + 0x238]
push edx
call fcn.0041f08c
push 0x10000000
push ecx
lea eax, [esp + 0x240]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0041ecc8
mov ecx, edi
call fcn.00408390
mov ecx, dword [esp + 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, dword [esp + 0x238]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and al, 0xfe
push eax
push edx
call ebp
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x408337
lea eax, [esp + 0xc]
push eax
push 0x42a4e0
push 1
push 0
push 0x42a4d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x4082e6
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 0x42a4f0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x4082e6
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x240]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 0xc]
push 0x4330b4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea esi, [edi + 0x20]
push str.IEXPLORE.exe
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.0041f1e8
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
push eax
push ecx
mov edx, dword [ecx]
mov byte [esp + 0x238], 3
call dword [edx + 0x50]
lea ecx, [esp + 0x18]
mov byte [esp + 0x230], 2
call fcn.0041ef53
mov eax, dword [esp + 0xc]
mov esi, dword [esi]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x244]
test eax, eax
je 0x408337
mov eax, dword [esp + 0x238]
push 1
push eax
call ebp
push 0x80000000
push ecx
lea edx, [esp + 0x240]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0041ecc8
mov ecx, edi
call fcn.00408390
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 1
call fcn.0041ef53
lea ecx, [esp + 0x238]
mov byte [esp + 0x230], 0
call fcn.0041ef53
lea ecx, [esp + 0x23c]
mov dword [esp + 0x230], 0xffffffff
call fcn.0041ef53
mov ecx, dword [esp + 0x228]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x228
ret 0x10
Function at 0x40a910
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esi]
inc eax
push eax
mov eax, dword [esp + 0x14]
push edi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8

Function at 0x40a940
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x428b98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
lea eax, [esp + 8]
mov dword [esp + 0x18], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREKingsaft
push 0x80000002
mov dword [esp + 0x20], 0x100
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a9fc
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 8]
push ebx
push 0x100
mov ecx, esi
mov dword [esp + 0x10], edi
call fcn.0041f383
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push eax
push edx
push 0
push 0x433a0c
push edi
mov dword [esp + 0x3c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
mov ecx, esi
mov ebx, eax
call fcn.0041f3d2
test ebx, ebx
pop ebx
jne 0x40aa0d
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40aa0d
push str.XXXX
mov ecx, esi
call fcn.0041e178
cmp eax, 0xffffffff
jne 0x40aa22
test edi, edi
je 0x40aa2d
jmp 0x40aa26
call fcn.0040f088
call fcn.0040f088
call fcn.0040f088
jmp 0x40aa2d
call fcn.0040f088
call fcn.0040f088
call fcn.0040f088
test edi, edi
je 0x40aa2d
jmp 0x40aa26
test edi, edi
je 0x40aa2d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x40b0f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x428c47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push 0
mov dword [esp + 8], 0
call fcn.0040f0aa
push eax
call fcn.0040f07b
add esp, 8
lea ecx, [esp + 0xc]
call fcn.0041e6f7
mov eax, dword [esp + 0x14]
push str.Windows_Portable_Devices
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 1
call fcn.0041e8d3
mov ecx, dword [esp + 0x14]
push str.Windows_Media_Player
push ecx
lea ecx, [esp + 0x14]
call fcn.0041e8d3
mov edx, dword [esp + 0x14]
push str.Microsoft_Office_Excel_2003
push edx
lea ecx, [esp + 0x14]
call fcn.0041e8d3
mov eax, dword [esp + 0x14]
push str.Web_Service_Providers
push eax
lea ecx, [esp + 0x14]
call fcn.0041e8d3
mov ecx, dword [esp + 0x14]
push str.Dreamweaver8
push ecx
lea ecx, [esp + 0x14]
call fcn.0041e8d3
mov edx, dword [esp + 0x14]
push str.Windows_Media
push edx
lea ecx, [esp + 0x14]
call fcn.0041e8d3
mov eax, dword [esp + 0x14]
push str.Microsoft_Office_PowerPoint_2003
push eax
lea ecx, [esp + 0x14]
call fcn.0041e8d3
mov ecx, dword [esp + 0x14]
push str.Non_Driver_Signing
push ecx
lea ecx, [esp + 0x14]
call fcn.0041e8d3
mov edx, dword [esp + 0x14]
push str.Thunder_Network
push edx
lea ecx, [esp + 0x14]
call fcn.0041e8d3
mov eax, dword [esp + 0x14]
push str.Windows_Messaging_Subsystem
push eax
lea ecx, [esp + 0x14]
call fcn.0041e8d3
mov ecx, dword [esp + 0x14]
push str.Windows_Search
push ecx
lea ecx, [esp + 0x14]
call fcn.0041e8d3
mov edx, dword [esp + 0x14]
push str.MSXML60
push edx
lea ecx, [esp + 0x14]
call fcn.0041e8d3
mov eax, dword [esp + 0x14]
push str.Java_VM
push eax
lea ecx, [esp + 0x14]
call fcn.0041e8d3
mov ecx, dword [esp + 0x14]
push str.Microsoft_Office_Word_2003
push ecx
lea ecx, [esp + 0x14]
call fcn.0041e8d3
mov edx, dword [esp + 0x14]
push str.Windows_Scripting_Host
push edx
lea ecx, [esp + 0x14]
call fcn.0041e8d3
mov eax, dword [esp + 0x14]
push str.Internet_Account_Manager
push eax
lea ecx, [esp + 0x14]
call fcn.0041e8d3
mov ecx, dword [esp + 0x14]
push str.Shared_Tools
push ecx
lea ecx, [esp + 0x14]
call fcn.0041e8d3
mov esi, dword [esp + 0x14]
call fcn.0040f088
cdq
idiv esi
lea ecx, [esp + 8]
mov esi, edx
mov edx, dword [esp + 0x10]
dec esi
lea eax, [edx + esi*4]
push eax
call fcn.0041ecc8
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x28], 2
lea edx, [ecx + esi*4]
mov esi, dword [esp + 0x30]
push edx
mov ecx, esi
call fcn.0041ecc8
mov dword [esp + 4], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.0041ef53
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.0041e72a
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x40b3c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x40b3f9
push ebx
mov bl, byte [esp + 0x1c]
mov al, byte [eax + esi]
mov dl, byte [esp + 0x18]
mov cl, byte [esp + 0x14]
add al, dl
xor al, cl
mov ecx, edi
sub al, bl
push eax
push esi
call fcn.0041f43e
mov eax, dword [edi]
inc esi
cmp esi, dword [eax - 8]
jl 0x40b3d6
pop ebx
pop edi
pop esi
ret 0x10
Function at 0x40b680
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x428cb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x10], esi
mov eax, dword [0x4346e4]
mov dword [esp + 0x20], ebx
mov dword [esp + 8], eax
push 0x100
push 0x100
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.0041f383
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0041f3d2
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], ebx
push ecx
push 0xf003f
push ebx
push str.SOFTWAREKingsaft
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40b703
mov esi, dword [esp + 0xc]
jmp 0x40b732
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREKingsaft
push 0x80000002
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40b757
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edi
push eax
mov dword [esp + 0x18], esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push ebx
push str.filepath
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
lea ecx, [esp + 8]
mov byte [esp + 0x20], bl
call fcn.0041ef53
cmp esi, ebx
je 0x40b76f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x40b800
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x428cf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.0040dcaa
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x44], 0
call fcn.0041efc1
lea ecx, [esp + 0x48]
push 1
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 1
call fcn.0041e062
mov eax, dword [eax]
push 0x4322a8
push eax
call fcn.0040ef2e
add esp, 8
lea ecx, [esp + 0x48]
test eax, eax
setne bl
call fcn.0041ef53
test bl, bl
je 0x40b882
push 0x4322a8
lea ecx, [esp + 0x14]
call fcn.0041f32f
push 0x4334d4
lea ecx, [esp + 0x14]
call fcn.0041f32f
mov edx, dword [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x24]
call fcn.0040dd6d
test eax, eax
je 0x40b95a
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
call fcn.0040df8d
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
call dword [eax + 0x38]
test eax, eax
jne 0x40b94e
lea ecx, [esp + 0x1c]
call fcn.0040df54
test eax, eax
jne 0x40b94e
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x20]
call fcn.0040e05c
push 0x4334c8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 2
call fcn.0041e178
cmp eax, 0xffffffff
jne 0x40b940
push 0x10000000
push ecx
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0041ecc8
mov ecx, esi
call fcn.00408390
mov eax, dword [esp + 0x48]
push eax
call edi
mov ecx, dword [esp + 0x48]
and al, 0xfe
push eax
push ecx
call ebp
mov edx, dword [esp + 0x48]
push edx
call ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 1
call fcn.0041ef53
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40b8ba
lea ecx, [esp + 0x1c]
call fcn.0040dd23
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 0
call fcn.0041ef53
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 0xffffffff
call fcn.0040dce7
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret 4
Function at 0x40bc60
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x428d7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push esi
push edi
mov esi, ecx
push 0xf003f
push ecx
lea eax, [esp + 0x144]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov dword [esp + 0x138], 0
call fcn.0041ecc8
mov ecx, esi
call fcn.00407b70
mov edi, dword [esp + 0x138]
lea ecx, [esp + 0x14]
push edi
call fcn.0041efc1
mov edx, dword [esp + 0x134]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push edi
push edx
mov byte [esp + 0x140], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40bcf2
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40bdc7
lea ecx, [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ecx
mov ecx, dword [esp + 0xc]
push 0
push 0
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x34]
push edx
push eax
push 0
mov dword [esp + 0x28], 0x100
push ecx
call edi
test eax, eax
je 0x40bd29
cmp eax, 0xea
jne 0x40bda6
lea edx, [esp + 0x13c]
push 0x4322a8
lea eax, [esp + 0x14]
push edx
push eax
call fcn.0041f1e8
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
push eax
push ecx
mov byte [esp + 0x13c], 2
call fcn.0041f1e8
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.0040bc60
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], 1
call fcn.0041ef53
lea edx, [esp + 0x1c]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push eax
push ecx
push 0
mov dword [esp + 0x28], 0x100
push edx
jmp 0x40bd1c
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x134]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 0
call fcn.0041ef53
lea ecx, [esp + 0x13c]
mov dword [esp + 0x12c], 0xffffffff
call fcn.0041ef53
mov ecx, dword [esp + 0x124]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x128
ret 0xc
Function at 0x40be10
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x428d98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
push 0x100
call fcn.0041f4a7
add esp, 4
mov edi, eax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], 1
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
mov dword [esp + 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bed7
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edi
push edx
push eax
mov eax, dword [esp + 0x1c]
push str.Favorites
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x4346e4]
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], edx
call fcn.0041f0dc
mov eax, dword [esp + 8]
mov ecx, esi
push eax
mov dword [esp + 0x24], 0
call fcn.0040bef0
mov ecx, dword [esp + 8]
push ecx
mov ecx, esi
call fcn.0040ce40
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.0041ef53
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x40cd40
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x428f7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0xc]
mov dword [esp + 8], 0x128
push eax
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x40ce1e
lea eax, [esp + 8]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40ce17
push ebp
mov ebp, dword [esp + 0x144]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x10]
call fcn.0041efc1
lea ecx, [esp + 0xc]
mov dword [esp + 0x140], 0
call fcn.0041f42c
push ebp
lea ecx, [esp + 0x10]
call fcn.0041e178
cmp eax, 0xffffffff
je 0x40cdf2
mov edx, dword [esp + 0x18]
push edx
push 0
push 0x1f0fff
call esi
test eax, eax
je 0x40cdf2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0xc]
mov dword [esp + 0x140], 0xffffffff
call fcn.0041ef53
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40cda6
pop esi
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x130]
pop edi
mov dword fs:[0], ecx
add esp, 0x138
ret 4

Function at 0x40cfc0
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x10]
mov edx, dword [esp + 0x138]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x30]
mov eax, ecx
mov esi, edi
mov edi, ebp
mov dword [esp + 0x10], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x14], 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, edx
lea edx, [esp + 0x10]
mov word [esp + 0x20], 0x214
mov byte [esp + ecx + 0x30], bl
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
mov dword [esp + 0x2e], ebx
mov dword [esp + 0x2a], ebx
mov byte [esp + ecx + 0x35], bl
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 4
Function at 0x40d060
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x10]
push eax
push 0xf003f
push 0
push esi
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d091
mov esi, dword [esp + 8]
jmp 0x40d0c0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push edi
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d0ea
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push 0
push edx
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x40d0ea
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ecx
ret 0x10

Function at 0x40d0f0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x10]
push eax
push 0xf003f
push 0
push esi
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d121
mov esi, dword [esp + 8]
jmp 0x40d150
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push edi
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d179
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [esp + 0x1c]
push edi
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x40d179
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ecx
ret 0x10