joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49eb70
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
or eax, 0xffffffff
cmp esi, 0xffffffff
je 0x49ec29
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push edi
lea edi, [ebx + 3]
push edi
call sub.MFC42.DLL_operatornew
mov ecx, edi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov al, byte [esp + 0x20]
test al, al
jne 0x49ebdd
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49ebc9
mov ecx, dword [esp + 0x24]
cmp ecx, 1
jne 0x49ebc4
inc ebx
push ecx
push ebx
push eax
jmp 0x49ec13
push ebp
xor esi, esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
pop edi
pop ebp
pop ebx
pop esi
ret 0x14
mov byte [ebp], al
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49ec03
mov ecx, ebx
mov esi, eax
mov eax, ecx
lea edi, [ebp + 1]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
jmp 0x49ec05
xor ebx, ebx
mov eax, dword [esp + 0x24]
cmp eax, 1
jne 0x49ec0f
inc ebx
inc ebx
push eax
push ebx
push ebp
push esi
call sub.WSOCK32.dll_send
push ebp
mov esi, eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
pop edi
pop ebp
pop ebx
pop esi
ret 0x14

Function at 0x49f6f0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
test ebx, ebx
push edi
jne 0x49f707
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
sub ebp, eax
sub ebx, ecx
push ebp
push ebx
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
push esi
push ebp
push ebx
push 0
push 0
push edi
mov dword [esp + 0x48], eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ebx, dword [esp + 0x24]
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov ebp, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
mov edi, dword [sym.imp.USER32.dll_ReleaseDC]
push 0
call edi
push esi
push 0
call edi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x49f8a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5821b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x593e00
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], esi
call fcn.00572dba
mov edi, dword [esp + 0x34]
mov byte [esp + 0x2c], 1
cmp edi, esi
jne 0x49f91f
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CClientDC::CClientDC
mov dword [esp + 8], 0x5916f4
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
call ebp
mov ebx, eax
mov esi, dword [ebx + 0x20]
test esi, esi
jne 0x49f93d
mov cl, byte [ebx + 0xe]
mov esi, 1
shl esi, cl
push edi
call ebp
mov edi, eax
cmp word [edi + 0xe], 8
jbe 0x49f967
mov ecx, dword [edi + 0x10]
xor eax, eax
cmp ecx, 3
mov ecx, dword [edi + 0x20]
setne al
dec eax
and eax, 3
add eax, ecx
lea ecx, [edi + eax*4 + 0x28]
mov dword [esp + 0x3c], ecx
jmp 0x49f96f
lea edx, [edi + esi*4 + 0x28]
mov dword [esp + 0x3c], edx
cmp esi, 0x100
jg 0x49fa0a
mov eax, dword [esp + 0x20]
push 0x26
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test ah, 1
je 0x49fa0a
lea eax, [esi*4 + 8]
push eax
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
test esi, esi
mov word [ebp], 0x300
mov word [ebp + 2], si
jle 0x49f9d1
lea eax, [ebp + 5]
lea ecx, [edi + 0x29]
mov dl, byte [ecx + 1]
add ecx, 4
mov byte [eax - 1], dl
mov dl, byte [ecx - 4]
mov byte [eax], dl
mov dl, byte [ecx - 5]
mov byte [eax + 1], dl
mov byte [eax + 2], 0
add eax, 4
dec esi
jne 0x49f9b3
push ebp
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push 0
push eax
call sub.MFC42.DLL_CDC::SelectPalette
mov edi, eax
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x49fa0e
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push 0
neg eax
sbb eax, eax
push ebx
push edx
and eax, ebp
push 4
push ebx
push eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
lea eax, [esp + 0x10]
pop ebp
pop ebx
test eax, eax
je 0x49fa4e
mov eax, dword [esp + 0xc]
test eax, eax
je 0x49fa4e
push 0
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::SelectPalette
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CClientDC::CClientDC
mov dword [esp + 8], 0x5916f4
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x4a0860
Capabilities:
Access peb ldr_data
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5822c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push 0xa
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
push 0xc
push 0
push 0x5e9144
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_5
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
push ecx
push 0x5e9140
push edx
mov dword [esp + 0x2c], 1
call sub.MFC42.DLL_CString::Format
add esp, 8
lea eax, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 8]
push ecx
call fcn.004a0940
add esp, 8
lea ecx, [esp + 4]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::MakeUpper
mov esi, dword [esp + 0x28]
lea edx, [esp + 4]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret
Function at 0x4ac7c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5836f8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x5e57c4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
xor ebx, ebx
add esp, 8
cmp edi, ebx
jne 0x4ac83c
mov esi, dword [esp + 0x38]
cmp esi, ebx
je 0x4ac828
lea ecx, [esp + 0x38]
push ecx
call fcn.004ad0f0
add esp, 4
push eax
mov ecx, esi
mov dword [esp + 0x2c], ebx
call fcn.00572d3c
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x4ac84c
mov edx, dword [eax]
mov dword [esp + 0x30], edx
jmp 0x4ac850
mov dword [esp + 0x30], ebx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov ecx, ebp
mov dword [esp + 0x19], eax
mov byte [esp + 0x10], 0
mov dword [esp + 0x1d], eax
mov word [esp + 0x21], ax
mov byte [esp + 0x23], al
call sub.MFC42.DLL_CString::Empty
push 2
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push edi
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push edi
mov esi, eax
call ebx
add esp, 0x1c
test esi, esi
je 0x4ac8bd
push edi
push 1
push esi
push esi
mov ecx, ebp
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov ecx, ebp
push esi
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x3c]
pop ebp
test eax, eax
je 0x4ac8da
lea ecx, [esp + 0xc]
push esi
push ecx
push str._s_d_bytes
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x40]
add esp, 4
test eax, eax
je 0x4ac8f2
mov edx, dword [esp + 0x30]
mov dword [eax], edx
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4ac930
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x583720
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
push 0x5e57c8
push eax
mov bl, 1
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
xor edi, edi
add esp, 8
cmp ebp, edi
jne 0x4ac9b0
mov esi, dword [esp + 0x40]
cmp esi, edi
je 0x4ac99b
lea ecx, [esp + 0x40]
push ecx
call fcn.004ad0f0
add esp, 4
push eax
mov ecx, esi
mov dword [esp + 0x34], edi
call fcn.00572d3c
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x4ac9c0
mov edx, dword [eax]
mov dword [esp + 0x10], edx
jmp 0x4ac9c4
mov dword [esp + 0x10], edi
xor eax, eax
mov byte [esp + 0x14], 0
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov esi, dword [ecx - 8]
cmp esi, edi
je 0x4aca1f
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x38]
push ebp
push 1
mov esi, dword [eax - 8]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
lea ecx, [esp + 0x38]
sete bl
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x40]
test edi, edi
je 0x4aca3b
lea edx, [esp + 0x14]
push esi
push edx
push str._s_d_bytes
push edi
call sub.MFC42.DLL_CString::Format
add esp, 0x10
test bl, bl
jne 0x4aca71
test edi, edi
je 0x4aca71
lea eax, [esp + 0x3c]
push eax
call fcn.004ad0f0
add esp, 4
push eax
mov ecx, edi
mov dword [esp + 0x34], 1
call fcn.00572d3c
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x48]
add esp, 4
test eax, eax
je 0x4aca89
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4b09c0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4
Function at 0x4b6c00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x584020
push eax
mov dword fs:[0], esp
sub esp, 0x50
push esi
push edi
mov edi, dword [esp + 0x78]
cmp edi, 2
jne 0x4b6ce3
mov ecx, dword [ecx + 0x20]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
xor esi, esi
mov dword [esp + 8], 0x591ae8
mov dword [esp + 0xc], esi
lea edx, [esp + 0x18]
mov dword [esp + 0x60], esi
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [esp + 0x68]
lea eax, [esp + 8]
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject_2
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x24]
cmp edi, esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
je 0x4b6c94
mov esi, dword [edi + 4]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
push edx
push eax
lea ecx, [esp + 0x30]
push 2
push ecx
push esi
call fcn.004e6360
add esp, 0x14
lea ecx, [esp + 8]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 8], 0x5916f4
lea ecx, [esp + 8]
mov dword [esp + 0x60], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
pop esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret 0x14
mov eax, dword [esp + 0x6c]
push ebx
xor ebx, ebx
xor esi, esi
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x3c], edx
mov edx, ecx
shr edx, 0x10
mov bh, dl
xor edx, edx
mov word [esp + 0x48], bx
mov dl, ch
xor ebx, ebx
mov word [esp + 0x4a], si
mov bh, dl
xor edx, edx
mov dh, cl
mov ecx, dword [eax + 8]
mov word [esp + 0x44], dx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x4c], ecx
mov ecx, eax
mov dword [esp + 0x50], edx
shr ecx, 0x10
xor edx, edx
mov word [esp + 0x46], bx
mov dh, cl
xor ecx, ecx
mov word [esp + 0x58], dx
mov cl, ah
xor edx, edx
mov word [esp + 0x5a], si
mov dh, cl
xor ecx, ecx
mov word [esp + 0x56], dx
xor edx, edx
cmp edi, esi
mov ch, al
setne dl
push edx
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x18]
mov word [esp + 0x58], cx
push 1
push eax
mov eax, dword [edx + 4]
lea ecx, [esp + 0x48]
push 2
push ecx
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 1
call dword [sym.imp.MSIMG32.dll_GradientFill]
mov ecx, dword [esp + 0x5c]
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x5c
ret 0x14
Function at 0x4b8a30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5840cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ebp, [esi + 0x2c]
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_5
mov edx, dword [esp + 0x20]
mov ecx, 0xb
xor eax, eax
mov edi, esi
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
and eax, 0xff
push esi
push eax
push ecx
push edx
mov dword [esp + 0x28], 0
mov dword [esi], 0x2c
mov dword [esi + 4], 0x37
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov eax, dword [esi + 8]
test ah, 8
jne 0x4b8ba9
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4b8b2e
mov edi, dword [0x5f40ac]
test edi, edi
je 0x4b8aef
mov eax, ecx
xor edx, edx
shr eax, 4
div dword [0x5f40b0]
mov edx, dword [edi + edx*4]
test edx, edx
je 0x4b8aef
cmp dword [edx + 8], ecx
je 0x4b8ae0
mov edx, dword [edx]
test edx, edx
jne 0x4b8ad3
jmp 0x4b8aef
test edx, edx
je 0x4b8aef
add edx, 0xc
mov ecx, ebp
push edx
call fcn.00572d3c
mov edi, dword [0x5f408c]
mov ecx, dword [esi + 0x14]
test edi, edi
je 0x4b8ba9
mov eax, ecx
xor edx, edx
shr eax, 4
div dword [0x5f4090]
mov edx, dword [edi + edx*4]
test edx, edx
je 0x4b8ba9
cmp dword [edx + 8], ecx
je 0x4b8b28
mov edx, dword [edx]
test edx, edx
jne 0x4b8b18
jmp 0x4b8ba9
test edx, edx
je 0x4b8ba9
jmp 0x4b8b9d
mov edi, dword [0x5f406c]
mov ecx, dword [esi + 0x10]
test edi, edi
je 0x4b8b6b
mov eax, ecx
xor edx, edx
shr eax, 4
div dword [0x5f4070]
mov edx, dword [edi + edx*4]
test edx, edx
je 0x4b8b6b
cmp dword [edx + 8], ecx
je 0x4b8b5c
mov edx, dword [edx]
test edx, edx
jne 0x4b8b4f
jmp 0x4b8b6b
test edx, edx
je 0x4b8b6b
add edx, 0xc
mov ecx, ebp
push edx
call fcn.00572d3c
mov edi, dword [0x5f404c]
mov ecx, dword [esi + 0x10]
test edi, edi
je 0x4b8ba9
mov eax, ecx
xor edx, edx
shr eax, 4
div dword [0x5f4050]
mov edx, dword [edi + edx*4]
test edx, edx
je 0x4b8ba9
cmp dword [edx + 8], ecx
je 0x4b8b99
mov edx, dword [edx]
test edx, edx
jne 0x4b8b8c
jmp 0x4b8ba9
test edx, edx
je 0x4b8ba9
mov eax, dword [edx + 0xc]
mov dword [esi + 0x30], eax
mov ecx, dword [edx + 0x10]
mov dword [esi + 0x34], ecx
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x4bd9e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5846ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], ebx
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString_5
push 0x5e34fc
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::operator_2
mov dword [esp + 0x20], 0xffffff
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x14], eax
lea edx, [esp + 0x14]
lea esi, [edi + 0x94]
lea eax, [esp + 0x44]
mov dword [esp + 0x18], ecx
push edx
push eax
mov ecx, esi
mov byte [esp + 0x40], 3
call fcn.004c1b50
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x44]
cmp ecx, eax
je 0x4bda96
add ecx, 0xc
push ecx
lea ecx, [esp + 0x18]
push ecx
call fcn.004c2aa0
add esp, 8
test al, al
jne 0x4bda96
lea eax, [esp + 0x44]
jmp 0x4bdaa1
mov esi, dword [esi + 4]
lea eax, [esp + 0x48]
mov dword [esp + 0x48], esi
mov eax, dword [eax]
mov ecx, dword [edi + 0x98]
cmp eax, ecx
je 0x4bdad6
lea esi, [eax + 0x14]
lea ecx, [esp + 0x1c]
push esi
call fcn.00572d3c
mov edx, dword [esi + 4]
mov dword [esp + 0x20], edx
mov eax, dword [esi + 8]
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x28], ecx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x2c], edx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
call fcn.00572d3c
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x40]
mov dword [ecx], edx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0xc]
mov dword [eax], ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0x14
Function at 0x4d1330
Capabilities:
Change the wallpaper

Disassembly:
push 0xffffffffffffffff
push 0x585974
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x24], ebp
call sub.MFC42.DLL_CWnd::CWnd
lea ebx, [ebp + 0x48]
xor esi, esi
mov dword [esp + 0x1c4], esi
mov dword [ebx + 4], esi
mov dword [ebx], 0x591b10
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x10
mov byte [esp + 0x1c8], 1
mov dword [ebp], 0x59b798
mov dword [ebp + 0x60], 0xffe8e8
mov dword [ebp + 0x64], 0xffd3d3
mov dword [ebp + 0x68], 0xe99494
mov dword [ebp + 0x6c], 0x933e1e
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x44], 0xffffffff
mov dword [ebp + 0x5c], esi
call edi
push 0x14
mov dword [ebp + 0x50], eax
call edi
push 0x12
mov dword [ebp + 0x54], eax
call edi
mov dword [ebp + 0x58], eax
lea eax, [esp + 0x68]
push esi
push eax
push 0x154
push 0x29
mov dword [esp + 0x78], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x2c]
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CWindowDC::CWindowDC
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
push esi
and eax, ecx
push esi
push eax
mov byte [esp + 0x1d0], 2
call dword [sym.imp.GDI32.dll_GetTextCharsetInfo]
mov ecx, dword [esp + 0x108]
mov byte [esp + 0x43], al
mov al, byte [esp + 0x11c]
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x40], al
lea edi, [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x118]
not ecx
sub edi, ecx
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x48]
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 cl, 2
cmp cl, byte [esp + 0x11f]
sbb edx, edx
neg edx
mov dword [esp + 0x28], edx
jne 0x4d14c2
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
push 0
and eax, edx
push 0x4d1510
push 0
push eax
call dword [sym.imp.GDI32.dll_EnumFontFamiliesA]
mov edi, dword [0x5f41dc]
lea edx, [esp + 0x48]
test eax, eax
je 0x4d14a5
mov edi, dword [0x5f41d8]
or ecx, 0xffffffff
xor eax, eax
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 + 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CGdiObject::Attach
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c4], 1
call fcn.005731b6
mov ecx, dword [esp + 0x1bc]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1b8
ret
Function at 0x4d3830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x585d20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
call fcn.00572d84
mov eax, dword [esi + 0x20]
mov byte [esp + 0x24], 1
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
test eax, eax
je 0x4d3878
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CDC::Attach
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x31
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CDC::SelectObject_3
mov esi, eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 4]
mov ecx, dword [eax - 8]
push edx
push ecx
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CDC::SelectObject_3
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CDC::DeleteDC
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov byte [esp + 0x24], 0
mov dword [esi], ecx
lea ecx, [esp + 0xc]
mov dword [esi + 4], edx
call sub.MFC42.DLL_CDC::CDC
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x4e2c50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
mov dword [ecx + 0x40], 0
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4e2d16
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4e2d16
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
push ebp
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4e2d16
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4e2d0f
test edi, edi
je 0x4e2d0f
mov ecx, ebp
mov esi, eax
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
push ebp
push ebx
call fcn.004e1d60
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8