joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad41c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x28]
mov ebx, eax
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x18]
shr edx, 1
add ebx, edx
mov ecx, dword [ebp + 8]
mov ecx, edx
mov edx, dword [ebp + 8]
mov edx, ebx
call fcn.004038cc
add ebx, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x30]
shl edx, 2
sub edx, 5
test edx, edx
jl 0x4ad4ef
inc edx
mov eax, dword [ebx]
mov ecx, eax
and ecx, 0xff
mov esi, dword [0x2edc0ec]
movzx ecx, byte [esi + ecx]
mov esi, dword [0x2edbe74]
mov ecx, dword [esi + ecx*4 + 0x1000]
mov esi, eax
shr esi, 8
and esi, 0xff
mov edi, dword [0x2edc0ec]
movzx esi, byte [edi + esi]
mov edi, dword [0x2edbe74]
xor ecx, dword [edi + esi*4 + 0x1400]
mov esi, eax
shr esi, 0x10
and esi, 0xff
mov edi, dword [0x2edc0ec]
movzx esi, byte [edi + esi]
mov edi, dword [0x2edbe74]
xor ecx, dword [edi + esi*4 + 0x1800]
shr eax, 0x18
mov esi, dword [0x2edc0ec]
movzx eax, byte [esi + eax]
mov esi, dword [0x2edbe74]
xor ecx, dword [esi + eax*4 + 0x1c00]
mov dword [ebx], ecx
add ebx, 4
dec edx
jne 0x4ad464
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4ae5a4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, ecx
mov esi, eax
mov eax, edx
mov edx, esi
mov ecx, 0x10
call fcn.004ab734
test bl, bl
je 0x4ae5e6
mov eax, 0x10
mov edx, dword [esi + eax*4 - 0xc]
xor edx, dword [esi + eax*4 - 0x20]
xor edx, dword [esi + eax*4 - 0x38]
xor edx, dword [esi + eax*4 - 0x40]
mov ecx, edx
add ecx, ecx
shr edx, 0x1f
or ecx, edx
mov dword [esi + eax*4], ecx
inc eax
cmp eax, 0x50
jne 0x4ae5c1
pop esi
pop ebx
ret
mov eax, 0x10
mov edx, dword [esi + eax*4 - 0xc]
xor edx, dword [esi + eax*4 - 0x20]
xor edx, dword [esi + eax*4 - 0x38]
xor edx, dword [esi + eax*4 - 0x40]
mov dword [esi + eax*4], edx
inc eax
cmp eax, 0x50
jne 0x4ae5eb
pop esi
pop ebx
ret

Function at 0x4b3ecc
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov dword [esp], ecx
mov esi, edx
mov edi, eax
mov eax, dword [esp]
inc eax
cmp eax, 5
jge 0x4b3ee9
xor eax, eax
jmp 0x4b3f71
mov cl, byte [esi]
and cl, 0xff
and ecx, 0xff
mov eax, ecx
mov ebx, 9
cdq
idiv ebx
mov dword [esp + 4], edx
mov eax, ecx
mov ecx, 9
cdq
idiv ecx
mov ecx, eax
mov eax, ecx
mov ebx, 5
cdq
idiv ebx
mov dword [esp + 8], edx
mov eax, ecx
mov ecx, 5
cdq
idiv ecx
mov dword [esp + 0xc], eax
xor ebx, ebx
xor eax, eax
mov ecx, eax
shl ecx, 3
lea edx, [eax + 1]
mov dl, byte [esi + edx]
and dl, 0xff
and edx, 0xff
shl edx, cl
add ebx, edx
inc eax
cmp eax, 4
jne 0x4b3f2e
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, edi
call fcn.004b39dc
test al, al
jne 0x4b3f68
xor eax, eax
jmp 0x4b3f71
mov edx, ebx
mov eax, edi
call fcn.004b398c
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4b57a8
Capabilities:
Parse pe header

Disassembly:
push esi
xor esi, esi
mov ecx, eax
cmp edx, 0x100
jl 0x4b57d3
cmp word [ecx], 0x5a4d
jne 0x4b57d3
mov ecx, eax
mov eax, dword [ecx + 0x3c]
cmp edx, eax
jle 0x4b57d3
mov esi, ecx
add esi, eax
cmp dword [esi], 0x4550
je 0x4b57d3
xor esi, esi
mov eax, esi
pop esi
ret

Function at 0x4b6080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, eax
or ebx, 0xffffffff
mov eax, edi
call fcn.00405fe4
test eax, eax
jle 0x4b60b6
mov esi, 1
mov dl, byte [edi + esi - 1]
xor dl, bl
and edx, 0xff
mov edx, dword [edx*4 + 0x2ed74d0]
shr ebx, 8
xor edx, ebx
mov ebx, edx
inc esi
dec eax
jne 0x4b6098
xor ebx, 0xffffffff
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4bb7d8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x4bb7f1
add esp, 0xfffffff0
call fcn.004051a0
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
lea eax, [ebp - 4]
call fcn.0040692c
lea eax, [ebp + 0x10]
call fcn.0040692c
xor eax, eax
push ebp
push 0x2e0acc7
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00404e0c
lea edx, [ebp - 8]
mov eax, dword [ebp + 0x10]
call fcn.0045abd4
mov edx, dword [ebp - 8]
lea eax, [esi + 0x1c]
call fcn.00406458
lea eax, [esi + 0x14]
mov edx, dword [ebp - 4]
call fcn.00406458
mov byte [esi + 0x34], 1
mov dword [esi + 0x38], 1
mov dl, 1
mov eax, dword [0x2d69fe8]
call fcn.00404e0c
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 4]
call fcn.0047b6a8
mov byte [esi + 0x20], al
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi + 0x24], eax
xor eax, eax
mov dword [esi + 0x28], eax
xor eax, eax
mov dword [esi + 0x2c], eax
xor eax, eax
mov dword [esi + 0x30], eax
push esi
push 0x2e0a17c
push 0
push 0
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x2db3f04]
call fcn.00473b4c
mov dword [esi + 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2e0acce
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406434
lea eax, [ebp + 0x10]
call fcn.0040641c
ret
Function at 0x509a7c
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x509a95
add esp, 0xfffffff0
call fcn.004051a0
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
lea eax, [ebp - 4]
call fcn.0040692c
xor eax, eax
push ebp
push 0x2e58f65
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi + 4]
call fcn.0040641c
lea eax, [esi + 8]
call fcn.0040641c
lea eax, [esi + 0xc]
call fcn.00405d10
lea eax, [esi + 0x10]
call fcn.00405d10
lea eax, [esi + 0x14]
call fcn.00405d10
lea eax, [esi + 0x18]
call fcn.00405d10
lea eax, [esi + 0x1c]
call fcn.00405d10
lea eax, [esi + 0x20]
call fcn.00405d10
lea eax, [esi + 0x24]
call fcn.00405d10
lea eax, [esi + 0x28]
call fcn.00405d10
lea eax, [esi + 0x2c]
call fcn.00405d10
lea eax, [esi + 0x30]
call fcn.00405d10
mov byte [esi + 0x34], 1
mov eax, dword [ebp - 4]
call fcn.0045ace8
test al, al
je 0x509b4a
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040bc00
mov edx, dword [ebp - 8]
lea eax, [esi + 4]
call fcn.00406458
mov eax, esi
call fcn.00509c18
test al, al
jne 0x509b4a
mov eax, esi
call fcn.0050a58c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2e58f6c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406434
ret

Function at 0x50e1c4
Capabilities:
Parse pe header

Disassembly:
mov edx, eax
cmp word [edx], 0x5a4d
je 0x50e1d2
xor edx, edx
mov eax, edx
ret
lea edx, [eax + 0x3c]
movzx edx, word [edx]
add eax, edx
mov edx, eax
cmp dword [edx], 0x4550
je 0x50e1e6
xor edx, edx
mov eax, edx
ret
Function at 0x401d50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a0393
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4b3300
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.0049e31a
mov dword [ebx], 0x4b32ec
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.0049e31a
or eax, 0xffffffff
push 0x4dab50
mov dword [ebx], 0x4b32b0
push edi
mov dword [esi], 0x4b32c4
mov dword [esi + 0x54], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], 0xc0c0c0
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x58], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4054a0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4a07f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x4b3358
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
push ecx
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_2
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [edi + 2]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
push ebx
call sub.MFC42.DLL_CDC::LineTo
lea ebp, [edi + 3]
lea eax, [ebx + 1]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 1]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [edi + 4]
lea ecx, [ebx + 2]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 7]
mov ecx, esi
push eax
lea eax, [ebx + 2]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [ebx + 3]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 3]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [edi + 2]
lea ecx, [ebx + 4]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
lea eax, [ebx + 4]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [edi + 1]
lea eax, [ebx + 5]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 4]
mov ecx, esi
push eax
lea eax, [ebx + 5]
push eax
call sub.MFC42.DLL_CDC::LineTo
add ebx, 6
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
push ebp
push ebx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_2
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x10], 0x4b3330
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x406610
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a0960
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov eax, esi
mov ebp, ecx
push edi
xor edi, edi
mov ecx, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0x4b336c
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], edi
call fcn.00401eb0
test eax, eax
je 0x40666e
push 0xf
jmp 0x406670
push 4
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
call ebx
cmp dword [esp + 0x40], edi
jne 0x406691
push 0x3fe33333
push 0x33333333
push eax
call fcn.00402dd0
add esp, 0xc
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
call fcn.00401ea0
test eax, eax
je 0x4066e9
mov eax, dword [edi + 4]
push 0xf
lea edx, [esp + 0x1c]
push 2
push edx
push eax
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esp + 0x44]
push 7
test eax, eax
jne 0x40670d
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 4
push eax
add edx, 4
push ecx
push edx
push edi
mov ecx, ebp
call fcn.004054a0
jmp 0x406725
call ebx
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 4]
add ecx, 5
add eax, 4
push eax
push ecx
push edi
mov ecx, ebp
call fcn.00405310
mov dword [esp + 0x10], 0x4b3330
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10

Function at 0x406c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
and esi, 0xffff
push 2
push esi
call sub.MFC42.DLL_AfxFindResourceHandle
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push 2
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x406ccd
xor ebx, ebx
push 2
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x406ccd
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406cde
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x406cee
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call fcn.00406c50
add esp, 4
cmp ax, 0x10
je 0x406d04
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push edi
push ebx
call sub.MFC42.DLL_AfxLoadSysColorBitmap
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406f00
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x4dab70]
sub esp, 0x134
test eax, eax
jne 0x406fd5
lea eax, [esp]
mov dword [0x4dab70], 1
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406fd5
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406fc8
mov ecx, 5
mov esi, str.Windows_Classic.theme
lea edi, [esp + 0x14]
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x406fc8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x406fc8
mov dword [0x4dab6c], 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [0x4dab6c]
add esp, 0x134
ret

Function at 0x407540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a0a5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4b3398
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x4075d0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x407597
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x4075c1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4075d6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4075d6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x4b3330
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x4b331c
mov dword [esp + 0x1c], 0xffffffff
call fcn.0049e428
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x408a50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a0c08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CClientDC::CClientDC
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x20]
push edx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esi + 0x150]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x408b86
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x14c]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0x15c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
test edi, edi
je 0x408b32
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x150]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x164], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0x150]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x14c]
sub ecx, edi
test edx, edx
je 0x408ba7
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.0049e5f0
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x40bea0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4a11ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0xed8
mov dword [esp + 0x14], esi
call fcn.0042fd30
lea ebp, [esi + 0x94]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x98]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0xa0]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0xa8]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0xac]
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0xb0]
mov byte [esp + 0x20], 5
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0xb8]
mov byte [esp + 0x20], 6
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0xbc]
mov byte [esp + 0x20], 7
call sub.MFC42.DLL_CString::CString_4
lea edi, [esi + 0xe0]
mov byte [esp + 0x20], 8
mov ecx, edi
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_4
lea ecx, [edi + 4]
mov byte [esp + 0x20], 9
call sub.MFC42.DLL_CString::CString_4
lea ecx, [edi + 8]
mov byte [esp + 0x20], 0xa
call sub.MFC42.DLL_CString::CString_4
lea ecx, [edi + 0xc]
mov byte [esp + 0x20], 0xb
call sub.MFC42.DLL_CString::CString_4
lea ecx, [edi + 0x10]
mov byte [esp + 0x20], 0xc
call sub.MFC42.DLL_CString::CString_4
lea ecx, [edi + 0x18]
mov byte [esp + 0x20], 0xd
call sub.MFC42.DLL_CString::CString_4
lea ecx, [edi + 0x20]
mov byte [esp + 0x20], 0xe
call sub.MFC42.DLL_CString::CString_4
lea ecx, [edi + 0x30]
mov byte [esp + 0x20], 0xf
call sub.MFC42.DLL_CString::CString_4
lea ecx, [edi + 0x38]
mov byte [esp + 0x20], 0x10
call sub.MFC42.DLL_CString::CString_4
push 0x4dab08
mov ecx, ebp
mov byte [esp + 0x24], 0x11
mov dword [esi], 0x4b3ef8
call sub.MFC42.DLL_CString::operator_1
push 0x4dab08
lea ecx, [esi + 0x98]
call sub.MFC42.DLL_CString::operator_1
push 0x4dab08
lea ecx, [esi + 0xa8]
mov dword [esi + 0x9c], ebx
call sub.MFC42.DLL_CString::operator_1
push 0x4dab08
lea ecx, [esi + 0xac]
call sub.MFC42.DLL_CString::operator_1
push 0x4dab08
lea ecx, [esi + 0xb0]
call sub.MFC42.DLL_CString::operator_1
push 0x4dab08
lea ecx, [esi + 0xb8]
mov dword [esi + 0xb4], ebx
call sub.MFC42.DLL_CString::operator_1
push 0x4dab08
lea ecx, [esi + 0xbc]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x18]
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xdc], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40c160
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4a12ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x4b3ef8
mov dword [esp + 0x18], 0
lea edi, [esi + 0xe0]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x38]
mov byte [esp + 0x18], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 0x20]
mov byte [esp + 0x18], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 0x18]
mov byte [esp + 0x18], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 0x10]
mov byte [esp + 0x18], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 0xc]
mov byte [esp + 0x18], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 8]
mov byte [esp + 0x18], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 4]
mov byte [esp + 0x18], 9
call sub.MFC42.DLL_CString::CString
mov ecx, edi
mov byte [esp + 0x18], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xbc]
mov byte [esp + 0x18], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xb8]
mov byte [esp + 0x18], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xb0]
mov byte [esp + 0x18], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xac]
mov byte [esp + 0x18], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xa8]
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xa0]
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x98]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x94]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0042fd80
pop edi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret