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

Disassembly:
push 0xffffffffffffffff
push 0x47fc78
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.00478f9f
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004436f0
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.00478ecd
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.00475791
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.00475791
push 1
push 0
push 0
mov ecx, esi
call fcn.00475739
push 1
push 0
push 1
mov ecx, esi
call fcn.00475739
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00479011
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x443ed0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47fc98
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.00478f9f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004436f0
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.00478ecd
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 0x443f94
cmp dword [esp + 0x40], 1
jne 0x443f92
cmp ecx, eax
jge 0x443f94
mov eax, ecx
cmp eax, 0xc8
jge 0x443fa0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00443d50
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.00479011
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x444720
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47fd03
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.00473bb1
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.00479247
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047a763
test eax, eax
je 0x44483c
mov ecx, dword [esp + 0x3c]
call fcn.00479274
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 0x444800
push edi
mov ecx, esi
call fcn.004768dc
mov ecx, esi
call fcn.004449a0
cmp dword [esp + 0x38], 1
jne 0x444835
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.00476a17
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 0x447270
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4472a3
push esi
call fcn.0044a360
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44729c
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 0x447329
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x447312
mov eax, dword [esi + 8]
test eax, eax
je 0x4472c7
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 0x44730e
cmp eax, 2
je 0x447312
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4472ba
cmp eax, 3
je 0x4472ed
cmp eax, 1
jne 0x4472ba
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 0x4472ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4472ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00447350
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x447338
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00447350
add esp, 4
pop esi
ret
Function at 0x456fa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48035b
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
test edi, edi
mov ebx, ecx
jne 0x456fcb
or eax, 0xffffffff
jmp 0x45716a
push 4
call fcn.0047232f
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x18], 0
je 0x456ff0
mov ecx, eax
call fcn.0045ad40
mov ebp, eax
jmp 0x456ff2
xor ebp, ebp
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
push 0
push esi
mov eax, dword [eax + 4]
push edi
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0xffffffff
call fcn.0045ad80
test ebp, ebp
mov dword [ebx + 0x80], eax
je 0x457024
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
mov eax, dword [ebx + 0x80]
test eax, eax
jne 0x4570ad
push 2
push edi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x457047
mov eax, 0xfffffffe
jmp 0x45716a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x45705e
mov eax, 0xfffffffd
jmp 0x45716a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x457073
mov eax, 0xfffffffc
jmp 0x45716a
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 0xff
lea edx, [ebx + 0x88]
mov eax, dword [eax + 4]
push ecx
lea ecx, [ebx + 0x84]
push edx
push ecx
push edi
push eax
call fcn.0045a6a0
add esp, 0x14
mov dword [ebx + 0x80], eax
test eax, eax
jne 0x4570ad
or eax, 0xffffffff
jmp 0x45716a
mov ecx, ebx
call fcn.00457810
mov ecx, ebx
call fcn.004578b0
mov edx, dword [esp + 0x20]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
mov dword [ebx + 0x298], edx
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x88], ecx
xor edx, edx
mov dword [ebx + 0x2ac], ecx
mov dword [ebx + 0x2a8], eax
and esi, 0xff
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx + 0x2a4], edx
mov dword [ebx + 0x2a0], edx
mov dword [ebx + 0x3d4], esi
lea edx, [ebx + 0x8c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x80]
lea ecx, [ebx + 0x2b0]
push ecx
push edx
call fcn.0045ab90
add esp, 8
call fcn.0045acf0
mov ecx, dword [ebx + 0x298]
push ebx
mov dword [ebx + 0x29c], eax
call fcn.004596e0
mov ecx, dword [ebx + 0x298]
call fcn.00459810
mov ecx, ebx
mov dword [ebx + 0x3d8], eax
call fcn.00456d50
mov eax, 1
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x45a7d0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x9c
push ebx
mov ebx, dword [esp + 0xa8]
test ebx, ebx
push esi
je 0x45a8cb
mov esi, dword [esp + 0xa8]
test esi, esi
je 0x45a8cb
mov eax, dword [esi]
push ebp
push edi
push esi
call dword [eax + 0x6c]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
jne 0x45a817
push str.createcompatible_dc_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x18]
push ecx
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ebx, dword [esp + 0xc0]
test ebx, ebx
jne 0x45a83c
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xc4]
test ebp, ebp
jne 0x45a84b
mov ebp, dword [esp + 0x20]
mov edx, dword [esi]
lea eax, [esp + 0x30]
push eax
push esi
mov dword [esp + 0x38], 0x7c
mov dword [esp + 0x3c], 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 + 0x14], eax
jne 0x45a8b5
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x38]
push 0xcc0020
push ebp
push ebx
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x24]
push edi
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
push esi
call dword [edx + 0x68]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x9c
ret
pop esi
mov eax, 0x80004005
pop ebx
add esp, 0x9c
ret
Function at 0x45acf0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x28]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
cmp eax, 0x182
je 0x45ad2b
cmp eax, 0x1e6
je 0x45ad2b
push eax
push ebx
push ecx
push edx
mov eax, 1
cpuid
mov dword [ebp - 4], edx
pop edx
pop ecx
pop ebx
pop eax
mov eax, dword [ebp - 4]
pop ebx
shr eax, 0x17
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x45ad80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x480438
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.0045b270
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x20], 0
call fcn.0045b330
test eax, eax
jge 0x45ade7
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0045b2a0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
lea ecx, [esp + 0xc]
call fcn.0045b2b0
mov edi, eax
push edi
call fcn.0047232f
mov esi, eax
add esp, 4
test esi, esi
jne 0x45ae31
lea ecx, [esp + 0xc]
call fcn.0045b2d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0045b2a0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.0045b350
cmp edi, eax
je 0x45ae79
push esi
call fcn.00472358
add esp, 4
lea ecx, [esp + 0xc]
call fcn.0045b2d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0045b2a0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
lea ecx, [esp + 0xc]
call fcn.0045b2d0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
push ecx
push edx
push esi
push edi
push eax
mov ecx, ebx
call fcn.0045b070
push esi
mov edi, eax
call fcn.00472358
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0045b2a0
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
Function at 0x45b070
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4804d4
push eax
mov eax, dword [esp + 0x20]
mov dword fs:[0], esp
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x15c]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x168]
cmp eax, esi
jne 0x45b0ad
push edi
push ebx
call fcn.0045aed0
cmp eax, 5
ja case.default.0x45b0b6
jmp dword [eax*4 + 0x45b258]
push str.Error:_CDXImage___Unsupported_Image_type.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp case.default.0x45b0b6
lea ecx, [esp + 0xc]
call fcn.0045c930
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x160]
push eax
push edi
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], esi
call fcn.0045c9a0
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.0045c970
jmp case.default.0x45b0b6
lea ecx, [esp + 0xc]
call fcn.0045b3a0
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x160]
push edx
push edi
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 1
call fcn.0045b4a0
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.0045b3e0
jmp case.default.0x45b0b6
lea ecx, [esp + 0xc]
call fcn.0045c3d0
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x160]
push ecx
push edi
push ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 2
call fcn.0045c480
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.0045c410
jmp case.default.0x45b0b6
lea ecx, [esp + 0xc]
call fcn.0045c070
mov eax, dword [esp + 0x16c]
mov ecx, dword [esp + 0x160]
push eax
push edi
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 3
call fcn.0045c160
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.0045c0b0
jmp case.default.0x45b0b6
lea ecx, [esp + 0xf0]
call fcn.0045be30
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x160]
push edx
push edi
push ebx
push eax
lea ecx, [esp + 0x100]
mov dword [esp + 0x168], 4
call fcn.0045bec0
lea ecx, [esp + 0xf0]
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
call fcn.0045be70
mov ecx, dword [esp + 0x150]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x150
ret 0x14

Function at 0x45b350
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 4]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 8]
neg eax
sbb eax, eax
and eax, ecx
ret 8
Function at 0x45d340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48055f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x4a3748]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x18]
mov edi, 1
push ecx
mov dword [esp + 0x34], edi
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
je 0x45d398
mov esi, dword [esp + 0x38]
push 0x4b4370
mov ecx, esi
call fcn.0047265c
mov dword [esp + 0x10], edi
jmp 0x45d3fe
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
test eax, eax
je 0x45d3be
mov esi, dword [esp + 0x38]
push 0x4b4370
mov ecx, esi
call fcn.0047265c
jmp 0x45d3fa
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
call fcn.0047272b
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.RPCRT4.dll_RpcStringFreeA]
push 0x4b4370
push 0x4a2cac
lea ecx, [esp + 0x14]
call fcn.00470097
mov esi, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00472363
mov dword [esp + 0x10], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], bl
call fcn.004725ee
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x4749a7
Capabilities:
Get graphical window text

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

Function at 0x476099
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 0x4760db
call fcn.0047bb4e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4760db
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4760d2
xor eax, eax
jmp 0x4760e3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004760e9
pop edi
pop esi
pop ebx
ret 4

Function at 0x47c07e
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 0x47c0ac
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47c0ca
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047bfe4
jmp 0x47c0ca
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47c0ca
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047bfe4
test edi, edi
mov eax, edi
jne 0x47c0b4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x140
lea eax, [esp + 8]
push ebx
mov ebx, dword [esp + 0x148]
push esi
mov dword [esp + 0x10], 0
push edi
push ebp
push eax
push 0xc
push ebx
call fcn.00402de0
lea ecx, [esp + 0x20]
add esp, 0xc
push ecx
push str.SOFTWAREMicrosoftDirect3DDrivers
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401181
xor esi, esi
mov ebp, dword [esp + 0x18]
lea edi, [esp + 0x20]
xor eax, eax
mov ecx, 0xc
push 0xff
rep stosd dword es:[edi], eax
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0x18]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [esp + 0x30], 1
push esi
push ecx
call edi
test eax, eax
jne 0x401176
lea eax, [esp + 0x10]
lea ecx, [esp + 0x50]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40115b
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x50]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x38], ecx
push eax
push 0
push 0x1100
push 0x3e8
push ebx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov dword [esp + 0x20], eax
mov ebp, eax
lea ecx, [esp + 0x1c]
push 2
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push 0
mov dword [esp + 0x28], 0
push 0
push str.Base
push eax
push 0x3e8
push ebx
push edx
call fcn.004014b0
lea ecx, [esp + 0x40]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x44]
add esp, 0x24
push 2
push ecx
push 0
push 0
push str.Description
push edx
push 0x3e8
push ebx
push eax
call fcn.004014b0
lea ecx, [esp + 0x40]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x44]
add esp, 0x24
push 4
push ecx
push 0
push 0
push str.Guid
push edx
push 0x3e8
push ebx
push eax
call fcn.004014b0
mov ecx, dword [esp + 0x34]
add esp, 0x24
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
push 0xff
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0x18]
push eax
push esi
push ecx
call edi
test eax, eax
je 0x401081
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x140
ret

Function at 0x401190
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push ebx
push ebp
mov ebx, 1
push eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push str.SOFTWAREMicrosoftDirect3DDrivers
push 0x80000002
call ebp
test eax, eax
jne 0x4011f7
lea eax, [esp + 0x10]
lea ecx, [esp + 0xb]
lea edx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x1c], ebx
push 0
push str.SoftwareOnly
push eax
call ebp
test eax, eax
jne 0x4011ea
mov al, byte [esp + 0xb]
cmp al, bl
jne 0x4011ea
xor ebx, ebx
mov eax, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x401200
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push ebx
push eax
push str.SOFTWAREMicrosoftDirect3DDrivers
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401250
mov eax, dword [esp + 0x10]
push 1
test eax, eax
sete cl
mov eax, dword [esp + 0xc]
mov byte [esp + 0xb], cl
lea ecx, [esp + 0xb]
push ecx
push 3
push 0
push str.SoftwareOnly
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
add esp, 8
ret

Function at 0x401420
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
sub esp, 0x110
lea edx, [esp + 0xc]
push ebx
mov dword [esp + 4], eax
push esi
mov dword [esp + 0xc], ecx
push edi
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x18]
push str.DDraw.DLL
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4014a1
push str.DirectDrawEnumerateA
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x40149a
push str.DirectDrawCreate
push edi
call esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40149a
lea eax, [esp + 0xc]
push eax
push 0x401260
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
add esp, 0x110
ret