joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b5dd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040839f
and dword [ebp - 4], 0
cmp dword [0x43ac14], 0
mov ebx, eax
jne 0x40b68e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b73f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b73f
push eax
call fcn.0040832d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43ac14], eax
call esi
push eax
call fcn.0040832d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43ac18], eax
call esi
push eax
call fcn.0040832d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43ac1c], eax
call esi
push eax
call fcn.0040832d
pop ecx
mov dword [0x43ac24], eax
test eax, eax
je 0x40b68e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040832d
pop ecx
mov dword [0x43ac20], eax
mov eax, dword [0x43ac20]
cmp eax, ebx
je 0x40b6e6
cmp dword [0x43ac24], ebx
je 0x40b6e6
push eax
call fcn.004083a8
push dword [0x43ac24]
mov esi, eax
call fcn.004083a8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b6e6
test edi, edi
je 0x40b6e6
call esi
test eax, eax
je 0x40b6dd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b6dd
test byte [ebp - 0xc], 1
jne 0x40b6e6
or dword [ebp + 0x10], 0x200000
jmp 0x40b71f
mov eax, dword [0x43ac18]
cmp eax, ebx
je 0x40b71f
push eax
call fcn.004083a8
pop ecx
test eax, eax
je 0x40b71f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b71f
mov eax, dword [0x43ac1c]
cmp eax, ebx
je 0x40b71f
push eax
call fcn.004083a8
pop ecx
test eax, eax
je 0x40b71f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ac14]
call fcn.004083a8
pop ecx
test eax, eax
je 0x40b73f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b741
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401b00
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get kernel32 base address
Timestomp file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x424e50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
call fcn.00421caa
mov esi, dword [eax + 0xc]
mov eax, dword [0x42f358]
xor ebx, ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
xor ecx, ecx
push 0x42f2c8
mov byte [esp + 0x54], 1
mov cx, word [eax*4 + 0x42f274]
lea ebp, [eax*4 + 0x42f274]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
je 0x401c96
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401c96
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov eax, dword [edx*4 + 0x433370]
lea edx, [esp + 0x10]
push eax
push ecx
push str._s_s
push edx
call fcn.00418ce9
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
add esp, 0x10
push eax
call fcn.00401cd0
neg eax
sbb eax, eax
mov ecx, dword [esp + 0x10]
and eax, 4
push 0
inc eax
push 0
push eax
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401c96
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push 0
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041b5e7
mov edx, dword [esp + 0x14]
push 0x400
push 0
push edx
lea ecx, [esp + 0x38]
call fcn.00402eb5
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x401c8f
sub esp, 0xc
mov dword [esp + 0x64], esp
mov ecx, esp
push 0
push 0
push 8
push 0
call fcn.00402fb4
lea ecx, [esp + 0x38]
call fcn.00401d00
lea eax, [esp + 0x38]
lea ecx, [esp + 0x2c]
push eax
call fcn.00402ce4
lea ecx, [esp + 0x24]
lea edx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 0
call fcn.00419d4d
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.00419d4d
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40aedb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040cdbc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40aefe
test byte [esp + 8], 2
je 0x40aefe
call fcn.0040ce2f
mov dword [eax], 0xd
call fcn.0040ce38
mov dword [eax], 5
jmp 0x40aed7
xor eax, eax
ret
Function at 0x41db1a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41db5c
call fcn.00421caa
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41db5c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41db53
xor eax, eax
jmp 0x41db64
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041db6a
pop edi
pop esi
pop ebx
ret 4

Function at 0x422583
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4225b1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4225cf
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004224e9
jmp 0x4225cf
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4225cf
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004224e9
test edi, edi
mov eax, edi
jne 0x4225b9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4013d1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x42a0cc], 1
mov dword [0x42a0d0], 1
mov dword [0x42a0d4], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x401412
mov eax, 0
jmp 0x4014ac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x401435
mov eax, 0
jmp 0x4014ac
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401457
cmp eax, 0x20b
je 0x40147c
jmp 0x4014a7
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401469
mov eax, 0
jmp 0x4014ac
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014ac
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x401494
mov eax, 0
jmp 0x4014ac
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014ac
mov eax, 0
leave
ret
Function at 0x408da0
Capabilities:
Create directory

Disassembly:
push esi
push ebx
push eax
mov eax, 0x2010
call fcn.0040fcc0
sub esp, eax
mov eax, dword [esp + eax]
mov esi, eax
mov eax, dword [0x42a0a0]
test eax, eax
je 0x408e58
xor ebx, ebx
test eax, eax
jg 0x408ddb
jmp 0x408e00
add ebx, 1
cmp dword [0x42a0a0], ebx
jle 0x408e00
mov eax, dword [ebx*4 + 0x4290a0]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x408dd0
mov eax, 1
add esp, 0x2014
pop ebx
pop esi
ret
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
cmp eax, 2
jne 0x408e14
cmp word [esi + 2], 0x3a
je 0x408df2
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
je 0x408ea0
mov ebx, dword [0x42a0a0]
cmp ebx, 0x3ff
jg 0x408df2
mov dword [esp], esi
call sub.msvcrt.dll__wcsdup
add dword [0x42a0a0], 1
mov dword [ebx*4 + 0x4290a0], eax
jmp 0x408df2
mov ecx, 0x1000
mov edx, str._HOME_
lea eax, [esp + 0x10]
call fcn.004086e0
test al, al
je 0x408eb8
lea eax, [esp + 0x10]
mov ebx, dword [0x42a0a0]
mov dword [esp], eax
call sub.msvcrt.dll__wcsdup
mov dword [ebx*4 + 0x4290a0], eax
mov eax, dword [0x42a0a0]
add eax, 1
mov dword [0x42a0a0], eax
jmp 0x408dc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x408e2c
xor eax, eax
jmp 0x408df7
mov eax, str._HOME_
call fcn.00408d70
lea esi, [esi]
lea esi, [esi]

Function at 0x409050
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x41c044]
test eax, eax
je 0x409089
mov dword [esp + 4], 0x1388
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
jne 0x4090a0
mov eax, dword [0x41c044]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
cmp byte [0x427080], 0
jne 0x4090c0
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x41c044]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
sub esp, 8
jmp 0x409078
mov edx, 0x414
lea edi, [esp + 0x12]
mov dword [esp + 0x12], 0
mov esi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [esp + 0x16], 3
mov ebx, 0x14
mov dword [esp + 0x1a], 0x4270a0
mov dword [esp + 0x1e], 0x41714e
mov word [esp + 0x22], dx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x41714e
mov dword [esp], edi
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
jmp 0x409193
test al, 0x10
je 0x409092
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0x414
sub esp, 4
mov dword [esp + 0x12], 0
mov dword [esp + 0x16], 3
mov dword [esp + 0x1a], 0x4270a0
mov dword [esp + 0x1e], 0x41714e
mov word [esp + 0x22], ax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x41714e
mov dword [esp], edi
call esi
sub esp, 4
sub ebx, 1
je 0x409092
mov dword [esp], 0x4270a0
call ebp
sub esp, 4
cmp eax, 0xffffffff
jne 0x409128
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40e810
Capabilities:
Accept command line arguments
Create process on windows
Extract resource via kernel32 functions
Set environment variable
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1000
mov edx, str._TEMP_onefile__PID___TIME_
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov eax, 0x4270a0
call fcn.004086e0
test al, al
je 0x40ea60
mov dword [esp + 4], 1
mov dword [esp], 0x4091b0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
sub esp, 8
test eax, eax
je 0x40ea74
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x1b
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
sub esp, 4
lea ecx, [eax + 3]
cmp byte [eax + 1], 0x41
mov dword [0x427060], eax
movzx edx, byte [eax]
movzx ebx, byte [eax + 2]
mov dword [0x427084], ecx
jne 0x40ea6a
cmp dl, 0x4b
jne 0x40ea6a
cmp bl, 0x59
jne 0x40ea6a
mov dword [esp], 0x20000
mov dword [0x427074], 0
call sub.msvcrt.dll_malloc
mov dword [0x427068], eax
test eax, eax
je 0x40ea52
mov dword [esp], 0x27420
call sub.msvcrt.dll_malloc
mov esi, eax
test eax, eax
je 0x40ea48
mov dword [eax + 0x736c], 0
mov dword [eax + 0x7370], 0
mov dword [eax + 0x7374], 0
mov dword [eax + 0x7380], 0
mov dword [eax + 0x738c], 0
mov dword [eax + 0x7388], 0
mov dword [eax + 0x72b8], 0
mov dword [eax + 0x7394], 0
mov dword [eax + 0x7398], 0
mov dword [eax + 0x73a0], 0
mov dword [eax + 0x73a4], 0
mov dword [eax + 0x73b4], 0
mov dword [eax + 0x739c], 0
mov dword [eax + 0x73c4], 0
mov dword [eax + 0x73c8], 0
mov dword [eax + 0x73d4], 0
mov dword [eax + 0x2741c], 0
xor eax, eax
cpuid
xor ecx, ecx
cmp eax, 6
jbe 0x40e9d9
mov eax, 7
cpuid
shr ebx, 8
and ebx, 1
mov ecx, ebx
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x7384], ecx
mov dword [esi + 0x735c], 0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x73ac], 0x8000001
mov dword [esi + 0x73d8], 0
mov dword [esi + 0x7360], 0
mov dword [esi + 0x7364], 1
mov dword [0x427064], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebp
mov byte [0x427080], 1
mov dword [esp + 0x40], eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040dec0
mov dword [0x427064], 0
mov eax, str.Error__couldnt_allocate_memory.
call fcn.00408d40
lea esi, [esi]
mov eax, str._TEMP_onefile__PID___TIME_
call fcn.00408d70
mov eax, str.Error__couldnt_find_attached_data_header.
call fcn.00408d40
mov eax, str.Error__failed_to_register_signal_handler.
call fcn.00408d40
nop
nop
push ebp
mov ebp, esp
sub esp, 8
jmp 0x40ea9e
mov eax, dword [0x416008]
mov eax, dword [eax]
call eax
mov eax, dword [0x416008]
add eax, 4
mov dword [0x416008], eax
mov eax, dword [0x416008]
mov eax, dword [eax]
test eax, eax
jne 0x40ea88
nop
nop
leave
ret
Function at 0x40ed10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.0041519c
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.0041519c
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x40f8e4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40f903
mov eax, 0
jmp 0x40f947
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40f926
mov eax, 0
jmp 0x40f947
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40f942
mov eax, 0
jmp 0x40f947
mov eax, 1
leave
ret

Function at 0x40f949
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x40f9a8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x40f9a0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x40f9a0
mov eax, dword [ebp - 4]
jmp 0x40f9bc
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40f97d
mov eax, 0
leave
ret
Function at 0x8c211e
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x8c1ea3
sub edx, edi
call fcn.008c2146
push edi
pop edi
dec edx
xor dword [eax], ecx
sub edi, edx
inc eax
and edx, edi
add edi, 1
cmp eax, esi
jne fcn.008c211e
or edx, edx
or edi, edx
inc edx
ret
Function at 0x43b63e
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop ebx
or edx, edx
mov edx, edi
call fcn.0043b681
push edx
mov edi, dword [esp]
add esp, 4
xor dword [esi], ebx
add edi, 0x192df86d
add edx, 0x9183b2ec
sub edi, 0x6115da96
inc esi
mov edi, edx
sub edi, 0x267c5533
cmp esi, ecx
jne fcn.0043b63e
or edx, edi
add edi, edx
ret
Function at 0x402972
Capabilities:
Encode data using xor

Disassembly:
pop esi
push esi
xor dword [esi], ebx
lodsd eax, dword [esi]
add ebx, eax
test eax, eax
jne 0x402974
ret

Function at 0x40b080
Capabilities:
Write file on windows

Disassembly:
pop ebp
ret 0xc
push ebp
mov ebp, esp
wait
mov ebp, esp
or byte [edi - 0x75], dl
jge 0x40b06e
mov eax, dword [esi + 0x4a]
mov ecx, dword [esi - 0x383ef4ec]
inc ebp
pop ebp
add ah, bh
add byte [eax], al
jne 0x40b10d
mov al, byte [esi + 8]
test al, al
je 0x40b10d
mov edi, dword [edi + 0x84d8d04]
push 0
push ecx
push 0
mov cl, 0
push 0
invalid
mov ecx, dword [edx + 0x74c0850c]
and ecx, dword [edx - 0x367bf7b2]
jne 0x40b137
mov ecx, dword [esi + 0x50]
mov dword [eax - 0x64], ecx
mov eax, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
mov fs, word [eax]
add byte [eax], al
add al, ch
fild word [esi]
hlt
mov eax, dword [esi + 0xc]
mov esp, dword [edi + 0xc]
fmul qword [ebp + 0x3050104d]
inc esi
add al, 0x51
push edi
push edx
push eax
call dword [0xc140c010]
test dword [esp + esi*2], esp
inc esi
xor eax, eax
jmp 0x40b285
sal byte [ebp + 0x30], 0x8b
pop esp
adc byte [eax - 0x37], ch
mov ebx, dword [eax + edx + 0x68]
leave
jne 0x40b29e
loopne 0x40b2db
adc al, 0x8b
push ebp
adc byte [ebx + 0x5f], bl
mov eax, 0x6401117e
mov dword [edi], ecx
pop esi
outsd dx, dword [esi]
ret
mov edx, dword [ecx]
or al, 0x85
sal byte [eax + ebx - 0x76], cl
push esi
or byte [esi + edi + 0x568b1175], al
push eax
jmp 0x40b282
in eax, dx
ror byte [edi], 0xe0
mov esi, 0xe000000
mov dword [eax + 0x33], ecx
rcl byte [ebx - 0x7d], 0xf9
add dword [ebp - 0x7660ba77], eax
inc ebp
or byte [edi], cl
test dword [eax + eax + 0x7e8b0000], ebx
bound edi, qword [ebx]
clc
je 0x79b3b0
mov ebx, dword [esi + 0x38]
cmp edi, 0xffffffff
jbe 0x40b311
or eax, 0xffffffff
jmp 0x40b313
mov esi, dword [0xba04788b]
cld
push 0
mov edi, dword [eax + 4]
mov edx, 0x6afc36
push ecx
push eax
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b3a1
fbld tbyte [esi]
ret
Function at 0x401450
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
lea edi, [ebp - 0x100]
mov ecx, 0x40
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x478b40]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x39], 0x41
jmp 0x401494
mov al, byte [ebp - 0x39]
add al, 1
mov byte [ebp - 0x39], al
movsx eax, byte [ebp - 0x39]
cmp eax, 0x5a
jg 0x401592
movsx eax, byte [ebp - 0x39]
push eax
push 0x463c48
lea ecx, [ebp - 0x24]
push ecx
call fcn.0040acc0
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp esi, esp
call fcn.0040b060
cmp eax, 3
jne 0x401501
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040abc0
add esp, 8
mov dword [ebp - 0x10], 3
push 0
push 0
push 0x10
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401212
mov dword [ebp - 0x30], eax
jmp 0x40158d
mov esi, esp
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp esi, esp
call fcn.0040b060
cmp eax, 5
jne 0x401548
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040abc0
add esp, 8
mov dword [ebp - 0x10], 5
push 0
push 0
push 0x10
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401212
mov dword [ebp - 0x30], eax
jmp 0x40158d
mov esi, esp
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp esi, esp
call fcn.0040b060
cmp eax, 2
jne 0x40158d
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040abc0
add esp, 8
mov dword [ebp - 0x10], 2
push 0
push 0
push 0x10
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401212
mov dword [ebp - 0x30], eax
jmp 0x40148c
mov dword [ebp - 0xc], 1
push 0
push 0
push 0x10
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401212
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push edx
mov ecx, ebp
push eax
lea edx, [0x4015e4]
call fcn.0040b090
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b050
add esp, 0x100
cmp ebp, esp
call fcn.0040b060
mov esp, ebp
pop ebp
ret 4
Function at 0x401960
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push ebx
push esi
push edi
lea edi, [ebp - 0x440]
mov ecx, 0x110
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x478b40]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 0xc8], 0
mov byte [ebp - 0x3c], 0
mov esi, esp
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp esi, esp
call fcn.0040b060
mov dword [ebp - 0xc], eax
push 0x160
push 0
lea eax, [ebp - 0x37c]
push eax
call fcn.0040b300
add esp, 0xc
mov esi, esp
push 0x510
push 0x160
lea eax, [ebp - 0x37c]
push eax
push 0x80
lea ecx, [ebp - 0x1e8]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
cmp esi, esp
call fcn.0040b060
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xc8]
push ecx
call fcn.0040abc0
add esp, 8
mov eax, dword [ebp - 0x1f8]
imul eax, eax, 0xffffffff
add eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x48], eax
mov ecx, 0x2e
lea esi, [ebp - 0xcc]
mov edi, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x401a7c]
call fcn.0040b090
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b050
add esp, 0x440
cmp ebp, esp
call fcn.0040b060
mov esp, ebp
pop ebp
ret 8