joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417a30
Capabilities:
Delete registry value
Persist via com hijack
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
push 0x258
mov dword [esp + 0x14], ebx
call fcn.00445884
push 0x258
mov esi, eax
mov dword [esp + 0x1c], 0x258
call fcn.00445884
add esp, 8
mov edi, eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edx, dword [esp + 0x10]
push edx
push str.CLSID_sInprocServer32
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 3
push ebx
push esi
push SysReAllocString
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x417b03
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x20]
push edx
push ebx
push str.PinkShirtFix
push eax
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417af8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0xc]
push str.PinkShirtFix
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
push ecx
push str.SoftwareClassesCLSID_sInprocServer32
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 3
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x417b5d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push esi
call fcn.00445979
push edi
call fcn.00445979
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x417c00
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x477b14]
push ebx
push esi
push edi
mov dword [esp + 0x21c], eax
mov word [esp + 0x10], 0
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
push 0x7d0
stosw word es:[edi], ax
call fcn.00445884
add esp, 4
mov ebx, eax
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, 4
mov edi, 0x468a0c
lea esi, [ebp + 8]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x417c6f
lea eax, [esp + 0x10]
push eax
push str._s_vbscript.dll
jmp 0x417c8c
mov ecx, 4
mov edi, 0x4689fc
lea esi, [ebp + 8]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x417c96
lea eax, [esp + 0x10]
push eax
push str._sjscript.dll
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417cd3
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x417cd3
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x417cd3
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417ccc
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call fcn.00445979
mov ecx, dword [esp + 0x220]
add esp, 4
call fcn.00444c27
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419b50
Capabilities:
Copy file

Disassembly:
sub esp, 0x21c
mov eax, dword [0x477b14]
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x220]
push eax
push 0x47ac18
lea ecx, [esp + 0x18]
push 0x466684
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x20]
push edx
call fcn.00420880
add esp, 0x14
test eax, eax
jne 0x419ba3
mov ecx, dword [esp + 0x224]
push eax
lea eax, [esp + 0x14]
push eax
push ecx
jmp 0x419c32
mov edx, dword [esp + 0x224]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileTime]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea ecx, [esp + 0x38]
push ecx
call edi
lea edx, [esp + 0x18]
push edx
push 0
mov esi, eax
push 0
push esi
call ebx
push esi
call ebp
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
pop edi
pop esi
pop ebp
pop ebx
jne 0x419c38
mov eax, dword [esp + 0x224]
push 0
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x218]
xor eax, eax
call fcn.00444c27
add esp, 0x21c
ret
Function at 0x41a1d0
Capabilities:
Delete file
Enumerate files on windows
Persist via run registry key

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 4]
dec eax
cmp eax, 7
ja case.default.0x41a1e2
jmp dword [eax*4 + 0x41a2a8]
call fcn.00424590
mov eax, 1
pop esi
ret
call fcn.00424a80
mov eax, 1
pop esi
ret
call fcn.00424650
mov eax, 1
pop esi
ret
call fcn.00424d50
mov eax, 1
pop esi
ret
mov eax, dword [esi + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [eax + eax + 2]
push ecx
call fcn.00445884
mov edx, dword [esi + 8]
mov edi, eax
push edx
push edi
call fcn.00422250
push edi
call fcn.00424500
push edi
call fcn.00445979
add esp, 0x14
pop edi
mov eax, 1
pop esi
ret
mov eax, dword [esi + 8]
test eax, eax
jne 0x41a266
pop esi
mov dword [esp + 4], 0
jmp fcn.00424b60
mov esi, dword [esi + 0xc]
cmp esi, 1
jne 0x41a27c
pop esi
mov dword [esp + 4], 1
jmp fcn.00424b60
test esi, esi
jne case.default.0x41a1e2
pop esi
mov dword [esp + 4], 0xffffffff
jmp fcn.00424b60
call fcn.00424670
mov eax, 1
pop esi
ret
call fcn.00427550
mov eax, 1
pop esi
ret
Function at 0x4208b0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret

Function at 0x420980
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4209b2
mov ecx, dword [esp + 0x10]
mov dword [ecx], 0
xor eax, eax
pop ebx
pop ecx
ret
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea edx, [esi + 3]
push edx
call fcn.00445884
add esp, 4
push 0
lea ecx, [esp + 0x10]
push ecx
mov edi, eax
mov eax, dword [esp + 0x20]
push esi
push edi
push ebx
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov byte [edi + esi], 0xd
mov byte [edi + esi + 1], 0xa
mov byte [edi + esi + 2], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x420a10
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebp
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x420a42
mov ecx, dword [esp + 0x10]
mov dword [ecx], 0
xor eax, eax
pop ebp
pop ecx
ret
push ebx
push esi
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ebx, [edi + 3]
push ebx
call fcn.00445884
add esp, 4
push 0
lea edx, [esp + 0x14]
push edx
push edi
mov esi, eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
mov byte [esi + edi], 0xd
mov byte [esi + edi + 1], 0xa
mov byte [esi + edi + 2], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + ebx]
push eax
call fcn.00445884
add esp, 4
push ebx
mov edi, eax
push edi
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call fcn.00445979
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [ecx], edi
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret

Function at 0x420ac0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push eax
push 2
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], 0xfe
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 8
ret
Function at 0x420bc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x477b14]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov dword [esp + 0x14], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0xc]
push ecx
lea edx, [eax + eax]
push edx
push esi
mov esi, dword [esp + 0x2c]
push esi
call edi
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
mov word [esp + 0x20], 0xd
mov word [esp + 0x22], 0xa
mov word [esp + 0x24], 0
call edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
call fcn.00444c27
add esp, 0x10
ret

Function at 0x421010
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x14]
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
mov dword [esp + 8], edi
je 0x42104e
movzx ecx, word [esi + 8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
push 0
push esi
push edi
push ecx
push 0
push edx
push eax
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x421056
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
mov ecx, dword [esp + 0x20]
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x421084
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esi + 0x20]
mov ecx, dword [esi]
push ebp
mov ebp, dword [esi + 0x14]
shl eax, 2
lea edx, [ecx + eax]
lea edx, [edx + ebp + 0xe]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x16], edx
xor edx, edx
push edx
lea eax, [ecx + eax + 0xe]
lea ecx, [esp + 0x30]
push ecx
mov word [esp + 0x22], dx
mov word [esp + 0x24], dx
push 0xe
lea edx, [esp + 0x20]
push edx
push ebx
mov word [esp + 0x28], 0x4d42
mov dword [esp + 0x32], eax
call ebp
test eax, eax
jne 0x4210da
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
mov ecx, dword [esi + 0x20]
push 0
lea eax, [esp + 0x30]
push eax
lea edx, [ecx*4 + 0x28]
push edx
push esi
push ebx
call ebp
test eax, eax
je 0x4210d0
mov esi, dword [esi + 0x14]
cmp esi, 0x64
jbe 0x42111c
lea esp, [esp]
push 0
lea eax, [esp + 0x30]
push eax
push 0x64
push edi
push ebx
call ebp
test eax, eax
je 0x4210d0
sub esi, 0x64
add edi, 0x64
cmp esi, 0x64
ja 0x421100
push 0
lea ecx, [esp + 0x30]
push ecx
push esi
push edi
push ebx
call ebp
test eax, eax
je 0x4210d0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4210d0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret
Function at 0x421830
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1010
call fcn.00445cd0
mov eax, dword [0x477b14]
mov dword [esp + 0x100c], eax
lea eax, [esp]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x4218a9
push esi
mov esi, dword [esp + 0x1018]
push esi
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x800
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x1020]
push edx
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop esi
mov ecx, dword [esp + 0x100c]
call fcn.00444c27
add esp, 0x1010
ret

Function at 0x4218c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x477b14]
mov dword [esp + 0x20c], eax
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.Shell32.dll
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [esp + 0x218]
mov edx, eax
neg edx
sbb edx, edx
push 1
lea ecx, [esp + 4]
and edx, ecx
push edx
xor edx, edx
test eax, eax
setne dl
mov eax, ecx
mov ecx, dword [esp + 0x21c]
dec edx
and edx, eax
push edx
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
mov ecx, dword [esp + 0x20c]
mov eax, dword [esp]
call fcn.00444c27
add esp, 0x210
ret
Function at 0x421940
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x228
mov eax, dword [0x477b14]
mov ecx, dword [esp + 0x22c]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov dword [esp + 0x230], eax
lea eax, [esp + 0x20]
push eax
push 1
push 0
push ecx
push SysReAllocString
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x466680
push edx
mov dword [esp + 0x24], 0x208
mov dword [esp + 0x34], 1
call edi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x421ade
lea eax, [esp + 0x24]
push eax
push 1
push 0
lea ecx, [esp + 0x34]
push ecx
push SysReAllocString
call esi
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x10]
push edx
push 1
push 0
push str.Shell
push eax
call esi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push str.Open
push edx
call esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 1
push 0
push str.Command
push ecx
call esi
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x466680
push edx
mov dword [esp + 0x24], 0x104
call edi
test eax, eax
jne 0x421ac2
cmp word [esp + 0x28], 0x22
lea edx, [esp + 0x28]
jne 0x421a45
lea edx, [esp + 0x2a]
mov eax, edx
mov cx, word [eax]
cmp cx, 0x2e
je 0x421a70
test cx, cx
je 0x421a6a
cmp cx, 0x22
je 0x421a6a
mov cx, word [eax + 2]
add eax, 2
cmp cx, 0x2e
jne 0x421a50
jmp 0x421a70
cmp word [eax], 0x2e
jne 0x421aae
mov cx, word [eax + 2]
add eax, 2
cmp cx, 0x2e
je 0x421aa9
lea ecx, [ecx]
cmp cx, 0x20
je 0x421aa3
test cx, cx
je 0x421aa3
cmp cx, 0x22
je 0x421aa3
mov cx, word [eax + 2]
add eax, 2
cmp cx, 0x2e
jne 0x421a80
add eax, 2
jmp 0x421a47
cmp word [eax], 0x2e
jne 0x421aae
add eax, 2
jmp 0x421a47
mov word [eax], 0
mov eax, dword [esp + 0x23c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [esp + 0x24]
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebx
mov eax, dword [esp + 0x14]
push eax
call ebx
mov ecx, dword [esp + 0x18]
push ecx
call ebx
mov edx, dword [esp + 0x20]
push edx
call ebx
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebx
call fcn.00444c27
add esp, 0x228
ret
Function at 0x421b00
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x648
mov eax, dword [0x477b14]
push ebx
push esi
mov esi, dword [esp + 0x654]
push 7
push str._dxDir_
push esi
mov dword [esp + 0x658], eax
call fcn.00445e8a
add esp, 0xc
test eax, eax
jne 0x421b4d
lea eax, [esi + 0xe]
push eax
push 0x47bc58
lea ecx, [esp + 0x4c]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x421bbd
push 0xe
push str._dxObjectsDir_
push esi
call fcn.00445e8a
add esp, 0xc
test eax, eax
jne 0x421b7f
lea edx, [esi + 0x1c]
push edx
push 0x47bc58
lea eax, [esp + 0x4c]
push str._sObjects_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x421bbd
push 0xd
push str._dxThemesDir_
push esi
call fcn.00445e8a
add esp, 0xc
test eax, eax
jne 0x421bb1
lea ecx, [esi + 0x1a]
push ecx
push 0x47bc58
lea edx, [esp + 0x4c]
push str._sThemes_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x421bbd
push esi
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esp + 0x65c]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x421c1b
push esi
call ebx
lea eax, [esi + eax*2 - 2]
cmp eax, esi
jbe 0x421bed
lea esp, [esp]
cmp word [eax], 0x5c
je 0x421bf3
sub eax, 2
cmp eax, esi
ja 0x421be0
cmp word [eax], 0x5c
jne 0x421c11
sub eax, esi
sar eax, 1
inc eax
push eax
push esi
lea ecx, [esp + 0x44c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea esi, [esp + 0x444]
jmp 0x421c1d
mov word [esp + 0x444], 0
xor esi, esi
push edi
xor eax, eax
lea edx, [esp + 0x48]
mov ecx, 0xf
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x18], eax
call ebx
cmp eax, 4
pop edi
jle 0x421c64
push str..exe
lea eax, [esp + 0x48]
push eax
call ebx
lea ecx, [esp + eax*2 + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb eax, eax
not eax
and eax, str.open
mov dword [esp + 0x14], eax
jmp 0x421c6c
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x660]
cmp eax, 1
mov dword [esp + 0x20], esi
pop esi
mov dword [esp + 4], 0x3c
pop ebx
jne 0x421c90
mov dword [esp + 0x1c], 2
jmp 0x421ca0
xor edx, edx
cmp eax, 2
sete dl
lea edx, [edx + edx + 1]
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x650]
lea edx, [esp]
lea eax, [esp + 0x3c]
push edx
mov dword [esp + 8], 0x200
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x644]
call fcn.00444c27
add esp, 0x648
ret
Function at 0x421ce0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub esp, 0xc
lea eax, [esp]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421d58
mov eax, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [eax + eax]
push edi
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
push 0
push ecx
push edx
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x421d4b
mov word [edi], 0
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret

Function at 0x421d60
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
lea eax, [esp + 4]
push eax
push 2
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 4]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret

Function at 0x421db0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
push 1
push 0
push edi
push ebx
call ebp
mov eax, 4
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x421e25
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x24]
jne 0x421e25
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
lea edx, [esp + 0x10]
push edx
push 2
push 0
push edi
push ebx
call ebp
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x421e70
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x250
mov eax, dword [0x477b14]
mov dword [esp + 0x24c], eax
mov eax, dword [esp + 0x258]
cmp eax, 1
push esi
jne 0x421ec8
lea eax, [esp + 0x48]
push eax
push str..html
call fcn.00421940
xor esi, esi
push esi
push esi
lea ecx, [esp + 0x58]
push 0x466680
push ecx
call fcn.00421b00
add esp, 0x18
pop esi
mov ecx, dword [esp + 0x24c]
call fcn.00444c27
add esp, 0x250
ret
push edi
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [esp + 0x264]
xor esi, esi
push eax
mov dword [esp + 0x14], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xa
mov dword [esp + 0x18], 4
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x254]
pop edi
pop esi
call fcn.00444c27
add esp, 0x250
ret

Function at 0x421f70
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x469a1c
push 1
push 0
push 0x469a6c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x421fe1
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x46b744
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x421fd4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 4]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, esi
pop esi
add esp, 8
ret