joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473515
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, ebx
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esi + 0x243c]
test eax, eax
je 0x473579
mov ecx, dword [esi + 0x2434]
test ecx, ecx
jl 0x473579
cdq
xor eax, edx
push edi
sub eax, edx
xor edi, edi
test eax, eax
jle 0x47356e
mov eax, dword [esi + 0xa2c]
mov ecx, dword [esi + 0x2434]
add eax, edi
mov dl, byte [eax + ecx]
mov eax, dword [ebx]
push edx
mov ecx, dword [eax - 8]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CString::Insert_1
mov eax, dword [esi + 0x243c]
inc edi
cdq
xor eax, edx
sub eax, edx
cmp edi, eax
jl 0x47353f
mov edx, dword [ebx]
pop edi
pop esi
pop ebx
mov eax, dword [edx - 8]
ret 4
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x475020
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax - 8]
test edx, edx
je 0x47509b
mov ecx, dword [ecx + 0x20]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x47509b
mov edx, dword [esi]
mov eax, dword [edx - 8]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x47509b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, dword [esi]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
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]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
ret 4
Function at 0x478cf0
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b8bb8
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
mov esi, dword [esp + 0x44]
test esi, esi
je 0x478e6c
push ebx
push ebp
push edi
lea ecx, [esp + 0x10]
call fcn.00454c04
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x40], 0
test ebp, ebp
jne 0x478d35
xor eax, eax
jmp 0x478d38
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CDC::Attach
lea eax, [esp + 0x20]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x14]
push esi
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x54]
cmp eax, 3
jne 0x478dc8
mov esi, dword [esp + 0x4c]
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
sub ecx, eax
mov eax, dword [esi]
sub edx, eax
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
push 0xcc0020
and eax, dword [esp + 0x18]
push 0
push 0
push eax
push ecx
push edx
mov edx, dword [ebp + 4]
push ebx
push edi
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 8]
add edi, ecx
cmp edi, edx
jl 0x478d7c
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 0xc]
add ebx, ecx
cmp ebx, eax
jl 0x478d77
jmp 0x478e3f
dec eax
mov eax, dword [esp + 0x4c]
mov esi, dword [eax + 4]
mov ecx, dword [eax + 0xc]
je 0x478e10
mov edi, dword [eax]
mov edx, dword [eax + 8]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
sub ecx, esi
sub edx, edi
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebx
mov ebx, dword [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x2c]
push ebx
push 0
push 0
push eax
mov eax, dword [ebp + 4]
push ecx
push edx
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x478e3f
mov edi, dword [eax]
mov edx, dword [eax + 8]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
sub ecx, esi
sub edx, edi
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebx
push 0
push 0
push eax
push ecx
mov ecx, dword [ebp + 4]
push edx
push esi
push edi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x47af00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b9048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x60], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CWindowDC::CWindowDC
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 1
call fcn.00454c04
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x4bd52c
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
mov byte [esp + 0x58], 3
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
sub eax, ecx
mov ecx, dword [esp + 0x24]
sub ecx, edi
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
neg eax
sbb eax, eax
and eax, edx
push eax
mov eax, dword [esp + 0x34]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
push 1
push ecx
lea edx, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
mov edi, eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x2c]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x44]
push eax
push ecx
mov ecx, esi
call fcn.0047b450
test edi, edi
je 0x47b011
mov edi, dword [edi + 4]
mov edx, dword [esp + 0x30]
push edi
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], 0x4bd504
mov dword [esi], eax
mov dword [esi + 4], ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x58], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc], 0x4bd4f0
mov byte [esp + 0x58], 1
call sub.MFC42.DLL_CDC::CDC
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 0
call fcn.004552d0
lea ecx, [esp + 0x64]
mov dword [esp + 0x58], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x50]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x54
ret 8
Function at 0x47d220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b9240
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x28]
push edi
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
push eax
push 1
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CPen::CPen
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov edi, eax
push ebx
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x34]
push ebx
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
push edi
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0xc], 0x4bd504
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 1
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 0x10
Function at 0x47ea00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b9320
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x6c], ebx
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [esp + 0x74]
mov byte [esp + 0x6c], 1
cmp eax, ebx
jne 0x47ea3f
mov dword [esp + 0x1c], ebx
jmp 0x47ea46
mov eax, dword [eax + 0x20]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x7c]
lea eax, [esp + 0x78]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x88]
cmp eax, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ecx
je 0x47eaaf
lea edx, [esp + 0xc]
push eax
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
jmp 0x47eaba
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov edx, dword [esp + 0x1c]
sub esp, 0x48
mov esi, esp
mov dword [esp + 0xbc], esp
mov dword [esi], edx
mov eax, dword [esp + 0x68]
mov dword [esi + 4], eax
mov edx, dword [esp + 0x6c]
lea ecx, [esi + 8]
mov dword [esi + 8], edx
mov eax, dword [esp + 0x70]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x74]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x78]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x7c]
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x84]
lea ecx, [esi + 0x20]
push eax
mov dword [esi + 0x1c], edx
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x88]
mov dword [esi + 0x24], ecx
mov edx, dword [esp + 0x8c]
mov dword [esi + 0x28], edx
mov eax, dword [esp + 0x90]
mov dword [esi + 0x2c], eax
mov ecx, dword [esp + 0x94]
mov dword [esi + 0x30], ecx
mov edx, dword [esp + 0x98]
mov dword [esi + 0x34], edx
mov eax, dword [esp + 0x9c]
mov dword [esi + 0x38], eax
mov ecx, dword [esp + 0xa0]
mov dword [esi + 0x3c], ecx
mov edx, dword [esp + 0xa4]
mov dword [esi + 0x40], edx
mov eax, dword [esp + 0xa8]
mov ecx, edi
mov dword [esi + 0x44], eax
call fcn.0047ed40
lea ecx, [esp + 0x3c]
mov esi, eax
mov byte [esp + 0x6c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78]
mov dword [esp + 0x6c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x64]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret 0x18
Function at 0x47f3f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b93d8
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
push edi
mov edi, dword [esp + 0x60]
mov esi, ecx
push edi
call fcn.0047f660
test eax, eax
jne 0x47f42d
pop edi
pop esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret 8
lea eax, [esp + 8]
push edi
push eax
lea ecx, [esi + 0x40]
call fcn.0047fab0
mov esi, eax
mov edi, dword [esp + 0x64]
mov ecx, dword [esi]
lea eax, [esi + 8]
mov dword [esp + 0x58], 0
mov dword [edi], ecx
mov edx, dword [esi + 4]
mov dword [edi + 4], edx
mov edx, dword [eax]
lea ecx, [edi + 8]
mov dword [edi + 8], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x18]
mov dword [edi + 0x18], ecx
mov edx, dword [esi + 0x1c]
lea eax, [esi + 0x20]
lea ecx, [edi + 0x20]
push eax
mov dword [edi + 0x1c], edx
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x58], 0xffffffff
mov dword [edi + 0x24], ecx
mov edx, dword [esi + 0x28]
mov dword [edi + 0x28], edx
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
mov ecx, dword [esi + 0x30]
mov dword [edi + 0x30], ecx
mov edx, dword [esi + 0x34]
mov dword [edi + 0x34], edx
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov ecx, dword [esi + 0x3c]
mov dword [edi + 0x3c], ecx
mov edx, dword [esi + 0x40]
mov dword [edi + 0x40], edx
mov eax, dword [esi + 0x44]
lea ecx, [esp + 0x28]
mov dword [edi + 0x44], eax
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x50]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x54
ret 8
Function at 0x47fb50
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b9448
push eax
mov dword fs:[0], esp
push esi
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x18]
mov dword [esp + 0xc], 0
lea eax, [eax + eax*8]
lea esi, [ecx + eax*8]
mov dword [esi], edx
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], eax
mov edx, dword [esp + 0x20]
lea ecx, [esi + 8]
mov dword [esi + 8], edx
mov eax, dword [esp + 0x24]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x28]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x2c]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x38]
lea ecx, [esi + 0x20]
push eax
mov dword [esi + 0x1c], edx
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc], 0xffffffff
mov dword [esi + 0x24], ecx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x28], edx
mov eax, dword [esp + 0x44]
mov dword [esi + 0x2c], eax
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x30], ecx
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x34], edx
mov eax, dword [esp + 0x50]
mov dword [esi + 0x38], eax
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x3c], ecx
mov edx, dword [esp + 0x58]
mov dword [esi + 0x40], edx
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x38]
mov dword [esi + 0x44], eax
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret 0x4c

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

Disassembly:
push 0xffffffffffffffff
push 0x4b9468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [esp + 0x20]
mov ebx, dword [edi + 8]
sub esp, 0x48
mov dword [esp + 0x60], 0
mov esi, esp
mov dword [esp + 0x54], esp
mov dword [esi], eax
mov ecx, dword [esp + 0x6c]
mov dword [esi + 4], ecx
mov eax, dword [esp + 0x70]
lea edx, [esi + 8]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x74]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x78]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x7c]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x88]
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x84]
push ecx
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], eax
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x8c]
push ebx
mov dword [esi + 0x24], edx
mov eax, dword [esp + 0x94]
mov dword [esi + 0x28], eax
mov ecx, dword [esp + 0x98]
mov dword [esi + 0x2c], ecx
mov edx, dword [esp + 0x9c]
mov dword [esi + 0x30], edx
mov eax, dword [esp + 0xa0]
mov dword [esi + 0x34], eax
mov ecx, dword [esp + 0xa4]
mov dword [esi + 0x38], ecx
mov edx, dword [esp + 0xa8]
mov dword [esi + 0x3c], edx
mov eax, dword [esp + 0xac]
mov dword [esi + 0x40], eax
mov ecx, dword [esp + 0xb0]
mov dword [esi + 0x44], ecx
mov ecx, edi
call fcn.004803f0
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0x48
Function at 0x480b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b9573
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], 0x4c0d88
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov dword [ebx], 0x4c420c
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call sub.MFC42.DLL_CPtrArray::CPtrArray
or eax, 0xffffffff
push 0x4e1a38
mov dword [ebx], 0x4c41d0
push edi
mov dword [esi], 0x4c41e4
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 0x482d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b978b
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], 0x4c4220
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x482db0
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 0x482d77
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 0x482da1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x482db6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x482db6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x4bd504
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x4bd4f0
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x484240
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4b99b0
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], 0x4c2400
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
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
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x10], 0x4bd504
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 0x485270
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b9ae0
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], 0x4c0468
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.00480ce0
test eax, eax
je 0x4852ce
push 0xf
jmp 0x4852d0
push 4
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
call ebx
cmp dword [esp + 0x40], edi
jne 0x4852f1
push 0x3fe33333
push 0x33333333
push eax
call fcn.00481c00
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.00480cd0
test eax, eax
je 0x485349
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 0x48536d
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.00484240
jmp 0x485385
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.00484120
mov dword [esp + 0x10], 0x4bd504
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 0x4858b0
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 0x4858ed
xor ebx, ebx
push 2
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x4858ed
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4858fe
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x48590e
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call fcn.00485870
add esp, 4
cmp ax, 0x10
je 0x485924
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