joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42dd10
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x463818
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 0x42dd49
inc eax
mov dword [esi + 0x10], eax
jmp 0x42de5c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42dd5d
mov eax, 0xffffffc7
jmp 0x42de5e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42dd6e
cmp dword [esi + 8], eax
jne 0x42dd5d
cmp dword [esi + 8], eax
jne 0x42dd87
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42dd87
mov eax, 0xffffffc7
jmp 0x42de5e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42dd9b
push eax
mov ecx, ebx
call fcn.0042d540
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.00402550
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42ddcc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402570
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042ccb0
test eax, eax
mov dword [esp + 0x38], eax
je 0x42ddff
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5c6b60
call fcn.00402750
mov eax, dword [esp + 0x38]
jmp 0x42de5e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042db70
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42de43
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042db90
mov esi, eax
test esi, esi
jne 0x42de73
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042db70
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42de15
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5c6b60
call fcn.00402750
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], 0x5c6b60
call fcn.00402750
mov eax, esi
jmp 0x42de5e

Function at 0x430f20
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x430f80
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x430f80
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x430f80
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x430f80
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 0x430fc0
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 0x436e90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x463e48
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.0045d192
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00436830
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.0045d0c0
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.00459986
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.00459986
push 1
push 0
push 0
mov ecx, esi
call fcn.0045992e
push 1
push 0
push 1
mov ecx, esi
call fcn.0045992e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045d204
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x437010
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x463e68
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.0045d192
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00436830
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.0045d0c0
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 0x4370d4
cmp dword [esp + 0x40], 1
jne 0x4370d2
cmp ecx, eax
jge 0x4370d4
mov eax, ecx
cmp eax, 0xc8
jge 0x4370e0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00436e90
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.0045d204
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x437860
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x463ed3
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.00457da1
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.0045d43a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0045e956
test eax, eax
je 0x43797c
mov ecx, dword [esp + 0x3c]
call fcn.0045d467
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 0x437940
push edi
mov ecx, esi
call fcn.0045aacd
mov ecx, esi
call fcn.00437ae0
cmp dword [esp + 0x38], 1
jne 0x437975
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.0045ac08
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 0x43a390
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43a3c3
push esi
call fcn.0043d4a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43a3bc
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 0x43a449
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43a432
mov eax, dword [esi + 8]
test eax, eax
je 0x43a3e7
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 0x43a42e
cmp eax, 2
je 0x43a432
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43a3da
cmp eax, 3
je 0x43a40d
cmp eax, 1
jne 0x43a3da
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 0x43a3da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43a3da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043a470
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43a458
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043a470
add esp, 4
pop esi
ret

Function at 0x458b97
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x458bcf
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.00456c4e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00456c26
jmp 0x458bdb
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45a28a
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 0x45a2cc
call fcn.0045fd3c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45a2cc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45a2c3
xor eax, eax
jmp 0x45a2d4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045a2da
pop edi
pop esi
pop ebx
ret 4

Function at 0x46026c
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 0x46029a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4602b8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004601d2
jmp 0x4602b8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4602b8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004601d2
test edi, edi
mov eax, edi
jne 0x4602a2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4022f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [esp + 8]
push esi
sub eax, 0x110
je 0x402393
dec eax
push edi
jne 0x40238c
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov edi, dword [sym.imp.USER32.dll_EndDialog]
dec eax
je 0x402328
dec eax
je 0x402387
sub eax, 6
je 0x402387
pop edi
xor eax, eax
pop esi
ret 0x10
push 0x3e8
push esi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [0x42bab4], eax
lea eax, [esp + 0x10]
push eax
push str.SoftwareSysInternalsBlueScreen
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 4
push 0x42bab4
mov ecx, dword [esp + 0x18]
push 4
push 0
push str.DoDiskWrites
push ecx
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push esi
call edi
push 0
push esi
call edi
pop edi
xor eax, eax
pop esi
ret 0x10
lea eax, [esp + 0xc]
push eax
push str.SoftwareSysInternalsBlueScreen
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 4
mov edx, dword [esp + 0xc]
push ecx
push 0x42bab4
push 0
push 0
push str.DoDiskWrites
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [0x42bab4]
xor ecx, ecx
mov edx, dword [esp + 8]
test esi, esi
setne cl
push ecx
push 0x3e8
push edx
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov eax, 1
pop esi
ret 0x10

Function at 0x4024d0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
push 0
push 0
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call fcn.00402510
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x402507
push str.ddcopybitmap_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
pop esi
ret
Function at 0x402510
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x90
push esi
push edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 0xc], 0
test edi, edi
je 0x402649
mov esi, dword [esp + 0x9c]
test esi, esi
je 0x402649
mov eax, dword [esi]
push ebx
push ebp
push esi
call dword [eax + 0x6c]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
test ebp, ebp
jne 0x40255f
push str.createcompatible_dc_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x1c]
push ecx
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edi, dword [esp + 0xb8]
test edi, edi
jne 0x402584
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0xbc]
test ebx, ebx
jne 0x402593
mov ebx, dword [esp + 0x24]
mov edx, dword [esi]
lea eax, [esp + 0x34]
push eax
push esi
mov dword [esp + 0x3c], 0x6c
mov dword [esp + 0x40], 6
call dword [edx + 0x58]
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
push esi
call dword [ecx + 0x44]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x402633
mov eax, dword [esp + 0xac]
test eax, eax
je 0x4025e9
push 0
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
push ecx
call dword [sym.imp.GDI32.dll_RealizePalette]
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb0]
push 0xcc0020
mov ecx, dword [esp + 0x14]
push ebx
push edi
push 0
push 0
push ebp
push ebx
push edi
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x402628
mov edx, dword [esp + 0x10]
push 0
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x68]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x90
ret
pop edi
mov eax, 0x80004005
pop esi
add esp, 0x90
ret
Function at 0x402660
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
sub esp, 0x43c
push ebx
push esi
push edi
xor esi, esi
lea edi, [esp + 0x49]
mov eax, esi
add edi, 4
sar eax, 5
and eax, 7
mov ecx, eax
shl ecx, 8
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, esi
sar eax, 2
and eax, 7
mov byte [edi - 5], dl
mov ecx, eax
shl ecx, 8
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
mov eax, esi
sar edx, 2
mov ecx, edx
and eax, 3
shr ecx, 0x1f
add edx, ecx
mov ecx, eax
shl ecx, 8
sub ecx, eax
mov eax, 0x55555556
mov byte [edi - 4], dl
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
inc esi
mov byte [edi - 3], dl
mov byte [edi - 2], 0
cmp esi, 0x100
jl 0x40266f
mov esi, dword [esp + 0x454]
test esi, esi
je 0x402827
mov edi, dword [esp + 0x450]
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4027a7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40272e
push str.lock_resource_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
test esi, esi
lea edx, [eax + esi]
je 0x40275a
cmp eax, 0x28
jb 0x40275a
mov cx, word [esi + 0xe]
cmp cx, 8
ja 0x40275a
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x402756
mov ebx, 1
shl ebx, cl
jmp 0x40275c
mov ebx, esi
jmp 0x40275c
xor ebx, ebx
test ebx, ebx
jle 0x402827
push ebp
lea esi, [esp + 0x4c]
lea edi, [esp + 0x4d]
lea ebp, [esp + 0x4e]
sub esi, edx
sub edi, edx
lea eax, [edx + 1]
sub ebp, edx
lea ecx, [esp + 0x4c]
mov edx, ebx
mov bl, byte [eax + 1]
add eax, 4
mov byte [ecx], bl
mov bl, byte [eax - 4]
mov byte [esi + eax - 4], bl
mov bl, byte [eax - 5]
mov byte [edi + eax - 4], bl
mov byte [eax + ebp - 4], 0
add ecx, 4
dec edx
jne 0x402780
pop ebp
jmp 0x402827
push 0
push esi
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x402827
mov edi, dword [sym.imp.KERNEL32.dll__lread]
lea ecx, [esp + 0x38]
push 0xe
push ecx
push esi
call edi
lea edx, [esp + 0x10]
push 0x28
push edx
push esi
call edi
lea eax, [esp + 0x48]
push 0x400
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [esp + 0x10], 0x28
je 0x4027f0
xor edx, edx
jmp 0x40280d
mov ecx, dword [esp + 0x1e]
cmp cx, 8
jbe 0x4027fe
xor edx, edx
jmp 0x40280d
mov edx, dword [esp + 0x30]
test edx, edx
jne 0x40280f
mov edx, 1
shl edx, cl
test edx, edx
jle 0x402827
lea eax, [esp + 0x4a]
mov esi, edx
mov dl, byte [eax]
mov cl, byte [eax - 2]
mov byte [eax - 2], dl
mov byte [eax], cl
add eax, 4
dec esi
jne 0x402817
mov eax, dword [esp + 0x44c]
lea edx, [esp + 0xc]
push 0
push edx
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push 4
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x43c
ret
Function at 0x4030c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c2d8
push 0x406654
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
push 2
mov eax, dword [ebp + 0xc]
push eax
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4031e9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
shr eax, 0x10
cmp eax, 0xa28
jb 0x40318e
mov dword [ebp - 4], 0
mov edx, 1
mov cl, byte [esi + 0xe]
shl edx, cl
mov eax, dword [esi]
lea ecx, [eax + edx*4]
add ecx, dword [esi + 0x14]
push ecx
call fcn.00406829
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, 1
mov cl, byte [esi + 0xe]
shl edx, cl
mov ecx, dword [esi]
lea ecx, [ecx + edx*4]
add ecx, dword [esi + 0x14]
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]
mov dword [ebp - 4], 0xffffffff
jmp 0x40318c
mov esi, eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.00402fc0
add esp, 8
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test eax, eax
je 0x4031bf
push 0
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0
push esi
mov edx, dword [esi]
mov eax, dword [ebp - 0x34]
lea ecx, [edx + eax*4]
add ecx, esi
push ecx
push 4
push esi
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405e62
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebp
xor ebp, ebp
cmp dword [0x42bb64], ebp
jne 0x405f31
cmp dword [0x42bb60], ebp
jne 0x405f31
cmp dword [0x42bb6c], ebp
push esi
je 0x405f1f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x42bb88]
cmp esi, ebp
je 0x405eab
mov edx, dword [0x42bb8c]
mov ecx, eax
sub ecx, edx
cmp ecx, esi
jb 0x405f1f
mov ecx, dword [0x42ade4]
cmp ecx, 0xffffffff
je 0x405ebf
sub eax, ecx
cmp eax, 0xc8
jb 0x405f29
push edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 3
mov esi, 0x113
push esi
push esi
push ebx
lea eax, [esp + 0x1c]
push eax
mov dword [0x42bb64], 1
call edi
push 3
push esi
push esi
push ebx
lea eax, [esp + 0x1c]
push eax
call edi
push ebp
push ebp
push 0x8000
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebp
mov dword [0x42bb60], eax
mov dword [0x42bb64], ebp
pop edi
jne 0x405f12
push ebp
call dword [sym.imp.USER32.dll_SetCursor]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x42ade4], eax
jmp 0x405f29
mov dword [0x42bb60], 1
mov eax, dword [0x42bb60]
pop esi
jmp 0x405f33
xor eax, eax
pop ebp
add esp, 0x1c
ret
Function at 0x405f6f
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp dword [0x42bb5c], esi
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
jne 0x405fe8
cmp dword [0x42bb60], esi
jne 0x405fe8
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x10
je 0x40611d
cmp ecx, 0x8000
je 0x4060fd
cmp dword [0x42bb64], esi
jne 0x405fe8
mov eax, 0x104
cmp ecx, eax
ja 0x406038
je 0x406075
cmp ecx, 0x18
je 0x40602a
cmp ecx, 0x1c
je 0x406025
cmp ecx, 0x20
je 0x406016
cmp ecx, 0x48
je 0x405fde
cmp ecx, 0x100
jmp 0x405fe2
cmp dword [ebp + 0x10], 3
je 0x406075
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x42bb74]
jne 0x406145
cmp eax, esi
je 0x406145
push esi
push esi
push 0x10
push ebx
call edi
xor eax, eax
cmp dword [0x42bb6c], esi
setne al
jmp 0x406153
push esi
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
inc eax
jmp 0x406153
cmp dword [ebp + 0x10], esi
jmp 0x405fe2
cmp dword [ebp + 0x10], esi
je 0x405fe8
push esi
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x405fe8
mov eax, ecx
sub eax, 0x200
je 0x4060a7
dec eax
je 0x406075
sub eax, 3
je 0x406075
sub eax, 3
je 0x406075
sub eax, 0x11
jne 0x405fe8
cmp dword [ebp + 0x10], 6
jb 0x406075
cmp dword [ebp + 0x10], 8
jbe 0x40606b
cmp dword [ebp + 0x10], 0xa
je 0x406081
cmp dword [ebp + 0x10], 0x12
jne 0x406075
test byte [ebp + 0x14], 1
jne 0x405fe8
push esi
push esi
push 0x10
push ebx
call edi
jmp 0x405fe8
lea eax, [ebp - 0x14]
push eax
call sub.KERNEL32.dll_GetSystemPowerStatus
test eax, eax
je 0x406093
mov al, byte [ebp - 0x14]
jmp 0x406095
or al, 0xff
cmp al, byte [0x42ade0]
mov byte [0x42ade0], al
jne 0x406075
jmp 0x405fe8
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 8]
sub ecx, dword [0x42bed8]
je 0x4060c2
cmp ecx, esi
jge 0x4060c2
neg ecx
mov eax, dword [ebp - 4]
sub eax, dword [0x42bedc]
je 0x4060d3
cmp eax, esi
jge 0x4060d3
neg eax
add eax, ecx
cmp eax, dword [0x42addc]
jbe 0x405fe8
push esi
push esi
push 0x10
push ebx
call edi
mov eax, dword [ebp - 8]
mov dword [0x42bed8], eax
mov eax, dword [ebp - 4]
mov dword [0x42bedc], eax
jmp 0x405fe8
cmp dword [0x42bb84], esi
je 0x405fe8
mov eax, dword [0x42bb6c]
cmp eax, esi
je 0x40601d
push dword [ebp + 8]
call eax
jmp 0x406153
cmp dword [0x42bb84], esi
je 0x405fe8
call fcn.00405e62
test eax, eax
jne 0x405fe8
push 0x42bed8
call dword [sym.imp.USER32.dll_GetCursorPos]
xor eax, eax
jmp 0x406153
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcA]
pop edi
pop esi
pop ebx
leave
ret 0x10