joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013b6
Capabilities:
Accept command line arguments
Get common file path
Set current directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040133b
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040133b
test eax, eax
je 0x401490
xor eax, eax
cmp byte [ebp - 0x108], al
setne al
test eax, eax
mov dword [0x409fc8], eax
je 0x401490
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push eax
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x108]
push eax
je 0x401478
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
push 0x409ec0
call esi
lea eax, [ebp - 0x108]
push eax
push 0x409fd8
call esi
lea eax, [ebp - 0x108]
push eax
push 0x40a0dc
call esi
lea eax, [ebp - 0x20c]
push eax
call edi
jmp 0x401490
push 0x13
push 0x40
push 1
push 0
call fcn.00401ac1
add esp, 0x14
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401519
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
movzx ecx, word [ebp + 0xc]
push esi
push 1
lea eax, [ecx - 0x102]
pop esi
cmp eax, 6
jae 0x401556
lea eax, [eax + eax*2]
push esi
push 0
push dword [eax*4 + 0x40a218]
lea eax, [eax*4 + 0x40a210]
push dword [eax + 4]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x4015c3
cmp ecx, 0x100
jne 0x401568
push dword [ebp + 8]
call fcn.004014d1
jmp 0x4015c3
cmp ecx, 0x9c42
jne 0x401584
push 0
push 0xb
push str.msconfig.hlp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_WinHelpA]
jmp 0x4015c3
cmp ecx, 0x9c43
jne 0x4015c1
lea eax, [ebp - 0x40]
push 0x40
push eax
push esi
push dword [0x409ea8]
call dword [sym.imp.USER32.dll_LoadStringA]
push esi
push dword [0x409ea8]
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
lea eax, [ebp - 0x40]
push 0x40a308
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellAboutA]
jmp 0x4015c3
xor esi, esi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x4016a1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push ebx
push esi
push edi
call fcn.0040163b
xor ebx, ebx
test eax, eax
jne 0x4016bf
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401271
call fcn.004013b6
call fcn.004083ff
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
mov dword [ebp - 0x3c], 0x34
mov dword [ebp - 0x38], 0xa
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 1
mov dword [ebp - 0x30], eax
pop esi
push esi
push dword [0x409ea8]
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x178]
push 0x48
mov dword [ebp - 0x1c], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x178]
mov dword [ebp - 0x20], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x178]
mov dword [ebp - 0x28], esi
xor edi, edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x40a258
push dword [ebp - 8]
mov eax, dword [ebp - 4]
call dword [eax]
test eax, eax
je 0x401742
inc edi
add dword [ebp - 8], 0x30
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x40a270
jb 0x401731
push 0x4015ca
push esi
push dword [0x409ea8]
mov dword [ebp - 0x24], edi
call dword [sym.imp.USER32.dll_LoadMenuA]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004041c2
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
mov dword [0x409fc4], eax
je 0x401808
push ebx
push ebx
push 0x474
push eax
call esi
mov eax, dword [ebp - 0x24]
lea edi, [eax - 1]
cmp edi, ebx
jl 0x4017a7
push ebx
push edi
push 0x465
push dword [0x409fc4]
call esi
dec edi
jns 0x401795
push 1
push dword [0x409fc4]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push ebx
mov edi, 0x476
push edi
push dword [0x409fc4]
call esi
test eax, eax
je 0x401808
push ebx
push ebx
lea eax, [ebp - 0x58]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401808
lea eax, [ebp - 0x58]
push eax
push ebx
push 0x475
push dword [0x409fc4]
call esi
test eax, eax
jne 0x401804
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
jmp 0x4017bc
push dword [0x409eac]
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.0040846f
cmp dword [0x409ea4], ebx
je 0x401849
cmp dword [0x409fc8], ebx
jne 0x401849
push ebx
push ebx
push 0x1a
push 0xffff
call esi
push 2
push ebx
push dword [0x409fc4]
call dword [sym.imp.SHELL32.dll_RestartDialog]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401cc6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 8]
push esi
xor esi, esi
push dword [esp + 0x10]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x401cf9
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401cf9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, esi
pop esi
ret 0xc
Function at 0x401d3f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push str.msdos.sys
lea eax, [ebp - 0x108]
push 0x40a0dc
push eax
call dword [sym.imp.SHELL32.dll_Ordinal_37]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
je 0x401d8f
test bl, 7
je 0x401d8f
and ebx, 0xfffffff8
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x108]
xor edi, edi
push eax
push edi
push edi
push edi
call esi
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x108]
push eax
push edi
push edi
push edi
call esi
cmp dword [ebp - 4], ebx
je 0x401dd9
push dword [ebp - 4]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x405045
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push dword [esi + 0x30]
push dword [0x409fd4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40509b
mov ecx, dword [ebp + 0xc]
push 4
pop edx
mov eax, dword [ecx]
neg eax
sbb eax, eax
and eax, edx
cmp dword [esi + 0x38], 0
je 0x40507b
test eax, eax
jne 0x40507e
push 3
pop edx
add ecx, 8
push eax
push ecx
push edx
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0xc

Function at 0x405157
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x30]
push dword [0x409fd4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40519f
mov eax, dword [ebp + 0xc]
push esi
lea esi, [eax + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0xc
Function at 0x40545f
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0x42f
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0x4046d0
lea edi, [eax + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4054a3
push edi
call fcn.00401c7c
inc eax
mov ecx, 0x100
cdq
idiv ecx
mov edi, eax
jmp 0x4054b9
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x24]
lea edi, [eax + 0xfff00]
shr edi, 0x14
push 4
mov ecx, edi
pop edx
cmp edi, edx
jg 0x4054c4
mov ecx, edx
mov eax, 0x3e7
cmp ecx, eax
jge 0x4054d5
cmp edi, edx
jg 0x4054d7
mov edi, edx
jmp 0x4054d7
mov edi, eax
push edi
lea eax, [ebp - 0xc]
push 0x40541b
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x42e
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0xa
push 0x46d
push dword [ebp - 4]
call esi
push 0x403e7
push 0
push 0x465
push dword [ebp - 4]
call esi
movzx eax, di
push eax
push 0
push 0x467
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call fcn.0040541e
pop edi
pop esi
leave
ret 8

Function at 0x406a7f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
lea eax, [ebp - 4]
push esi
push eax
xor esi, esi
push 0x20019
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406b63
lea eax, [ebp + 0x10]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x330]
push eax
push esi
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x128]
push eax
push esi
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0xc], 0x100
mov dword [ebp + 0x10], 0x208
call esi
test eax, eax
jne 0x406b5a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040198f
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x330]
push eax
call fcn.0040198f
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40900c]
call fcn.00401855
lea eax, [ebp + 0x10]
inc dword [ebp - 8]
push eax
lea eax, [ebp - 0x330]
push eax
push 0
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0xc], 0x100
push dword [ebp - 8]
mov dword [ebp + 0x10], 0x208
push dword [ebp - 4]
jmp 0x406adc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0x14
Function at 0x406cc8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x570
push edi
mov edi, dword [sym.imp.SHELL32.dll_Ordinal_37]
push 0x406e46
lea eax, [ebp - 0x570]
push dword [ebp + 0xc]
push eax
call edi
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x570]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x406e3c
push esi
push ebx
lea eax, [ebp - 0x20]
push 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
test byte [ebp - 0x160], 0x10
jne 0x406e19
lea eax, [ebp - 0x134]
push eax
call fcn.0040198f
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHELL32.dll_Ordinal_31]
mov esi, eax
lea eax, [ebp - 0x134]
cmp esi, eax
jbe 0x406ddf
push 0x406e41
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x406ddf
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x46c]
push dword [ebp + 0xc]
push eax
call edi
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x368]
push eax
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.0040729a
add esp, 0x10
test eax, eax
jl 0x406ddf
cmp byte [ebp - 0x368], bl
je 0x406dc8
lea eax, [ebp - 0x368]
push eax
call fcn.0040198f
mov dword [ebp - 0x10], eax
cmp byte [ebp - 0x264], bl
je 0x406ddf
lea eax, [ebp - 0x264]
push eax
call fcn.0040198f
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], ebx
jne 0x406dea
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x134]
cmp esi, eax
jbe 0x406df6
mov byte [esi], bl
cmp dword [ebp - 0x14], ebx
jne 0x406e0a
lea eax, [ebp - 0x134]
push eax
call fcn.0040198f
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x40900c]
call fcn.00401855
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406d2b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop esi
pop edi
leave
ret 0x10

Function at 0x407c76
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0xa
xor ebx, ebx
push dword [esi + 0x18e]
push dword [0x409ea8]
call fcn.00401cc6
mov edi, eax
cmp edi, ebx
je 0x407cfa
push dword [esi + 0x196]
lea eax, [ebp - 0x104]
push dword [esi + 0x192]
push eax
call dword [sym.imp.SHELL32.dll_Ordinal_37]
push ebx
push pe_nt_image_headers32
push 2
push ebx
push ebx
lea eax, [ebp - 0x104]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407cfa
lea eax, [ebp + 8]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 4
Function at 0x4083ac
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
or dword [ebp - 4], 0xffffffff
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x88]
push pe_nt_image_headers32
push eax
push 0
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4083f2
lea eax, [ebp - 4]
push eax
push 0x20019
lea eax, [ebp - 0x88]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
pop esi
mov dword [eax], ecx
leave
ret 8

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.0040826a
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040826a
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40826a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x408279
pop dword [ebp - 0x30]
mov eax, 0x408279
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x38a1d
push 0
mov eax, 0x18f1f98f
sub eax, 0x18ae795f
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x3fda
mov esi, eax
mov edx, 0xa4f5c029
sub edx, 0xa4b0fa29
add edx, dword [ebp - 0x30]
mov ebx, 0x377e9a53
sub ebx, 0xb61e6acf
sub dword [ebp - 0x24], eax
mov edi, dword [edx]
xor edi, ebx
add dword [ebp - 0x18], edi
mov dword [esi], edi
xor dword [ebp - 0x10], edx
add esi, 0x4d2f79f2
add esi, 0xb2d08612
add edx, 0xe621ee46
sub edx, 0xe621ee42
loop 0x4082cd
add eax, 0xf23b
xor ebx, ebx
add ebx, eax
add eax, 0xe914357e
sub eax, 0xe9143579
mov ecx, 0xbdb43f9d
add ecx, 0x428bc063
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x402320
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
xor edi, edi
xor ecx, ecx
mov esi, dword [esp + 0xc]
test eax, eax
setl cl
dec ecx
and ecx, 0xfffffffe
add ecx, 2
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x402363
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edi
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x40603d
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x4fc921
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2bc
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x5c]
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x531a1c]
mov edi, eax
mov dword [esp + 0x14], ecx
push edi
lea edx, [esp + 0x18]
push str._8d
push edx
mov dword [esp + 0x2e0], 0
call fcn.004d4ca7
mov eax, dword [esp + 0x20]
add esp, 0xc
add esi, 0x40
push 0
push 0
push 0
push 0
push eax
push edi
push 1
mov ecx, esi
call fcn.004d6b56
push edi
push 0
push 0
push 0
push 0
mov ebp, eax
push 4
push 0
push ebp
mov ecx, esi
call fcn.004d6bd8
mov ebx, dword [esp + 0x2e0]
lea ecx, [ebx + 0x16]
push ecx
push 1
push ebp
mov ecx, esi
call fcn.004d6c51
mov eax, dword [ebx]
cmp eax, 4
jne 0x4060d4
mov edx, dword [0x530bcc]
push edx
jmp 0x406102
cmp eax, 3
jne 0x4060e0
mov eax, dword [str.OtherSD]
jmp 0x406101
cmp eax, 2
jne 0x4060ee
mov ecx, dword [str.Broken]
push ecx
jmp 0x406102
cmp eax, 1
jne 0x4060fc
mov edx, dword [str.Encrypted]
push edx
jmp 0x406102
mov eax, dword [0x530bc4]
push eax
push 2
push ebp
mov ecx, esi
call fcn.004d6c51
mov ecx, 0xac
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0
rep stosd dword es:[edi], eax
push 0x400
lea ecx, [esp + 0x1c]
push 0x2b4
push ecx
lea edx, [ebx + 0x220]
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jl 0x40614c
lea eax, [esp + 0x22c]
push eax
jmp 0x406151
push 0x5441d0
push 3
push ebp
mov ecx, esi
call fcn.004d6c51
lea ecx, [esp + 0x10]
push str._Y__m__d__H:_M:_S
push ecx
lea ecx, [ebx + 8]
call fcn.004d54c8
mov eax, dword [eax]
mov ecx, esi
push eax
push 4
push ebp
mov byte [esp + 0x2e0], 1
call fcn.004d6c51
lea ecx, [esp + 0x10]
mov byte [esp + 0x2d4], 0
call fcn.004da7e6
mov edx, dword [ebx + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00406e30
add esp, 8
mov eax, dword [eax]
mov ecx, esi
push eax
push 5
push ebp
mov byte [esp + 0x2e0], 2
call fcn.004d6c51
lea ecx, [esp + 0x10]
mov byte [esp + 0x2d4], 0
call fcn.004da7e6
lea ecx, [esp + 0x14]
mov dword [esp + 0x2d4], 0xffffffff
call fcn.004da7e6
mov ecx, dword [esp + 0x2cc]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c8
ret 8
Function at 0x4066f0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fca18
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push edi
mov ebp, ecx
call fcn.0044d5d0
test eax, eax
je 0x406738
push 0
push 0
push str.Please_stop_old_scanning_first_
call fcn.004e77ab
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
mov eax, dword [esp + 0x24]
push ebx
push esi
push eax
lea ecx, [esp + 0x14]
call fcn.004da553
mov ecx, dword [esp + 0x10]
push 0x531308
push ecx
mov dword [esp + 0x2c], 0
call fcn.00423b5a
add esp, 8
test eax, eax
jne 0x4067d5
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
je 0x4067d5
push 0x5441d0
lea ecx, [esp + 0x14]
call fcn.004da97d
mov edx, dword [0x531300]
mov eax, dword [0x531304]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov edi, 1
mov esi, 0x41
test ebx, edi
je 0x4067cd
mov ecx, dword [esp + 0x10]
mov word [esp + 0x14], si
mov eax, dword [ecx - 8]
test eax, eax
je 0x4067bf
push 0x5301a4
lea ecx, [esp + 0x14]
call fcn.004dabd7
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.004dabd7
shl edi, 1
inc esi
cmp esi, 0x5a
jl 0x40679d
or edi, 0xffffffff
lea esi, [ebp + 0x24]
push edi
push 0
mov ecx, esi
call fcn.004d9287
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.00406920
add esp, 8
lea esi, [ebp + 0x38]
mov ecx, esi
push edi
push 0
call fcn.004d9287
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40681f
mov eax, dword [esi + 8]
push 0x5312fc
push eax
mov ecx, esi
call fcn.004d949d
jmp 0x406829
push esi
push eax
call fcn.00406920
add esp, 8
mov eax, dword [ebp + 0x2c]
pop esi
test eax, eax
pop ebx
jne 0x406845
push 0
push 0
push str.Invalid_path_
call fcn.004e77ab
jmp 0x4068cb
mov ecx, ebp
call fcn.0044d400
test eax, eax
jne 0x4068ed
mov ecx, ebp
call fcn.0044d550
mov ecx, ebp
call fcn.0044d400
test eax, eax
jne 0x4068ed
mov edx, dword [0x531a1c]
mov dword [esp + 0x24], edx
lea eax, [esp + 0x28]
push edi
push eax
mov byte [esp + 0x24], 1
call fcn.00417ab0
add esp, 8
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push ecx
push str.Create_scan_Thread_failed___r_n_r_nError:__s
push edx
mov byte [esp + 0x28], 2
call fcn.004d4ca7
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 1
call fcn.004da7e6
mov eax, dword [esp + 0x24]
push 0
push 0
push eax
call fcn.004e77ab
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call fcn.004da7e6
lea ecx, [esp + 8]
mov dword [esp + 0x1c], edi
call fcn.004da7e6
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
lea ecx, [esp + 8]
mov dword [esp + 0x1c], edi
call fcn.004da7e6
mov ecx, dword [esp + 0x14]
pop edi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 8