joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401dee
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
xor edi, edi
mov esi, eax
mov dword [ebp - 4], edi
call fcn.00401941
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x401e15
push edi
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 8]
call eax
jmp 0x401e18
xor eax, eax
inc eax
cmp eax, edi
jne 0x401e7e
push ebx
lea eax, [ebp - 0x58]
push eax
push 0x54
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetObjectA]
push edi
mov dword [ebp - 0x30], edi
call dword [sym.imp.USER32.dll_GetDC]
push edi
mov esi, eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x44]
push 4
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push esi
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x401e74
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop ebx
pop edi
xor eax, eax
pop esi
leave
ret 4

Function at 0x402195
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4021b0
xor eax, eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x108]
push 0x5c
push eax
call sub.msvcrt.dll_strrchr
add esp, 0x10
test eax, eax
je 0x4021e4
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.00402195
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
leave
ret

Function at 0x402215
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x248]
call fcn.00402102
pop ecx
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40227d
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.00405bd4
test eax, eax
je 0x402271
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x402245
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
inc eax
jmp 0x40227f
xor eax, eax
pop esi
leave
ret

Function at 0x4025d7
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
xor esi, esi
cmp dword [ebp + 0x18], edi
je 0x4025f7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test al, 0x10
je 0x4025f7
mov esi, 0x2000000
push edi
push esi
push 3
push edi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40262c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x402932
Capabilities:
Get file size
Read clipboard data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push 0xd
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_GetClipboardData]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x4029fd
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ebx, eax
cmp ebx, esi
je 0x4029fc
cmp dword [ebp + 0xc], esi
push edi
je 0x40298c
push esi
push esi
push 4
push esi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 2
push esi
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x402997
push dword [ebp + 8]
call fcn.00401f24
pop ecx
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
test eax, eax
jne 0x4029b3
push 2
push 0x4121bc
push edi
call fcn.00402b4f
add esp, 0xc
cmp edi, 0xffffffff
je 0x4029f2
push esi
lea eax, [ebp - 4]
push eax
push ebx
call sub.msvcrt.dll_wcslen
pop ecx
add eax, eax
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
cmp dword [ebp + 0xc], esi
je 0x4029e4
push 4
push 0x4121c0
push edi
call fcn.00402b4f
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 4], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
pop edi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x402a09
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
push 1
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_GetClipboardData]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x402a9f
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ebx, eax
cmp ebx, edi
je 0x402a9e
cmp dword [ebp + 0xc], edi
push esi
je 0x402a5b
push edi
push edi
push 4
push edi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
push 2
push edi
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x402a66
push dword [ebp + 8]
call fcn.00401f24
pop ecx
mov esi, eax
cmp esi, 0xffffffff
je 0x402a94
push ebx
push esi
call fcn.00401f3d
cmp dword [ebp + 0xc], edi
pop ecx
pop ecx
je 0x402a86
push 0x412184
push esi
call fcn.00401f3d
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 4], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
pop esi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
pop edi
leave
ret
Function at 0x402aab
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 0x402b07
push ebx
push edi
push ebp
call sub.msvcrt.dll_strlen
pop ecx
lea ebx, [eax + 1]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x402b05
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 1
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 0x402d9d
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov esi, eax
call fcn.00401f0b
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x402dee
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
call fcn.00402ce0
mov edx, edi
mov eax, esi
call fcn.00402cba
push edi
push dword [esi]
push ebx
call fcn.0040253a
mov eax, dword [esi]
add esp, 0xc
mov byte [edi + eax], 0
push ebx
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
inc eax
pop edi
jmp 0x402df0
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x402e24
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x402e50
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 0x402e6b
lea ecx, [esi + 0x148]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
mov dword [esp + 4], eax
jne 0x402e72
call fcn.00402ebc
cmp dword [esp + 4], 0
je 0x402eb5
push ebx
push ebp
push edi
lea edi, [esi + 0x288]
lea ebx, [esi + 0x174]
add esi, 0x3cc
push esi
call sub.msvcrt.dll_strlen
push ebx
mov ebp, eax
call sub.msvcrt.dll_strlen
lea eax, [eax + ebp + 1]
cmp eax, 0x143
pop ecx
pop ecx
jae 0x402eaf
push ebx
push esi
mov eax, edi
call fcn.004021f1
pop ecx
pop ecx
jmp 0x402eb2
mov byte [edi], 0
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
Function at 0x402feb
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x411e1c
push 1
xor edi, edi
push edi
push 0x411e2c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x4030dd
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 0x403045
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 0x403056
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp ebx, edi
jl 0x403069
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
neg ebx
push ebx
push dword [ebp + 0x18]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
cmp word [ebp + 0x24], di
je 0x403087
mov eax, dword [ebp - 4]
push dword [ebp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x411e3c
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x4030d4
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x210]
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
pop ebx
leave
ret
Function at 0x404cb9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push dword [ebp + 8]
xor edi, edi
push edi
push 0x10
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x404dd1
push dword [ebp + 0xc]
call fcn.00401f24
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 0xc], eax
je 0x404dbd
push ebx
mov ebx, dword [ebp + 0x14]
imul ebx, ebx, 0x3e8
push esi
lea eax, [ebx + 1]
xor esi, esi
push eax
inc esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [ebp + 0x18], edi
pop ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
jbe 0x404da7
jmp 0x404d20
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 4]
lea eax, [edi + ebx]
cmp eax, dword [ebp + 0x18]
jbe 0x404d2f
mov esi, dword [ebp + 0x18]
sub esi, edi
jmp 0x404d3b
mov dword [ebp - 0x20], esi
test esi, esi
mov esi, ebx
jne 0x404d3b
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push 0
push esi
push dword [ebp - 8]
add edi, eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x18], eax
je 0x404d90
cmp dword [ebp + 0x20], ecx
je 0x404d75
push ecx
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x404d8b
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.004023c3
add esp, 0x18
add dword [ebp - 4], esi
jmp 0x404d9b
cmp dword [ebp - 0x20], ecx
jne 0x404d9b
mov eax, dword [ebp + 0x14]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x18]
jb 0x404d1a
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebx
jmp 0x404dc6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x404dda
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
pop edi
leave
ret
Function at 0x405fdf
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x88
push ebx
push esi
xor ebx, ebx
push edi
push str.SeTcbPrivilege
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x6c], ebx
call fcn.0040d6b6
pop ecx
lea esi, [ebp + 0x64]
call fcn.004010ce
cmp dword [ebp + 0x6c], ebx
je 0x40601a
call dword [ebp + 0x6c]
mov edi, eax
jmp 0x40601c
xor edi, edi
cmp edi, 0xffffffff
jne 0x406036
cmp dword [ebp + 0x64], ebx
je 0x40602f
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor eax, eax
jmp 0x40615f
lea esi, [ebp + 0x64]
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x58], ebx
call fcn.004010ce
cmp dword [ebp + 0x68], ebx
je 0x406056
lea eax, [ebp + 0x5c]
push eax
push edi
call dword [ebp + 0x68]
jmp 0x406058
xor eax, eax
cmp eax, ebx
je 0x406104
lea eax, [ebp + 0x60]
push eax
push 1
push dword [ebp + 0x5c]
lea eax, [ebp + 0x44]
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x50], ebx
call fcn.004010a0
test eax, eax
je 0x4060eb
push dword [ebp + 0x60]
lea eax, [ebp + 0x58]
push eax
call fcn.0040423d
push 0x40
lea eax, [ebp - 0x10]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp + 0x30], ebx
lea edi, [ebp + 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x60]
mov edi, dword [ebp + 0x58]
add esp, 0x14
lea esi, [ebp + 0x44]
mov dword [ebp - 0x14], 0x44
mov dword [ebp + 0x40], eax
call fcn.00401000
cmp dword [ebp + 0x50], ebx
je 0x4060e5
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push 0x400
push ebx
push ebx
push ebx
push dword [ebp + 0x7c]
push ebx
push dword [ebp + 0x40]
call dword [ebp + 0x50]
jmp 0x4060e7
xor eax, eax
cmp eax, ebx
jne 0x4060f4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x70], eax
cmp dword [ebp + 0x54], ebx
je 0x40614e
push dword [ebp + 0x54]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x40614e
push 0x40
lea eax, [ebp - 0x10]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp + 0x30], ebx
lea edi, [ebp + 0x34]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push dword [ebp + 0x7c]
mov dword [ebp - 0x14], 0x44
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x40614e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x70], eax
cmp dword [ebp + 0x64], ebx
je 0x40615c
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [ebp + 0x70]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x406169
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x8a4
push ebx
push esi
push edi
push str.SeDebugPrivilege
mov edi, eax
call fcn.0040d6b6
xor esi, esi
pop ecx
push 0x20
pop eax
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x50], eax
lea eax, [ebp + 0x20]
push eax
mov dword [ebp + 0x38], esi
mov dword [ebp + 0x44], esi
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x48], esi
mov dword [ebp + 0x54], esi
mov dword [ebp + 0x4c], esi
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x68], esi
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x60], esi
mov dword [ebp + 0x64], esi
call fcn.0040e11f
cmp byte [edi], 0x2f
jne 0x4061dc
lea eax, [edi + 1]
call fcn.004023a5
mov edi, eax
jmp 0x4061ef
push edi
lea ebx, [ebp + 0x20]
call fcn.0040e35f
cmp eax, esi
je 0x4062e4
mov edi, dword [eax]
cmp edi, esi
je 0x4062e4
push 0x7fe
lea eax, [ebp - 0x832]
push esi
push eax
mov word [ebp - 0x834], si
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x3ff
lea eax, [ebp - 0x834]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x7c]
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push edi
push esi
push 0x2000000
mov dword [ebp + 0x7c], esi
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, eax
cmp edi, esi
je 0x406283
lea eax, [ebp + 0x6c]
push eax
push edi
lea eax, [ebp + 0x58]
mov dword [ebp + 0x6c], esi
call fcn.0040107d
test eax, eax
je 0x406272
lea eax, [ebp + 0x7c]
push eax
push 2
push dword [ebp + 0x6c]
lea eax, [ebp + 0x58]
call fcn.004010a0
push dword [ebp + 0x6c]
call ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0x78]
call fcn.004057c0
push edi
call ebx
cmp dword [ebp + 0x7c], esi
je 0x4062d6
push 0x40
lea eax, [ebp - 0x30]
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp + 0x10], esi
lea edi, [ebp + 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x834]
push eax
push dword [ebp + 0x7c]
lea eax, [ebp + 0x58]
mov dword [ebp - 0x34], 0x44
call fcn.0040104e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0x78]
call fcn.004057c0
push dword [ebp + 0x7c]
call ebx
cmp dword [ebp + 0x68], esi
je 0x4062e4
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp dword [ebp + 0x20], esi
je 0x4062f5
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [ebp + 0x20], esi
lea esi, [ebp + 0x48]
call fcn.004039d0
lea esi, [ebp + 0x38]
call fcn.004039d0
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x406a8f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x406c3d
push ebx
xor ebx, ebx
cmp dword [edi + 0x402bc], ebx
push esi
jne 0x406afd
mov esi, 0xff
push esi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [ebp - 0x108]
push str.32770
push eax
call sub.msvcrt.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x406c3b
mov eax, dword [edi + 0x40104]
inc eax
inc eax
shl eax, 0xc
cmp byte [eax + edi], bl
je 0x406b5d
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x50b]
push ebx
push eax
mov byte [ebp - 0x50c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x50c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [edi + 0x40104]
inc eax
inc eax
shl eax, 0xc
add eax, edi
push eax
lea eax, [ebp - 0x50c]
call fcn.00401f81
cmp eax, 0xffffffff
pop ecx
je 0x406c3b
mov eax, dword [edi + 0x40104]
inc eax
shl eax, 0xc
cmp byte [eax + edi], bl
je 0x406bbd
push 0x104
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
lea esi, [ebp - 0x10c]
call fcn.0040db32
mov eax, dword [edi + 0x40104]
inc eax
shl eax, 0xc
add eax, edi
push eax
mov eax, esi
call fcn.00401f81
cmp eax, 0xffffffff
pop ecx
pop ecx
je 0x406c3b
mov ebx, dword [edi + 0x40104]
push str.click
add ebx, 3
push edi
mov eax, ebx
call fcn.004057d0
test eax, eax
je 0x406bff
lea esi, [ebx + 1]
shl esi, 0xc
add esi, edi
call fcn.00402644
mov esi, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
movzx eax, si
push eax
push 0x111
push dword [ebp + 8]
jmp 0x406c35
push str.settext
push edi
mov eax, ebx
call fcn.004057d0
test eax, eax
je 0x406c3b
lea esi, [ebx + 1]
shl esi, 0xc
add esi, edi
call fcn.00402644
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
add ebx, 2
shl ebx, 0xc
add ebx, edi
push ebx
push 0
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
pop ebx
xor eax, eax
inc eax
leave
ret 4
Function at 0x407c8e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
call fcn.00401f0b
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 4], eax
je 0x407d75
xor esi, esi
push esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0x800000
jae 0x407d6a
lea eax, [edi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
push esi
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x407d03
mov ebx, dword [ebp + 8]
push 0x407c4c
push esi
mov byte [ebx + edi], 0
call fcn.0040205f
pop ecx
pop ecx
jmp 0x407d61
mov eax, dword [ebx + 0x40108]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
lea eax, [ebp - 0x40c]
push eax
call fcn.00401e86
lea eax, [ebp - 0x40c]
push eax
push edi
lea eax, [ebp - 0x80c]
push str.Error__d:__s
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x14
cmp dword [ebx + 0x4010c], esi
mov dword [ebx + 0x402c0], edi
je 0x407d61
push 0x30
push str.Error
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp + 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x407dcf
mov esi, dword [ebx + 0x40108]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
lea eax, [ebp - 0x80c]
push eax
call fcn.00401e86
lea eax, [ebp - 0x80c]
push eax
push edi
lea eax, [ebp - 0x40c]
push str.Error__d:__s
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x14
cmp dword [ebx + 0x4010c], 0
mov dword [ebx + 0x402c0], edi
je 0x407dcf
push 0x30
push str.Error
lea eax, [ebp - 0x40c]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
leave
ret 4