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.00410c20
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 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 0x412380
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 0x412384
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 0x412348
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 0x406271
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.0040d948
pop ecx
lea esi, [ebp + 0x64]
call fcn.00401337
cmp dword [ebp + 0x6c], ebx
je 0x4062ac
call dword [ebp + 0x6c]
mov edi, eax
jmp 0x4062ae
xor edi, edi
cmp edi, 0xffffffff
jne 0x4062c8
cmp dword [ebp + 0x64], ebx
je 0x4062c1
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor eax, eax
jmp 0x4063f1
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 0x4062e8
lea eax, [ebp + 0x5c]
push eax
push edi
call dword [ebp + 0x68]
jmp 0x4062ea
xor eax, eax
cmp eax, ebx
je 0x406396
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 0x40637d
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 0x406377
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 0x406379
xor eax, eax
cmp eax, ebx
jne 0x406386
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x70], eax
cmp dword [ebp + 0x54], ebx
je 0x4063e0
push dword [ebp + 0x54]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x4063e0
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 0x4063e0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x70], eax
cmp dword [ebp + 0x64], ebx
je 0x4063ee
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 0x4063fb
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.0040d948
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.0040e3b1
cmp byte [edi], 0x2f
jne 0x40646e
lea eax, [edi + 1]
call fcn.00402651
mov edi, eax
jmp 0x406481
push edi
lea ebx, [ebp + 0x20]
call fcn.0040e5f1
cmp eax, esi
je 0x406576
mov edi, dword [eax]
cmp edi, esi
je 0x406576
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 0x406515
lea eax, [ebp + 0x6c]
push eax
push edi
lea eax, [ebp + 0x58]
mov dword [ebp + 0x6c], esi
call fcn.004012e6
test eax, eax
je 0x406504
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 0x406568
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 0x406576
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp dword [ebp + 0x20], esi
je 0x406587
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [ebp + 0x20], esi
lea esi, [ebp + 0x48]
call fcn.0040e64d
lea esi, [ebp + 0x38]
call fcn.0040e64d
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x406d21
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 0x406ecf
push ebx
xor ebx, ebx
cmp dword [edi + 0x402bc], ebx
push esi
jne 0x406d8f
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 0x406ecd
mov eax, dword [edi + 0x40104]
inc eax
inc eax
shl eax, 0xc
cmp byte [eax + edi], bl
je 0x406def
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 0x406ecd
mov eax, dword [edi + 0x40104]
inc eax
shl eax, 0xc
cmp byte [eax + edi], bl
je 0x406e4f
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.0040ddc4
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 0x406ecd
mov ebx, dword [edi + 0x40104]
push str.click
add ebx, 3
push edi
mov eax, ebx
call fcn.00405a62
test eax, eax
je 0x406e91
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 0x406ec7
push str.settext
push edi
mov eax, ebx
call fcn.00405a62
test eax, eax
je 0x406ecd
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
Function at 0x407f20
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.00402174
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 4], eax
je 0x408007
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 0x407ffc
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 0x407f95
mov ebx, dword [ebp + 8]
push 0x407ede
push esi
mov byte [ebx + edi], 0
call fcn.004022c8
pop ecx
pop ecx
jmp 0x407ff3
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.004020ef
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 0x407ff3
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 0x408061
mov esi, dword [ebx + 0x40108]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
lea eax, [ebp - 0x80c]
push eax
call fcn.004020ef
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 0x408061
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 0x408068
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3824
call fcn.00410c20
push ebx
push esi
xor ebx, ebx
test byte [0x416a8c], 1
push edi
jne 0x40809b
or dword [0x416a8c], 1
push 0x410cdf
mov dword [0x416a88], ebx
call fcn.00410904
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 [0x416a78]
cmp eax, ebx
jne 0x40814a
push str.NetRemoteTOD
call fcn.0040dafe
cmp eax, ebx
mov dword [0x416a78], eax
je 0x408159
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x524]
push ecx
call eax
mov edi, eax
cmp edi, ebx
jne 0x408280
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 0x408185
add eax, 0x15180
jmp 0x408190
mov ecx, 0x15180
cmp eax, ecx
jl 0x408190
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 0x40822a
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.004028de
push dword [ebp + 8]
lea eax, [ebp - 0x324]
push eax
call sub.msvcrt.dll_strcpy
lea esi, [ebp - 0x324]
call fcn.004021c8
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 [0x416a74]
cmp eax, ebx
jne 0x408246
push str.NetScheduleJobAdd
call fcn.0040dafe
cmp eax, ebx
mov dword [0x416a74], eax
je 0x40825b
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x524]
push ecx
call eax
mov edi, eax
jmp 0x40825e
or edi, 0xffffffff
mov eax, dword [0x416a7c]
cmp eax, ebx
mov esi, dword [ebp - 4]
jne 0x40827d
push str.NetApiBufferFree
call fcn.0040dafe
cmp eax, ebx
mov dword [0x416a7c], eax
je 0x408280
push esi
call eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40dc88
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp byte [esi + 1], 0x3a
je 0x40dd35
lea eax, [esi + 2]
push 0x3a
push eax
call sub.msvcrt.dll_strchr
test eax, eax
pop ecx
pop ecx
je 0x40dcb3
dec eax
push eax
jmp 0x40dd36
push str._systemroot
mov eax, esi
call fcn.004021ea
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jl 0x40dd35
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 0x40dd02
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 0x40dd40
push esi
push dword [ebp + 8]
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 8]
leave
ret

Function at 0x40e339
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, 0x40e2ec
push edi
mov dword [ebp - 8], 1
call esi
cmp dword [ebp - 4], 0
jne 0x40e378
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 0x40e384
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 0x40e3ac
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
Function at 0x40e3b1
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x36c
push ebx
mov ebx, dword [ebp + 0x7c]
push esi
add ebx, 0x28
push edi
mov esi, ebx
call fcn.0040e64d
xor edi, edi
push edi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push 0x124
mov dword [ebp + 0x70], eax
lea eax, [ebp - 0x1ec]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x70]
mov dword [ebp - 0x1f0], 0x128
call sub.KERNEL32.DLL_Process32First
jmp 0x40e549
mov eax, dword [ebp - 0x1e8]
mov ecx, dword [ebp - 0x1d8]
push eax
push edi
push 0x410
mov byte [ebp - 0xc4], 0
mov dword [ebp + 0x48], edi
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x58], edi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], edi
mov dword [ebp - 0xc8], eax
mov dword [ebp + 0x44], ecx
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, edi
mov dword [ebp + 0x6c], eax
je 0x40e4fb
mov esi, 0x104
push esi
lea eax, [ebp - 0x2f7]
push edi
push eax
mov byte [ebp - 0x2f8], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2f8]
push eax
push dword [ebp + 0x6c]
mov eax, dword [ebp + 0x7c]
call fcn.0040e573
cmp byte [ebp - 0xc4], 0
jne 0x40e4df
cmp dword [0x416a80], edi
mov dword [ebp + 0x68], esi
jne 0x40e4c5
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp eax, edi
je 0x40e4c5
push str.QueryFullProcessImageNameA
push eax
mov dword [0x416a80], 1
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x416a84], eax
mov eax, dword [0x416a84]
cmp eax, edi
je 0x40e4df
lea ecx, [ebp + 0x68]
push ecx
lea ecx, [ebp - 0x2f8]
push ecx
push edi
push dword [ebp + 0x6c]
call eax
lea eax, [ebp - 0xc4]
push eax
lea esi, [ebp - 0x2f8]
call fcn.0040dc88
pop ecx
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebx + 0xc]
cmp esi, edi
jl 0x40e549
cmp esi, 0xffffffff
mov eax, dword [ebx + 8]
jne 0x40e513
push dword [ebx]
call sub.msvcrt.dll_free
jmp 0x40e526
push eax
push 0x130
lea eax, [ebx + 4]
mov edx, esi
mov edi, ebx
call fcn.00402269
pop ecx
lea eax, [esi + 1]
cmp dword [ebx + 0xc], eax
pop ecx
jge 0x40e532
mov dword [ebx + 0xc], eax
mov edi, esi
imul edi, edi, 0x130
add edi, dword [ebx]
push 0x4c
pop ecx
lea esi, [ebp - 0xc8]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x70]
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x40e40c
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4