joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x406040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402160
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b3f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40219c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40219c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b3f
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x402273
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4021c4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4021d0
movsx eax, bl
jmp 0x402208
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x402232
sub eax, 1
je 0x402232
sub eax, 2
jne 0x402273
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b3f
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402250
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x402273
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b3f
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402b3f
mov esp, ebp
pop ebp
ret 4
Function at 0x402790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x406040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40284c
cmp byte [esi + 0x3d], 0
je 0x40284c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40283a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x402801
sub eax, 1
je 0x402805
sub eax, 2
jne 0x40283a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b3f
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402823
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40283a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b3f
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b3f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00402b3f
mov esp, ebp
pop ebp
ret

Function at 0x40340a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403449
mov ecx, _CxxThrowException
cmp word [eax], cx
jne 0x403449
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403449
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403449
cmp dword [ecx + 0x74], 0xe
jbe 0x403449
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x403a61
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4558
call fcn.0044b790
push ebx
push esi
push edi
xor ebx, ebx
push 0x3c
lea eax, [ebp - 0x48]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x4c], ebx
call fcn.0043acc0
add esp, 0xc
cmp dword [ebp + 8], 0x40
jb 0x403baf
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp - 0x4c]
call fcn.004037c4
cmp eax, ebx
je 0x403baf
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp + 0xc]
push 0x104
add esi, eax
lea eax, [ebp - 0x153]
push ebx
push eax
mov dword [ebp + 8], ebx
mov byte [ebp - 0x154], bl
call fcn.0043acc0
add esp, 0xc
cmp dword [ebp + 0x10], ebx
je 0x403afe
push str.gzip
push dword [ebp + 0x10]
call fcn.0043b675
test eax, eax
pop ecx
pop ecx
jne 0x403afe
push 0x44f4ac
lea edi, [ebp - 0x154]
mov dword [ebp + 8], 1
call fcn.00406f94
pop ecx
push edi
call fcn.00406b71
mov edi, eax
cmp edi, 0xffffffff
pop ecx
je 0x403baf
push dword [ebp - 0x34]
push esi
push edi
call fcn.0040792d
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
add esp, 0xc
push edi
call esi
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], 1
je 0x403baf
push dword [ebp + 0xc]
call fcn.00406b71
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 8], eax
je 0x403baf
push 0x3ff
lea eax, [ebp - 0x553]
push ebx
push eax
mov byte [ebp - 0x554], bl
call fcn.0043acc0
lea eax, [ebp - 0x554]
push eax
call fcn.00436293
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x403baa
jmp 0x403b85
push eax
lea eax, [ebp - 0x4554]
push eax
push dword [ebp + 8]
call fcn.0040792d
add esp, 0xc
lea eax, [ebp - 0x4554]
mov ecx, edi
call fcn.004364dc
cmp eax, ebx
jg 0x403b72
mov eax, edi
call fcn.00436728
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x406903
Capabilities:
Link many functions at runtime

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x40690f
xor eax, eax
inc eax
pop edi
ret
push str.GDIPlus.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, edi
mov dword [esi], eax
je 0x4069c8
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GdiplusStartup
push eax
call edi
push str.GdiplusShutdown
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.GdipSaveImageToFile
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.GdipGetImageEncodersSize
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.GdipGetImageEncoders
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.GdipCreateBitmapFromHBITMAP
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.GdipDisposeImage
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GdipLoadImageFromFile
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.GdipCreateHBITMAPFromBitmap
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.GdipCreateBitmapFromFile
push dword [esi]
mov dword [esi + 0x24], eax
call edi
push str.GdipGetAllPropertyItems
push dword [esi]
mov dword [esi + 0x28], eax
call edi
push str.GdipGetPropertySize
push dword [esi]
mov dword [esi + 0x2c], eax
call edi
push str.GdipCreateBitmapFromScan0
push dword [esi]
mov dword [esi + 0x30], eax
call edi
xor edi, edi
mov dword [esi + 0x34], eax
inc edi
mov eax, edi
pop edi
ret

Function at 0x406d06
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.00406b58
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x406d95
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x406d7e
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 0x406d7e
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x406d87
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 0x406d9e
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 0x4070e1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x4072d2
Capabilities:
Get common file path

Disassembly:
cmp byte [0x45b6e0], 0
push esi
mov esi, 0x45b6e0
jne 0x4072f2
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x45b7e8], eax
push esi
push dword [esp + 0xc]
call fcn.0043a8c0
mov eax, dword [0x45b7e8]
pop ecx
pop ecx
pop esi
ret

Function at 0x407791
Capabilities:
Create process on windows

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

Function at 0x407e69
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407ee8
lea eax, [ebp - 0x114]
push 0x44f8bc
push eax
call fcn.0043d85f
test eax, eax
pop ecx
pop ecx
je 0x407ebc
lea eax, [ebp - 0x114]
push 0x44f8b8
push eax
call fcn.0043d85f
test eax, eax
pop ecx
pop ecx
jne 0x407ed0
lea eax, [ebp - 0x140]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x407e8e
jmp 0x407ee1
mov edi, dword [ebp + 0xc]
push 0x50
pop ecx
lea esi, [ebp - 0x140]
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 0x40828c
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, edi
mov ebx, eax
call fcn.0040811b
mov edx, ebx
mov eax, edi
call fcn.004080e5
push ebx
push dword [edi]
xor esi, esi
push dword [esp + 0x14]
call fcn.00407905
mov eax, dword [edi]
mov byte [ebx + eax], 0
add esp, 0xc
xor eax, eax
pop esi
mov dword [edi + 8], ebx
inc eax
pop ebx
ret 4

Function at 0x40866e
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x40869a
lea eax, [esi + 0x148]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov dword [esp + 4], ecx
jmp 0x4086b5
lea ecx, [esi + 0x148]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
mov dword [esp + 4], eax
jne 0x4086bc
call fcn.00408706
cmp dword [esp + 4], 0
je 0x4086ff
push ebx
push ebp
push edi
lea edi, [esi + 0x288]
lea ebx, [esi + 0x174]
add esi, 0x3cc
push esi
call fcn.0043ae20
push ebx
mov ebp, eax
call fcn.0043ae20
lea eax, [eax + ebp + 1]
cmp eax, 0x143
pop ecx
pop ecx
jae 0x4086f9
push ebx
push esi
mov eax, edi
call fcn.0040725a
pop ecx
pop ecx
jmp 0x4086fc
mov byte [edi], 0
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
Function at 0x4088b7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
and dword [ebp + 0x10], 0
push edi
push dword [ebp + 0xc]
call fcn.00406b58
mov edi, eax
cmp edi, 0xffffffff
pop ecx
je 0x408920
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
test ebx, ebx
mov esi, eax
je 0x4088e5
mov dword [ebx], esi
mov ebx, dword [ebp + 8]
push esi
mov eax, ebx
call fcn.00408854
test eax, eax
je 0x408912
mov eax, dword [ebx]
push esi
push eax
push edi
xor esi, esi
call fcn.00407905
add esp, 0xc
test eax, eax
jne 0x408916
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x10], eax
jmp 0x408916
or dword [ebp + 0x10], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
jmp 0x408929
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
pop edi
pop ebx
pop ebp
ret 0xc

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

Disassembly:
push esi
push edi
mov esi, eax
call fcn.0040899e
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x408992
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 + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 4], eax
je 0x408992
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
je 0x408992
xor eax, eax
inc eax
jmp 0x408999
call fcn.0040899e
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x409265
Capabilities:
Get file size
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov byte [esi], bl
call fcn.0040559d
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x4093a2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov eax, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.00408f67
test eax, eax
je 0x4093a2
mov edi, 0x8000
lea esi, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 0x1388
call fcn.00408830
push dword [ebp - 4]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x409387
push ebx
push ebx
push 0x80000000
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
cmp dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x409382
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, dword [ebp + 8]
push 0x44f974
mov dword [ebp - 8], eax
call fcn.00406f94
pop ecx
push edi
call fcn.00406b71
pop ecx
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x409378
push dword [ebp - 8]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x409373
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x14], ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 0x18]
call esi
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
call esi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp + 8]
cmp byte [eax], bl
je 0x40939a
mov edi, dword [ebp + 0x10]
push eax
call fcn.0040559d
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x24]
call fcn.00408817
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x409bbe
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x564
or dword [ebp - 0x560], 0xffffffff
push ebx
push esi
push edi
push 0x20
pop esi
lea eax, [ebp - 0x55c]
xor ebx, ebx
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x560]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x130]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x1388
mov byte [ebp - 0x130], bl
call fcn.00409265
test eax, eax
je 0x409cde
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x560]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
call fcn.004093ac
mov edi, dword [ebp - 8]
cmp edi, ebx
jle 0x409cb4
xor esi, esi
cmp edi, ebx
mov dword [ebp - 4], 1
jle 0x409cb4
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
call fcn.00412467
cmp dword [0x45b670], ebx
jne 0x409cb4
cmp esi, ebx
jl 0x409c96
cmp esi, edi
jge 0x409c96
mov eax, dword [ebp + 0xc]
jmp 0x409c98
xor eax, eax
push eax
lea eax, [ebp - 0x560]
push eax
push dword [ebp + 8]
call fcn.00409580
add dword [ebp + 0xc], 0x2206
inc esi
cmp esi, edi
jl 0x409c7c
cmp dword [ebp - 0x560], 0xffffffff
je 0x409cc9
push dword [ebp - 0x560]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [ebp - 0x560], 0xffffffff
cmp dword [ebp - 0x14], ebx
je 0x409cde
push dword [ebp - 0x14]
call fcn.0043d5a3
pop ecx
cmp byte [ebp - 0x130], bl
je 0x409cf9
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov byte [ebp - 0x130], bl
lea ecx, [ebp - 0x28]
call fcn.00408817
cmp dword [ebp - 0x560], 0xffffffff
je 0x409d16
push dword [ebp - 0x560]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [ebp - 0x560], 0xffffffff
lea esi, [ebp - 0x144]
call fcn.0041244e
lea esi, [ebp - 0x15c]
call fcn.0041244e
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409f6b
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x178], ebx
push edi
je 0x40a05d
push dword [esi + 0x108]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40a05d
call dword [sym.imp.USER32.dll_EmptyClipboard]
xor eax, eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push 0x18
push dword [esi + 0x178]
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebp - 0x20]
mov esi, eax
push dword [ebp - 0x24]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push esi
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
call edi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov dword [ebp - 8], eax
call esi
push ebx
mov dword [ebp - 0x10], eax
call edi
mov edi, eax
mov eax, dword [ebp + 8]
push dword [eax + 0x178]
push edi
call esi
push 0xcc0020
push ebx
push ebx
push edi
push dword [ebp - 0x20]
mov dword [ebp + 8], eax
push dword [ebp - 0x24]
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0xc]
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [ebp + 8]
push edi
call esi
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
call edi
push dword [ebp - 0x10]
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call edi
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40a823
Capabilities:
Read .ini file

Disassembly:
push 0x45b2e0
push dword [esp + 0xc]
mov byte [esi], 0
push esi
push 0x44f33c
push dword [esp + 0x14]
push 0x45b3e8
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov eax, esi
ret

Function at 0x40a847
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0044b790
push esi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call fcn.0043acc0
add esp, 0xc
push 0x45b2e0
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x44f33c
push dword [ebp + 8]
push 0x45b3e8
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
pop esi
je 0x40a8b3
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 0xc]
call fcn.0043a8c0
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x40a8b7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0044b790
push esi
push edi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call fcn.0043acc0
add esp, 0xc
mov edi, 0x45b2e0
push edi
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x44f33c
push dword [ebp + 8]
mov esi, 0x45b3e8
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
je 0x40a919
cmp dword [ebp + 0x10], 0
jne 0x40a919
xor eax, eax
jmp 0x40a927
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret

Function at 0x40ac31
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.004070e1
test eax, eax
pop ecx
je 0x40acb8
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x45b2e0
push edi
call fcn.0043a8c0
push str.general
mov esi, 0x45b3e8
push esi
call fcn.0043a8c0
add esp, 0x10
push edi
push 0
push 0x44fb2c
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x45b438
mov dword [0x45b430], eax
call fcn.0040a823
push 0x3f
push str.TranslatorName
mov esi, 0x45b478
call fcn.0040a823
push 0xff
push str.TranslatorURL
mov esi, 0x45b4b8
call fcn.0040a823
add esp, 0x18
pop edi
pop esi
ret