joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f7610
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.004f7c20
add esp, 8
test al, al
je 0x4f7635
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4f7635
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x4f7c20
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4f90d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4f90fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4f90fb
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x54fe3b6d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2fd314cc
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401aa5
Capabilities:
Check for peb beingdebugged flag

Disassembly:
jmp 0x439e20
push 0xffffffffffffffff
push 0x648830
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], 0x66ed50
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_1
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_1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x10], 0x66ea90
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 0x403904
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x43ee00
push 0xffffffffffffffff
push 0x648c9b
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], 0x66ed68
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x43ee90
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 0x43ee57
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 0x43ee81
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x43ee96
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x43ee96
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x66ea90
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x66e8a8
mov dword [esp + 0x1c], 0xffffffff
call fcn.0063d956
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x403bf2
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x4dd830
push 0xffffffffffffffff
push 0x654e48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
call fcn.0041093d
mov esi, eax
xor ebx, ebx
xor eax, eax
mov ecx, esi
cmp dword [esi + 0x183d], ebx
sete al
push eax
call fcn.0040e7a0
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x4dd883
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov eax, dword [esi + 0x582]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 0x18], eax
jle 0x4dd982
push ebp
push ebx
mov ecx, esi
call fcn.00410d89
xor edi, edi
mov dword [esp + 0x18], eax
cmp eax, edi
jle 0x4dd974
lea ecx, [esp + 0x20]
call fcn.0063d896
mov dword [esp + 0x20], 0x66eaa8
mov eax, dword [esp + 0x14]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x3c], edi
jle 0x4dd8fd
mov eax, dword [esi + 0x183d]
xor ecx, ecx
test eax, eax
sete cl
push ecx
push edi
push ebx
mov ecx, esi
call fcn.004087a1
mov ecx, dword [eax + 0x1c8]
test ecx, ecx
jne 0x4dd8fb
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x4dd8cf
jmp 0x4dd8fd
mov ebp, edi
mov eax, dword [esi + 0x183d]
xor edx, edx
test eax, eax
sete dl
push edx
push ebp
push ebx
mov ecx, esi
call fcn.004087a1
mov edi, eax
push 0
lea eax, [esp + 0x24]
push 0
push eax
mov eax, dword [esi + 0x183d]
xor ecx, ecx
test eax, eax
sete cl
push ecx
push ebp
push ebx
mov ecx, esi
call fcn.00404124
mov ecx, eax
call dword [sym.imp.zmathdll.dll_public:_int___thiscall_ZPiece::GetMarkingPiece_class_CTypedPtrArray_class_CPtrArray__class_ZPiece_____int__int_]
test eax, eax
jle 0x4dd963
cmp dword [esp + 0x18], 0x3e8
jl 0x4dd958
mov ecx, dword [edi + 0x1c0]
test ecx, ecx
jne 0x4dd958
add eax, eax
cdq
idiv dword [edi + 0x1c4]
add dword [esp + 0x10], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jl 0x4dd89a
pop ebp
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x404f1b
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
jmp 0x43b6c0
push 0xffffffffffffffff
push 0x6489f0
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], 0x66eadc
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.00406ff0
test eax, eax
je 0x43b71e
push 0xf
jmp 0x43b720
push 4
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
call ebx
cmp dword [esp + 0x40], edi
jne 0x43b741
push 0x3fe33333
push 0x33333333
push eax
call fcn.0040f4b1
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.00410cf3
test eax, eax
je 0x43b799
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 0x43b7bd
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.00401aa5
jmp 0x43b7d5
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.004058d0
mov dword [esp + 0x10], 0x66ea90
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 0x4050a1
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x433d10
push 0xffffffffffffffff
push 0x6481c3
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], 0x66ed2c
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.0063d896
mov dword [ebx], 0x66ed14
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.0063d896
or eax, 0xffffffff
push 0x6bdc98
mov dword [ebx], 0x66eccc
push edi
mov dword [esi], 0x66ece4
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 0x4062cb
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
jmp 0x6385b0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
test esi, esi
push edi
jne 0x6385c1
mov esi, 0x6bdc68
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ebp
push ecx
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6385f2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
cmp eax, 2
jne 0x638620
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x638620
pop edi
mov byte [ebp], al
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14

Function at 0x40657d
Capabilities:
Write file on windows

Disassembly:
jmp 0x5c15f0
mov eax, dword [esp + 0xc]
sub esp, 0xc
test eax, eax
push esi
mov esi, ecx
jne 0x5c1608
or eax, 0xffffffff
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esi + 0x5be]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebp
test eax, eax
push edi
jne 0x5c162b
push 0
push 0
push 1
push 0
call ebx
mov dword [esi + 0x5be], eax
lea edi, [esi + 0x5aa]
xor eax, eax
mov ecx, edi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
push eax
push eax
push 1
push eax
mov dword [ecx + 0x10], eax
call ebx
mov edx, dword [esi + 0x5be]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [esi + 0x5ba], eax
mov esi, dword [esp + 0x24]
mov dword [esp + 0x10], 0
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push edi
push eax
mov eax, dword [esp + 0x30]
lea edx, [ebx + ecx]
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5c16d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x5c16fe
push 0x1388
lea ecx, [esp + 0x18]
push 0
push ecx
push 2
call ebp
cmp eax, 0x102
ja 0x5c16fe
je 0x5c170b
sub eax, 0
jne 0x5c16e6
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x10]
push 1
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x5c16f8
mov eax, dword [esp + 0x10]
sub esi, eax
add ebx, eax
test esi, esi
jbe 0x5c171a
jmp 0x5c1672
dec eax
jne 0x5c16fe
pop edi
pop ebp
pop ebx
mov eax, 0xfffffffd
pop esi
add esp, 0xc
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebp
pop ebx
or eax, 0xffffffff
pop esi
add esp, 0xc
ret 0xc
pop edi
pop ebp
pop ebx
mov eax, 0xfffffffe
pop esi
add esp, 0xc
ret 0xc
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0xc
ret 0xc
Function at 0x407c39
Capabilities:
Read file on windows

Disassembly:
jmp 0x455b40
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x455b4d
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0xa4]
mov edx, dword [esi + 0x80b8]
mov ecx, eax
mov dword [esi + 0x80bc], eax
sub ecx, edx
js 0x455b6d
cmp ecx, dword [esi + 0x80b4]
jl 0x455ba7
push 0
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [esi + 4]
lea edx, [esi + 0xb4]
push ecx
push 0x8000
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov dword [esi + 0x80b4], eax
mov eax, dword [esi + 0xa4]
add esp, 0x1c
mov dword [esi + 0x80b8], eax
mov eax, 1
pop esi
ret

Function at 0x407e05
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x5b8800
push 0xffffffffffffffff
push 0x662758
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.0063d896
mov dword [esp + 0xc], 0x66eaa8
xor edi, edi
lea eax, [esp + 0xc]
push edi
push eax
mov ecx, esi
mov dword [esp + 0x30], edi
call fcn.004039d1
mov ebx, eax
xor esi, esi
cmp ebx, edi
jle 0x5b888a
mov ecx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x34]
test edi, edi
je 0x5b8870
mov eax, dword [ecx + esi*4]
fld dword [eax + 0x34]
fabs
fld dword [edi + 0x34]
fabs
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x5b8884
mov ecx, dword [ecx + esi*4]
push ebp
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x5b8884
mov edi, dword [ecx + esi*4]
inc esi
cmp esi, ebx
jl 0x5b8852
pop ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4084b3
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x6048a0
push 0xffffffffffffffff
push 0x668708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CClientDC::CClientDC
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], 0
call sub.MFC42.DLL_CDC::SaveDC
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00404d9f
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.0040ba64
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CDC::RestoreDC
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x20]
push eax
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edi, dword [eax + 4]
mov dword [esp + 0x14], edi
mov ebx, dword [eax + 8]
mov dword [esp + 0x18], ebx
mov ebp, dword [eax + 0xc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
mov eax, 0x51eb851f
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x10], edx
imul ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x51eb851f
mov dword [esp + 0x18], edx
imul edi
sar edx, 5
mov ecx, edx
mov eax, 0x51eb851f
shr ecx, 0x1f
add edx, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edx
imul ebp
sar edx, 5
mov eax, edx
push ecx
shr eax, 0x1f
add edx, eax
mov ecx, esi
mov dword [esp + 0x20], edx
call fcn.00403f49
push 3
lea edx, [esp + 0x14]
push 3
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 1
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0063d950
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4

Function at 0x408869
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x6143b0
push 0xffffffffffffffff
push 0x669148
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
push esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CClientDC::CClientDC
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CDC::SaveDC
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.00404d9f
mov esi, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 4]
mov ecx, dword [eax]
push 2
mov dword [esp + 8], ecx
push 0x6ae1e8
mov edx, dword [eax + 4]
lea eax, [esp + 0xc]
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, esi
call dword [sym.imp.zmathdll.dll_public:_class_CSize___thiscall_ZPiece::DrawToX_class_CDC___class_CPoint___unsigned_long_int__int_]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::RestoreDC
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.0063d950
mov ecx, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x40902f
Capabilities:
Read file on windows

Disassembly:
jmp 0x455580
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
mov byte [esp + 0x13], 0x20
mov eax, dword [esi + 0x80bc]
mov ecx, dword [esi + 0xa0]
cmp eax, ecx
jge 0x455631
mov ebx, dword [esp + 0x1c]
sub eax, dword [esi + 0x80b8]
mov al, byte [eax + esi + 0xb4]
cmp al, 0xd
je 0x455625
cmp al, 0xa
je 0x455625
cmp edi, 0x100
jge 0x4555cf
mov byte [edi + ebx], al
inc edi
mov eax, dword [esi + 0x80bc]
mov ecx, dword [esi + 0x80b8]
mov edx, dword [esi + 0x80b4]
inc eax
mov dword [esi + 0x80bc], eax
sub eax, ecx
cmp eax, edx
jl 0x455613
mov eax, dword [esi + 4]
add edx, ecx
push eax
push 0x8000
lea ecx, [esi + 0xb4]
push 1
push ecx
mov dword [esi + 0x80b8], edx
call ebp
add esp, 0x10
mov dword [esi + 0x80b4], eax
mov eax, dword [esi + 0x80bc]
mov ecx, dword [esi + 0xa0]
cmp eax, ecx
jl 0x4555ae
jmp 0x455631
cmp al, 0xa
mov byte [edi + ebx], 0
jne 0x455631
mov byte [esp + 0x13], al
mov eax, dword [esi + 0x80bc]
mov ecx, dword [esi + 0x80b8]
mov edx, dword [esi + 0x80b4]
inc eax
mov dword [esi + 0x80bc], eax
sub eax, ecx
cmp eax, edx
jl 0x455675
add edx, ecx
lea eax, [esi + 0xb4]
mov dword [esi + 0x80b8], edx
mov edx, dword [esi + 4]
push edx
push 0x8000
push 1
push eax
call ebp
add esp, 0x10
mov dword [esi + 0x80b4], eax
mov eax, dword [esi + 0x80bc]
mov ecx, dword [esi + 0x80b8]
mov edx, eax
sub edx, ecx
cmp byte [edx + esi + 0xb4], 0xa
jne 0x4556ce
cmp byte [esp + 0x13], 0xa
je 0x4556ce
mov edx, dword [esi + 0x80b4]
inc eax
mov dword [esi + 0x80bc], eax
sub eax, ecx
cmp eax, edx
jl 0x4556ce
mov eax, dword [esi + 4]
add edx, ecx
push eax
push 0x8000
lea ecx, [esi + 0xb4]
push 1
push ecx
mov dword [esi + 0x80b8], edx
call ebp
add esp, 0x10
mov dword [esi + 0x80b4], eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40912e
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x5f1030
push 0xffffffffffffffff
push 0x667118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.0063d896
mov dword [esp + 0xc], 0x66eaa8
xor edi, edi
lea eax, [esp + 0xc]
push edi
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.004039d1
mov esi, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
jle 0x5f1098
mov edx, esi
mov ebx, dword [edx]
cmp dword [ebx + 0x2a4], edi
je 0x5f1095
inc ecx
add edx, 4
cmp ecx, eax
jge 0x5f1098
jmp 0x5f1081
inc edi
jmp 0x5f1079
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CPtrArray::CPtrArray
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x40ba8c
Capabilities:
Check os version

Disassembly:
jmp 0x4338a0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x433952
push 0x94
mov ebx, 1
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x4339ca
mov ecx, 0x25
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x433906
push esi
mov ebx, 5
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
ret
cmp eax, 5
jne 0x4339c0
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x43392b
push esi
mov ebx, 6
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
ret
cmp eax, 5
jne 0x4339c0
cmp dword [esi + 8], ebx
jne 0x4339c0
push esi
mov ebx, 7
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
ret
cmp al, 4
jae 0x43395c
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x94
mov ebx, 2
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x4339ca
mov ecx, 0x25
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x4339c0
cmp dword [esi + 8], 0xa
jne 0x4339b0
push esi
mov ebx, 3
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
ret
cmp eax, 4
jne 0x4339c0
cmp dword [esi + 8], 0x5a
jne 0x4339c0
mov ebx, 4
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebx
ret