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

Disassembly:
push 0xffffffffffffffff
push 0x47e538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0047785f
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00450e90
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0047778d
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00474051
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00474051
push 1
push 0
push 0
mov ecx, esi
call fcn.00473ff9
push 1
push 0
push 1
mov ecx, esi
call fcn.00473ff9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004778d1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x451670
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47e558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0047785f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00450e90
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0047778d
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x451734
cmp dword [esp + 0x40], 1
jne 0x451732
cmp ecx, eax
jge 0x451734
mov eax, ecx
cmp eax, 0xc8
jge 0x451740
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004514f0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004778d1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x451eb0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47e5c3
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.0047246f
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.00477b07
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00479023
test eax, eax
je 0x451fcc
mov ecx, dword [esp + 0x3c]
call fcn.00477b34
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 0x451f90
push edi
mov ecx, esi
call fcn.0047519c
mov ecx, esi
call fcn.00452130
cmp dword [esp + 0x38], 1
jne 0x451fc5
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.004752d7
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 0x4549e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x454a13
push esi
call fcn.00457ad0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x454a0c
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 0x454a99
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x454a82
mov eax, dword [esi + 8]
test eax, eax
je 0x454a37
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 0x454a7e
cmp eax, 2
je 0x454a82
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x454a2a
cmp eax, 3
je 0x454a5d
cmp eax, 1
jne 0x454a2a
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 0x454a2a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x454a2a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00454ac0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x454aa8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00454ac0
add esp, 4
pop esi
ret

Function at 0x473264
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47329c
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.0047131b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004712f3
jmp 0x4732a8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x474959
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 0x47499b
call fcn.0047a409
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47499b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x474992
xor eax, eax
jmp 0x4749a3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004749a9
pop edi
pop esi
pop ebx
ret 4

Function at 0x47a939
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 0x47a967
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47a985
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047a89f
jmp 0x47a985
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47a985
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047a89f
test edi, edi
mov eax, edi
jne 0x47a96f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x437fb0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x478d08
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.004328b0
test eax, eax
je 0x4380b8
lea ecx, [esp + 0xc]
call fcn.004090f0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.004328b0
mov ecx, eax
call fcn.00430060
test eax, eax
je 0x43809f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x43809f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x43809f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.004092f0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x438081
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x43809f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x5aa390]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x57d660
call fcn.004092f0
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x43ae20
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x478f98
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x43ae59
inc eax
mov dword [esi + 0x10], eax
jmp 0x43af6c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43ae6d
mov eax, 0xffffffc7
jmp 0x43af6e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43ae7e
cmp dword [esi + 8], eax
jne 0x43ae6d
cmp dword [esi + 8], eax
jne 0x43ae97
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x43ae97
mov eax, 0xffffffc7
jmp 0x43af6e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43aeab
push eax
mov ecx, ebx
call fcn.0043a650
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004090f0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43aedc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00409110
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00439dc0
test eax, eax
mov dword [esp + 0x38], eax
je 0x43af0f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x57d660
call fcn.004092f0
mov eax, dword [esp + 0x38]
jmp 0x43af6e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0043ac80
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x43af53
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0043aca0
mov esi, eax
test esi, esi
jne 0x43af83
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0043ac80
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x43af25
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x57d660
call fcn.004092f0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x57d660
call fcn.004092f0
mov eax, esi
jmp 0x43af6e

Function at 0x43e0a0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x43e100
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x43e100
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x43e100
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x43e100
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x43e140
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4053b0
Capabilities:
Check os version

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
lea ebp, [esi + 0xa8]
push str.Unknown
mov ecx, ebp
mov dword [esi + 8], edi
call sub.MFC42.DLL_CString::operator_1
lea ebx, [esi + 0xc]
mov dword [esi + 4], edi
mov ecx, 0x27
xor eax, eax
mov edi, ebx
push ebx
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebx], 0x9c
call edi
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4053ff
push ebx
mov dword [ebx], 0x94
call edi
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
and eax, 0xffff
sub ecx, 0
mov dword [esi + 4], eax
je 0x40558e
dec ecx
je 0x40550d
dec ecx
je 0x405431
push str.Undetermined
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
jmp 0x4055a1
mov eax, dword [esi + 0x10]
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x405440
jmp dword [eax*4 + 0x4055c8]
push str.WinNT_3.51
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 1
jmp 0x4055a1
push str.WinNT4
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 2
jmp 0x4055a1
mov eax, dword [esi + 0x14]
sub eax, 0
je 0x4054dd
dec eax
je 0x405493
push str.Undetermined
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
jmp 0x4055a1
push str.WinXP
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x10]
mov dword [esi + 8], 4
test eax, eax
je 0x4055a1
test byte [esi + 0xa5], 2
je 0x4054cc
push str._Home_Edition
mov ecx, ebp
call fcn.0042f390
jmp 0x4055a1
push str._Professional
mov ecx, ebp
call fcn.0042f390
jmp 0x4055a1
push str.Win2000
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 3
jmp 0x4055a1
push str.Windows__Vista
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 0xa
jmp 0x4055a1
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x405579
cmp ecx, 0xa
je 0x405541
cmp ecx, 0x5a
je 0x40552c
push str.Undetermined
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
jmp 0x4055a1
push str.WinME
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 8
jmp 0x4055a1
cmp eax, 0x7ce
jne 0x40555d
push str.Win98
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 6
jmp 0x4055a1
cmp eax, 0x8ae
jb 0x4055a1
push str.Win98SE
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 7
jmp 0x4055a1
push str.Win95
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 5
jmp 0x4055a1
push str.Win31
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 8], 9
mov al, byte [esi + 0x20]
add esi, 0x20
test al, al
je 0x4055bf
push 0x43f114
mov ecx, ebp
call fcn.0042f390
push esi
mov ecx, ebp
call fcn.0042f390
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x430608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x436018
mov dword [esp + 0x18], 0
call fcn.00405b60
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
mov edi, dword [esi + 0x2c]
push eax
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::Attach
test eax, eax
jne 0x405a99
mov dword [esp + 8], 0x435b40
lea ecx, [esp + 8]
mov dword [esp + 0x18], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x3c]
push ecx
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_OffsetRgn]
test eax, eax
jne 0x405adc
mov dword [esp + 8], 0x435b40
lea ecx, [esp + 8]
mov dword [esp + 0x18], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
neg eax
sbb eax, eax
and eax, edx
test esi, esi
jne 0x405af2
xor ecx, ecx
jmp 0x405af5
mov ecx, dword [esi + 4]
push 3
push eax
push ecx
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.GDI32.dll_CombineRgn]
test eax, eax
mov dword [esp + 8], 0x435b40
jne 0x405b33
lea ecx, [esp + 8]
mov dword [esp + 0x18], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 8]
mov dword [esp + 0x18], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x10]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x405ba0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [ecx + 0x14]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
cmp esi, edx
jne 0x405bb8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov eax, dword [ecx + 0x10]
mov edi, eax
imul eax, edx
imul edi, esi
mov esi, dword [esp + 0x18]
lea ebx, [edi + esi]
cmp ebx, eax
jl 0x405bd7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov eax, dword [ecx + 0x24]
mov edx, esi
lea edi, [eax + ebx*4]
mov eax, dword [esp + 0x1c]
cmp esi, eax
jge 0x405c17
mov ebp, dword [ecx + 0x28]
cmp ebp, dword [edi]
jne 0x405bce
inc edx
add edi, 4
cmp edx, eax
jl 0x405bea
cmp esi, eax
jge 0x405c17
sub eax, esi
lea edx, [ebx*4]
mov esi, eax
mov eax, dword [ecx + 0x24]
add eax, edx
add edx, 4
mov ebx, dword [eax]
xor ebx, 1
dec esi
mov dword [eax], ebx
jne 0x405c05
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
Function at 0x406760
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x430840
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebx
push esi
push edi
push eax
push 1
push 0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CPen::CPen
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], 0
push ecx
push 1
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CPen::CPen
mov edi, dword [esp + 0x34]
lea edx, [esp + 0x14]
push edx
mov ecx, edi
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CDC::SelectObject_1
mov esi, dword [esp + 0x38]
mov ebx, eax
lea edx, [esp + 0x1c]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
dec eax
push eax
push ecx
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
dec eax
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject_1
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
dec edx
dec eax
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esi + 0xc]
mov edx, dword [esi]
dec ecx
dec edx
push ecx
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
push ebx
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject_1
mov esi, 0x435b40
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0xc], 0x435b68
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], 3
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
Function at 0x409440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4309c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [eax + 8]
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 0xc]
test edi, edi
je 0x409548
mov ecx, dword [ebp + 0xc]
mov eax, ecx
and ecx, 0xf
shr eax, 4
inc eax
mov edi, ecx
mov ecx, dword [ebp + 8]
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x409548
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409548
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409548
test edi, edi
jle 0x4094d1
xor edx, edx
dec edi
mov dx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4094c5
xor edi, edi
mov di, word [esi]
add esi, 2
test edi, edi
jle 0x409548
lea eax, [edi + edi + 2]
mov dword [ebp - 4], 0
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
push edi
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov word [ebx + edi*2], 0
push ebx
call fcn.0042f5be
test ebx, ebx
je 0x409522
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409b20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x430a98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CClientDC::CClientDC
mov eax, dword [esi + 0x5c]
mov dword [esp + 0x28], 0
test eax, eax
je 0x409b5e
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esi + 0x44]
lea edx, [esp + 4]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], ecx
mov esi, dword [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
mov dword [esi + 4], ecx
lea ecx, [esp + 0xc]
call fcn.0042f3f6
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x40a3d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x430c0a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
lea ecx, [esi + 0x20]
mov dword [esp + 8], esi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x24]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 6
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x40]
mov byte [esp + 0x14], 7
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 8
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 9
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 0xa
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x50]
mov byte [esp + 0x14], 0xb
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x54]
mov byte [esp + 0x14], 0xc
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x14], 0xd
mov dword [esi], 0x436560
call fcn.0040a610
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret