joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447d00
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x479fc3
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
call fcn.0046d1a8
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00472841
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00473da0
test eax, eax
je 0x447e1c
mov ecx, dword [esp + 0x3c]
call fcn.0047286e
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x447de0
push edi
mov ecx, esi
call fcn.0046fed6
mov ecx, esi
call fcn.00447f80
cmp dword [esp + 0x38], 1
jne 0x447e15
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00470011
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44a840
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44a873
push esi
call fcn.0044d940
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44a86c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44a8f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44a8e2
mov eax, dword [esi + 8]
test eax, eax
je 0x44a897
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44a8de
cmp eax, 2
je 0x44a8e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44a88a
cmp eax, 3
je 0x44a8bd
cmp eax, 1
jne 0x44a88a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44a88a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44a88a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044a920
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44a908
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044a920
add esp, 4
pop esi
ret

Function at 0x456920
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4569c3
test eax, eax
jbe 0x4569c3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4569c3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45696e
xor esi, esi
jmp 0x456974
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45699f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040b930
add esi, eax
push esi
mov ebx, esi
call fcn.0040b930
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x456980
pop ebp
test edi, edi
pop edi
jne 0x4569c3
test ebx, ebx
je 0x4569c3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045c820
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x456b25
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x456c3d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x456c3d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046d5fa
mov esi, eax
test esi, esi
je 0x456c3d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x456c3d
mov ecx, esi
call fcn.00456ab0
cmp edi, eax
jge 0x456c3d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x456bc3
mov dword [esp + 0x34], 1
jmp 0x456c1e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x456c3d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00456020
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46df9e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46dfd6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046c02b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046c003
jmp 0x46dfe2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46f693
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46f6d5
call fcn.0047518b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46f6d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46f6cc
xor eax, eax
jmp 0x46f6dd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046f6e3
pop edi
pop esi
pop ebx
ret 4
Function at 0x4756bb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4756e9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475707
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00475621
jmp 0x475707
mov eax, dword [esi + 0x14]
test eax, eax
je 0x475707
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00475621
test edi, edi
mov eax, edi
jne 0x4756f1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404b80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x439c90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CWindowDC::CWindowDC
lea ecx, [esp + 0x38]
mov dword [esp + 0x64], 0
call fcn.00438cea
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 1
call fcn.00402930
mov dword [esp + 0x10], 0x43ed9c
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x6c], 2
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
neg eax
neg ecx
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
xor eax, eax
mov edi, dword [esp + 0x4c]
mov al, byte [esi + 0xa8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x48]
neg eax
sbb eax, eax
and eax, edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x4c]
sub eax, ebp
sub ecx, ebx
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
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
push eax
mov eax, dword [esp + 0x40]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov edx, dword [esp + 0x18]
sub esp, 0x10
mov ecx, esp
mov edi, eax
mov eax, dword [esp + 0x2c]
mov dword [ecx], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call fcn.00404d80
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x38]
sub ecx, ebp
sub edx, ebx
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, dword [esp + 0x44]
push 0
push eax
push ecx
push edx
mov edx, dword [esp + 0x64]
push ebp
push ebx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
test edi, edi
je 0x404ced
mov edi, dword [edi + 4]
mov eax, dword [esp + 0x3c]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.00405480
mov dword [esp + 0x10], 0x43ed88
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x38]
mov dword [esp + 0x10], 0x43ed74
mov byte [esp + 0x64], 0
call sub.MFC42.DLL_CDC::CDC
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.00438ea0
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret
Function at 0x4062d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x439e68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x4c], 0xffffffff
je 0x4063e2
call fcn.00406650
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x40630f
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebx + 0x58], 0
mov eax, dword [ebx + 0x44]
test eax, eax
jne 0x40632f
mov eax, dword [ebx + 0x48]
lea ecx, [ebx + 0x48]
call dword [eax + 0x54]
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push ebp
push esi
push edi
mov edi, str.CSTBASEFILEFLAG
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [ebx + 4]
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x48]
lea esi, [ebx + 0x48]
mov ecx, esi
mov dword [ebx + 0x14], 0x1329095
call dword [eax + 0x38]
sub eax, dword [ebx + 0x40]
mov dword [ebx + 0x24], eax
je 0x4063a1
lea ecx, [ebx + 0x20]
lea edx, [ebx + 0x1c]
push ecx
push edx
mov ecx, ebx
call fcn.00406680
mov dword [ebx + 0x18], eax
mov eax, dword [esi]
push 0
push 0
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [esi]
push 0x3c
push ebp
mov ecx, esi
call dword [edx + 0x40]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
jmp 0x4063d8
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x1c], 0
call dword [edx + 0x54]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov dword [ebx + 0x44], 0
pop ebp
mov ecx, dword [esp + 8]
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x407730
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x439fa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.00438cea
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x407768
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 eax, dword [esi + 0x1ac]
test eax, eax
je 0x407786
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
sub edi, edx
xor esi, esi
test edi, edi
mov dword [esp + 8], eax
jle 0x4077ea
mov eax, dword [esp + 0x34]
push ebx
mov ebx, dword [esp + 0x40]
push ebp
mov ebp, dword [sym.imp.GDI32.dll_BitBlt]
sub ebx, eax
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x34]
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, edx
mov edx, dword [ecx + 4]
push 0
push eax
push ebx
push 1
push 0
push esi
push edx
call ebp
inc esi
cmp esi, edi
jl 0x4077b7
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
test eax, eax
je 0x4077f3
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14
Function at 0x408c10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43a110
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x30]
push eax
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CFrameWnd::OnSize
lea edi, [esi + 0xe4]
push edi
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, dword [esi + 0x20]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
neg eax
neg ecx
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
xor eax, eax
mov ecx, 0x43f640
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esi + 0xec]
mov ecx, dword [esi + 0xf0]
mov edx, dword [esi + 0xe8]
mov ebx, dword [edi]
push 5
inc eax
push 5
push ecx
push eax
push edx
push ebx
mov byte [esp + 0x3c], 1
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esi + 0xf0]
mov eax, dword [esi + 0xc0]
mov ebx, dword [esi + 0xe8]
mov edx, dword [esi + 0xec]
mov edi, dword [edi]
add eax, ebx
push ecx
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
neg eax
mov edx, dword [esp + 0x18]
push 2
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x18]
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
push ecx
push edx
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Detach
mov ecx, dword [esi + 0x20]
push 1
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov esi, 0x43ed88
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0xc], 0x43ed74
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x408c31
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43a110
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x30]
push eax
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CFrameWnd::OnSize
lea edi, [esi + 0xe4]
push edi
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, dword [esi + 0x20]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
neg eax
neg ecx
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
xor eax, eax
mov ecx, 0x43f640
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esi + 0xec]
mov ecx, dword [esi + 0xf0]
mov edx, dword [esi + 0xe8]
mov ebx, dword [edi]
push 5
inc eax
push 5
push ecx
push eax
push edx
push ebx
mov byte [esp + 0x3c], 1
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esi + 0xf0]
mov eax, dword [esi + 0xc0]
mov ebx, dword [esi + 0xe8]
mov edx, dword [esi + 0xec]
mov edi, dword [edi]
add eax, ebx
push ecx
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
neg eax
mov edx, dword [esp + 0x18]
push 2
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x18]
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
push ecx
push edx
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Detach
mov ecx, dword [esi + 0x20]
push 1
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov esi, 0x43ed88
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0xc], 0x43ed74
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x409ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43a200
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
xor ebx, ebx
mov eax, 0x43f3e4
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
mov edi, dword [sym.imp.GDI32.dll_CreatePen]
push 0xe7e0bc
push 1
push ebx
mov byte [esp + 0x50], 2
call edi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CGdiObject::Attach
push 0xdeaf72
push 1
push ebx
call edi
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::Attach
lea eax, [esp + 0x50]
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [esi + 0xc0]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x4c]
lea ecx, [eax + edx - 1]
lea edx, [esp + 0x14]
mov dword [esp + 0x30], ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_1
mov ecx, dword [esp + 0x34]
mov edi, eax
mov eax, dword [esp + 0x30]
dec ecx
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
dec eax
dec ecx
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
dec edx
mov ecx, esi
push edx
push eax
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call sub.MFC42.DLL_CDC::SelectObject_1
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add edx, 0xfffffffe
push ecx
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add ecx, 0xfffffffe
add edx, 0xfffffffe
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
add eax, 0xfffffffe
inc ecx
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
inc eax
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
push edi
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_1
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, 0x43ed88
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov edi, 0x43ed74
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x14
Function at 0x40ac50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43a2f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
xor eax, eax
mov ecx, 0x43f640
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x38], 1
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.GDI32.dll_CreateRectRgn]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
call edi
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
call edi
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [esp + 0xc]
lea eax, [esp + 8]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
neg eax
sbb eax, eax
push 3
and eax, edi
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
push ecx
push edx
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::Detach
mov edx, dword [esi + 0x20]
push 1
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov esi, 0x43ed88
mov dword [esp + 8], esi
lea ecx, [esp + 8]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 8], 0x43ed74
mov dword [esp + 0x10], esi
mov dword [esp + 0x30], 3
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x28]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret