joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470690
Capabilities:
Suspend thread

Disassembly:
push 0xffffffffffffffff
push 0x526201
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [edi], 0x5388a8
mov eax, dword [edi + 0x44]
mov ebp, dword [sym.imp.KERNEL32.dll_SuspendThread]
xor ebx, ebx
mov dword [esp + 0x28], 2
cmp eax, ebx
je 0x4706d2
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [edi + 0x2c]
push eax
call esi
mov eax, dword [edi + 0x88]
cmp eax, ebx
je 0x4706eb
push eax
call ebp
lea ecx, [edi + 0x70]
push ecx
call esi
mov eax, dword [edi + 0x60]
lea esi, [edi + 0x5c]
push eax
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push ecx
push edx
mov ecx, esi
call fcn.00472c50
mov eax, dword [esi + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esi + 8]
mov dword [esi + 4], ebx
push eax
mov dword [esi + 0x10], ebx
call sub.MFC42.DLL_operatordelete
mov dword [esi + 8], ebx
mov eax, dword [edi + 0x4c]
lea esi, [edi + 0x48]
add esp, 8
mov ecx, dword [eax]
mov byte [esp + 0x28], 1
push eax
lea eax, [esp + 0x18]
push ecx
push eax
mov ecx, esi
call fcn.00472ba0
mov eax, dword [esi + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esi + 8]
mov dword [esi + 4], ebx
push eax
mov dword [esi + 0x10], ebx
call sub.MFC42.DLL_operatordelete
mov dword [esi + 8], ebx
mov eax, dword [edi + 0x1c]
lea esi, [edi + 0x18]
add esp, 8
mov ecx, dword [eax]
mov byte [esp + 0x28], bl
push eax
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00472af0
mov eax, dword [esi + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esi + 8]
mov dword [esi + 4], ebx
push eax
mov dword [esi + 0x10], ebx
call sub.MFC42.DLL_operatordelete
mov dword [esi + 8], ebx
mov ecx, dword [edi + 0x14]
lea esi, [edi + 4]
add esp, 8
cmp ecx, ebx
mov dword [esp + 0x28], 0xffffffff
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov dword [esp + 0x10], eax
je 0x4707e7
mov ecx, eax
cmp eax, ecx
jne 0x4707e7
mov edx, dword [edi + 4]
mov ecx, esi
push edx
call fcn.00473390
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
lea edx, [esp + 0x14]
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov dword [esi + 0x10], ebx
push edx
mov dword [eax], eax
mov eax, dword [esi + 4]
mov ecx, esi
mov dword [eax + 8], eax
call fcn.00442110
jmp 0x47080f
cmp eax, edi
je 0x47080f
lea eax, [esp + 0x18]
push ebx
push eax
lea ecx, [esp + 0x18]
call fcn.004733d0
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.00472fb0
cmp dword [esp + 0x10], edi
jne 0x4707eb
mov eax, dword [esi + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esi + 8]
mov dword [esi + 4], ebx
push ecx
mov dword [esi + 0x10], ebx
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x28]
add esp, 8
mov dword [esi + 8], ebx
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x471460
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x526378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push esi
push edi
mov esi, ecx
lea ebp, [esi + 0x2c]
mov dword [esp + 0x44], 0
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x28]
push eax
mov byte [esp + 0x48], 3
call fcn.004c73e6
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 4
push ecx
lea ecx, [esp + 0x30]
call fcn.00472d00
lea edx, [esp + 0x28]
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [esi + 4]
mov byte [esp + 0x4c], 5
call fcn.00472d70
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 6
call fcn.004711a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 0
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x50]
mov ecx, dword [edi]
lea edx, [edi + 4]
mov dword [esi + 0x10], ecx
push edx
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CString::operator_2
lea eax, [edi + 8]
lea ecx, [esi + 0x18]
push eax
call sub.MFC42.DLL_CString::operator_2
add edi, 0xc
lea ecx, [esi + 0x1c]
push edi
call sub.MFC42.DLL_CString::operator_2
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 8
Function at 0x472240
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5264c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x70]
mov dword [esp + 0x24], 0
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x2c]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x28], 1
call fcn.004c73e6
lea ecx, [esp + 8]
mov byte [esp + 0x24], 2
push ecx
lea ecx, [esp + 0x14]
call fcn.004c73e6
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esi + 0x48]
mov byte [esp + 0x2c], 3
call fcn.004736a0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x30]
lea ecx, [esi + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_2
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x474fb0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x474d50
push 0
push 0
mov dword [esi + 4], eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 1
pop esi
pop ecx
ret 4
Function at 0x476a70
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x526aa8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push 0x565d74
xor esi, esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, esi
mov dword [0x571aa4], eax
je 0x476bd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x476bd1
push ebx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
push 0x66
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], esi
call sub.MFC42.DLL_CString::LoadStringA
push esi
push 0x565d14
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, eax
cmp ebx, esi
je 0x476ba9
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
sub ecx, edi
cmp eax, ecx
jne 0x476b0c
push 3
jmp 0x476b0e
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x565d8c]
cmp eax, esi
jl 0x476ba9
cmp eax, 4
jne 0x476b84
cmp dword [0x571bf4], esi
jne 0x476b91
mov eax, dword [0x571ccc]
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push 0x565590
push eax
call edi
add esp, 8
test eax, eax
jne 0x476b57
mov esi, 2
jmp 0x476b96
mov eax, dword [0x571ccc]
push 0x565588
push eax
call edi
add esp, 8
test eax, eax
jne 0x476b72
mov esi, 3
jmp 0x476b96
mov edx, dword [0x571ccc]
cmp dword [edx - 8], esi
jle 0x476b96
mov esi, 4
jmp 0x476b96
cmp eax, 2
jne 0x476b96
cmp dword [0x571bf8], esi
je 0x476b96
mov esi, 1
mov eax, dword [0x565d8c]
push esi
push eax
push 0x4ef
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebx
mov eax, 1
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x47d1a0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x527370
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push edi
mov eax, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x18], 1
mov eax, dword [eax - 8]
test eax, eax
je 0x47d290
push esi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0xc]
push ecx
push 0x566348
push edx
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push edi
mov byte [esp + 0x28], 3
call fcn.0041eb80
mov edx, dword [esp + 0x14]
add esp, 0xc
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x47d273
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], edi
lea edx, [esp + 0x10]
push edi
mov ecx, dword [eax - 8]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47d26c
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax - 8]
cmp ecx, eax
jne 0x47d26c
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
pop esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
mov dword fs:[0], ecx
add esp, 0x18
ret 8

Function at 0x47d360
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5273b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x18]
lea ecx, [esp + 4]
push eax
push 0x566338
push ecx
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 4]
lea eax, [esp]
push edx
push eax
push 0
mov byte [esp + 0x1c], 2
call fcn.0041eb80
mov ecx, dword [esp + 0xc]
add esp, 0xc
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov byte [esp + 0x10], 1
lea ecx, [esp]
je 0x47d419
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x47d450
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5273f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
push 0x566348
push ecx
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x34]
add esp, 0xc
lea eax, [esp + 0x10]
push edx
push 0x566338
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
mov byte [esp + 0x2c], 3
call fcn.0041eb80
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0xc
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x47d50f
mov ecx, dword [esp + 0xc]
push 0x80
push ecx
call edi
mov edx, dword [esp + 0xc]
push edx
call ebp
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
call fcn.0041eb80
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call esi
test eax, eax
je 0x47d541
mov eax, dword [esp + 0xc]
push 0x80
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x47d5a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527420
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebx + 4]
lea edi, [ebx + 4]
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], esi
je 0x47d5d7
call fcn.0047d790
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
push 0x566338
push ecx
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push edx
push eax
push esi
call fcn.0041eb80
mov ecx, dword [ebp - 0x10]
add esp, 0x18
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x47d738
push edi
call fcn.00416d50
add esp, 4
test eax, eax
jl 0x47d738
mov ebx, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x2c], si
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, esi
jge 0x47d650
mov dword [ebp - 0x24], eax
cmp ebx, esi
mov word [ebp - 0x2c], 8
jne 0x47d65e
xor edi, edi
jmp 0x47d68d
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004c79b0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor esi, esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, esi
mov dword [ebp - 0x24], eax
jne 0x47d6ad
cmp ebx, esi
je 0x47d6ad
mov eax, 0x8007000e
mov word [ebp - 0x2c], 0xa
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
lea esi, [ebp - 0x18]
add ecx, 4
push esi
mov byte [ebp - 4], 3
sub esp, 0x10
mov ecx, dword [ecx]
mov esi, esp
mov edx, dword [ecx]
push ecx
mov dword [esi], edi
mov edi, dword [ebp - 0x28]
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xc], eax
call dword [edx + 0xe8]
test eax, eax
jl 0x47d6f3
cmp word [ebp - 0x18], 0xffff
sete al
test al, al
je 0x47d6f3
mov bl, 1
jmp 0x47d6f5
xor bl, bl
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test bl, bl
je 0x47d735
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x47d777
mov ebx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edx
call fcn.004c73e6
mov ecx, ebx
call fcn.0047d450
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x38]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47f580
Capabilities:
Modify service

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push edi
mov edi, ecx
push 2
push eax
xor ebp, ebp
mov ecx, dword [edi + 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x47f63f
push ebx
mov ebx, dword [esp + 0x18]
xor eax, eax
cmp ebx, 3
ja case.default.0x47f5b1
jmp dword [ebx*4 + 0x47f650]
mov eax, 3
jmp case.default.0x47f5b1
mov eax, 4
jmp case.default.0x47f5b1
mov eax, 2
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x47f637
mov eax, dword [edi + 0x118]
cmp ebx, 3
jne 0x47f614
test eax, eax
je 0x47f632
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 1
push edx
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
je 0x47f637
jmp 0x47f632
test eax, eax
je 0x47f632
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
je 0x47f637
mov ebp, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
pop edi
mov eax, ebp
pop esi
pop ebp
ret 8
Function at 0x47f700
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5277e8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor esi, esi
call fcn.0047f430
test eax, eax
je 0x47f8c2
push esi
push esi
push 1
lea eax, [esp + 0x24]
push esi
push eax
call fcn.00442990
add esp, 0x14
xor edi, edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], edi
lea ebx, [ebp + 0x108]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x47f75a
xor edx, edx
jmp 0x47f770
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edi, edx
jge 0x47f8d7
mov eax, dword [ebx + 4]
test eax, eax
je 0x47f799
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, edi
ja 0x47f7a0
mov ecx, ebx
call fcn.0047fcb0
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x18]
push ecx
mov eax, dword [esi + eax]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x47f7bf
inc edi
add esi, 0x14
jmp 0x47f74f
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
je 0x47f8db
lea edi, [edi + edi*4]
xor esi, esi
shl edi, 2
mov eax, dword [ebp + 0x10c]
mov ecx, dword [edi + eax + 8]
test ecx, ecx
je 0x47f8ac
mov edx, dword [edi + eax + 0xc]
sub edx, ecx
sar edx, 3
cmp esi, edx
jae 0x47f8ac
mov eax, ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + esi*8 + 4]
push eax
push esi
push ecx
mov ecx, ebx
call fcn.0047f9a0
mov ecx, eax
add ecx, 4
call fcn.0047f950
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.004c73e6
mov ecx, ebp
call fcn.0047f580
test eax, eax
jne 0x47f8a6
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp + 0x10c]
mov byte [esp + 0x2c], 1
mov eax, dword [edi + eax + 8]
mov edx, dword [eax + esi*8 + 4]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.0047f660
add esp, 8
mov ecx, dword [ebp + 0x10c]
mov edx, dword [eax]
push edx
mov byte [esp + 0x30], 2
mov ecx, dword [edi + ecx + 8]
mov eax, dword [ecx + esi*8]
lea ecx, [esp + 0x14]
push eax
push 0x56657c
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
inc esi
jmp 0x47f7d4
lea ecx, [esp + 0x18]
mov esi, 1
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret
Function at 0x487650
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5281a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x30]
lea edx, [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0xc]
push ecx
push ebx
push edx
push 0
push 0x1005
lea ecx, [ebx + 0x40]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], 4
call fcn.004cd4c0
test eax, eax
jne 0x4876bb
lea eax, [esp + 0x30]
mov ecx, ebx
push eax
push 0
push 0x1005
call sub.MFC42.DLL_CWnd::WindowProc
mov esi, dword [esp + 0x50]
test esi, esi
je 0x48779a
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
push ecx
push edi
lea ecx, [esi + 0x18]
call fcn.004d89f0
mov ecx, dword [esi]
push edi
add ecx, 0x2c
call fcn.004d8b40
test eax, eax
jne 0x487757
mov dword [esp + 0x7c], eax
mov edx, dword [esi]
mov dword [esp + 0x6c], eax
mov ecx, dword [edx]
lea edx, [esp + 0x7c]
push edx
push edi
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi]
lea eax, [esp + 0x7c]
push eax
push edi
add ecx, 0x2c
call fcn.004d89f0
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x6c], 0xffffffff
test esi, esi
je 0x487757
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x487757
test esi, esi
je 0x487757
mov eax, dword [esi]
test eax, eax
je 0x48773e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x48774e
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x10]
push 0
push edx
push eax
mov ecx, ebx
call sub.MFC42.DLL_CListCtrl::GetItemRect
test eax, eax
je 0x48779a
mov edx, dword [ebx + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x28]
test ebx, ebx
mov dword [esp + 0x18], eax
je 0x48778c
mov ebx, dword [ebx + 0x20]
lea ecx, [esp + 0x10]
push 1
push ecx
push ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 0xc