joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44af60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4b0c1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.0044b0c0
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x52e670
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
mov al, byte [esi]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x24], al
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov edx, dword [ecx]
lea ecx, [esp + 0x24]
push edx
push ebx
push esi
mov byte [esp + 0x48], 1
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::runtime_error::vftable]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x44b00b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x44b002
cmp al, 0xff
je 0x44b002
dec al
mov byte [ecx], al
jmp 0x44b00b
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004a4a30
mov eax, dword [esp + 0x28]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::runtime_error::vftable]
cmp eax, ebx
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x18], ecx
je 0x44b057
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x44b04e
cmp al, 0xff
je 0x44b04e
dec al
mov byte [ecx], al
jmp 0x44b057
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.MSVCRT.dll_public_virtual:_void___thiscall_exception::destructor_void_]
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x4570d0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4b19d6
push eax
mov eax, 0x2308
mov dword fs:[0], esp
call fcn.004611d0
mov eax, dword [0x52fbdc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2324]
lea ecx, [esp + 0x18]
push edi
mov edi, dword [esp + 0x232c]
push ecx
mov ecx, dword [esp + 0x2334]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
call fcn.00459c80
xor ebx, ebx
xor eax, eax
mov dl, byte [eax + 0x4d1ec8]
xor dl, 0x7d
mov byte [esp + eax + 0xc44], dl
inc eax
cmp eax, 0x16d1
jb 0x457127
lea eax, [esp + 0xc44]
mov ecx, esi
push eax
mov byte [esp + 0x2319], bl
call fcn.00442b80
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test al, al
jne 0x457178
cmp dword [edi + 0x40], ebx
je 0x457178
mov ecx, esi
call fcn.004424e0
mov ecx, dword [edi + 0x40]
push eax
push ebx
push 0x4c9
push ecx
call ebp
xor eax, eax
mov dl, byte [eax + 0x4d359c]
xor dl, 0x7d
mov byte [esp + eax + 0x28], dl
inc eax
cmp eax, 0xc18
jb 0x45717a
lea eax, [esp + 0x28]
mov ecx, esi
push eax
mov byte [esp + 0xc44], bl
call fcn.00442b80
and eax, 0xff
mov dword [esp + 0x18], eax
jne 0x4571c6
cmp dword [edi + 0x40], ebx
je 0x4571c6
mov ecx, esi
call fcn.004424e0
mov ecx, dword [edi + 0x40]
push eax
push ebx
push 0x4c9
push ecx
call ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
push str.On_Error_Resume_Next:QMEngine.SetRunTimeParam__u:QMRoutine.SetRunTimeParam__u:On_Error_Goto_0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2324], ebx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x1c]
push edx
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x2330], 1
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, esi
push eax
call fcn.00442da0
and eax, 0xff
mov dword [esp + 0x18], eax
jne 0x457238
cmp dword [edi + 0x40], ebx
je 0x457238
mov ecx, esi
call fcn.004424e0
mov ecx, dword [edi + 0x40]
push eax
push ebx
push 0x4c9
push ecx
call ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x2320], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2320], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2318]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2314
ret

Function at 0x459ac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b1c08
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_CCmdTarget::CCmdTarget
xor edi, edi
mov ecx, esi
mov dword [esp + 0x14], edi
mov dword [esi], 0x4d4660
call sub.MFC42.DLL_CCmdTarget::EnableAutomation
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x34], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x45a0e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b1c70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
push ebx
push esi
push edi
mov edi, ecx
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString_3
mov bl, 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::TrimRight
push 0x20
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jle 0x45a1bb
mov ecx, dword [esp + 0x30]
push 0x20
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Find_2
sub esi, eax
lea edx, [esp + 0x10]
dec esi
lea ecx, [esp + 0x30]
push esi
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
push 0x20
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Find_2
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
jmp 0x45a1c9
push 0x52e670
lea ecx, [esp + 0x10]
call fcn.004604ce
push 0
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_4
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [edi + 0x24]
push ecx
add edx, 0x30
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x3c], 5
call sub.MFC42.DLL_CString::CString_4
mov byte [esp + 0x38], bl
call fcn.0043b880
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4
Function at 0x45a320
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1cb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x10], esp
mov esi, ecx
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::CString_3
mov ebx, 1
push str.CStr_
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004604ce
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00460840
push 0x52574c
lea ecx, [ebp - 0x14]
call fcn.00460840
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x14]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esi + 0x20]
call fcn.00443200
test eax, eax
jne 0x45a3c5
lea ecx, [ebp - 0x1c]
push 0x515590
push ecx
mov dword [ebp - 0x1c], str.General_Error_in_GetValue__
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x14]
push edx
call sub.MFC42.DLL_CString::operator_1
jmp 0x45a3ed
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea edx, [ebp - 0x18]
push str.Thread:_d____s
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [ebp - 0x18]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x45a44e
push 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x24]
inc edx
push edx
push 0x4c9
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x45a480
push eax
call fcn.004615a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45b230
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x4b1e90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
xor ebx, ebx
mov byte [eax + 0x14], bl
call sub.MFC42.DLL_COleObjectFactory::RegisterAll
push 1
call sub.MFC42.DLL_COleObjectFactory::UpdateRegistryAll
push 0x80000000
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x52e670
call sub.MFC42.DLL_CString::CString_1
push ecx
mov dword [esp + 0x80], ebx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.CLSIDEBEB87A6_E151_4054_AB45_A6E094C5334BLocalServer32_
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x58]
mov dword [esp + 0x80], 0xffffffff
call fcn.004618b0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x4c]
mov dword [esp + 0x70], 1
push eax
push 0x20006
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x48]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
lea edx, [esp + 0x28]
push edx
push str.QMDispatch.QMLibrary
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
push 0x547e64
push 0x4d51c0
push 1
lea eax, [esp + 0x34]
push ebx
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x45b3df
mov eax, dword [0x547e64]
mov dword [esp + 0xc], ebx
cmp eax, ebx
je 0x45b325
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x4d5190
push eax
call dword [ecx]
lea eax, [esp + 0x18]
mov byte [esp + 0x70], 2
push eax
call sub.MFC42.DLL_AfxVariantInit
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
mov byte [esp + 0x70], 3
je 0x45b3bd
push 3
push 0x45b0c0
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_COleVariant::COleVariant
mov esi, eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 0x400
lea edx, [esp + 0x18]
push 1
mov dword [esp + 0x1c], str.Initialize
mov ecx, dword [eax]
push edx
push 0x4d51b0
push eax
mov byte [esp + 0x88], 4
call dword [ecx + 0x14]
cmp eax, ebx
jl 0x45b3a1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
push ecx
lea ecx, [esp + 0x18]
call fcn.0042d670
lea edx, [esp + 0x38]
mov esi, eax
push edx
mov byte [esp + 0x74], 3
call edi
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x45b3bd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x18]
mov dword [esp + 0xc], ebx
push edx
call edi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x70], 1
cmp eax, ebx
je 0x45b3db
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
jge 0x45b412
push ebx
push ebx
lea edx, [esp + 0x1c]
push str.CoreLibLogQMDispatchError
push edx
call fcn.0041f4c0
add esp, 0x10
mov eax, dword [eax]
push esi
push eax
mov byte [esp + 0x78], 5
call fcn.00465b60
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov dword [esp + 0x70], 0xffffffff
call fcn.00461a30
mov ecx, dword [esp + 0x68]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x68
ret
Function at 0x45c07a
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4b1f70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 8]
mov byte [esp + 0x14], 1
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea edx, [esp + 0x24]
push str.Thread:_d____s_n
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0x2c]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x28]
push 0
mov edi, dword [ecx + 0x24]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esi + 0x28]
push eax
push edi
call fcn.0043fda0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x45cf80
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x30f8]
mov edi, edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x45cfa1
pop edi
mov eax, 1
pop esi
ret
test edi, edi
jne 0x45d0b2
push ebx
lea ebx, [esi + 0x32a0]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 4]
shl edi, 0x1d
push ebx
sar edi, 0x1f
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
pop ebx
je 0x45cfd4
pop edi
mov eax, 1
pop esi
ret
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
mov cx, word [esi + 0x3168]
push ecx
call edi
test ah, 0x80
je 0x45d046
push 0x12
call edi
mov dl, byte [esi + 0x316a]
sar eax, 0xf
shr dl, 2
and eax, 1
and edx, 1
xor eax, edx
test ax, ax
jne 0x45d046
push 0x11
call edi
mov cl, byte [esi + 0x316a]
sar eax, 0xf
shr cl, 1
and eax, 1
and ecx, 1
xor eax, ecx
test ax, ax
jne 0x45d046
push 0x10
call edi
mov dl, byte [esi + 0x316a]
sar eax, 0xf
and eax, 1
and edx, 1
xor eax, edx
test ax, ax
jne 0x45d046
pop edi
mov eax, 1
pop esi
ret
xor eax, eax
mov ax, word [esi + 0x30f4]
push eax
call edi
test ah, 0x80
je 0x45d0b2
push 0x12
call edi
mov cl, byte [esi + 0x30f6]
sar eax, 0xf
shr cl, 2
and eax, 1
and ecx, 1
xor eax, ecx
test ax, ax
jne 0x45d0b2
push 0x11
call edi
mov dl, byte [esi + 0x30f6]
sar eax, 0xf
shr dl, 1
and eax, 1
and edx, 1
xor eax, edx
test ax, ax
jne 0x45d0b2
push 0x10
call edi
mov cl, byte [esi + 0x30f6]
sar eax, 0xf
and eax, 1
and ecx, 1
xor eax, ecx
test ax, ax
jne 0x45d0b2
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x45e3c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b22a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp]
push eax
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp]
mov byte [esp + 0x14], 1
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45e457
push 0x523228
lea edx, [esp + 0xc]
push 0x52f778
push edx
call sub.MFC42.DLL_operator_4
lea ecx, [esp + 0x1c]
lea edx, [esp + 4]
push ecx
push eax
push edx
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 4]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp]
mov ecx, dword [esp + 0x20]
push eax
call fcn.00442950
lea ecx, [esp]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4618b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b2589
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 8]
mov dword [esp + 0x1c], 1
mov ecx, edi
call sub.MFC42.DLL_CString::CString_3
lea ebp, [esi + 0xc]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_3
lea ebx, [esi + 0x10]
mov byte [esp + 0x1c], 3
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x14]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString_3
push 0x52e670
mov ecx, ebx
mov byte [esp + 0x20], 5
call fcn.004604ce
lea eax, [esp + 0x28]
lea ecx, [esi + 0x14]
push eax
call sub.MFC42.DLL_CString::operator_3
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi + 0x1c], ecx
xor ebx, ebx
push 0x523228
lea ecx, [esp + 0x28]
mov dword [esi], edx
mov dword [esi + 0x18], ebx
call sub.MFC42.DLL_CString::TrimLeft_1
push 0x5c
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, ebp
mov byte [esp + 0x20], 6
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 5
call sub.MFC42.DLL_CString::CString
push 0x523228
mov ecx, ebp
call sub.MFC42.DLL_CString::TrimRight_2
mov ecx, dword [esp + 0x24]
push 0x5c
mov ebp, dword [ecx - 8]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReverseFind
sub ebp, eax
lea edx, [esp + 0x2c]
push ebp
push edx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Right
push eax
mov ecx, edi
mov byte [esp + 0x20], 7
call sub.MFC42.DLL_CString::operator_3
mov byte [esp + 0x1c], 5
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
push 0x523228
mov ecx, edi
call sub.MFC42.DLL_CString::TrimLeft_1
push 0x523228
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight_2
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.00461aa0
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x461aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b25d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0xc]
lea edi, [esi + 4]
push edi
push 0x20019
push ebx
push eax
mov eax, dword [esi]
mov dword [esp + 0x28], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x461b86
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push eax
mov eax, dword [edi]
push eax
mov dword [esp + 0x28], ebx
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
lea edx, [esp + 0x10]
mov ebx, eax
mov eax, dword [esi + 8]
push edx
mov edx, dword [edi]
lea ecx, [esp + 0x18]
push ebx
push ecx
push 0
push eax
push edx
call ebp
test eax, eax
push ebx
jne 0x461b75
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea ebp, [esi + 0x10]
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [edi]
add esp, 4
mov dword [esi + 0x18], 1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
jmp 0x461b8a
call sub.MFC42.DLL_operatordelete
mov ecx, dword [edi]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0x14
push esi
mov esi, dword [esp + 0x30]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x461bb0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
lea edi, [esi + 4]
push ecx
push edi
push 0
push 0x20006
push 0
push 0x52e670
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x461c0d
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 8]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [edi]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x461c04
mov dword [esi + 0x18], 1
mov ecx, dword [edi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ecx
ret
Function at 0x462830
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push str.cfgdll.dll
lea eax, [esp + 0x14]
push 0x52f778
push eax
call sub.MFC42.DLL_operator_4
mov eax, dword [eax]
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
push 0x523afc
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42.DLL_CString::CString
mov ebx, dword [sym.imp.MSVCRT.dll_fputc]
test edi, edi
je 0x462898
xor esi, esi
xor ecx, ecx
push edi
mov cl, byte [esi + 0x4d51d8]
xor ecx, 0x7d
push ecx
call ebx
add esp, 8
inc esi
cmp esi, 0xe718
jb 0x462873
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push str.ShieldModule.dat
lea edx, [esp + 0x14]
push 0x52f778
push edx
call sub.MFC42.DLL_operator_4
mov eax, dword [eax]
push 0x523afc
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x4628ef
xor esi, esi
xor eax, eax
push edi
mov al, byte [esi + 0x4e38f0]
xor eax, 0x7d
push eax
call ebx
add esp, 8
inc esi
cmp esi, 0x1775b
jb 0x4628ca
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x462d40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.NtProtectVirtualMemory
push str.NTDLL.DLL
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.ZwDeviceIoControlFile
push str.NTDLL.DLL
mov ebx, eax
call esi
push eax
call edi
push 0
push ebx
mov esi, eax
call fcn.00462e10
push 1
push esi
call fcn.00462e10
mov eax, dword [sym.imp.USER32.dll_SetCursorPos]
push 2
push eax
call fcn.00462e10
mov ecx, dword [sym.imp.USER32.dll_SendInput]
push 3
push ecx
call fcn.00462e10
mov edx, dword [sym.imp.USER32.dll_GetCursorPos]
push 4
push edx
call fcn.00462e10
mov eax, dword [sym.imp.GDI32.dll_GetPixel]
push 5
push eax
call fcn.00462e10
mov ecx, dword [sym.imp.GDI32.dll_GetDIBits]
push 6
push ecx
call fcn.00462e10
mov edx, dword [sym.imp.GDI32.dll_BitBlt]
push 7
push edx
call fcn.00462e10
mov eax, dword [sym.imp.USER32.dll_GetAsyncKeyState]
add esp, 0x40
push 8
push eax
call fcn.00462e10
add esp, 8
lea ecx, [esp + 0xc]
push ecx
push 0x40
push 0x400
push 0x56edf8
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
pop ecx
ret