joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404500
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov dword [ebp - 0x84], 0x401590
mov dword [ebp - 0x80], 0x401598
mov dword [ebp - 0x7c], 0x4015a0
mov dword [ebp - 0x78], 0x4015a8
mov dword [ebp - 0x74], 0x4015b0
mov dword [ebp - 0x70], 0x4015b8
mov dword [ebp - 0x6c], 0x4015c0
mov dword [ebp - 0x68], 0x4015c8
mov dword [ebp - 0x64], 0x4015d0
mov dword [ebp - 0x60], 0x4015d8
mov dword [ebp - 0x5c], 0x4015e0
mov dword [ebp - 0x58], 0x4015e8
mov dword [ebp - 0x54], 0x4015f0
mov dword [ebp - 0x50], 0x4015f8
mov dword [ebp - 0x4c], 0x401600
mov dword [ebp - 0x48], 0x401608
mov dword [ebp - 0x44], 0x401610
mov dword [ebp - 0x40], 0x401618
mov dword [ebp - 0x3c], 0x401620
mov dword [ebp - 0x38], 0x401628
mov dword [ebp - 0x34], 0x401630
mov dword [ebp - 0x30], 0x401638
mov dword [ebp - 0x2c], 0x401640
mov dword [ebp - 0x28], 0x401648
mov dword [ebp - 0x24], 0x401650
mov dword [ebp - 0x20], 0x401658
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x78
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
jmp 0x4045e9
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1a
jge 0x404624
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + ecx*4 - 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x404622
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + ecx*4 - 0x84]
mov dword [ebp + eax*4 - 0xec], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x4045e0
mov ecx, 2
imul edx, ecx, 0
xor eax, eax
mov word [ebp + edx - 0x2f4], ax
push 0x10000
call fcn.00412b20
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404724
push 0x10000
call fcn.00412b20
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x404718
push 0x8000
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0
jbe 0x4046e5
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2f4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x4046c5
lea eax, [ebp - 0x2f4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x4046c5
mov ecx, 2
imul edx, ecx, 0
xor eax, eax
mov word [ebp + edx - 0x2f4], ax
jmp 0x4046e7
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*4 - 0xec]
push ecx
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
jmp 0x4046e7
jmp 0x404702
push 0x8000
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x40467c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov edx, dword [ebp - 0x14]
push edx
call fcn.00412b50
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.00412b50
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x404730
Capabilities:
Create process on windows
Delete volume shadow copies

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
call fcn.00404b30
test eax, eax
je 0x404773
push 0x401680
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
push 0x401690
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404773
lea ecx, [ebp - 8]
push ecx
call dword [ebp - 4]
push 0
push 0
push 0x4016b0
push 0x401708
push 0x401718
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.00404b30
test eax, eax
je 0x4047c4
push 0x401724
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
push 0x401734
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4047c4
mov eax, dword [ebp - 8]
push eax
call dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x404a10
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x404acc
mov dword [ebp - 4], 0
jmp 0x404a5e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x1f
jae 0x404ab4
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x4130b0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x404ab2
mov eax, dword [ebp - 0x234]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404ab0
push 9
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404ab4
jmp 0x404a55
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x10], eax
jmp 0x404a42
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x404ae0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x404b24
push 0xf0000008
push 0x18
push 0
push 0
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x404b24
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x404d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4131c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x10]
push eax
push 0x401754
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x4131c0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 0xe
push 0x401758
mov ecx, dword [0x4131c0]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [0x4131c0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x401768
mov ecx, dword [0x4131c0]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [0x4131c0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x401770
mov ecx, dword [0x4131c0]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x4131c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret

Function at 0x404e80
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov dword [ebp - 4], 0
jmp 0x404e9b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
jge 0x404eb2
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov al, byte [ecx]
mov byte [ebp + edx - 0x24], al
jmp 0x404e92
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [ebp + edx - 0x24]
and eax, 0xf8
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x24], al
mov eax, 1
imul ecx, eax, 0x1f
movzx edx, byte [ebp + ecx - 0x24]
and edx, 0x7f
mov eax, 1
imul ecx, eax, 0x1f
mov byte [ebp + ecx - 0x24], dl
mov edx, 1
imul eax, edx, 0x1f
movzx ecx, byte [ebp + eax - 0x24]
or ecx, 0x40
mov edx, 1
imul eax, edx, 0x1f
mov byte [ebp + eax - 0x24], cl
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0xcc]
push edx
call fcn.00407c10
add esp, 8
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x16c]
push eax
call fcn.00408fc0
add esp, 0x10
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x11c]
push edx
call fcn.004092d0
add esp, 8
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x16c]
push ecx
lea edx, [ebp - 0x7c]
push edx
call fcn.00406e60
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004081f0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40a620
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push 0
mov eax, dword [ebp + 8]
push eax
push 0x41320c
call fcn.00412c90
add esp, 0xc
test eax, eax
jne 0x40a678
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0x4131dc
call fcn.00412bf0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40a676
mov edx, dword [ebp - 0xc]
push edx
call fcn.00409780
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.00412b50
add esp, 4
jmp 0x40a640
jmp 0x40a629
push 0x10000
call fcn.00412b20
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a80f
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x403be8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x26c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40a774
mov eax, dword [ebp - 0x26c]
and eax, 0x10
je 0x40a74c
mov dword [ebp - 8], 0
jmp 0x40a6ea
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x22
jae 0x40a712
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x413130]
push eax
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a710
jmp 0x40a74c
jmp 0x40a6e1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x403bf0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040a620
add esp, 4
lea edx, [ebp - 0x26c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a6cd
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40a803
cmp dword [0x41323c], 0
je 0x40a803
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00412b20
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp + 8]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0x403bf4
call fcn.00404d30
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00412b50
add esp, 4
mov edx, dword [ebp - 4]
push edx
call fcn.00412b50
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40a910
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0xe
call fcn.00412b20
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a9ed
push 0x403c0c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x403c18
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, 2
shl edx, 2
mov eax, dword [ebp - 4]
mov cx, word [ebp + 8]
mov word [eax + edx], cx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40a9e1
cmp dword [ebp - 0xc], 5
je 0x40a9e1
cmp dword [ebp - 0xc], 4
je 0x40a98e
mov eax, dword [ebp - 4]
push eax
call fcn.0040a620
add esp, 4
jmp 0x40a9e1
mov dword [ebp - 0x10], 0x104
mov ecx, dword [ebp - 0x10]
shl ecx, 1
push ecx
call fcn.00412b20
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40a9e1
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, 2
shl ecx, 2
add ecx, dword [ebp - 4]
push ecx
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x40a9d5
mov edx, dword [ebp - 8]
push edx
call fcn.0040a620
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.00412b50
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.00412b50
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x49f813
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x49f80c
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x49f82a
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edi, es
add al, 1
add byte [eax], al
mov edi, es
add al, 1
add byte [eax], al
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x49f888
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x49f86f
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x49f878
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x49f882
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x49f864
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x49f7ee
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x49f8d5
dec eax
je 0x49f8cc
sub eax, 3
je 0x49f8c3
mov dword [ebp - 4], 0x40
jmp 0x49f8f2
mov dword [ebp - 4], 4
jmp 0x49f8d8
mov dword [ebp - 4], 0x20
jmp 0x49f8d8
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x49f924
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x49f8a4
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0049f135
clc
or dh, byte [ebp + 0x1475ff1d]
push 1
push esi
call edi
mov eax, esi
jmp 0x49f930
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49f9a3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0049f145
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0049f0fa
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0049f145
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0049f0fa
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.0049f145
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0049f0fa
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.0049f135
rcl byte [edx], cl
jns 0x49fb7a
invalid
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
invalid
invalid
Function at 0x401a70
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x414
mov eax, dword [0x408270]
xor eax, esp
mov dword [esp + 0x410], eax
lea eax, [esp]
push 1
push eax
call fcn.00402a60
add esp, 8
cmp word [esp], 0
mov edx, str.FFModulesAviSynthPlugins
lea eax, [esp]
je 0x401ab0
add eax, 2
cmp word [eax], 0
jne 0x401aa1
lea ebx, [ebx]
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x401ab0
push 0x104
lea ecx, [esp + 0x20c]
push ecx
push str.HKLMSoftwareAviSynthplugindir2_5
call fcn.00402fe0
add esp, 0xc
test al, al
jne 0x401af6
xor al, al
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00404656
add esp, 0x414
ret
lea edx, [esp + 0x208]
lea eax, [esp]
call fcn.00401b80
test eax, eax
jne 0x401adf
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.SoftwareAviSynth
push 0x80000002
call esi
push str.CLSIDE6D6B700_124D_11D4_86F3_DB80AFD98778
push 0x80000000
call esi
push str.AVIFileExtensionsAVS
push 0x80000000
call esi
push str.Media_TypeExtensions.avs
push 0x80000000
call esi
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
mov al, 1
call fcn.00404656
add esp, 0x414
ret
Function at 0x402980
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x408270]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
mov ebx, dword [esp + 0x26c]
push esi
mov esi, dword [esp + 0x27c]
xor eax, eax
push edi
mov edi, dword [esp + 0x270]
push 0x44
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
call sub.MSVCR80.dll_memset
xor ecx, ecx
add esp, 0xc
cmp byte [esp + 0x27c], cl
mov dword [esp + 0x1c], 0x44
sete cl
test esi, esi
mov dword [esp + 0x48], 1
mov word [esp + 0x4c], cx
jne 0x402a07
test edi, edi
je 0x402a07
lea esi, [esp + 0x60]
mov edx, esi
push edx
push edi
call fcn.00402930
add esp, 8
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
push 0
push 0
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
cmp byte [esp + 0x278], 0
je 0x402a44
test bl, bl
je 0x402a44
mov edx, dword [esp + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x268]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00404656
add esp, 0x260
ret
Function at 0x404656
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408270]
jne 0x404660
repz ret
jmp fcn.00404c2b
Function at 0x405606
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x41559c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x218]
mov esi, dword [ebp + 0xc]
xor eax, eax
stosd dword es:[edi], eax
push 0x44
mov dword [ebp - 0x208], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x25c]
pop edi
push edi
push 0
push eax
call fcn.00411470
or dword [ebp - 0x230], 0x101
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x25c], edi
mov word [ebp - 0x22c], ax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff4
mov dword [ebp - 0x220], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push esi
push ebx
push 0x4030c0
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.004055a0
add esp, 0x14
test eax, eax
js 0x40570a
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x25c]
push eax
xor eax, eax
push eax
push eax
push 0x400
push 1
push eax
push eax
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4056ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40570a
movzx eax, ax
or eax, 0x80070000
jmp 0x40570a
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x208]
mov eax, dword [ebp - 0x218]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040734a
leave
ret 8

Function at 0x4057a7
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x41671c]
push ebx
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ebx, eax
mov ecx, edi
xor eax, eax
and ecx, 0x3ff
inc eax
cmp cx, ax
je 0x4057e0
cmp cx, 0xd
jne 0x4057e5
mov edi, 0x409
push esi
push 2
lea eax, [ebp - 4]
movzx esi, di
push eax
push 0x2000000b
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 2
lea eax, [ebp - 8]
push eax
push 0x20001004
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
pop esi
cmp ebx, 0xfde9
je 0x405825
cmp ebx, dword [ebp - 4]
je 0x405825
cmp ebx, dword [ebp - 8]
je 0x405825
mov edi, 0x409
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
push edi
call fcn.0040586c
cmp eax, 1
jne 0x405868
and edi, 0x3ff
push edi
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, ebx
push eax
call fcn.0040586c
cmp eax, 1
jne 0x405868
push 0x409
mov ecx, ebx
call fcn.0040586c
cmp eax, 1
jne 0x405868
mov eax, 0x80070717
pop edi
pop ebx
leave
ret