joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40200c
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.00401b5f
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x402033
push edi
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 8]
call eax
jmp 0x402036
xor eax, eax
inc eax
cmp eax, edi
jne 0x40209c
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 0x402092
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 0x4023f6
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 0x402411
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 0x402445
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.004023f6
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
leave
ret

Function at 0x402476
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.00402363
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 0x4024de
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.00405dd0
test eax, eax
je 0x4024d2
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4024a6
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
inc eax
jmp 0x4024e0
xor eax, eax
pop esi
leave
ret

Function at 0x402838
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 0x402858
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test al, 0x10
je 0x402858
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 0x40288d
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 0x402b93
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 0x402c5e
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ebx, eax
cmp ebx, esi
je 0x402c5d
cmp dword [ebp + 0xc], esi
push edi
je 0x402bed
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 0x402bf8
push dword [ebp + 8]
call fcn.00402142
pop ecx
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
test eax, eax
jne 0x402c14
push 2
push 0x41231c
push edi
call fcn.00402db0
add esp, 0xc
cmp edi, 0xffffffff
je 0x402c53
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 0x402c45
push 4
push 0x412320
push edi
call fcn.00402db0
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 0x402c6a
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 0x402d00
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ebx, eax
cmp ebx, edi
je 0x402cff
cmp dword [ebp + 0xc], edi
push esi
je 0x402cbc
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 0x402cc7
push dword [ebp + 8]
call fcn.00402142
pop ecx
mov esi, eax
cmp esi, 0xffffffff
je 0x402cf5
push ebx
push esi
call fcn.0040215b
cmp dword [ebp + 0xc], edi
pop ecx
pop ecx
je 0x402ce7
push 0x4122e4
push esi
call fcn.0040215b
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 0x402d0c
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 0x402d68
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 0x402d66
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 0x402ffe
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov esi, eax
call fcn.00402129
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x40304f
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
call fcn.00402f41
mov edx, edi
mov eax, esi
call fcn.00402f1b
push edi
push dword [esi]
push ebx
call fcn.0040279b
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 0x403051
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x403085
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x4030b1
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 0x4030cc
lea ecx, [esi + 0x148]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
mov dword [esp + 4], eax
jne 0x4030d3
call fcn.0040311d
cmp dword [esp + 4], 0
je 0x403116
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 0x403110
push ebx
push esi
mov eax, edi
call fcn.00402452
pop ecx
pop ecx
jmp 0x403113
mov byte [edi], 0
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
Function at 0x40324c
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 0x40333e
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 0x4032a6
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 0x4032b7
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp ebx, edi
jl 0x4032ca
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 0x4032e8
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 0x403335
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 0x404eb8
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 0x404fd0
push dword [ebp + 0xc]
call fcn.00402142
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 0xc], eax
je 0x404fbc
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 0x404fa6
jmp 0x404f1f
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 4]
lea eax, [edi + ebx]
cmp eax, dword [ebp + 0x18]
jbe 0x404f2e
mov esi, dword [ebp + 0x18]
sub esi, edi
jmp 0x404f3a
mov dword [ebp - 0x20], esi
test esi, esi
mov esi, ebx
jne 0x404f3a
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 0x404f8f
cmp dword [ebp + 0x20], ecx
je 0x404f74
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 0x404f8a
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00402624
add esp, 0x18
add dword [ebp - 4], esi
jmp 0x404f9a
cmp dword [ebp - 0x20], ecx
jne 0x404f9a
mov eax, dword [ebp + 0x14]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x18]
jb 0x404f19
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 0x404fc5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x404fd9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
pop edi
leave
ret
Function at 0x4061bf
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x8a0
push ebx
push esi
push edi
push str.SeDebugPrivilege
mov edi, eax
call fcn.0040d640
xor esi, esi
pop ecx
push 0x20
pop eax
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x24]
push eax
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x48], esi
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x4c], esi
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x50], 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 + 0x38], esi
mov dword [ebp + 0x68], esi
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x60], esi
mov dword [ebp + 0x64], esi
call fcn.0040e0a9
cmp byte [edi], 0x2f
jne 0x40622f
lea eax, [edi + 1]
call fcn.00402606
mov edi, eax
jmp 0x406242
push edi
lea ebx, [ebp + 0x24]
call fcn.0040e2e9
cmp eax, esi
je 0x406335
mov edi, dword [eax]
cmp edi, esi
je 0x406335
push 0x7fe
lea eax, [ebp - 0x82e]
push esi
push eax
mov word [ebp - 0x830], si
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x3ff
lea eax, [ebp - 0x830]
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 0x4062d4
lea eax, [ebp + 0x6c]
push eax
push edi
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x6c], esi
call fcn.004012d9
test eax, eax
je 0x4062c3
lea eax, [ebp + 0x7c]
push eax
push dword [ebp + 0x6c]
lea eax, [ebp + 0x5c]
call fcn.004012fc
push dword [ebp + 0x6c]
call ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0x78]
call fcn.004059bc
push edi
call ebx
cmp dword [ebp + 0x7c], esi
je 0x406327
push 0x40
lea eax, [ebp - 0x2c]
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp + 0x14], esi
lea edi, [ebp + 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x830]
push eax
push dword [ebp + 0x7c]
lea eax, [ebp + 0x5c]
mov dword [ebp - 0x30], 0x44
call fcn.004012aa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0x78]
call fcn.004059bc
push dword [ebp + 0x7c]
call ebx
cmp dword [ebp + 0x68], esi
je 0x406335
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp dword [ebp + 0x24], esi
je 0x406346
push dword [ebp + 0x24]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [ebp + 0x24], esi
lea esi, [ebp + 0x4c]
call fcn.00410495
lea esi, [ebp + 0x3c]
call fcn.00410495
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x406ae0
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 0x406c8e
push ebx
xor ebx, ebx
cmp dword [edi + 0x101fc], ebx
push esi
jne 0x406b4e
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 0x406c8c
mov eax, dword [edi + 0x10044]
inc eax
inc eax
shl eax, 0xc
cmp byte [eax + edi], bl
je 0x406bae
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 + 0x10044]
inc eax
inc eax
shl eax, 0xc
add eax, edi
push eax
lea eax, [ebp - 0x50c]
call fcn.0040219f
cmp eax, 0xffffffff
pop ecx
je 0x406c8c
mov eax, dword [edi + 0x10044]
inc eax
shl eax, 0xc
cmp byte [eax + edi], bl
je 0x406c0e
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.0040dabc
mov eax, dword [edi + 0x10044]
inc eax
shl eax, 0xc
add eax, edi
push eax
mov eax, esi
call fcn.0040219f
cmp eax, 0xffffffff
pop ecx
pop ecx
je 0x406c8c
mov ebx, dword [edi + 0x10044]
push str.click
add ebx, 3
push edi
mov eax, ebx
call fcn.004059cc
test eax, eax
je 0x406c50
lea esi, [ebx + 1]
shl esi, 0xc
add esi, edi
call fcn.004028a5
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 0x406c86
push str.settext
push edi
mov eax, ebx
call fcn.004059cc
test eax, eax
je 0x406c8c
lea esi, [ebx + 1]
shl esi, 0xc
add esi, edi
call fcn.004028a5
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 0x407cdf
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.00402129
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 4], eax
je 0x407dc6
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 0x407dbb
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 0x407d54
mov ebx, dword [ebp + 8]
push 0x407c9d
push esi
mov byte [ebx + edi], 0
call fcn.0040227d
pop ecx
pop ecx
jmp 0x407db2
mov eax, dword [ebx + 0x10048]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
lea eax, [ebp - 0x40c]
push eax
call fcn.004020a4
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 + 0x1004c], esi
mov dword [ebx + 0x10200], edi
je 0x407db2
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 0x407e20
mov esi, dword [ebx + 0x10048]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
lea eax, [ebp - 0x80c]
push eax
call fcn.004020a4
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 + 0x1004c], 0
mov dword [ebx + 0x10200], edi
je 0x407e20
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
Function at 0x407e27
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3824
call fcn.00410920
push ebx
push esi
xor ebx, ebx
test byte [0x416a84], 1
push edi
jne 0x407e5a
or dword [0x416a84], 1
push 0x4109df
mov dword [0x416a80], ebx
call fcn.004105fc
pop ecx
push 0x1fe
lea eax, [ebp - 0x522]
push ebx
push eax
mov word [ebp - 0x524], bx
call sub.msvcrt.dll_memset
mov esi, 0x10fe
push esi
lea eax, [ebp - 0x1623]
push ebx
push eax
mov byte [ebp - 0x1624], bl
call sub.msvcrt.dll_memset
push 0x21fc
lea eax, [ebp - 0x3822]
push ebx
push eax
mov word [ebp - 0x3824], bx
call sub.msvcrt.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x1624]
push str.nircmd.exe__s
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x30
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
lea eax, [ebp - 0x3824]
push eax
or edi, 0xffffffff
push edi
lea eax, [ebp - 0x1624]
push eax
push ebx
push ebx
call esi
push 0xff
lea eax, [ebp - 0x524]
push eax
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
mov eax, dword [0x416a70]
cmp eax, ebx
jne 0x407f09
push str.NetRemoteTOD
call fcn.0040d7f6
cmp eax, ebx
mov dword [0x416a70], eax
je 0x407f18
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x524]
push ecx
call eax
mov edi, eax
cmp edi, ebx
jne 0x40803f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
imul ecx, ecx, 0x3c
sub ecx, dword [eax + 0x18]
add ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
imul ecx, ecx, 0x3c
lea eax, [ecx + eax + 0x43]
cmp eax, ebx
jge 0x407f44
add eax, 0x15180
jmp 0x407f4f
mov ecx, SendInput
cmp eax, ecx
jl 0x407f4f
sub eax, ecx
imul eax, eax, 0x3e8
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x3824]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], ebx
je 0x407fe9
push 0x104
lea eax, [ebp - 0x11b]
push ebx
push eax
mov byte [ebp - 0x11c], bl
call sub.msvcrt.dll_memset
push 0x207
lea eax, [ebp - 0x323]
push ebx
push eax
mov byte [ebp - 0x324], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x11c]
push eax
call fcn.00402893
push dword [ebp + 8]
lea eax, [ebp - 0x324]
push eax
call sub.msvcrt.dll_strcpy
lea esi, [ebp - 0x324]
call fcn.0040217d
mov eax, esi
push str.admin__nircmd.exe
push eax
call sub.msvcrt.dll_strcat
add esp, 0x2c
push ebx
mov eax, esi
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov eax, dword [0x416a6c]
cmp eax, ebx
jne 0x408005
push str.NetScheduleJobAdd
call fcn.0040d7f6
cmp eax, ebx
mov dword [0x416a6c], eax
je 0x40801a
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x524]
push ecx
call eax
mov edi, eax
jmp 0x40801d
or edi, 0xffffffff
mov eax, dword [0x416a74]
cmp eax, ebx
mov esi, dword [ebp - 4]
jne 0x40803c
push str.NetApiBufferFree
call fcn.0040d7f6
cmp eax, ebx
mov dword [0x416a74], eax
je 0x40803f
push esi
call eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40d980
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp byte [esi + 1], 0x3a
je 0x40da2d
lea eax, [esi + 2]
push 0x3a
push eax
call sub.msvcrt.dll_strchr
test eax, eax
pop ecx
pop ecx
je 0x40d9ab
dec eax
push eax
jmp 0x40da2e
push str._systemroot
mov eax, esi
call fcn.0040219f
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jl 0x40da2d
push ebx
push edi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x10b]
push 0
push eax
mov byte [ebp - 0x10c], 0
call sub.msvcrt.dll_memset
add esp, 0xc
cmp byte [0x416960], 0
mov edi, 0x416960
jne 0x40d9fa
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x416a68], eax
lea eax, [ebp - 0x10c]
push edi
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp - 4]
lea eax, [eax + esi + 0xb]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll_strcat
add esp, 0x18
pop edi
pop ebx
jmp 0x40da38
push esi
push dword [ebp + 8]
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 8]
leave
ret

Function at 0x40e031
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
push edi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov edi, 0x40dfe4
push edi
mov dword [ebp - 8], 1
call esi
cmp dword [ebp - 4], 0
jne 0x40e070
and dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
push edi
call esi
xor eax, eax
cmp dword [ebp - 4], eax
pop edi
setg al
pop esi
leave
ret

Function at 0x40e07c
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor edi, edi
push edi
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x40e0a4
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
ret