joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406580
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xe4]
mov ebx, dword [edi + 0xec]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x4322e0]
sub esi, 1
jne 0x4065c0
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3e8c], ebx
jne 0x4065f7
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.00417a40
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f2a5
mov esp, ebp
pop ebp
ret 4
Function at 0x4086f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x4393a8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
mov eax, dword [esi + 0x47f0]
mov edx, dword [eax]
inc dword [esi + 0xa4]
mov ecx, dword [edi + 0x264]
mov dword [ebp - 4], edx
cmp dword [ecx + 0x7c], 1
jle 0x40872f
push ecx
add ecx, 0x78
call fcn.00423bd0
mov edx, dword [ebp - 4]
mov edi, dword [edi + 0x264]
mov esi, dword [edx + ebx*4 + 0x70]
mov eax, dword [edi]
test eax, eax
je 0x4087a2
cmp eax, 1
jne 0x408753
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x408753
cmp dword [eax + 0x20], 0
je 0x4087a2
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x408789
lea edx, [eax + 1]
mov dword [ebp - 8], edx
test ecx, ecx
je 0x408774
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 8]
sar eax, 1
add eax, ecx
jmp 0x408779
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.004183e0
mov edx, dword [ebp - 4]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edi
inc dword [esi]
inc dword [edx + 0x3c]
mov eax, dword [edi + 0x18]
add dword [edx + 0x44], eax
mov eax, dword [edi + 0xc]
add dword [edx + 0x40], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x188]
mov eax, dword [eax + 0x180]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x4087e2
nop dword [eax + eax]
mov ecx, dword [esi]
cmp byte [ecx + 0xaa], 0
je 0x4087db
cmp byte [ecx + 0xb1], 0
jne 0x4087db
mov edx, ebx
call fcn.004086f0
add esi, 4
cmp esi, edi
jne 0x4087c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4099f0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x409a2d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x409a13
cmp byte [esi], bl
jne 0x409a13
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x4322e0]
test bl, bl
jne 0x409a04
pop edi
pop esi
not ecx
pop ebx
jmp fcn.00409990
Function at 0x4164d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5b94], 0
lea esi, [edi + 0x5b98]
je 0x416552
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x41650c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.004187d0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.00403e00
mov edx, dword [esi]
mov ecx, 0x4393a4
push dword [edi + 0x5b94]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5ba0]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.00403e00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416960
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x4393a8]
test bl, bl
je 0x4169a6
or edi, 0xffffffff
cmp bl, 0x23
jne 0x416987
cmp byte [esi], bl
jne 0x416987
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x4322e0]
test bl, bl
jne 0x416978
mov edi, dword [0x4393a8]
mov ecx, dword [edi + 0x5b38]
not eax
mov edx, dword [edi + 0x5b40]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x4169cd
cmp dword [edx + 4], eax
je 0x4169d0
add edx, 0x24
cmp edx, ecx
jne 0x4169c1
xor eax, eax
ret
mov eax, edx
ret
Function at 0x429320
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4393a8]
lea eax, [ebp - 0x10]
push esi
push edi
push eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4294cc
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4294cc
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x4393a8]
add esp, 4
mov edi, eax
test esi, esi
je 0x4293c3
movsx edx, word [esi + 0x5c24]
lea eax, [esi + 0x5c28]
mov ecx, dword [esi + 0x3dd8]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x4293b9
lea eax, [edx + 1]
mov dword [ebp - 0x1c], 6
cdq
idiv dword [ebp - 0x1c]
movzx eax, dx
mov word [esi + 0x5c24], ax
cwde
add eax, 0xb85
lea eax, [esi + eax*8]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [esi + 0x5c1c]
test edi, edi
je 0x4293d6
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x4293d8
xor edi, edi
or dword [ebx + 0xc], 6
mov dword [ebx + 0x70], edi
mov dword [ebx + 0x68], str.imgui_impl_win32
mov ebx, dword [ebp - 0x24]
mov dword [edi], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x429413
mov esi, dword [esi + 0x70]
jmp 0x429415
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x429438
mov dword [esi], eax
mov eax, dword [0x4393a8]
xor esi, esi
mov dword [ebp - 0x38], str.xinput1_4.dll
mov dword [ebp - 0x34], str.xinput1_3.dll
mov dword [ebp - 0x30], str.xinput9_1_0.dll
mov eax, dword [eax + 0x47f0]
mov dword [ebp - 0x2c], str.xinput1_2.dll
mov dword [ebp - 0x28], str.xinput1_1.dll
mov eax, dword [eax]
mov dword [eax + 0x24], ebx
mov byte [edi + 0x29], 1
push dword [ebp + esi*4 - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x42949a
inc esi
cmp esi, 5
jl 0x429471
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f2a5
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f2a5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f2a5
mov esp, ebp
pop ebp
ret
Function at 0x42fba9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42fbe8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42fbe8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42fbe8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42fbe8
cmp dword [ecx + 0x74], 0xe
jbe 0x42fbe8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4034ea
Capabilities:
Create thread
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov dword [esi + 0xfc18], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [esi + 0xfc1c], eax
mov eax, dword [ebp + 0x10]
push 0x25
push dword [ebp + 8]
mov dword [esi + 0xfc20], 0x15b
mov dword [esi + 0xfc28], eax
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x403537
push 0x104
lea eax, [esi + 0xfa0c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40354b
push dword [ebp + 8]
lea edi, [esi + 0xfa0c]
mov eax, 0x104
call fcn.00404556
pop ecx
xor eax, eax
lea ecx, [ebp + 0xc]
push ecx
push eax
push esi
push 0x4034da
push eax
push eax
mov dword [esi + 0xfa08], eax
mov dword [ebp + 0xc], eax
mov dword [esi + 0xfc24], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0x64
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xfc24]
pop edi
pop ebp
ret 0xc

Function at 0x404283
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 0x40440a
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 0x404467
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 0x404465
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 0x404472
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.00404251
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x404504
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 0x4044ed
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 0x4044ed
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 0x4044f6
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 0x40450d
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 0x4046d2
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 0x4048cf
Capabilities:
Get common file path

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

Function at 0x404cf9
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x40e4e8
push eax
push eax
push dword [esp + 0x14]
push 0x40ed6c
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 0x404eee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x40f2f0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
leave
ret

Function at 0x4052ad
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 0x40530a
cmp word [ebp - 0x224], 0x2e
jne 0x4052f0
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4052d2
jmp 0x405303
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 0x405ef0
Capabilities:
Read .ini file

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

Function at 0x405f15
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040d870
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x412c68
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x40e4e8
push dword [ebp + 8]
push 0x412e78
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x405f84
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 0x405f88
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040d870
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, 0x412c68
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x40e4e8
push dword [ebp + 8]
mov esi, 0x412e78
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x405fef
cmp dword [ebp + 0x10], 0
jne 0x405fef
xor eax, eax
jmp 0x405ffd
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 0x406374
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.004046d2
test eax, eax
pop ecx
je 0x4063fb
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x412c68
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x412e78
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x40ee24
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, 0x412f08
mov dword [0x412f00], eax
call fcn.00405ef0
push 0x3f
push str.TranslatorName
mov esi, 0x412f88
call fcn.00405ef0
push 0xff
push str.TranslatorURL
mov esi, 0x413008
call fcn.00405ef0
add esp, 0x18
pop edi
pop esi
ret

Function at 0x40756d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040d870
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 0x408657
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 + 0x2ac], edi
je 0x40871d
cmp dword [esi + 0x2b4], edi
je 0x4086ee
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 + 0x2a0], eax
push eax
jmp 0x40870e
push 1
push 1
push 0x19
push 0x10
push 0x10
call ebp
push edi
push eax
mov dword [esi + 0x2a0], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x2a0]
push 1
push 0x1003
push dword [esi + 0x298]
call ebx
cmp dword [esi + 0x2b0], edi
je 0x408753
push 1
push 1
push 0x19
push 0x20
push 0x20
call ebp
push edi
push eax
mov dword [esi + 0x2a4], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [esi + 0x2a4]
push edi
push 0x1003
push dword [esi + 0x298]
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 + 0x29c], 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 + 0x29c]
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 + 0x29c]
call ebp
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x29c]
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 + 0x29c]
mov esi, dword [esi + 0x298]
push eax
push edi
push 0x1208
push esi
call fcn.00402f4e
pop ecx
push eax
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4cc
ret
Function at 0x40977b
Capabilities:
Delete file
Get common file path
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push edi
lea eax, [ebp - 0x410]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4097aa
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 0x40f46c
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 esi
call fcn.004096cc
test eax, eax
pop edi
je 0x40982f
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40980a
lea eax, [ebp - 0x208]
push eax
call fcn.00404472
pop ecx
jmp 0x409810
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x409822
push dword [esi + 0x208]
mov ecx, eax
call fcn.004042ca
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [edi + 0x694]
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 4], eax
call fcn.00406ff7
test eax, eax
je 0x409930
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
push esi
mov eax, 0x412350
call fcn.0040551d
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4098eb
test al, 0x10
je 0x4098eb
push 5
push 0
push 0
push esi
jmp 0x40991e
and word [ebp - 0x214], 0
push 0x208
lea eax, [ebp - 0x212]
push 0
push eax
call sub.msvcrt.dll_memset
push esi
lea esi, [ebp - 0x214]
call fcn.004047a7
add esp, 0x10
push 5
push 0
push 0
mov eax, esi
push eax
push 0x40ed6c
push dword [edi + 0x208]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
mov eax, dword [ebp - 4]
call fcn.00406928
leave
ret

Function at 0x40999c
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, eax
add esi, 0x690
mov eax, dword [esi]
add eax, 0x10
cmp word [eax], 0
jne 0x4099c3
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [esi]
and word [eax + 0x16], 0
pop esi
ret
Function at 0x409a06
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x86c
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSubMenu]
push esi
push edi
xor esi, esi
push esi
push dword [eax + 0x21c]
call ebx
push esi
push eax
call ebx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, esi
jle 0x409a51
mov edi, eax
push 0x400
push esi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_DeleteMenu]
dec edi
jne 0x409a3e
push 0x2c
lea eax, [esp + 0x20]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x30
pop edi
push 0xc
pop ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0x42
mov dword [esp + 0x28], 0xbdd7
call fcn.004059c7
mov ebx, dword [sym.imp.USER32.dll_InsertMenuItemW]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x18]
push eax
push 1
push esi
push dword [esp + 0x20]
call ebx
lea eax, [esp + 0x18]
push eax
push 1
push esi
push dword [esp + 0x20]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x38], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x30], 0x800
call ebx
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x6f0]
cmp edi, esi
mov dword [esp + 0x10], esi
jle 0x409bb0
push 0x2c
lea eax, [esp + 0x50]
push esi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x1c]
add eax, 0xbd74
push 0x7fe
mov dword [esp + 0x68], eax
lea eax, [esp + 0x8a]
push esi
push eax
mov dword [esp + 0x60], 0x30
mov dword [esp + 0x64], 0x42
mov word [esp + 0x90], si
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0x28]
sub edi, ecx
add esp, 0x18
dec edi
cmp edi, 0xa
jge 0x409b5e
cmp ecx, esi
jl 0x409b3e
mov eax, dword [ebp + 8]
add eax, 0x6d4
call fcn.00405508
jmp 0x409b40
xor eax, eax
push eax
push edi
push str._d____s
lea eax, [esp + 0x84]
push 0x3ff
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
jmp 0x409b83
cmp ecx, esi
jl 0x409b71
mov eax, dword [ebp + 8]
add eax, 0x6d4
call fcn.00405508
jmp 0x409b73
xor eax, eax
push eax
mov eax, 0x3ff
lea edi, [esp + 0x7c]
call fcn.00404556
pop ecx
lea eax, [esp + 0x78]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x48]
push eax
push 1
push esi
push dword [esp + 0x20]
call ebx
mov eax, dword [ebp + 8]
inc dword [esp + 0x10]
mov edi, dword [eax + 0x6f0]
cmp dword [esp + 0x10], edi
jl 0x409ad7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4