joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4639b0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5d68a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0xa4], ebx
jne 0x463a96
mov eax, dword [edi + 0xc8]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.004d8c67
mov ecx, dword [eax + 4]
call fcn.004d4001
mov dword [esp + 0x18], ebx
mov esi, dword [edi + 0xbc]
call fcn.004550e0
test eax, eax
jne 0x463a3b
lea ecx, [esp + 0xf]
mov dword [edi + 0xbc], ebx
mov dword [esp + 0x18], 0xffffffff
call fcn.00405f90
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [edi + 0xa8]
cmp eax, ebx
mov dword [edi + 0xa0], ebx
je 0x463a58
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xa8], ebx
cmp dword [edi + 0xd0], ebx
push ebx
push ebx
push edi
jne 0x463a6a
push 0x4615b0
jmp 0x463a6f
push 0x463ec0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x14
mov dword [edi + 0xa8], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0xf]
mov dword [esp + 0x18], 0xffffffff
call fcn.00405f90
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x47c490
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d1e48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
cmp dword [edi], 0xffffffff
je 0x47c69b
mov esi, dword [ebp + 8]
cmp dword [esi + 0x3e70], 0
jne 0x47c4eb
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 0xa3b4]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
imul eax, eax, 0x64
cmp dword [eax + esi + 0x3e80], 0
lea ebx, [eax + esi + 0x3e7c]
je 0x47c526
cmp dword [ebx + 8], 0
je 0x47c526
mov ecx, dword [esi + 0x3e6c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push ebx
call eax
xor edx, edx
mov dword [ebx], edx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x60], edx
add dword [esi + 0x3e74], 0xffffffff
mov eax, dword [edi]
cmp eax, dword [esi + 0x3e78]
jne 0x47c574
add eax, 0xffffffff
mov ecx, eax
imul ecx, ecx, 0x64
cmp dword [ecx + esi + 0x3e7c], edx
lea ecx, [ecx + esi + 0x3e7c]
jne 0x47c56e
lea esp, [esp]
cmp eax, edx
jl 0x47c56e
sub ecx, 0x64
sub eax, 1
cmp dword [ecx], edx
je 0x47c560
mov dword [esi + 0x3e78], eax
mov edx, dword [esi + 0x3e4c]
shl edx, 4
lea eax, [edx + esi + 0xa288]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0047d930
mov dword [esp + 0x38], 0
mov eax, dword [esi + 0x3e78]
cmp eax, 0xffffffff
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
jne 0x47c5b1
mov eax, 1
jmp 0x47c5c7
test edi, edi
jne 0x47c5b9
xor ecx, ecx
jmp 0x47c5c0
mov ecx, ebx
sub ecx, edi
sar ecx, 4
xor edx, edx
div ecx
add eax, 1
add eax, 0xffffffff
cmp dword [esi + 0x3e54], eax
jle 0x47c5dc
mov dword [esi + 0x3e54], 0
mov eax, dword [esi + 0xa3e4]
test eax, eax
jl 0x47c611
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx]
jne 0x47c65d
call fcn.0047b970
mov eax, dword [esi + 0x20]
push 1
push 0
push eax
mov dword [esi + 0xa3e4], 0xffffffff
call dword [sym.imp.USER32.dll_InvalidateRect]
call fcn.0047b930
jmp 0x47c65d
test edi, edi
jne 0x47c619
xor eax, eax
jmp 0x47c620
mov eax, ebx
sub eax, edi
sar eax, 4
mov ecx, dword [esi + 0x3e54]
mov edx, dword [ebp + 0xc]
imul ecx, eax
mov eax, dword [edx]
sub eax, ecx
js 0x47c65d
test edi, edi
je 0x47c65d
sub ebx, edi
sar ebx, 4
cmp eax, ebx
jae 0x47c65d
mov edi, eax
lea esi, [esp + 0x1c]
call fcn.0047db80
push 1
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x3e50]
mov edi, dword [ebp + 0xc]
cmp edx, dword [edi]
jne 0x47c681
lea ebx, [esp + 0x14]
mov dword [edi], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
call fcn.0047be00
mov eax, dword [esp + 0x18]
push eax
mov dword [edi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x1c]
call fcn.00473c80
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47df60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cd738
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], vtable.CPen.0
mov dword [esp + 0x38], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x20]
call fcn.004dc2ec
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
call fcn.004dc3c4
mov ecx, dword [esi + 4]
push 0xd
mov dword [esp + 0x18], eax
call fcn.004db955
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x90]
cmp dword [eax + 8], 0
jle 0x47e0f5
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esi + 0x24], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esi + 4]
mov dword [esi + 0x28], edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
push eax
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.004dbd2e
mov ecx, dword [esi + 0x90]
xor edi, edi
cmp dword [ecx + 8], edi
jle 0x47e085
test edi, edi
mov eax, dword [esi + 0x90]
jl 0x47e0f5
cmp edi, dword [eax + 8]
jge 0x47e0f5
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
lea ebx, [edi*8]
mov edx, dword [eax + ebx]
add eax, ebx
mov eax, dword [eax + 4]
push eax
push edx
call fcn.004dba1e
mov eax, dword [esi + 0x90]
cmp edi, dword [eax + 8]
jge 0x47e0f5
mov eax, dword [eax + 4]
mov edx, dword [eax + ebx]
mov ecx, dword [esi + 4]
add eax, ebx
mov eax, dword [eax + 4]
push eax
push edx
call fcn.004dba1e
mov edx, dword [esi + 0x90]
add edi, 1
cmp edi, dword [edx + 8]
jl 0x47e020
mov ecx, dword [esi + 0x90]
lea eax, [edi - 1]
test eax, eax
jl 0x47e0f5
cmp eax, dword [ecx + 8]
jge 0x47e0f5
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*8]
lea eax, [ecx + eax*8]
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push edx
call fcn.004dba1e
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 4]
push edx
call fcn.004dc3c4
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 4]
push eax
call fcn.004db955
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.CGdiObject.0
call fcn.004dc33f
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.004d633a
Function at 0x47e630
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cd6d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], vtable.CPen.0
mov dword [esp + 0x38], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x28]
call fcn.004dc2ec
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x24]
push eax
call fcn.004dc3c4
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x20]
push eax
call edx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x10]
push eax
call fcn.004db927
mov esi, dword [ebx + 0x90]
mov eax, dword [esi + 8]
cmp eax, edi
mov dword [esp + 0x14], eax
jge 0x47e6d1
call fcn.004d633a
lea edi, [eax + 1]
call fcn.0047e880
mov eax, dword [esp + 0x14]
mov esi, dword [esi + 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esi + eax*8], ecx
mov dword [esi + eax*8 + 4], edx
mov eax, dword [ebx + 0x90]
mov ecx, dword [eax + 8]
add ecx, 0xffffffff
js 0x47e6cc
cmp ecx, dword [eax + 8]
jge 0x47e6cc
mov eax, dword [eax + 4]
lea eax, [eax + ecx*8]
mov ecx, dword [eax]
mov dword [ebx + 0x24], ecx
mov edx, dword [eax + 4]
mov ecx, dword [ebx + 4]
push 0xd
mov dword [ebx + 0x28], edx
call fcn.004db955
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 4]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004dbd2e
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 4]
push edx
push eax
call fcn.004dba1e
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 4]
call fcn.004dc3c4
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 4]
push edx
call fcn.004db927
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
mov edx, dword [esp + 0x20]
mov eax, dword [eax + 0x2c]
push edx
call eax
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.CGdiObject.0
call fcn.004dc33f
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47f070
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cd6b0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], vtable.CPen.0
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], vtable.CBrush.0
mov byte [esp + 0x48], 1
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 4]
push eax
call fcn.004db955
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov ebp, eax
mov eax, dword [edi + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x2c]
call fcn.004dc2ec
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [edi + 4]
call fcn.004dc3c4
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0xa8]
mov dword [esp + 0x34], edx
mov ebx, eax
mov eax, dword [edi + 0xac]
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ecx
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
push eax
lea ecx, [esp + 0x24]
call fcn.004dc2ec
lea esi, [esp + 0x20]
call fcn.00483c90
mov ecx, dword [edi + 4]
mov eax, esi
push eax
call fcn.004dc3c4
mov ecx, dword [edi + 0x10]
push ecx
mov ecx, dword [edi + 4]
mov esi, eax
call fcn.004db927
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x20]
push eax
call edx
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x2c]
push ecx
push eax
mov eax, dword [edi + 0x28]
push eax
mov eax, dword [edi + 0x24]
push eax
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.GDI32.dll_Ellipse]
mov ecx, dword [edi + 4]
push esi
call fcn.004dc3c4
mov ecx, dword [edi + 4]
push ebx
call fcn.004dc3c4
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [edi + 4]
call fcn.004db927
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov eax, dword [esp + 0x1c]
mov edx, dword [edx + 0x2c]
push eax
call edx
mov ecx, dword [edi + 4]
push ebp
call fcn.004db955
mov byte [esp + 0x48], 0
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], esi
call fcn.004dc33f
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], esi
call fcn.004dc33f
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f870
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cd4c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], vtable.CPen.0
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], vtable.CBrush.0
mov byte [esp + 0x40], 1
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x24]
call fcn.004dc2ec
mov ecx, dword [edi + 4]
lea eax, [esp + 0x20]
push eax
call fcn.004dc3c4
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0xac]
mov dword [esp + 0x2c], ecx
mov ebp, eax
mov eax, dword [edi + 0xa8]
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
push eax
lea ecx, [esp + 0x1c]
call fcn.004dc2ec
lea esi, [esp + 0x18]
call fcn.00483c90
mov ecx, dword [edi + 4]
mov edx, esi
push edx
call fcn.004dc3c4
mov ecx, dword [edi + 4]
mov esi, eax
mov eax, dword [edi + 0x10]
push eax
call fcn.004db927
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
mov ebx, eax
mov eax, dword [edi + 0x20]
push eax
call edx
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x2c]
push ecx
push eax
mov eax, dword [edi + 0x28]
push eax
mov eax, dword [edi + 0x24]
push eax
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.GDI32.dll_Ellipse]
mov ecx, dword [edi + 4]
push esi
call fcn.004dc3c4
mov ecx, dword [edi + 4]
push ebp
call fcn.004dc3c4
mov ecx, dword [edi + 4]
push ebx
call fcn.004db927
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x2c]
push eax
call edx
mov ecx, dword [edi + 4]
push 0xa
call fcn.004db955
mov byte [esp + 0x40], 0
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
call fcn.004dc33f
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], esi
call fcn.004dc33f
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47ff10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cd6b0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], vtable.CPen.0
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], vtable.CBrush.0
mov byte [esp + 0x48], 1
mov ecx, dword [edi + 4]
push 0xd
call fcn.004db955
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov ebp, eax
mov eax, dword [edi + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x2c]
call fcn.004dc2ec
mov ecx, dword [edi + 4]
lea eax, [esp + 0x28]
push eax
call fcn.004dc3c4
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0xac]
mov dword [esp + 0x34], ecx
mov ebx, eax
mov eax, dword [edi + 0xa8]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
push eax
lea ecx, [esp + 0x24]
call fcn.004dc2ec
lea esi, [esp + 0x20]
call fcn.00483c90
mov ecx, dword [edi + 4]
mov edx, esi
push edx
call fcn.004dc3c4
mov ecx, dword [edi + 4]
mov esi, eax
mov eax, dword [edi + 0x10]
push eax
call fcn.004db927
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x20]
push eax
call edx
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x1c]
push 0
push eax
mov eax, dword [edi + 0x2c]
push ecx
push eax
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.GDI32.dll_ExtFloodFill]
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 4]
push 1
push eax
mov eax, dword [edi + 0x2c]
push ecx
mov ecx, dword [edx + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_ExtFloodFill]
mov ecx, dword [edi + 4]
push esi
call fcn.004dc3c4
mov ecx, dword [edi + 4]
push ebx
call fcn.004dc3c4
mov edx, dword [esp + 0x18]
mov ecx, dword [edi + 4]
push edx
call fcn.004db927
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + 0x2c]
push edx
call eax
mov ecx, dword [edi + 4]
push ebp
call fcn.004db955
mov byte [esp + 0x48], 0
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], esi
call fcn.004dc33f
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], esi
call fcn.004dc33f
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x480600
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cd488
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], vtable.CPen.0
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x18]
call fcn.004dc2ec
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
call fcn.004dc3c4
mov ecx, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 4]
mov edi, eax
call fcn.004db955
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
mov ebx, eax
mov eax, dword [esi + 0x20]
push eax
call edx
mov ecx, dword [esi + 4]
mov ebp, eax
mov eax, dword [esi + 0x10]
push eax
call fcn.004db927
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 4]
push edx
push eax
lea edx, [esp + 0x24]
push edx
call fcn.004dbd2e
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 4]
push edx
push eax
call fcn.004dba1e
mov ecx, dword [esi + 4]
push edi
call fcn.004dc3c4
mov ecx, dword [esi + 4]
push ebx
call fcn.004db955
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
push eax
call fcn.004db927
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push ebp
call eax
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CGdiObject.0
call fcn.004dc33f
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x480ee0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cd488
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], vtable.CPen.0
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x18]
call fcn.004dc2ec
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
call fcn.004dc3c4
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
mov edi, eax
mov eax, dword [esi + 0x20]
push eax
call edx
mov ecx, dword [esi + 4]
mov ebx, eax
mov eax, dword [esi + 0x10]
push eax
call fcn.004db927
mov ecx, dword [esi + 4]
push 0xa
call fcn.004db955
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 4]
push edx
push eax
lea edx, [esp + 0x24]
push edx
call fcn.004dbd2e
mov eax, dword [esi + 0x2c]
cmp dword [esi + 0x24], eax
mov ecx, dword [esi + 0x30]
jne 0x480f96
cmp dword [esi + 0x28], ecx
je 0x480fa2
mov edx, ecx
mov ecx, dword [esi + 4]
push edx
push eax
call fcn.004dba1e
mov ecx, dword [esi + 4]
push edi
call fcn.004dc3c4
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
push eax
call fcn.004db927
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push ebx
call eax
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CGdiObject.0
call fcn.004dc33f
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x481620
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cd550
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], vtable.CPen.0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], vtable.CBrush.0
mov byte [esp + 0x58], 1
mov ecx, dword [esi + 4]
push 0xd
call fcn.004db955
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov ebp, eax
mov eax, dword [esi + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x34]
call fcn.004dc2ec
mov ecx, dword [esi + 4]
lea eax, [esp + 0x30]
push eax
call fcn.004dc3c4
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0xac]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xa8]
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
push eax
lea ecx, [esp + 0x2c]
call fcn.004dc2ec
mov ecx, dword [esi + 4]
lea edx, [esp + 0x28]
push edx
call fcn.004dc3c4
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x10]
push eax
call fcn.004db927
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x20]
push eax
call edx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x90]
cmp dword [eax + 8], ebx
jle 0x48180d
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esi + 0x24], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esi + 4]
mov dword [esi + 0x28], edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
push eax
push edx
lea eax, [esp + 0x40]
push eax
call fcn.004dbd2e
mov ecx, dword [esi + 0x90]
mov edi, 1
cmp dword [ecx + 8], edi
jle 0x48178a
nop
cmp edi, ebx
mov eax, dword [esi + 0x90]
jl 0x48180d
cmp edi, dword [eax + 8]
jge 0x48180d
mov edx, dword [eax + 4]
mov ecx, dword [esi + 4]
lea eax, [edx + edi*8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
push eax
push edx
call fcn.004dba1e
mov eax, dword [esi + 0x90]
add edi, 1
cmp edi, dword [eax + 8]
jl 0x481750
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esi + 4]
call fcn.004dc3c4
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
push edx
call fcn.004dc3c4
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 4]
push eax
call fcn.004db927
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [esp + 0x24]
mov edx, dword [edx + 0x2c]
push eax
call edx
mov ecx, dword [esi + 4]
push ebp
call fcn.004db955
mov byte [esp + 0x58], bl
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], esi
call fcn.004dc33f
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], esi
call fcn.004dc33f
mov eax, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.004d633a