joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d6c0
Capabilities:
Access peb ldr_data
Create thread
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x461a58
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 eax, dword [esi + 0x20]
lea edi, [esi + 0x88]
push edi
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 4]
mov eax, dword [esi + 0x40]
sub ecx, edx
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 8]
mov ecx, dword [edi]
push esi
sub edx, ecx
mov dword [esi + 0x5c], edx
cdq
idiv dword [esi + 0x58]
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x94]
mov dword [0x495524], eax
mov ecx, dword [esi + 0x8c]
mov dword [0x49551c], ecx
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x54]
lea ecx, [esp + 0x18]
sub edx, eax
mov dword [0x495518], edx
mov eax, dword [esi + 0x90]
mov dword [0x495520], eax
call sub.MFC42.DLL_CWindowDC::CWindowDC
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
mov dword [esp + 0x30], 0
and eax, edx
lea ebp, [esi + 0x70]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, ebp
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x5c]
push eax
push ecx
mov ecx, dword [esp + 0x20]
lea ebx, [esi + 0x80]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CGdiObject::Attach
test ebx, ebx
je 0x41d798
mov ebx, dword [ebx + 4]
mov edx, dword [esi + 0x74]
push ebx
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov edx, dword [0x49552c]
mov eax, 0x495528
neg eax
sbb eax, eax
and eax, edx
push eax
mov eax, dword [esi + 0x74]
push edi
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esi + 0x64]
lea edi, [esi + 0x98]
push eax
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
push edi
mov ecx, ebp
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x10]
mov dword [0x495534], 1
push ecx
push 0
push esi
push 0x41d860
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0x14]
mov dword [esi + 0x6c], eax
mov dword [esp + 0x30], 0xffffffff
call fcn.004245de
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x41dd40
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x461aef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
mov dword [esp + 4], 0
jne 0x41dd8b
mov esi, dword [esp + 0x18]
push 0x482f38
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
lea ecx, [esp + 0x1c]
call fcn.0042426c
xor eax, eax
xor ecx, ecx
mov al, byte [esi]
mov cl, byte [esi + 1]
push eax
xor edx, edx
mov dl, byte [esi + 2]
xor eax, eax
mov al, byte [esi + 3]
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
push str._d._d._d._d
push ecx
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x30]
add esp, 0x18
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x1c]
mov dword [esp + 4], 1
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x41e830
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x461c23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push sub.MFC42.DLL_CString::CString
push fcn.0042426c
push 8
lea eax, [esp + 0x14]
push 4
push eax
call fcn.004247a4
mov esi, dword [esp + 0x3c]
xor ecx, ecx
xor ebx, ebx
mov cl, byte [esi + 3]
mov dword [esp + 0x30], ebx
mov edx, dword [ecx*4 + 0x4747f8]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [esi + 0x24]
push ebx
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.0041e0e0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov eax, str._Y__m__d__H:_M:_S
jne 0x41e8bf
mov eax, str._H:_M:_S
lea edx, [esp + 0x3c]
push eax
push edx
lea ecx, [esi + 0x18]
call sub.MFC42.DLL_CTime::Format
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push 0x471c34
push ecx
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esi + 0xc]
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.0041dd40
mov edx, dword [eax]
xor ecx, ecx
mov cx, word [esi + 0x12]
lea eax, [esp + 0x14]
push ecx
push edx
push str._s__u
push eax
mov byte [esp + 0x40], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push ecx
push edx
lea eax, [esp + 0x20]
push str._u__u
push eax
call sub.MFC42.DLL_CString::Format
xor ecx, ecx
xor eax, eax
mov cl, byte [esi + 1]
mov al, byte [esi + 2]
add esp, 0x10
mov edx, dword [ecx*4 + 0x474810]
mov ecx, dword [eax*4 + 0x474824]
push edx
push ecx
lea edx, [esp + 0x24]
push 0x471c2c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esi + 8]
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.0041dd40
mov eax, dword [eax]
xor edx, edx
mov dx, word [esi + 0x10]
lea ecx, [esp + 0x20]
push edx
push eax
push str._s__u
push ecx
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
add esi, 0x128
push esi
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x10]
push 8
push ecx
push edx
call fcn.0041ed90
add esp, 0x14
lea eax, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
push sub.MFC42.DLL_CString::CString
push 8
push 4
push eax
call fcn.004246b0
mov ecx, dword [esp + 0x28]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x41ea10
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x461c53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push sub.MFC42.DLL_CString::CString
push fcn.0042426c
push 8
lea eax, [esp + 0x10]
push 4
push eax
call fcn.004247a4
mov esi, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x2c], 0
mov cl, byte [esi + 3]
mov edx, dword [ecx*4 + 0x4747f8]
lea ecx, [esp + 4]
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [esi + 0x24]
push 0
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.0041e0e0
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
xor edx, edx
lea eax, [esi + 0x22c]
mov dx, word [esi + 0x10]
lea ecx, [esp + 0xc]
push edx
push eax
push str._s__u
push ecx
call sub.MFC42.DLL_CString::Format
xor edx, edx
add esp, 0x10
mov dx, word [esi + 0x12]
lea eax, [esi + 0x26c]
push edx
push eax
lea ecx, [esp + 0x18]
push str._s__u
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
xor eax, eax
add esp, 0x10
mov al, byte [esi + 4]
add edx, ecx
shr eax, 6
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax*4 + 0x474804]
push ecx
push str._s__u
push edx
call sub.MFC42.DLL_CString::Format
xor eax, eax
xor edx, edx
mov al, byte [esi + 1]
mov dl, byte [esi + 2]
add esp, 0x10
mov ecx, dword [eax*4 + 0x474810]
mov eax, dword [edx*4 + 0x474824]
push ecx
push eax
lea ecx, [esp + 0x20]
push 0x471c2c
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x54]
add esp, 0x10
test eax, eax
mov eax, str._Y__m__d__H:_M:_S
jne 0x41eb39
mov eax, str._H:_M:_S
lea edx, [esp + 0x38]
push eax
push edx
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CTime::Format
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push eax
push 0x471c34
push ecx
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
add esi, 0x128
lea ecx, [esp + 0x20]
push esi
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x38]
push eax
lea ecx, [esp + 0xc]
push 8
push ecx
push edx
call fcn.0041ed90
add esp, 0x14
lea eax, [esp + 4]
mov dword [esp + 0x2c], 0xffffffff
push sub.MFC42.DLL_CString::CString
push 8
push 4
push eax
call fcn.004246b0
mov ecx, dword [esp + 0x24]
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x41ebd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x461c93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
push sub.MFC42.DLL_CString::CString
push fcn.0042426c
push 6
lea eax, [esp + 0x18]
push 4
push eax
call fcn.004247a4
mov esi, dword [esp + 0x38]
xor ecx, ecx
xor ebx, ebx
mov cl, byte [esi + 3]
mov dword [esp + 0x2c], ebx
mov edx, dword [ecx*4 + 0x4747f8]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [esi + 0x24]
push ebx
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.0041e0e0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x44]
cmp eax, ebx
mov eax, str._Y__m__d__H:_M:_S
jne 0x41ec60
mov eax, str._H:_M:_S
lea edx, [esp + 0x38]
push eax
push edx
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CTime::Format
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
push 0x471c34
push ecx
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
add edx, eax
xor eax, eax
mov al, byte [esi + 4]
push edx
shr eax, 6
lea edx, [esp + 0x1c]
mov ecx, dword [eax*4 + 0x474804]
push ecx
push str._s__u
push edx
call sub.MFC42.DLL_CString::Format
xor eax, eax
add esp, 0x10
mov al, byte [esi + 1]
lea edx, [esp + 0x1c]
mov ecx, dword [eax*4 + 0x474810]
push ecx
push 0x471c34
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esi + 0xc]
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.0041dd40
mov edi, eax
lea edx, [esi + 8]
lea eax, [esp + 0x38]
push edx
push eax
mov byte [esp + 0x34], 3
call fcn.0041dd40
mov ecx, dword [edi]
mov edx, dword [eax]
add esi, 0x128
lea eax, [esp + 0x20]
push esi
push ecx
push edx
push str._s_____s___s
push eax
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x14]
push 6
push eax
push ecx
call fcn.0041ed90
add esp, 0x14
lea edx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
push sub.MFC42.DLL_CString::CString
push 6
push 4
push edx
call fcn.004246b0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x41ee07
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x461cb6
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 + 0x1c]
call sub.MFC42.DLL_CFile::CFile
lea edi, [esi + 0x44]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.0042426c
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x468488
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call sub.MFC42.DLL_CString::Empty
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4209e6
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x461e46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov ecx, 0x4684d0
xor eax, eax
mov dword [esp + 4], esi
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esi + 0x83c], ecx
push eax
mov ecx, esi
mov byte [esp + 0x14], 1
mov dword [esi], 0x4684cc
mov dword [esi + 0x30], eax
call fcn.00420f20
mov ecx, dword [esp + 8]
mov dword [esi + 0x34], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x421370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4684e8
push 0x424914
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42140f
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x421401
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp + 0x1c]
jne 0x421401
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x421430
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x421460
xor eax, eax
ret 0x18
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x421495
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret 0x18
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret 0x18

Function at 0x4214b0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4684f8
push 0x424914
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x42156b
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42156b
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x421510
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp - 0x1c]
push edx
push 0xf003f
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42156b
mov dword [ebp - 4], eax
push esi
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
push 0xffffffffffffffff
jne 0x42155f
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x421590
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
test eax, eax
push ebx
mov ebx, ecx
je 0x421617
push esi
push edi
push 1
push 0
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0041de60
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
dec ecx
push reloc.WS2_32.dll_bind
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0x474ae8
mov ecx, ebx
call fcn.00421430
pop edi
pop esi
pop ebx
add esp, 0x108
ret 4
push 0x474ae8
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
mov ecx, ebx
call fcn.004214b0
pop ebx
add esp, 0x108
ret 4
Function at 0x421750
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461ef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], esp
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x14c]
lea ecx, [ebx + 0x14c]
push 0
push 0x9011
mov dword [ebp - 4], 0
push edx
mov byte [ebp - 4], 1
call dword [eax + 0x28]
mov edi, str.XFILTER_PASSECK
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0x18
call fcn.00421860
xor ecx, ecx
test eax, eax
setne cl
mov esi, ecx
test esi, esi
je 0x421808
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_AfxTryCleanup
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, ebx
call fcn.00421a80
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_AfxTryCleanup
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x421860
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461f18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], esp
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov eax, dword [edi + 0x14c]
lea esi, [edi + 0x14c]
push 0
mov dword [ebp - 4], 0
push 0
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0x30]
mov edx, dword [esi]
add edi, 0x1c
push 0x18
push edi
mov ecx, esi
call dword [edx + 0x40]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_AfxTryCleanup
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422c50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x462068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x58]
test eax, eax
jne 0x422cfa
push esi
lea ecx, [esp + 8]
call fcn.0042426c
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004245f6
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x422ce1
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x422ce1
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x58], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x423fe0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea ecx, [esp]
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x424019
add esp, 0x54
ret
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x424044
mov ecx, dword [esp]
push esi
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
pop esi
mov eax, dword [esp]
add esp, 0x54
ret

Function at 0x424050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4688a8
push 0x424914
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4240ed
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4240df
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp + 0x1c]
jne 0x4240df
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret