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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c88
call fcn.00410c10
push edi
push dword [ebp + 8]
call fcn.00402174
mov edi, eax
cmp edi, 0xffffffff
pop ecx
mov dword [ebp - 4], edi
je 0x4019d1
push esi
xor esi, esi
push 0x2c82
lea eax, [ebp - 0x2c86]
push esi
push eax
mov word [ebp - 0x2c88], si
call sub.msvcrt.dll_memset
push 4
lea eax, [ebp - 0x2c88]
push eax
push edi
call fcn.004027e6
add esp, 0x18
cmp word [ebp - 0x2c88], 0xc350
jne 0x4019c7
cmp word [ebp - 0x2c86], 0x80
jae 0x4019c7
movzx eax, word [ebp - 0x2c86]
imul eax, eax, 0x59
push eax
lea eax, [ebp - 0x2c84]
push eax
push edi
call fcn.004027e6
add esp, 0xc
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4019c7
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x4019c1
cmp word [ebp - 0x2c86], si
mov dword [ebp + 8], esi
jbe 0x4019c1
lea esi, [ebp - 0x2c82]
push ebx
movzx ebx, word [esi - 2]
cmp bx, 0xc000
jb 0x401971
lea eax, [esi + 8]
push eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
movzx ebx, ax
push dword [esi]
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
test eax, eax
je 0x4019ae
push dword [esi]
push eax
push dword [esi + 4]
push dword [ebp - 4]
call fcn.00402e1a
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
movzx eax, bx
push edi
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
movzx eax, word [ebp - 0x2c86]
inc dword [ebp + 8]
add esi, 0x59
cmp dword [ebp + 8], eax
jb 0x401959
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop edi
leave
ret 4

Function at 0x401baa
Capabilities:
Link many functions at runtime

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x401bb6
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 0x401c4b
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
xor edi, edi
mov dword [esi + 0x28], eax
inc edi
mov eax, edi
pop edi
ret
Function at 0x402057
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.00401baa
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x40207e
push edi
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 8]
call eax
jmp 0x402081
xor eax, eax
inc eax
cmp eax, edi
jne 0x4020e7
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 0x4020dd
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 0x402441
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 0x40245c
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 0x402490
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.00402441
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
leave
ret

Function at 0x4024c1
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.004023ae
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 0x402529
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.00405e66
test eax, eax
je 0x40251d
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4024f1
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
inc eax
jmp 0x40252b
xor eax, eax
pop esi
leave
ret

Function at 0x402883
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 0x4028a3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test al, 0x10
je 0x4028a3
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 0x4028d8
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 0x402bde
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 0x402ca9
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ebx, eax
cmp ebx, esi
je 0x402ca8
cmp dword [ebp + 0xc], esi
push edi
je 0x402c38
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 0x402c43
push dword [ebp + 8]
call fcn.0040218d
pop ecx
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
test eax, eax
jne 0x402c5f
push 2
push 0x412378
push edi
call fcn.00402dfb
add esp, 0xc
cmp edi, 0xffffffff
je 0x402c9e
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 0x402c90
push 4
push 0x41237c
push edi
call fcn.00402dfb
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 0x402cb5
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 0x402d4b
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ebx, eax
cmp ebx, edi
je 0x402d4a
cmp dword [ebp + 0xc], edi
push esi
je 0x402d07
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 0x402d12
push dword [ebp + 8]
call fcn.0040218d
pop ecx
mov esi, eax
cmp esi, 0xffffffff
je 0x402d40
push ebx
push esi
call fcn.004021a6
cmp dword [ebp + 0xc], edi
pop ecx
pop ecx
je 0x402d32
push 0x412340
push esi
call fcn.004021a6
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 0x402d57
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 0x402db3
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 0x402db1
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 0x403049
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov esi, eax
call fcn.00402174
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x40309a
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
call fcn.00402f8c
mov edx, edi
mov eax, esi
call fcn.00402f66
push edi
push dword [esi]
push ebx
call fcn.004027e6
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 0x40309c
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x4030d0
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x4030fc
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 0x403117
lea ecx, [esi + 0x148]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
mov dword [esp + 4], eax
jne 0x40311e
call fcn.00403168
cmp dword [esp + 4], 0
je 0x403161
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 0x40315b
push ebx
push esi
mov eax, edi
call fcn.0040249d
pop ecx
pop ecx
jmp 0x40315e
mov byte [edi], 0
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
Function at 0x403297
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 0x411e3c
push 1
xor edi, edi
push edi
push 0x411e4c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x403389
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 0x4032f1
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 0x403302
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp ebx, edi
jl 0x403315
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 0x403333
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 0x411e5c
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x403380
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 0x404f4b
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 0x405063
push dword [ebp + 0xc]
call fcn.0040218d
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 0xc], eax
je 0x40504f
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 0x405039
jmp 0x404fb2
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 4]
lea eax, [edi + ebx]
cmp eax, dword [ebp + 0x18]
jbe 0x404fc1
mov esi, dword [ebp + 0x18]
sub esi, edi
jmp 0x404fcd
mov dword [ebp - 0x20], esi
test esi, esi
mov esi, ebx
jne 0x404fcd
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 0x405022
cmp dword [ebp + 0x20], ecx
je 0x405007
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 0x40501d
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0040266f
add esp, 0x18
add dword [ebp - 4], esi
jmp 0x40502d
cmp dword [ebp - 0x20], ecx
jne 0x40502d
mov eax, dword [ebp + 0x14]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x18]
jb 0x404fac
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 0x405058
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40506c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
pop edi
leave
ret
Function at 0x406255
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.0040d92c
pop ecx
lea esi, [ebp + 0x64]
call fcn.00401337
cmp dword [ebp + 0x6c], ebx
je 0x406290
call dword [ebp + 0x6c]
mov edi, eax
jmp 0x406292
xor edi, edi
cmp edi, 0xffffffff
jne 0x4062ac
cmp dword [ebp + 0x64], ebx
je 0x4062a5
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor eax, eax
jmp 0x4063d5
lea esi, [ebp + 0x64]
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x58], ebx
call fcn.00401337
cmp dword [ebp + 0x68], ebx
je 0x4062cc
lea eax, [ebp + 0x5c]
push eax
push edi
call dword [ebp + 0x68]
jmp 0x4062ce
xor eax, eax
cmp eax, ebx
je 0x40637a
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.00401309
test eax, eax
je 0x406361
push dword [ebp + 0x60]
lea eax, [ebp + 0x58]
push eax
call fcn.004044cf
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.00401269
cmp dword [ebp + 0x50], ebx
je 0x40635b
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 0x40635d
xor eax, eax
cmp eax, ebx
jne 0x40636a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x70], eax
cmp dword [ebp + 0x54], ebx
je 0x4063c4
push dword [ebp + 0x54]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x4063c4
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 0x4063c4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x70], eax
cmp dword [ebp + 0x64], ebx
je 0x4063d2
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 0x4063df
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.0040d92c
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.0040e395
cmp byte [edi], 0x2f
jne 0x406452
lea eax, [edi + 1]
call fcn.00402651
mov edi, eax
jmp 0x406465
push edi
lea ebx, [ebp + 0x20]
call fcn.0040e5d5
cmp eax, esi
je 0x40655a
mov edi, dword [eax]
cmp edi, esi
je 0x40655a
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 0x4064f9
lea eax, [ebp + 0x6c]
push eax
push edi
lea eax, [ebp + 0x58]
mov dword [ebp + 0x6c], esi
call fcn.004012e6
test eax, eax
je 0x4064e8
lea eax, [ebp + 0x7c]
push eax
push 2
push dword [ebp + 0x6c]
lea eax, [ebp + 0x58]
call fcn.00401309
push dword [ebp + 0x6c]
call ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0x78]
call fcn.00405a52
push edi
call ebx
cmp dword [ebp + 0x7c], esi
je 0x40654c
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.004012b7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0x78]
call fcn.00405a52
push dword [ebp + 0x7c]
call ebx
cmp dword [ebp + 0x68], esi
je 0x40655a
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp dword [ebp + 0x20], esi
je 0x40656b
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [ebp + 0x20], esi
lea esi, [ebp + 0x48]
call fcn.0040e631
lea esi, [ebp + 0x38]
call fcn.0040e631
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x406d05
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 0x406eb3
push ebx
xor ebx, ebx
cmp dword [edi + 0x402bc], ebx
push esi
jne 0x406d73
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 0x406eb1
mov eax, dword [edi + 0x40104]
inc eax
inc eax
shl eax, 0xc
cmp byte [eax + edi], bl
je 0x406dd3
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.004021ea
cmp eax, 0xffffffff
pop ecx
je 0x406eb1
mov eax, dword [edi + 0x40104]
inc eax
shl eax, 0xc
cmp byte [eax + edi], bl
je 0x406e33
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.0040dda8
mov eax, dword [edi + 0x40104]
inc eax
shl eax, 0xc
add eax, edi
push eax
mov eax, esi
call fcn.004021ea
cmp eax, 0xffffffff
pop ecx
pop ecx
je 0x406eb1
mov ebx, dword [edi + 0x40104]
push str.click
add ebx, 3
push edi
mov eax, ebx
call fcn.00405a62
test eax, eax
je 0x406e75
lea esi, [ebx + 1]
shl esi, 0xc
add esi, edi
call fcn.004028f0
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 0x406eab
push str.settext
push edi
mov eax, ebx
call fcn.00405a62
test eax, eax
je 0x406eb1
lea esi, [ebx + 1]
shl esi, 0xc
add esi, edi
call fcn.004028f0
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