joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x564c6ecc
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x69c81afd
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x404508
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x104
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, edi
call fcn.004049c4
push ebx
push str.minidump
call fcn.004056bd
mov esi, 0x208
xor edi, edi
push esi
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x416]
push edi
push eax
mov word [ebp - 0x418], di
call sub.msvcrt.dll_memset
push str.MinidumpDir
push str.SYSTEMCurrentControlSetControlCrashControl
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x20c]
call fcn.0040f1ce
add esp, 0x2c
cmp word [ebp - 0x20c], di
je 0x4045c1
push ebx
lea eax, [ebp - 0x418]
push eax
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x418]
push eax
call fcn.00404dfc
test eax, eax
pop ecx
je 0x4045c1
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x418]
push eax
mov eax, ebx
call fcn.00404c75
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404638
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x40468d
push edi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenEventLogW
push eax
mov dword [esi], eax
call edi
push str.CloseEventLogW
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.ClearEventLogW
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.ReadEventLogW
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.OpenBackupEventLogW
push dword [esi]
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
pop edi
ret

Function at 0x4049a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
pop ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
leave
ret

Function at 0x404b27
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test ebp, ebp
je 0x404b84
push ebx
push edi
push ebp
call sub.msvcrt.dll_wcslen
pop ecx
lea ebx, [eax + eax + 2]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x404b82
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push ebp
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
pop edi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
pop ebp
ret
Function at 0x404b8f
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.0040496e
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x404c21
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x404c0a
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404c0a
shr esi, 1
and word [edi + esi*2], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x404c13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x404c2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x405012
Capabilities:
Get common file path

Disassembly:
cmp word [0x4281a8], 0
push esi
mov esi, 0x4281a8
jne 0x405033
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [0x4283b4], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x4283b4]
pop ecx
pop ecx
pop esi
ret

Function at 0x405046
Capabilities:
Get common file path

Disassembly:
cmp word [0x4283b8], 0
push esi
mov esi, 0x4283b8
jne 0x405067
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [0x4285c4], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x4285c4]
pop ecx
pop ecx
pop esi
ret

Function at 0x40552c
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x413548
push eax
push eax
push dword [esp + 0x14]
push str.open
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x405a7f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405adc
cmp word [ebp - 0x224], 0x2e
jne 0x405ac2
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405aa4
jmp 0x405ad5
mov edi, dword [ebp + 0xc]
mov ecx, 0x94
lea esi, [ebp - 0x250]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x405b6b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp word [0x4287d8], 0
push esi
mov esi, 0x4287d8
jne 0x405bf0
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [ebp - 4], 0
push str.IsWow64Process
push str.kernel32
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405bae
lea ecx, [ebp - 4]
push ecx
push edi
call eax
cmp dword [ebp - 4], 0
je 0x405bde
mov edi, 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
call fcn.004049c4
push edi
push str.Sysnative
mov edi, esi
call fcn.004056bd
push esi
call sub.msvcrt.dll_wcslen
add esp, 0xc
jmp 0x405bea
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [0x4289e4], eax
pop edi
push esi
push dword [ebp + 8]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x4289e4]
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x40602c
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x406058
lea eax, [esi + 0x28c]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov dword [esp + 4], ecx
jmp 0x406073
lea ecx, [esi + 0x28c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov dword [esp + 4], eax
jne 0x40607a
call fcn.004060c5
cmp dword [esp + 4], 0
je 0x4060be
push ebx
push ebp
push edi
lea edi, [esi + 0x4dc]
lea ebx, [esi + 0x2b8]
add esi, 0x764
push esi
call sub.msvcrt.dll_wcslen
push ebx
mov ebp, eax
call sub.msvcrt.dll_wcslen
lea eax, [eax + ebp + 1]
cmp eax, 0x143
pop ecx
pop ecx
jae 0x4060b7
push ebx
push esi
mov eax, edi
call fcn.00404f85
pop ecx
pop ecx
jmp 0x4060bb
and word [edi], 0
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop esi
pop ecx
ret

Function at 0x406272
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
push edi
mov esi, eax
call fcn.004062de
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push SysReAllocString
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x4062d2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push edi
push 2
push edi
push dword [esi]
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov dword [esi + 4], eax
je 0x4062d2
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x4062d2
xor eax, eax
inc eax
jmp 0x4062d9
call fcn.004062de
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x406d06
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x41a388
push dword [esp + 0xc]
push esi
push 0x413548
push dword [esp + 0x14]
push 0x41a598
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, esi
ret

Function at 0x406d2b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00412df0
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x41a388
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x413548
push dword [ebp + 8]
push 0x41a598
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x406d9a
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcscpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x406d9e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00412df0
and word [ebp - 0x2004], 0
push esi
push edi
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x41a388
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x413548
push dword [ebp + 8]
mov esi, 0x41a598
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x406e05
cmp dword [ebp + 0x10], 0
jne 0x406e05
xor eax, eax
jmp 0x406e13
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
leave
ret

Function at 0x40718a
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00404dfc
test eax, eax
pop ecx
je 0x407211
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x41a388
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x41a598
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x415a44
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x41a628
mov dword [0x41a620], eax
call fcn.00406d06
push 0x3f
push str.TranslatorName
mov esi, 0x41a6a8
call fcn.00406d06
push 0xff
push str.TranslatorURL
mov esi, 0x41a728
call fcn.00406d06
add esp, 0x18
pop edi
pop esi
ret
Function at 0x4096d9
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
and dword [ebp - 0x2b4], 0
push 0x2b0
lea eax, [ebp - 0x2b0]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x111
push 0x2b4
lea eax, [ebp - 0x2b4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp dword [ebp - 0x2b4], 0
je 0x409731
push dword [ebp - 0x2b4]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x2b0]
leave
ret 8

Function at 0x4097e1
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
mov eax, edi
call fcn.00408d96
and dword [ebp - 4], 0
test eax, eax
mov dword [ebp - 8], eax
jle 0x40986f
cmp dword [ebp + 8], 0
je 0x40982c
mov eax, dword [ebp - 4]
push 0x64
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x40982c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x10]
cmp eax, 0x1f4
ja 0x40986f
mov ebx, dword [esi + 0xc]
add ebx, dword [ebp - 4]
cmp ebx, dword [ebp - 8]
jl 0x409840
test byte [esi + 0x10], 0x20
je 0x40986f
sub ebx, dword [ebp - 8]
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
mov ecx, edi
call fcn.004094b4
test eax, eax
je 0x409864
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.00409752
test eax, eax
jne 0x409879
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x409809
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, ebx
jmp 0x409872

Function at 0x409d04
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8004
call fcn.00412df0
push ebx
push esi
mov esi, 0x7fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x8003]
push ebx
push eax
mov byte [ebp - 0x8004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x8004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x8004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x8004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
leave
ret

Function at 0x409d73
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00412df0
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
leave
ret
Function at 0x40aeb1
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x4cc
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
mov ebp, dword [sym.imp.COMCTL32.dll_ImageList_Create]
push esi
push edi
mov esi, eax
xor edi, edi
cmp dword [esi + 0x2b8], edi
je 0x40af77
cmp dword [esi + 0x2c0], edi
je 0x40af48
push 0x2b0
lea eax, [esp + 0x230]
push edi
push eax
mov dword [esp + 0x234], edi
call sub.msvcrt.dll_memset
push 0x208
lea eax, [esp + 0x2e]
push edi
push eax
mov word [esp + 0x34], di
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x104
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x230]
push eax
push edi
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esi + 0x2ac], eax
push eax
jmp 0x40af68
push 1
push 1
push 0x19
push 0x10
push 0x10
call ebp
push edi
push eax
mov dword [esi + 0x2ac], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x2ac]
push 1
push 0x1003
push dword [esi + 0x2a4]
call ebx
cmp dword [esi + 0x2bc], edi
je 0x40afad
push 1
push 1
push 0x19
push 0x20
push 0x20
call ebp
push edi
push eax
mov dword [esi + 0x2b0], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x2b0]
push edi
push 0x1003
push dword [esi + 0x2a4]
call ebx
push 1
push 1
push 0x19
push 0x10
push 0x10
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
mov dword [esi + 0x2a8], eax
call ebp
push 0x1000
push 0x10
push 0x10
push edi
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push edi
mov dword [esp + 0x14], eax
call ebp
push 0x1000
push 0x10
push 0x10
push edi
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push edi
push dword [esi + 0x2a8]
mov dword [esp + 0x1c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebp, dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], eax
push dword [esi + 0x2a8]
call ebp
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x2a8]
call ebp
push dword [esp + 0x10]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
call ebp
push dword [esp + 0x14]
call ebp
mov eax, dword [esi + 0x2a8]
mov esi, dword [esi + 0x2a4]
push eax
push edi
push 0x1208
push esi
call fcn.0040299c
pop ecx
push eax
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4cc
ret
Function at 0x40bfa6
Capabilities:
Delete file
Get common file path
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
mov esi, eax
lea eax, [ebp - 0x410]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40bfd8
push edi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
and word [ebp - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push 0
push 0x41637c
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [esi + 0x694]
push 1
push 1
push 2
lea ecx, [ebp - 0x208]
push ecx
push eax
call fcn.0040be87
test eax, eax
je 0x40c05c
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40c037
lea eax, [ebp - 0x208]
push eax
call fcn.00404b8f
pop ecx
jmp 0x40c03d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40c04f
push dword [esi + 0x208]
mov ecx, eax
call fcn.004049e7
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
leave
ret

Function at 0x40c17e
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0x690]
xor dword [eax + 0x28], 1
mov eax, esi
call fcn.0040c128
push 0
call fcn.0040b38e
mov eax, dword [esi + 0x690]
mov eax, dword [eax + 0x28]
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [esi + 0x6cc]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0040b823
mov eax, dword [esi + 0x690]
cmp dword [eax + 0x28], 0
je 0x40c1e0
mov esi, dword [esi + 0x6cc]
push 0x40b
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop esi
ret

Function at 0x40c272
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [ebx + 0x694]
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.0040952a
test eax, eax
je 0x40c31d
push esi
push edi
xor edi, edi
push 0x208
lea eax, [ebp - 0x212]
push edi
push eax
mov word [ebp - 0x214], di
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
add esp, 0xc
mov eax, 0x419a88
call fcn.00405d37
mov esi, eax
cmp word [esi], di
je 0x40c31b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c2f2
test al, 0x10
je 0x40c2f2
push esi
mov eax, 0x104
lea edi, [ebp - 0x214]
call fcn.00404c75
xor edi, edi
jmp 0x40c2fe
push esi
lea esi, [ebp - 0x214]
call fcn.00404ed1
pop ecx
push 5
push edi
push edi
lea eax, [ebp - 0x214]
push eax
push str.open
push dword [ebx + 0x208]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
mov eax, dword [ebp - 4]
call fcn.00408dd7
leave
ret
Function at 0x40c852
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
push ebx
push esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
test ax, ax
jns 0x40c901
lea eax, [esp + 0xc]
push eax
push dword [edi + 0x694]
call fcn.0040952a
test eax, eax
je 0x40c901
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x1c]
mov eax, 0x419a88
call fcn.00405d37
mov edx, eax
cmp word [edx], bx
je 0x40c901
lea eax, [esp + 0x30]
mov dword [esp + 0x18], 0x416efc
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
call fcn.00405c03
push edx
call fcn.00405c4b
lea eax, [esp + 0x30]
push eax
lea esi, [esp + 0x1c]
call fcn.00410059
push dword [esp + 0x14]
mov eax, esi
push dword [esp + 0x14]
push dword [edi + 0x208]
call fcn.0040ff46
lea esi, [esp + 0x30]
call fcn.00405c25
lea ecx, [esp + 0x18]
call fcn.0040fded
jmp 0x40c945
push ebx
push dword [edi + 0x270]
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x694]
push ebx
call fcn.0040940e
push dword [esp + 0xc]
mov esi, edi
call fcn.0040b38e
push ebx
push dword [edi + 0x208]
push ebx
push dword [esp + 0x20]
push dword [esp + 0x20]
push 2
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40cafc
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov byte [edi + 3], 0
call esi
test ax, ax
jns 0x40cb70
push 0x10
call esi
test ax, ax
jns 0x40cb70
push 0x12
call esi
test ax, ax
js 0x40cb70
inc dword [0x4289e8]
mov eax, dword [0x4289e8]
cmp byte [eax + edi], 0
jne 0x40cb77
mov eax, dword [ebx + 0x690]
add eax, 0x2040
mov edx, dword [eax]
xor ecx, ecx
neg edx
sbb edx, edx
and edx, 0xfffff830
add edx, 0x7d0
push ecx
mov dword [eax], edx
mov eax, dword [ebx + 0x694]
push ecx
push dword [eax + 0x2a4]
mov dword [0x4289e8], ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x40cb77
and dword [0x4289e8], 0
xor eax, eax
inc eax
pop esi
ret
Function at 0x40dd20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x428148], ebx
jne 0x40ddd0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 8], eax
xor edi, edi
mov esi, 0x41b1fc
mov dword [ebp - 4], 0x1a
xor eax, eax
inc eax
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 8]
test ecx, eax
je 0x40ddb8
mov eax, dword [0x4137c8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x4137cc]
mov dword [ebp - 0xc], eax
lea eax, [edi + 0x41]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
push eax
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x40dd89
cmp eax, 5
jne 0x40ddb8
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40ddb8
mov eax, dword [esi]
cmp eax, ebx
je 0x40ddb8
push eax
push str._8.8x
lea eax, [esi + 4]
push 0x1f
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x10
inc edi
add esi, 0x848
dec dword [ebp - 4]
jne 0x40dd4e
pop edi
mov dword [0x428148], 1
pop esi
pop ebx
leave
ret

Function at 0x40ddd3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [0x42814c], ebx
push esi
push edi
jne 0x40de46
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0x41a9f8
mov dword [ebp - 8], 0x1a
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0xc]
test ecx, eax
je 0x40de2f
mov esi, 0x416954
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
push 0x400
push dword [ebp - 4]
lea eax, [ebx + 0x41]
movsw word es:[edi], word [esi]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
add dword [ebp - 4], 0x848
inc ebx
dec dword [ebp - 8]
jne 0x40ddfd
mov dword [0x42814c], 1
pop edi
pop esi
pop ebx
leave
ret