joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e420
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x484400
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
mov dword [esi], 0x4900f4
lea ebp, [esi + 8]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, ebp
mov dword [esp + 0x38], 6
call sub.MFC42.DLL_CPtrArray::SetSize
lea ecx, [esi + 0x1c]
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x24], ecx
call sub.MFC42.DLL_CPtrArray::SetSize
lea ecx, [esi + 0x30]
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x20], ecx
call sub.MFC42.DLL_CPtrArray::SetSize
lea ecx, [esi + 0x44]
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x1c], ecx
call sub.MFC42.DLL_CPtrArray::SetSize
lea ecx, [esi + 0x58]
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x18], ecx
call sub.MFC42.DLL_CPtrArray::SetSize
mov eax, dword [esi + 0x8c]
lea edi, [esi + 0x88]
cmp eax, ebx
je 0x44e4b1
mov eax, dword [eax]
cmp eax, ebx
jne 0x44e4ab
mov ecx, dword [edi + 0x14]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 8], ebx
mov dword [edi + 4], ebx
call sub.MFC42.DLL_CPlex::FreeDataChain
mov dword [edi + 0x14], ebx
mov dword [esp + 0x24], edi
mov dword [edi], 0x4900f8
mov eax, dword [edi + 4]
mov byte [esp + 0x30], 7
cmp eax, ebx
je 0x44e4e4
mov eax, dword [eax]
cmp eax, ebx
jne 0x44e4de
mov ecx, dword [edi + 0x14]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 8], ebx
mov dword [edi + 4], ebx
call sub.MFC42.DLL_CPlex::FreeDataChain
add esi, 0x6c
mov dword [edi + 0x14], ebx
mov dword [edi], 0x488704
mov dword [esp + 0x24], esi
mov dword [esi], 0x49010c
mov eax, dword [esi + 4]
mov byte [esp + 0x30], 8
cmp eax, ebx
je 0x44e520
mov eax, dword [eax]
cmp eax, ebx
jne 0x44e51a
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
call sub.MFC42.DLL_CPlex::FreeDataChain
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x14], ebx
mov dword [esi], 0x488704
mov byte [esp + 0x30], 3
call fcn.0047e07e
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.0047e07e
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.0047e07e
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.0047e07e
mov ecx, ebp
mov dword [esp + 0x30], 0xffffffff
call fcn.0047e07e
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x44e5a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
jmp 0x44e5ce
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jge 0x44e619
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x44e617
mov esi, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 0x10]
call eax
or dword [ebp - 8], eax
cmp esi, esp
jne 0x44e601
jmp 0x44e5c5
push 0xffffffffffffffff
push 0
push 0xf04e
call sub.MFC42.DLL_AfxMessageBox_1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x44e5c5
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x44e630
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
jmp 0x44e657
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x44e6a2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x44e6a0
mov esi, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 0xc]
call eax
cmp esi, esp
jne 0x44e68a
jmp 0x44e64e
push 0xffffffffffffffff
push 0
push 0xf04f
call sub.MFC42.DLL_AfxMessageBox_1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x44e64e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x44e6b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jmp 0x44e6de
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x44e720
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x34]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x44e71e
mov esi, esp
mov eax, dword [ebp - 0xc]
call eax
cmp esi, esp
jne 0x44e708
jmp 0x44e6d5
push 0xffffffffffffffff
push 0
push 0xf050
call sub.MFC42.DLL_AfxMessageBox_1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x44e6d5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e730
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x60]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jmp 0x44e75e
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x44e7a0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x5c]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x44e79e
mov esi, esp
mov eax, dword [ebp - 0xc]
call eax
cmp esi, esp
jne 0x44e788
jmp 0x44e755
push 0
push 0
push 0x4ac8f8
call sub.MFC42.DLL_AfxMessageBox
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x44e755
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44e7b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jmp 0x44e7de
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x44e826
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x48]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x44e824
mov esi, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 0xc]
call eax
cmp esi, esp
jne 0x44e80e
jmp 0x44e7d5
push 0xffffffffffffffff
push 0
push 0xf051
call sub.MFC42.DLL_AfxMessageBox_1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x44e7d5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44f920
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0xa0
push ebx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x40
push 0x1000
push 0x1000
push 0
lea ecx, [eax + 0x85c]
call fcn.00425d40
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x44f962
mov eax, 3
pop ebx
add esp, 0xa0
ret
push ebp
push esi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.0044f870
mov ecx, dword [esp + 0xc0]
mov esi, dword [esp + 0xbc]
lea edx, [esp + eax + 0x1b]
mov ebp, ecx
mov edi, edx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xb4]
sub ecx, eax
sub ecx, ebx
add ecx, ebp
mov dword [esp + eax + 0x2c], ecx
mov ecx, edx
dec ecx
test edx, edx
je 0x44f9bb
cmp dword [ecx], 0xaabbccdd
je 0x44f9bb
mov edx, ecx
dec ecx
test edx, edx
jne 0x44f9ac
push eax
lea eax, [esp + 0x34]
push eax
push ebx
call sym.MDebug.exe_WriteDebugProcessMemory
lea ecx, [esp + 0xc0]
push 4
lea edx, [ebx + 0x800]
push ecx
push edx
call sym.MDebug.exe_WriteDebugProcessMemory
mov ecx, 8
mov eax, 0x90909090
lea edi, [esp + 0x28]
push 5
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xd0]
lea ecx, [esp + 0x2c]
sub ebx, eax
push ecx
sub ebx, 5
push eax
mov byte [esp + 0x34], 0xe9
mov dword [esp + 0x35], ebx
call sym.MDebug.exe_WriteDebugProcessMemory
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x450880
Capabilities:
Get keyboard layout

Disassembly:
push 0xffffffffffffffff
push 0x48457f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call sub.MFC42.DLL_CWnd::CWnd
xor edi, edi
lea ecx, [esi + 0x44]
mov dword [esp + 0x14], edi
call fcn.0047de5c
lea ecx, [esi + 0x8b8]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_5
mov dword [esi + 0x8c0], edi
mov dword [esi + 0x8bc], 0x4886f0
or eax, 0xffffffff
push edi
mov byte [esp + 0x18], 3
mov dword [esi], 0x490428
mov dword [esi + 0x8c8], edi
mov dword [esi + 0x8c4], edi
mov dword [esi + 0x904], eax
mov dword [esi + 0x900], eax
mov dword [esi + 0x40], edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [esi + 0x8d0], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, esi
add eax, 0xdfc
mov dword [esi + 0x8cc], eax
call fcn.00451df0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x453750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x484708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, dword [esp + 0x40]
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x20], eax
add eax, 0xd
mov dword [esp + 0x28], eax
mov eax, dword [edi]
mov dword [esp + 0x24], ecx
add ecx, 0xd
test eax, eax
mov dword [esp + 0x2c], ecx
je 0x4537ab
push 0x14
call ebx
push eax
push 0x10
call ebx
push eax
lea eax, [esp + 0x28]
push eax
jmp 0x4537c1
mov eax, dword [edi + 4]
test eax, eax
je 0x4537c8
push 0x10
call ebx
push eax
push 0x14
call ebx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::Draw3dRect
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.GDI32.dll_GetTextColor]
mov edx, dword [esi]
push 0x12
mov ebp, eax
mov dword [esp + 0x44], edx
call ebx
push eax
mov eax, dword [esp + 0x44]
mov ecx, esi
call dword [eax + 0x38]
push 1
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0x4886f0
mov ecx, dword [esi + 8]
push 0x58
push ecx
mov dword [esp + 0x40], ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 0x60
push 0x3c
call dword [sym.imp.KERNEL32.dll_MulDiv]
push ebx
push str.Marlett
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFont::CreatePointFont
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call dword [edx + 0x30]
push 0x4aca78
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], eax
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [eax]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov ebx, dword [esi]
mov edi, dword [eax - 8]
add ecx, 3
push edi
add edx, 3
push eax
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x48], 1
call dword [ebx + 0x64]
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x40]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x38]
mov dword [esp + 0x18], 0x488718
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
pop esi
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x453e40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4847a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x20]
call sub.MFC42.DLL_CString::CString_5
xor edi, edi
lea ecx, [esi + 0x34]
mov dword [esp + 0x18], edi
call fcn.0044af30
mov eax, 0xa
mov dword [esi + 0xc4], 0x490698
mov dword [esi + 0xd0], edi
mov dword [esi + 0xd4], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0xdc], eax
mov dword [esi + 0xe0], 0x490684
mov dword [esi + 0xec], edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0xe8], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xf4], edi
mov dword [esi + 0xf8], eax
lea ebx, [esi + 0x100]
mov ecx, ebx
call fcn.00453960
mov byte [esp + 0x18], 4
mov dword [esi], 0x490680
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov dword [esi + 0x28], edi
add eax, 0x85c
mov dword [esi + 0x2c], edi
mov dword [esi + 0xc0], eax
mov dword [esi + 0x30], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x24], edi
mov ecx, 0x40
xor eax, eax
mov edi, ebx
push 0x100
mov dword [esi + 0x10], 1
push 0x4ace4c
push ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0xbc], esi
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
pop edi
mov dword [esi + 0x210], eax
mov ecx, dword [eax + 0x20]
mov eax, esi
mov dword [esi + 0x214], ecx
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x45c5e0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x10c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x11c]
mov dword [esp + 8], 0
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x45c652
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push 4
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x45c64b
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push 0x104
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x118]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop edi
pop esi
add esp, 0x10c
ret 8

Function at 0x45c680
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x10c
mov ecx, dword [esp + 0x114]
lea edx, [esp + 4]
push esi
xor eax, eax
push edx
push 0x45c6d0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], al
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [esp + 0x114]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop esi
add esp, 0x10c
ret 8
Function at 0x45cd20
Capabilities:
Enumerate services
Query service configuration

Disassembly:
sub esp, 0x44
push ebx
push ebp
mov ebp, dword [ecx + 0xf4]
xor ebx, ebx
cmp ebp, 2
push 4
setne bl
push 0
push 0
mov dword [esp + 0x24], ecx
inc ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x1c], ebp
je 0x45cef1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x34]
push 0x24
push eax
push ebx
push 0x30
push ebp
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x45ceea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x45ceea
mov ecx, dword [esp + 0xc]
push esi
push edi
lea esi, [ecx + 0x24]
push esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
push edi
push ebx
push 0x30
push ebp
mov dword [esp + 0x4c], edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push 0x2000
call sub.MFC42.DLL_operatornew
mov ebx, eax
mov eax, dword [esp + 0x1c]
add esp, 4
xor esi, esi
test eax, eax
jbe 0x45ced9
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], edi
lea ebp, [edx + 0xa0]
jmp 0x45cdf7
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
push 0
push 0
push 0
push 0
push eax
push esi
push 3
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::InsertItem
push esi
push 0
push 0
push 0
push 0
push 4
push 0
push esi
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::SetItem
mov ecx, dword [edi + 4]
push ecx
push 1
push esi
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::SetItemText
mov edx, dword [esp + 0x10]
mov ecx, 0x800
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [edx]
mov ecx, dword [esp + 0x24]
push 1
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea edx, [esp + 0x14]
mov dword [esp + 0x20], eax
push edx
push 0x2000
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x45ceae
mov eax, dword [ebx + 0xc]
mov ecx, ebp
push eax
push 3
push esi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov ecx, 0x800
xor eax, eax
mov edi, ebx
mov edx, dword [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], eax
push ecx
push 0x2000
push ebx
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2A]
test eax, eax
je 0x45ceae
mov eax, dword [ebx]
mov ecx, ebp
push eax
push 2
push esi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
inc esi
add ecx, 0x24
cmp esi, eax
mov dword [esp + 0x10], ecx
jb 0x45cdf3
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
push ebx
call sub.MFC42.DLL_operatordelete
push edi
call sub.MFC42.DLL_operatordelete
add esp, 8
pop edi
pop esi
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
pop ebx
add esp, 0x44
ret
Function at 0x4662d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test cl, 3
je 0x466302
mov al, byte [ecx + ebp - 1]
and eax, 0xdf
or eax, esi
shl eax, 8
dec ecx
mov esi, eax
test cl, 3
jne 0x4662ec
shr ecx, 2
test ecx, ecx
jle 0x466320
mov eax, ebp
mov edi, dword [eax]
add eax, 4
and edi, 0xdfdfdfdf
xor edi, edx
dec ecx
rol edi, 4
mov edx, edi
jne 0x46630b
mov eax, edx
xor edx, edx
xor eax, esi
mov ecx, 0x2710
div ecx
pop edi
pop esi
pop ebp
mov eax, edx
ret 4

Function at 0x4674a0
Capabilities:
Enumerate process modules

Disassembly:
push ebx
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4674b7
xor eax, eax
pop ebx
ret 8
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
push ebx
xor ebp, ebp
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x4674ff
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x14]
cmp edi, eax
jb 0x4674df
mov ecx, dword [esi + 0x18]
add ecx, eax
cmp edi, ecx
jb 0x4674fa
push esi
push ebx
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x4674cf
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 8
mov ebp, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 8
Function at 0x46a7a0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebp
xor ebp, ebp
push esi
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x46a83e
push ebx
push edi
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], pe_nt_image_headers32
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x46a828
mov edi, dword [esp + 0x13c]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
lea ecx, [esp + 0x34]
push edi
push ecx
call ebx
add esp, 8
test eax, eax
je 0x46a824
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x46a7f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret 4
mov ebp, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret 4
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret 4
Function at 0x46ac40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
sub esp, 0x35c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
xor eax, eax
push 2
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], ecx
push eax
call esi
mov edi, dword [esp + 0x384]
mov ebx, dword [esp + 0x380]
mov ebp, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
mov ecx, dword [edi]
push ecx
push ebx
call ebp
test eax, eax
jne 0x46ac95
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x35c
ret 8
push 2
push 0
lea edx, [esp + 0x18]
push 0
push edx
call esi
push eax
mov eax, dword [edi + 4]
push eax
push ebx
call ebp
test eax, eax
jne 0x46acc8
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x35c
ret 8
mov edx, dword [esp + 0x14]
push 0x40
push 0x1000
xor ebp, ebp
push 0x1000
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
cmp ebx, ebp
je 0x46adfb
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
add ecx, 0x85c
call fcn.00423cf0
mov esi, eax
mov ecx, 0xb2
xor eax, eax
lea edi, [esp + 0xa4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xa0]
push edx
push eax
mov dword [esp + 0xa8], 0x10001
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ecx, dword [sym.imp.KERNEL32.dll_CreateEventA]
lea edx, [esp + 0x20]
push ecx
push 0xaabbccdd
push esi
push edx
call fcn.00446350
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x30]
push eax
push 0x11223344
push esi
push ecx
call fcn.00446350
mov edx, dword [esp + 0x178]
lea eax, [esp + 0x40]
push edx
push 0x778899aa
push esi
push eax
call fcn.00446350
mov edx, dword [esp + 0x44]
add esp, 0x30
lea ecx, [esp + 0x20]
push ebp
push esi
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xa0]
push eax
push ecx
mov dword [esp + 0x160], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor esi, esi
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push ebx
push edx
mov dword [esp + 0x2c], ebp
call edi
mov eax, dword [esp + 0x18]
cmp eax, 0x90909090
je 0x46addf
cmp eax, ebp
jne 0x46adf0
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x1f4
jl 0x46adb8
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x35c
ret 8