joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4190f1
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push esi
push edi
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 0x20c]
push eax
mov ebx, edx
xor esi, esi
push esi
mov edx, 0x41e6b0
mov edi, ecx
call fcn.00419552
test bl, 1
je 0x4191d3
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4191d3
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
lea edx, [ebp - 0x430]
mov ecx, edi
call fcn.00419552
test byte [ebp - 0x45c], 0x10
je 0x4191a1
cmp word [ebp - 0x430], 0x2e
jne 0x41918d
cmp word [ebp - 0x42e], 0
je 0x4191b2
cmp word [ebp - 0x42e], 0x2e
jne 0x41918d
cmp word [ebp - 0x42c], 0
je 0x4191b2
test bl, 2
je 0x4191b2
mov edx, ebx
lea ecx, [ebp - 0x20c]
call fcn.004190f1
jmp 0x4191ac
lea ecx, [ebp - 0x20c]
call fcn.00418cff
mov esi, eax
test esi, esi
jne 0x4191ca
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x419142
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindClose]
test bl, 4
jne 0x4191f7
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x4191f7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
cmp esi, 2
je 0x4191f5
cmp esi, 3
jne 0x4191f7
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x41b395
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 0x28
mov edi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41b3f8
push esi
lea eax, [ebp - 0x10]
push eax
push 0x42051c
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x41b3ee
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
push edi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
pop edi
neg eax
pop ebx
leave
ret

Function at 0x41b456
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x41b461
xor eax, eax
pop esi
ret
push edi
push esi
push 0x41b40a
call dword [sym.imp.USER32.dll_EnumWindows]
lea edi, [esi + 0x214]
cmp word [edi], 0
jne 0x41b492
lea eax, [esi + 0x41a]
push eax
lea ecx, [esi + 0xc]
call fcn.00419397
mov edx, edi
mov ecx, eax
call fcn.004173df
xor eax, eax
cmp dword [esi + 8], eax
pop edi
setne al
pop esi
ret
Function at 0x41b62b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
cmp dword [0x422e10], 0xffffffff
je 0x41b67a
lea eax, [ebp - 5]
push eax
lea eax, [ebp - 0x404]
mov edx, ecx
mov ecx, dword [0x4238d8]
push eax
call fcn.0041acd4
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x404]
call fcn.0041a482
push eax
lea eax, [ebp - 0x404]
push eax
push dword [0x422e10]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
leave
ret

Function at 0x41b72c
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa24
cmp dword [0x422e10], 0xffffffff
je 0x41b742
xor eax, eax
leave
ret
push ebx
xor ebx, ebx
cmp dword [0x423248], ebx
je 0x41b755
push 6
pop eax
jmp 0x41b8d0
push esi
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x224]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov esi, 0x423650
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov edi, 0x423856
push edi
push esi
lea ecx, [ebp - 0x224]
call fcn.00419397
xor edx, edx
mov ecx, eax
call fcn.0041957a
push edi
mov ecx, esi
call fcn.004193c2
mov edx, eax
mov ecx, 0x42065c
call fcn.004173df
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push esi
mov dword [0x423248], 1
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x422e10], eax
jne 0x41b7dd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x41b8ce
mov ecx, eax
call fcn.00418d2d
cmp edx, ebx
ja 0x41b7ef
cmp eax, 0x10000
jbe 0x41b7fb
push dword [0x422e10]
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
push 2
lea eax, [ebp - 4]
push eax
push ebx
push dword [0x422e10]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp - 8], eax
or eax, dword [ebp - 4]
jne 0x41b840
cmp dword [0x4238d8], 0xfde9
jne 0x41b840
push ebx
lea eax, [ebp - 0x1c]
push eax
push 3
push 0x420500
push dword [0x422e10]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
push dword [0x422dd4]
lea eax, [ebp - 0x226]
push dword [0x422dd0]
push dword [0x422dcc]
push ebx
push 0x420630
push eax
lea eax, [ebp - 0xa24]
push eax
call fcn.00418596
mov esi, eax
add esp, 0x20
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
push dword [0x4238bc]
lea eax, [ebp - 0x224]
push eax
push dword [0x4238b4]
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
push 0x4205c0
lea eax, [ebp - 0x226]
push eax
push esi
call fcn.00418596
add esp, 0x30
lea ecx, [ebp - 0xa24]
call fcn.0041b62b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b974
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov edx, dword [ecx + 4]
mov eax, dword [edi + 0x420668]
xor eax, edx
mov dword [ebp - 4], edx
mov edx, eax
shr eax, 0x10
and edx, 0xffff
mov esi, eax
imul eax, esi
imul esi, edx
mov ebx, edx
imul ebx, edx
mov edx, dword [ebp - 4]
not eax
add eax, ebx
mov ebx, eax
shr ebx, 0x10
shl eax, 0x10
or ebx, eax
xor ebx, dword [edi + 0x420678]
add edi, 4
add ebx, esi
xor ebx, dword [ecx]
cmp edi, 0x10
mov dword [ecx + 4], ebx
mov dword [ecx], edx
jb 0x41b97d
pop edi
mov eax, ebx
pop esi
xor eax, edx
pop ebx
leave
ret

Function at 0x41bd4a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.004173a8
test eax, eax
jne 0x41bdd8
test esi, esi
je 0x41bdd8
push 0x10
pop edx
mov ecx, esi
call fcn.004188b5
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [esi + 4], eax
jne 0x41bd82
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x41bddb
push eax
call fcn.00419aa2
pop ecx
push eax
push dword [esi + 4]
mov dword [esi], eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41bdc5
lea eax, [ebp - 4]
push eax
lea eax, [esi + 8]
push eax
push 0x4206e0
push dword [esi]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41bdc5
mov eax, dword [ebp - 4]
cmp eax, 4
jb 0x41bdc5
shr eax, 2
mov dword [esi + 0xc], eax
xor eax, eax
jmp 0x41bddb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.0041bcad
mov eax, edi
jmp 0x41bddb
push 0x57
pop eax
pop edi
pop esi
leave
ret
Function at 0x41bddf
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ebx
jne 0x41be01
push 0x57
pop eax
jmp 0x41bec2
push edi
xor ecx, ecx
push 4
pop edi
inc ecx
cmp edx, edi
mov dword [esi], ebx
je 0x41be22
cmp edx, 8
je 0x41be1d
mov eax, 0x80000000
mov dword [ebp + 0x10], edi
jmp 0x41be2e
mov dword [ebp + 0x10], ecx
jmp 0x41be29
mov dword [ebp + 0x10], 2
mov eax, 0xc0000000
push ebx
push 0x80
push 3
push ebx
push ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41be77
mov edi, dword [ebp + 8]
push ebx
push edi
push ebx
push dword [ebp - 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x41be77
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, ebx
mov dword [esi], eax
jne 0x41be81
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
jmp 0x41beaf
cmp edi, ebx
je 0x41be8d
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
jmp 0x41beaf
lea edi, [esi + 8]
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp dword [ebp + 0xc], eax
mov dword [esi + 4], eax
ja 0x41bea7
sub eax, dword [ebp + 0xc]
jmp 0x41beac
sub eax, dword [ebp + 0xc]
dec dword [edi]
mov dword [esi + 4], eax
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 8]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41d2ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
and ecx, ecx
je 0x41d306
xor eax, eax
movzx ebx, byte [esi + 0x100]
movzx edx, byte [esi + 0x101]
inc dl
mov al, byte [esi + edx]
add bl, al
mov ah, byte [esi + ebx]
mov byte [esi + ebx], al
mov byte [esi + edx], ah
add al, ah
xor ah, ah
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41d2dd
mov byte [esi + 0x100], bl
mov byte [esi + 0x101], dl
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406386
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 0x406536
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 0x406593
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 0x406591
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 0x40659e
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.00406354
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x406630
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 0x406619
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 0x406619
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 0x406622
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 0x406639
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 0x406977
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 0x406bb3
Capabilities:
Get common file path

Disassembly:
cmp word [0x4198c8], 0
push esi
mov esi, 0x4198c8
jne 0x406bd4
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov dword [0x419ad4], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x419ad4]
pop ecx
pop ecx
pop esi
ret
Function at 0x40700d
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x4144f0
push eax
push eax
push dword [esp + 0x14]
push 0x415074
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 0x407831
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
and word [ebp - 0x800], 0
push esi
push 0x7fe
lea eax, [ebp - 0x7fe]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp word [0x419ad8], 0
mov esi, 0x419ad8
jne 0x407879
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov dword [0x419ce4], eax
lea eax, [ebp - 0x800]
push esi
push eax
call sub.msvcrt.dll_wcscpy
lea esi, [ebp - 0x800]
call fcn.004063aa
push dword [ebp + 8]
mov eax, esi
push eax
call sub.msvcrt.dll_wcscat
mov eax, esi
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
add esp, 0x10
push eax
call esi
test eax, eax
jne 0x4078b3
push dword [ebp + 8]
call esi
pop esi
leave
ret

Function at 0x408657
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x419270
push dword [esp + 0xc]
push esi
push 0x4144f0
push dword [esp + 0x14]
push 0x419480
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov eax, esi
ret

Function at 0x40867c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00413150
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x419270
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4144f0
push dword [ebp + 8]
push 0x419480
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x4086eb
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 0x4086ef
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00413150
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, 0x419270
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4144f0
push dword [ebp + 8]
mov esi, 0x419480
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x408756
cmp dword [ebp + 0x10], 0
jne 0x408756
xor eax, eax
jmp 0x408764
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 0x408adb
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00406977
test eax, eax
pop ecx
je 0x408b62
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x419270
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x419480
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x4151a8
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, 0x419510
mov dword [0x419508], eax
call fcn.00408657
push 0x3f
push str.TranslatorName
mov esi, 0x419590
call fcn.00408657
push 0xff
push str.TranslatorURL
mov esi, 0x419610
call fcn.00408657
add esp, 0x18
pop edi
pop esi
ret

Function at 0x408d4a
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x41447c
push 1
xor edi, edi
push edi
push 0x41448c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x408e17
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp + 0x1c], edi
je 0x408da1
mov eax, dword [ebp - 4]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
cmp dword [ebp + 0x14], edi
je 0x408db2
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push dword [ebp + 0x18]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41449c
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x408e0e
push dword [ebp + 0xc]
mov eax, 0x104
lea edi, [ebp - 0x214]
call fcn.004067ae
mov eax, dword [ebp - 8]
pop ecx
mov ecx, dword [eax]
push 1
mov edx, edi
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40a142
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00413150
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 0x40b2be
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x4c8
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 + 0x2bc], edi
je 0x40b3a1
cmp dword [esi + 0x2c4], edi
je 0x40b364
push 0x2b0
lea eax, [esp + 0x22c]
push edi
push eax
mov dword [esp + 0x230], edi
call sub.msvcrt.dll_memset
push 0x208
lea eax, [esp + 0x2a]
push edi
push eax
mov word [esp + 0x30], di
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x104
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x22c]
push eax
push edi
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
push 1
push 0x1003
push dword [esi + 0x2a8]
mov dword [esi + 0x2b0], eax
call ebx
jmp 0x40b3a1
call fcn.0040793e
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call ebp
push 7
lea edi, [esi + 0x2b0]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push 1
push 0x1003
push dword [esi + 0x2a8]
call ebx
xor edi, edi
cmp dword [esi + 0x2c0], edi
je 0x40b3e4
call fcn.0040793e
push 0x60
pop ecx
shl eax, 5
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call ebp
push 7
lea edi, [esi + 0x2b4]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push 0
push 0x1003
push dword [esi + 0x2a8]
call ebx
call fcn.0040793e
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
mov edi, eax
push edi
push edi
call ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0
mov dword [esi + 0x2ac], eax
call ebp
push 0x1000
push edi
push edi
push 0
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push 0
mov dword [esp + 0x14], eax
call ebp
push 0x1000
push edi
push edi
push 0
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push 0
push dword [esi + 0x2ac]
mov ebp, eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x1c], eax
push dword [esi + 0x2ac]
call edi
push dword [esp + 0x14]
push ebp
push dword [esi + 0x2ac]
call edi
push dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push ebp
call edi
mov eax, dword [esi + 0x2ac]
mov esi, dword [esi + 0x2a8]
push eax
push 0
push 0x1208
push esi
call fcn.00404e74
pop ecx
push eax
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c8
ret
Function at 0x40bb7d
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
movzx eax, word [esi + 0x2a4]
cmp word [esp + 0x10], ax
push edi
jb 0x40bbd0
movzx edi, word [esp + 0x14]
movzx eax, ax
add eax, dword [esi + 0x320]
cmp edi, eax
jge 0x40bbd0
push 0x10
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x40bbb3
inc ebx
movzx ecx, word [esi + 0x2a4]
push ebx
mov eax, edi
push 0
sub eax, ecx
call fcn.00409803
call fcn.0040bbd9
xor eax, eax
inc eax
jmp 0x40bbd2
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x40bc9d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
call fcn.0040bc76
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0x1388
call fcn.00406354
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 4], eax
je 0x40bd6c
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea edi, [esi + 4]
lea eax, [ebp - 0x10]
call fcn.0040801e
mov edi, dword [ebp - 0x10]
push esi
push edi
push dword [ebp - 4]
call fcn.0040717f
add esp, 0xc
mov byte [edi + esi], bl
mov byte [edi + esi + 1], bl
mov byte [edi + esi + 2], bl
cmp byte [edi], 0xff
jne 0x40bd10
cmp byte [edi + 1], 0xfe
jne 0x40bd10
add edi, 2
jmp 0x40bd15
cmp byte [edi + 1], bl
jne 0x40bd20
push edi
mov edi, dword [ebp + 8]
call fcn.00407afa
jmp 0x40bd57
mov eax, dword [ebp + 8]
lea edx, [esi + 1]
call fcn.00407a9f
mov eax, dword [ebp + 8]
call fcn.00407aee
mov word [eax], bx
mov eax, dword [ebp + 8]
push esi
call fcn.00407aee
push eax
push 0xffffffffffffffff
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [ebp + 8]
call fcn.00407aee
mov word [eax + esi*2], bx
mov eax, dword [ebp + 8]
call fcn.0040bdf2
push dword [ebp - 4]
xor ebx, ebx
inc ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
lea esi, [ebp - 0x10]
call fcn.00408037
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x40bd7c
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov eax, edi
xor ebx, ebx
call fcn.0040bc76
mov esi, eax
mov eax, edi
call fcn.00407b3b
test eax, eax
push esi
jne 0x40bdab
call fcn.00406977
test eax, eax
pop ecx
je 0x40bda6
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
xor eax, eax
inc eax
jmp 0x40bdef
call fcn.0040636d
mov esi, eax
cmp esi, 0xffffffff
pop ecx
je 0x40bded
push 2
push 0x415680
push esi
call fcn.0040719e
add esp, 0xc
mov eax, edi
call fcn.00407b3b
add eax, eax
push eax
mov eax, edi
call fcn.00407aee
push eax
push esi
call fcn.0040719e
add esp, 0xc
xor ebx, ebx
push esi
inc ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
pop esi
pop ebx
ret