joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427182
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
mov eax, dword [esi]
push 1
je 0x42719a
push 0
jmp 0x42719d
push dword [esi + 0x20]
mov ecx, esi
call dword [eax + 0xa0]
test eax, eax
jne 0x4271ab
pop esi
ret
push 1
pop eax
pop esi
ret

Function at 0x4275d6
Capabilities:
Get common file path
Get disk size
Timestomp file

Disassembly:
mov eax, 0x432aa0
call fcn.0040d5f0
sub esp, 0x240
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.00424391
test byte [ebp + 0xd], 0x10
je 0x4276a7
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call fcn.00426004
test eax, eax
je 0x4276a7
lea ecx, [ebp - 0x10]
call fcn.004242bb
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.0042407c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x427646
mov ebx, dword [ebp - 0x2c]
imul ebx, dword [ebp - 0x30]
imul ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x13c]
add eax, eax
cmp ebx, eax
jle 0x42769b
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [ebp - 0x1c]
push 0x105
mov ecx, edi
and byte [eax], 0
call fcn.004247f8
push eax
push 0
lea eax, [ebp - 0x24c]
push 0x436b74
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00424847
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00424406
mov eax, dword [edi]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x427764
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.004238ad
test eax, eax
je 0x427764
push dword [ebp + 8]
lea ecx, [esi + 0xc]
call fcn.0042454e
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x427715
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.004260b6
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea eax, [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
push eax
push ebx
push ebx
push 4
push dword [ebp + 8]
mov dword [ebp + 0xc], ebx
call esi
test eax, eax
je 0x42775f
push dword [ebp + 0xc]
call fcn.0041eee5
mov ebx, eax
pop ecx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push ebx
push 4
push dword [ebp + 8]
call esi
test eax, eax
je 0x427758
push ebx
push 4
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
push ebx
call fcn.0041ef21
pop ecx
push 1
pop eax
jmp 0x42777b
mov ecx, edi
call fcn.00424391
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004238ad
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x42859f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x4285bc
cmp dword [0x445f7c], edi
jne 0x42870e
cmp word [0x445f88], di
mov dword [0x445f7c], 1
jne 0x4285ee
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x445f84], eax
mov word [0x445f88], cx
cmp word [0x445f88], 2
jne 0x42862a
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x42862a
mov ecx, dword [0x445f84]
cmp ecx, edi
je 0x42862a
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x445f80], eax
jmp 0x428713
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.0040d610
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x445f80], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x42870e
cmp dword [ebp - 0x8c], 1
je 0x42867e
cmp dword [ebp - 0x8c], 2
jne 0x42870e
cmp dword [ebp - 0x98], 4
jae 0x4286ed
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42870e
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4286e2
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.0040dd30
add esp, 0xc
mov dword [0x445f80], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42870e
cmp dword [ebp - 0x8c], 2
jne 0x42870e
cmp dword [ebp - 0x98], 4
jb 0x42870e
push edi
push 0x445f80
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x445f80]
pop edi
leave
ret

Function at 0x42a421
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x42a465
push dword [ebp + 8]
call fcn.0042e6a2
mov esi, eax
test esi, esi
je 0x42a490
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x42a490
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x43f790
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc
Function at 0x42e3bb
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x432928
call fcn.0040d5f0
sub esp, 0x120
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x14], ebx
call fcn.0042a3fd
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x42e401
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.0042a40f
cmp eax, ebx
je 0x42e3fc
mov edx, dword [eax]
push ebx
push ebx
push 0xfffffffffffffffc
push ebx
mov ecx, eax
call dword [edx + 0x14]
cmp dword [ebp - 0x1c], ebx
jne 0x42e3e1
cmp dword [edi + 0x7c], ebx
je 0x42e4d8
push str.Software_
lea ecx, [ebp - 0x10]
call fcn.00424474
push dword [edi + 0x7c]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.004247a4
lea eax, [ebp - 0x10]
push 0x436908
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0042465d
push dword [edi + 0x90]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0042465d
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00424406
lea eax, [ebp - 0x18]
mov esi, SysReAllocStringLen
push eax
push esi
mov ecx, edi
call fcn.0042e4ea
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jne 0x42e4ac
lea eax, [ebp - 0x12c]
push 0x104
push eax
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
jne 0x42e4a3
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push esi
call fcn.0042e4ea
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00424406
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00424406
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x42e4ea
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x43293c
call fcn.0040d5f0
sub esp, 0x110
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
push eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x42e5a9
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, 0xff
lea eax, [ebp - 0x11c]
push ebx
push eax
push esi
push dword [ebp - 0x14]
call edi
mov esi, eax
test esi, esi
jne 0x42e589
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x18]
push eax
call fcn.00424474
mov ecx, dword [ebp - 0x1c]
and dword [ebp - 4], esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call fcn.0042e4ea
mov esi, eax
xor eax, eax
test esi, esi
setne al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
mov byte [ebp - 0xd], al
call fcn.00424406
cmp byte [ebp - 0xd], 0
jne 0x42e589
lea eax, [ebp - 0x11c]
push ebx
push eax
push 0
push dword [ebp - 0x14]
jmp 0x42e533
cmp esi, 0x103
je 0x42e599
cmp esi, 0x3f2
jne 0x42e5a9
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x42ebcf
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x432c7a
call fcn.0040d5f0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.0041ea70
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.0041ea70
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.0041e671
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x41eec9
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x42f079
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x42f0a9
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x42f133
cmp dword [esp + 0x14], ebx
je 0x42f133
cmp esi, ebx
jne 0x42f0cf
push 0x10
call fcn.0042ee96
cmp eax, ebx
je 0x42f0be
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x42f0c0
xor esi, esi
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.0042ee38
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x42f0e6
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42f0f6
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x42f102
call fcn.0041dc15
mov eax, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
push ebx
lea eax, [ecx + eax*4]
push eax
call fcn.0040d610
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8

Function at 0x42f169
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov ebx, ecx
pop edi
cmp dword [esi + 8], edi
mov dword [ebp - 4], edi
jle 0x42f1bc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42f19f
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x42f19f
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x42f1b6
and dword [ebp - 4], 0
jmp 0x42f1b6
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x42f1af
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xc]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jl 0x42f180
cmp dword [ebp - 4], 0
je 0x42f1ea
push esi
lea ecx, [ebx + 0x14]
call fcn.0042ee4b
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x42f1e0
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42f6fe
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0040dd60
pop ecx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
je 0x42f77a
mov edi, SysReAllocStringLen
and byte [eax], 0
lea eax, [ebp + 8]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42f77a
lea eax, [ebp - 0x108]
xor ebx, ebx
push 0x105
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x42f757
push 1
pop ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x42f77a
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x5c
push esi
call fcn.0040e390
pop ecx
test eax, eax
pop ecx
jne 0x42f725
push esi
call fcn.0040d810
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401210
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 0
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginMutation]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0xc]
push eax
push 0x40
push esi
push edi
call ebx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push eax
push ecx
push esi
push edi
call ebx
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x401270
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
push edi
push 0
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginMutation]
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 5
push esi
call edi
test eax, eax
jne 0x40129f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ecx
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4012b3
mov ecx, esi
mov edx, dword [ecx]
mov dword [eax], edx
mov cl, byte [ecx + 4]
mov byte [eax + 4], cl
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
sub edx, esi
push eax
push ecx
sub edx, 5
push 5
push esi
mov byte [esi], 0xe9
mov dword [esi + 1], edx
call edi
test eax, eax
jne 0x4012df
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ecx
ret
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x4015e0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
mov dword [esp + 0x14], esi
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginMutation]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x4017d6
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
push 0x405088
push ebp
call ebx
mov edx, eax
add esp, 8
test edx, edx
je 0x4017d6
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 5
jb 0x4017d6
add edx, 4
add esi, 0xc4
push 0x78
push edx
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
push 0x405084
push esi
call ebx
add esp, 0x14
test eax, eax
je 0x4017d6
push str._pass
push ebp
mov byte [eax], 0
call ebx
mov edx, eax
add esp, 8
test edx, edx
je 0x4017d6
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 6
jb 0x4017d6
mov eax, dword [esp + 0x10]
add edx, 6
push 0x78
push edx
lea ebp, [eax + 0x13c]
push ebp
call dword [sym.imp.MSVCRT.dll_strncpy]
push 0x405084
push ebp
call ebx
add esp, 0x14
test eax, eax
je 0x4017d6
mov ecx, dword [esp + 0x14]
push str._type
push ecx
mov byte [eax], 0
call ebx
mov edx, eax
add esp, 8
test edx, edx
je 0x4017d6
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 6
jb 0x4017d6
push 4
add edx, 6
push str.main
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x40170b
mov edx, dword [esp + 0x10]
mov dword [edx + 0x1b4], eax
jmp 0x401719
mov eax, dword [esp + 0x10]
mov dword [eax + 0x1b4], 1
mov ecx, dword [esp + 0x14]
push str._key
push ecx
call ebx
mov edx, eax
add esp, 8
test edx, edx
je 0x4017d6
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 5
jb 0x4017d6
push 0x10
add edx, 5
push eax
push edx
call dword [sym.imp.MSVCRT.dll_strtol]
mov dword [esp + 0x20], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
xor ebx, ebx
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x401786
movsx eax, byte [esi + edx]
add ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x40176f
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4017af
movsx ecx, byte [edx + ebp]
add ebx, ecx
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x401798
mov eax, dword [esp + 0x14]
xor ebx, 0xff85171e
and ebx, 0xffffff
cmp ebx, eax
jne 0x4017d6
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x4017e0
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0x20c
push esi
push edi
mov esi, ecx
push 0
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginMutation]
add esi, 0x1b8
mov ecx, 8
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x104
push eax
mov byte [esp + 0x14], 0
call fcn.00402ad0
lea ecx, [esp + 0x14]
push str.wmadd.dat
push ecx
push str._s_s
lea edx, [esp + 0x124]
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
lea eax, [esp + 0x110]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40186e
pop edi
xor eax, eax
pop esi
add esp, 0x20c
ret
lea ecx, [esp + 8]
push 0
push ecx
push 0x20
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401885
mov dword [esi], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi], 0
jne 0x4018aa
pop edi
xor eax, eax
pop esi
add esp, 0x20c
ret
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
pop edi
mov eax, 1
pop esi
add esp, 0x20c
ret

Function at 0x401bb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0
mov dword [esp + 0x14], ebx
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginMutation]
mov ecx, ebx
call fcn.00402280
test eax, eax
jne 0x401cf5
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, eax
mov ecx, ebx
call fcn.00402190
test eax, eax
je 0x401c08
call esi
sub eax, edi
cmp eax, 0x2bf20
jae 0x401cf5
push 0x14
call ebp
jmp 0x401be8
mov ecx, ebx
call fcn.00402130
test eax, eax
jne 0x401cf5
mov dword [ebx + 0xcc], 1
call esi
mov ebx, eax
xor edi, edi
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xcc]
cmp eax, 3
je 0x401c68
cmp eax, 2
jne 0x401c50
test edi, edi
jne 0x401c45
call esi
mov edi, eax
jmp 0x401c50
call esi
sub eax, edi
cmp eax, 0x1d4c0
ja 0x401c68
call esi
sub eax, ebx
cmp eax, 0xdbba0
jae 0x401cf5
push 0x3e8
call ebp
jmp 0x401c27
push 0xbb8
call ebp
push 0
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginMutation]
mov eax, dword [0x40535c]
push 0
test eax, eax
push 0
jne 0x401c95
mov ecx, dword [0x40538c]
push 0x466
mov edx, dword [ecx + 0x20]
push edx
jmp 0x401ca3
mov eax, dword [0x40538c]
push 0x467
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
push 0x7d0
call ebp
call esi
mov edi, eax
mov ecx, dword [0x40538c]
call fcn.00402210
test eax, eax
jne 0x401cdd
call esi
sub eax, edi
cmp eax, 0x927c0
jae 0x401cf5
push 0x3e8
call ebp
jmp 0x401cba
push 0xbb8
call ebp
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x402af0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x144]
test eax, eax
je 0x402bda
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x402bda
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402bd3
mov esi, dword [esp + 0x140]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, dword [sym.imp.MSVCRT.dll__strnicmp]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x3c]
push ecx
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x402b91
mov edx, dword [esp + 0x1c]
push edx
push eax
push 0x2000000
call ebx
test eax, eax
jne 0x402ba6
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x402bcf
jmp 0x402b64
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x144]
mov ecx, 0x4a
lea esi, [esp + 0x14]
mov eax, 1
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x12c
ret

Function at 0x402c40
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x12c
push esi
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
jne 0x402c7b
pop edi
xor eax, eax
pop esi
add esp, 0x12c
ret
lea eax, [esp + 0xc]
push ebp
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402cf8
push ebx
mov ebx, dword [esp + 0x140]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x3c]
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x402ce8
mov edx, dword [esp + 0x1c]
push edx
push eax
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x402ce4
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebp
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402ca1
pop ebx
push esi
call ebp
pop ebp
pop edi
mov eax, 1
pop esi
add esp, 0x12c
ret