joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c9686
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
mov eax, 0x4fe37c
call fcn.00475fe0
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
push 0x5567bc
lea eax, [ebp - 0x10]
lea edi, [esi + 0x5c]
push edi
push eax
call sub.MFC42.DLL_operator_3
xor ebx, ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.00475a8e
mov eax, dword [esi + 0x60]
push ebx
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4c9728
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c9728
push 0xc
lea eax, [ebp - 0x1c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [edi]
add esp, 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xc
push eax
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4c9728
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4c97f2
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x58]
call fcn.00475a8e
mov eax, dword [esi + 0x60]
push ebx
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4c97b1
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CFile::CFile
mov esi, dword [esi + 0x60]
push ebx
push 0x1002
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x4c9773
xor esi, esi
jmp 0x4c9776
push 1
pop esi
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00475cfe
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x4c97f2
cmp dword [ebp + 8], 1
jne 0x4c97cc
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esi + 0x60]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4c9c99
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4fe454
call fcn.00475fe0
sub esp, 0x108
and byte [ebp - 0x114], 0
push esi
push edi
mov esi, ecx
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x10]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_4
push dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push 0x551760
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x114]
push dword [esi + 0x60]
push 0x104
push eax
push 0x50229c
push str.userpanelver
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
test eax, eax
je 0x4c9d1b
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x114]
push eax
call sub.MFC42.DLL_CString::operator_2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
push 1
pop eax
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4ca9e8
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4fe524
call fcn.00475fe0
sub esp, 0x120
push ebx
push esi
push edi
mov edi, ecx
push ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x60]
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call sub.MFC42.DLL_CString::CString_3
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.004cab08
test eax, eax
jne 0x4caa22
push 1
jmp 0x4caa4e
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x12c]
mov ebx, 0x50229c
push 0x104
push eax
push ebx
push str.PanelArray
push str.PanelInfo
call edi
test eax, eax
jne 0x4caa54
push 2
pop eax
jmp 0x4caaf9
lea ecx, [ebp - 0x28]
call fcn.004acca6
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x78]
call dword [sym.imp.QQBaseClassInDll.dll_public:_void___thiscall_CDataProcessing::GetPanelIDArray_class_CArray_class_CString__class_CString___]
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x14], 0
dec eax
test eax, eax
jl 0x4caadf
mov eax, dword [esi]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x12c]
push 0x104
mov ecx, dword [ecx + edx*4]
push eax
push ebx
push str.syspanel
push ecx
call edi
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::CString_1
push str.TRUE
mov byte [ebp - 4], 2
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
mov byte [ebp - 4], 1
pop ecx
test eax, eax
lea ecx, [ebp - 0x10]
je 0x4caae4
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x20]
inc dword [ebp - 0x14]
dec eax
cmp dword [ebp - 0x14], eax
jle 0x4caa7f
push 3
pop esi
jmp 0x4caaeb
call sub.MFC42.DLL_CString::CString
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004accf3
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

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

Disassembly:
mov eax, 0x4fe580
call fcn.00475fe0
sub esp, 0x28
push esi
mov esi, ecx
lea ecx, [ebp - 0x34]
call fcn.00475a8e
push dword [esi + 0x68]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4cad35
push 0xc
lea eax, [ebp - 0x18]
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [esi + 0x68]
and dword [ebp - 0x14], 0
add esp, 0xc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4cad35
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::Close
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::CFileFind
xor eax, eax
jmp 0x4cad5a
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::Close
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFileFind::CFileFind
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4cad69
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4fe5a4
call fcn.00475fe0
sub esp, 0x48
push ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.00475a8e
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4cade2
push 0xc
lea eax, [ebp - 0x18]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
push 1
pop esi
push eax
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4cade5
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::Close
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::CFileFind
xor eax, eax
jmp 0x4cae68
push 1
pop esi
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x38]
call fcn.00475a8e
push ebx
lea ecx, [ebp - 0x38]
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4cae42
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CFile::CFile
push ebx
push 0x1002
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x4cae2c
xor esi, esi
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00475cfe
jmp 0x4cae4f
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CFileFind::Close
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x4cae78
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4fe5d7
call fcn.00475fe0
sub esp, 0x10c
and dword [ebp - 0x10], 0
push ebx
push 1
lea eax, [ebp - 0x118]
pop ebx
push dword [ecx + 0x6c]
mov dword [ebp - 4], ebx
push 0x104
push eax
push 0x50229c
push 0x5590d0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_4
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4cedd1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
lea eax, [ebp - 0x94]
push edi
mov edi, ecx
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
ja 0x4cee10
jne 0x4cee09
cmp dword [ebp - 0x8c], 1
jae 0x4cee10
mov esi, 0x735
jmp 0x4cee15
mov esi, 0x734
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0
movzx ecx, si
mov esi, dword [sym.imp.USER32.dll_LoadImageA]
push 0x10
push 0x10
push 1
push ecx
push eax
call esi
test eax, eax
mov dword [edi + 0x4b8], eax
je 0x4cee6a
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0
push 0x10
push 0x10
push 1
push 0x162
push eax
call esi
test eax, eax
mov dword [edi + 0x4bc], eax
jne 0x4cee6e
push dword [edi + 0x4b8]
call dword [sym.imp.USER32.dll_DestroyIcon]
xor eax, eax
jmp 0x4cee7c
push 0
push 0x435b
mov ecx, edi
call sub.MFC42.DLL_CDialog::Create
pop edi
pop esi
leave
ret

Function at 0x4cfa41
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x4ff01c
call fcn.00475fe0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x519e44
mov dword [esi + 0x40], 0x519e08
mov eax, dword [esi + 0x5c]
and dword [ebp - 4], 0
test eax, eax
je 0x4cfa8f
push 0xa
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4cfa82
push 0
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x5c], 0
mov eax, dword [esi + 0x60]
test eax, eax
je 0x4cfaa1
push eax
call sub.MFC42.DLL_operatordelete
and dword [esi + 0x60], 0
pop ecx
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call sub.MFC42.DLL_CWnd::CWnd
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4cfbdf
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x60], 0
je 0x4cfc0d
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 4
push esi
push 0x4cfc2c
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
jg 0x4cfc11
xor eax, eax
jmp 0x4cfc29
push 0xffffffffffffffff
push eax
mov dword [esi + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 1
pop eax
pop esi
leave
ret
Function at 0x4d0835
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x4ff3d5
call fcn.00475fe0
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x51a3c8
mov eax, dword [esi + 0x2f0]
lea edi, [esi + 0x2f0]
test eax, eax
mov dword [ebp - 4], 0x11
je 0x4d087c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x7d0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 0x10], 0
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
lea edx, [ebp - 0x10]
push edx
push 0x502998
mov eax, dword [eax + 0xd4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
mov eax, dword [ebp - 0x10]
jne 0x4d08c4
test eax, eax
je 0x4d08c4
mov ebx, dword [eax]
push 0x502978
mov ecx, esi
mov edi, eax
call sub.MFC42.DLL_CCmdTarget::GetInterface
push eax
push edi
call dword [ebx + 0x2c]
mov eax, dword [ebp - 0x10]
test eax, eax
mov byte [ebp - 4], 0x11
je 0x4d08d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x76c]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x764]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x760]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2f8]
mov byte [ebp - 4], 0xd
call dword [sym.imp.QQBaseClassInDll.dll_public_virtual:_void___thiscall_CQQShowWnd::destructor_void_]
lea ecx, [esi + 0x2ec]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea edi, [esi + 0x2e4]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x10], edi
mov dword [edi], 0x51a49c
mov byte [ebp - 4], 0xb
mov dword [edi], 0x516b4c
mov ecx, edi
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ebx, 0x50469c
mov byte [ebp - 4], 0xb
mov dword [edi], ebx
mov edi, dword [sym.imp.QQBaseClassInDll.dll_public_virtual:_void___thiscall_CHypelinkButton::destructor_void_]
lea ecx, [esi + 0x268]
mov byte [ebp - 4], 0xa
call edi
lea ecx, [esi + 0x1ec]
mov byte [ebp - 4], 9
call edi
lea ecx, [esi + 0x170]
mov byte [ebp - 4], 8
call edi
lea ecx, [esi + 0xf4]
mov byte [ebp - 4], 7
call edi
lea ecx, [esi + 0xe0]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xdc]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xd8]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x94]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CWnd::CWnd
lea edi, [esi + 0x88]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], edi
mov dword [edi], 0x517278
mov byte [ebp - 4], 2
mov dword [edi], 0x516b4c
mov ecx, edi
mov byte [ebp - 4], 0x16
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov byte [ebp - 4], 2
mov dword [edi], ebx
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
push 0x10
lea eax, [esi + 0x40]
push 0
push eax
call sub.MSVCRT.dll_memset
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov ecx, esi
call sub.MFC42.DLL_CWnd::CWnd
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4d3bdd
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 1
pop edi
xor esi, esi
mov dword [ebp - 0xc], ecx
push 0xfffffffffffffff5
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [ebp - 0x28]
or dword [ebp - 8], 0xffffffff
or dword [ebp - 4], 0xffffffff
push esi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4d3cdf
or dword [ebp - 0x18], 0xffffffff
push 2
push esi
lea eax, [ebp - 0x18]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push eax
push dword [ebp - 8]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebx
mov ecx, dword [ebp - 0xc]
push edi
test eax, eax
lea eax, [ebp - 8]
push edi
push eax
jne 0x4d3c66
call fcn.004d4188
mov ecx, dword [ebp - 0xc]
push edi
lea eax, [ebp - 4]
push edi
push eax
jmp 0x4d3cda
call fcn.004d4188
lea eax, [ebp - 0x28]
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
push 0
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4d3cdf
or dword [ebp - 0x1c], 0xffffffff
push 2
push 0
lea eax, [ebp - 0x1c]
push 0
push eax
call esi
push eax
push dword [ebp - 0x10]
call esi
push eax
call ebx
test eax, eax
push edi
push edi
jne 0x4d3ce3
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.004d4188
push edi
lea eax, [ebp - 4]
push edi
push eax
mov ecx, esi
call fcn.004d4188
push edi
lea eax, [ebp - 0x14]
push edi
push eax
mov ecx, esi
call fcn.004d4188
push edi
lea eax, [ebp - 0x10]
push edi
push eax
mov ecx, esi
call fcn.004d4188
xor eax, eax
jmp 0x4d3d4f
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.004d4188
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
lea eax, [ebp - 4]
push eax
call fcn.004d3d54
test eax, eax
jne 0x4d3d08
xor ebx, ebx
jmp 0x4d3d19
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004d3de7
mov ebx, eax
push edi
lea eax, [ebp - 0x18]
push edi
push eax
mov ecx, esi
call fcn.004d4188
push edi
lea eax, [ebp - 4]
push edi
push eax
mov ecx, esi
call fcn.004d4188
push edi
lea eax, [ebp - 0x14]
push edi
push eax
mov ecx, esi
call fcn.004d4188
push edi
lea eax, [ebp - 0x1c]
push edi
push eax
mov ecx, esi
call fcn.004d4188
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d3d54
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [eax], 0xffffffff
je 0x4d3dde
mov ebx, dword [ebp + 0xc]
cmp dword [ebx], 0xffffffff
je 0x4d3dde
xor esi, esi
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call sub.MSVCRT.dll_memset
push 0x44
lea eax, [ebp - 0x54]
pop edi
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0x18
or word [ebp - 0x28], 0x101
mov dword [ebp - 0x54], edi
mov eax, dword [eax]
mov word [ebp - 0x24], si
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
push str.ipconfig__all
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
cmp edi, esi
je 0x4d3dde
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
mov eax, edi
jmp 0x4d3de0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4e0dfe
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 1
pop esi
call fcn.004e0b11
mov edi, dword [ebp + 8]
mov ecx, eax
mov dword [ebp + 8], 0xe
and dword [ecx + 0x134], 0
and dword [ecx + 0x130], 0
xor dword [ecx + 0x9c], edi
mov eax, dword [ebp + 8]
push 0x25
cdq
pop ebx
add dword [ebp + 8], 0xe
idiv ebx
xor dword [ecx + edx*4 + 0x9c], esi
sub edi, esi
cmp dword [ebp + 8], 0x206
lea eax, [ecx + edx*4 + 0x9c]
mov eax, esi
mov esi, edi
mov edi, eax
jl 0x4e0e2c
mov esi, 0x3e8
call fcn.004e0d7c
dec esi
jne 0x4e0e5d
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4a90e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x69000]
push edi
or ebp, 0xffffffff
jmp 0x4a9102
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a9109
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a90f8
mov eax, 1
add ebx, ebx
jne 0x4a911b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a912c
jne 0x4a914b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a914b
dec eax
add ebx, ebx
jne 0x4a9138
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4a9110
add ebx, ebx
jne 0x4a9147
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4a919d
xor ecx, ecx
sub eax, 3
jb 0x4a9163
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a91d2
sar eax, 1
mov ebp, eax
jmp 0x4a916e
add ebx, ebx
jne 0x4a916e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a913c
inc ecx
add ebx, ebx
jne 0x4a917c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a913c
add ebx, ebx
jne 0x4a9189
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a917e
jne 0x4a919a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a917e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a91bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a91ae
jmp 0x4a90fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a91bc
add edi, ecx
jmp 0x4a90fe
pop esi
mov edi, esi
mov ecx, 0x3493
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a91da
cmp byte [edi], 0x4c
jne 0x4a91da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4a91df
lea edi, [esi + 0xa5000]
mov eax, dword [edi]
or eax, eax
je 0x4a9257
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xabb08]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xabc5c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a920c
mov ecx, edi
jns 0x4a923b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xabc60]
or eax, eax
je 0x4a9251
mov dword [ebx], eax
add ebx, 4
jmp 0x4a9229
call dword [esi + 0xabc70]
mov ebp, dword [esi + 0xabc64]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4a928b
sub esp, 0xffffff80
jmp 0x417770