joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431bc4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x431be0
cmp dword [esi + 4], 0
je 0x431c0d
test byte [ebx + 0x45], 1
jne 0x431bff
mov eax, ebx
call fcn.00430afc
test eax, eax
jne 0x431bff
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x431d1d
mov edx, esi
mov eax, ebx
call fcn.0043183c
jmp 0x431d1d
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x431d16
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00433b94
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0042ea60
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00431bc4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00433b94
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431d1d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4457b4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4457ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0044acf4
jmp 0x4457f6
mov eax, ebx
mov edx, esi
call fcn.0044ac60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x445800
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x445821
mov al, byte [esp]
jmp 0x445823
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x44a014
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x459840]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x44a0ac
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x44a08c
xor eax, eax
push ebp
push 0x44a085
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x44a0c8
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44a08c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x459840]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x459840], ax
mov esp, ebp
pop ebp
ret
Function at 0x44c13c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x44c2f8
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x44c19d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x44c314
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x44c20f
xor eax, eax
push ebp
push 0x44c208
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.0044bf94
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x44c1f1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x44c334
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c20f
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x44c2f0
cmp byte [ebp - 0xd], 0
jne 0x44c251
cmp byte [ebp - 0x12], 0
je 0x44c2f0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x44c26a
dec ebx
cmp byte [ebx], 0x2e
je 0x44c279
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x44c269
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x44c2f0
inc ebx
cmp byte [ebp - 0x12], 0
je 0x44c2a6
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x44c2f0
cmp byte [ebp - 0xd], 0
je 0x44c2f0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x44c2f0
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c6e4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x44c7cc
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x45d838], 1
jae 0x44c7be
xor eax, eax
mov dword [0x45d444], eax
xor eax, eax
mov dword [0x45d44c], eax
xor eax, eax
mov dword [0x45d450], eax
mov byte [0x45d456], 2
mov byte [0x45d457], 2
mov byte [0x45d458], 3
mov word [0x45d800], 0
mov word [0x45d810], 1
mov word [0x45d820], 0xa
mov dword [0x45d828], 0x80020004
mov dword [0x45d7f4], 0x44b8d0
mov dword [0x45d7f8], 0x44b8c8
mov dword [0x45d7fc], 0x44b8d0
call fcn.00449fe4
test al, al
je 0x44c77d
call fcn.0044a014
call fcn.0044a0d8
mov eax, 0x45d45c
mov edx, 0x44c7d8
call fcn.004478fa
mov eax, 0x45d628
mov edx, 0x44c7d8
call fcn.004478fa
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x45d43c], eax
call fcn.00448860
mov dword [0x45d438], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x45d430], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c7d3
ret

Function at 0x4512e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x45134a
call fcn.00451298
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0044d2a0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0044d2a0
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4513c8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x45b4c0], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4514a2
cmp dword [0x45b4bc], 0
jne 0x4514a2
cmp dword [0x45b6a0], 0
je 0x45145c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00451198
add esp, 8
mov ebx, eax
test eax, eax
jne 0x451442
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00451198
add esp, 8
mov ebx, eax
test eax, eax
jne 0x451442
lea ebx, [ebp - 0x84]
jmp 0x451443
inc ebx
call fcn.00451384
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4514dd
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x45b4c4
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0044d2a0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x45b4c7
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4514dd
cmp dword [0x45b4bc], 0
je 0x4514bc
cmp dword [0x45b4bc], 0xffffffff
je 0x4514dd
push esi
call dword [0x45b4bc]
pop ecx
mov eax, dword [0x45b4c0]
test eax, eax
je 0x4514dd
cmp dword [0x45b4c0], 0xffffffff
je 0x4514dd
cmp byte [eax], 0
je 0x4514dd
push esi
push eax
call fcn.004512e8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451c74
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x45e13c], 0
jne 0x451cf5
cmp dword [0x45e15c], 0
jne 0x451ca4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x45e15c], eax
test eax, eax
jne 0x451ca4
push str.GetEnvironmentStrings_failed
call fcn.004514f4
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x45e15c]
jmp 0x451cb8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0044d2a0
pop ecx
mov edi, eax
test eax, eax
jne 0x451cb0
lea edi, [ebp + 1]
push edi
call fcn.0044cd00
pop ecx
mov ebx, eax
mov dword [0x45e140], ebx
test ebx, ebx
jne 0x451ce2
xor eax, eax
jmp 0x451db8
push edi
mov edx, dword [0x45e15c]
push edx
push ebx
call fcn.0044d150
add esp, 0xc
jmp 0x451d15
xor esi, esi
mov ebx, dword [0x45e13c]
jmp 0x451d0f
push eax
call fcn.0044d2a0
pop ecx
test eax, eax
jne 0x451d0b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x451cff
lea ebx, [esi + 4]
push 4
mov dword [0x45e144], ebx
inc ebx
push ebx
call fcn.0044c7dc
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x451d38
xor eax, eax
jmp 0x451db8
cmp dword [0x45e13c], 0
jne 0x451d69
xor esi, esi
mov ebx, dword [0x45e140]
mov eax, dword [esp]
mov ebp, eax
jmp 0x451d5a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0044d2a0
pop ecx
mov edi, eax
test eax, eax
jne 0x451d50
jmp 0x451d9a
xor esi, esi
mov ebx, dword [0x45e13c]
mov eax, dword [esp]
mov edi, eax
jmp 0x451d94
push eax
call fcn.0044d2a0
pop ecx
test eax, eax
je 0x451d89
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x451d8d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x451d78
mov eax, dword [0x45e13c]
test eax, eax
je 0x451daa
push eax
call fcn.0044cd10
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x45e13c], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..reloc
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x311d32d9
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x53665638
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x8e8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8e81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8e807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8e806a
add dl, dl
jne 0x8e8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8e80dc
xor eax, eax
add dl, dl
jne 0x8e8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8e817d
add dl, dl
jne 0x8e80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8e80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8e80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8e80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8e80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8e8075
mov eax, 1
add dl, dl
jne 0x8e80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8e80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8e80e1
sub eax, ebx
mov ebx, 1
jne 0x8e8128
mov ecx, 1
add dl, dl
jne 0x8e810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8e8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8e8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8e8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8e813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8e814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8e8136
cmp eax, 0x7d00
jae 0x8e816d
cmp eax, 0x500
jb 0x8e8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8e8075
cmp eax, 0x7f
ja 0x8e8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8e8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8e819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8e8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x410820
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x98
push ebx
push esi
mov esi, dword [esp + 0xa8]
push edi
push 0x2000
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, dword [sym.imp.USER32.dll_LoadImageA]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x41087f
push 0x2010
push eax
push eax
push eax
push esi
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x41087f
push str.handle_is_null_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov eax, 0x80004005
pop ebx
add esp, 0x98
ret
mov esi, dword [esp + 0xa8]
push esi
mov eax, dword [esi]
call dword [eax + 0x6c]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
jne 0x4108a5
push str.createcompatible_dc_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x14]
push ecx
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esi]
lea eax, [esp + 0x2c]
push eax
push esi
mov dword [esp + 0x34], 0x7c
mov dword [esp + 0x38], 6
call dword [edx + 0x58]
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
push esi
call dword [ecx + 0x44]
mov ebp, eax
test ebp, ebp
jne 0x410949
mov al, byte [esp + 0xbc]
test al, al
je 0x41090f
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
push 0x42
push ebp
push ebp
push ebx
push eax
push ecx
push ebp
push ebp
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xb8]
push 0xcc0020
push 0
push 0
push ebx
push eax
mov eax, dword [esp + 0xc8]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
push esi
call dword [edx + 0x68]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x98
ret
Function at 0x412a1a
Capabilities:
Get memory capacity
Query or enumerate registry value

Disassembly:
mov ecx, 0x4c1258
jmp 0x412a00
push 0xffffffffffffffff
push 0x47a058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
call fcn.004372f0
xor ebx, ebx
lea edi, [esi + 0x24a8]
mov dword [esp + 0x44], ebx
mov ebp, 4
push 0x4032c0
push 4
push 0x40
push edi
call fcn.00402f40
add edi, 0x160
dec ebp
jne 0x412a38
mov eax, 0xff000000
mov edi, 1
mov dword [esi + 0x29e8], eax
mov dword [esi + 0x29ec], eax
mov eax, 0x3f800000
mov dword [esi], 0x47f508
mov dword [esi + 0x29f4], eax
mov dword [esi + 0x29f8], eax
mov eax, 3
mov dword [esi + 0x22cc], 0x494924
mov dword [esi + 0x22d0], edi
mov dword [esi + 0x22d4], edi
mov dword [esi + 0x22d8], ebx
mov dword [esi + 0x22dc], ebx
mov dword [esi + 0x29e0], ebx
mov dword [esi + 0x23c8], edi
mov dword [esi + 0x29f0], ebx
mov dword [esi + 0x29fc], eax
mov dword [esi + 0x2a00], ebx
mov dword [esi + 0x2a04], ebx
mov dword [esi + 0x2a08], edi
mov dword [0x49486c], edi
mov dword [0x4c3d00], edi
mov dword [0x4c3d08], edi
mov dword [0x494864], edi
mov dword [esi + 0x2a0c], ebx
mov dword [0x494860], eax
mov eax, dword [0x47f504]
lea ecx, [esp + 0x1c]
mov dword [0x494868], eax
mov dword [0x4c3d0c], ebx
mov dword [0x4c3d28], ebx
mov dword [0x4c3d2c], ebx
mov dword [0x4c3d10], ebx
push ecx
mov dword [esi + 0x2a1c], ebx
mov dword [esi + 0x2a10], ebx
mov dword [esi + 0x23c4], ebx
mov dword [esi + 0x2aa0], ebx
mov dword [esp + 0x20], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0x4c3d30
call fcn.00447950
mov edx, dword [esp + 0x28]
add esp, 4
and edx, 0xfff00000
cmp edx, 0x2e00000
jae 0x412b63
mov dword [esi + 0x23bc], edi
lea eax, [esp + 0x10]
mov dword [esi + 0x23c0], 2
push eax
push 0x20019
push ebx
push str.SoftwareHasbro_InteractiveNascar_Racers
push 0x80000002
mov byte [esi + 0x2a5c], bl
mov dword [esi + 0x2a60], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412bfc
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x787f88
push ebx
push ebx
push str.srcdir
push edx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x412bcd
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x412bfc
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x787f88
or ecx, 0xffffffff
xor eax, eax
mov dx, word [0x4948ec]
repne scasb al, byte es:[edi]
push 0x787f88
mov word [edi - 1], dx
call fcn.00447950
add esp, 4
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x412ce0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [ecx + 0x1e98]
sub esp, 0xec
lea edx, [esp]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x412dc5
mov cl, byte [esp + 0x4c]
test cl, 5
jne 0x412d25
push 0x30
push str.Incompatible_Video_Card
push str.D3D_Capabilities_check:_SRCALPHA:_dst__blend_mode_unsupported_on_this_device._If_graphics__display_incorrectly__try_selecting_the_software_renderer.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0xec
ret
mov al, byte [esp + 0x50]
test al, 6
jne 0x412d4a
push 0x30
push str.Incompatible_Video_Card
push str.D3D_Capabilities_check:__src_:INVSRCALPHA_blend_mode_unsupported._If_graphics__display_incorrectly__try_selecting_the_software_renderer.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0xec
ret
test al, 2
jne 0x412d6b
push 0x30
push str.Incompatible_Video_Card
push str.D3D_Capabilities_check:__src_:ONE_blend_mode_unsupported._If_graphics__display_incorrectly__try_selecting_the_software_renderer.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0xec
ret
test cl, 1
jne 0x412d8d
push 0x30
push str.Incompatible_Video_Card
push str.D3D_Capabilities_check:_ZERO:_dst__blend_mode_unsupported._If_graphics__display_incorrectly__try_selecting_the_software_renderer.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0xec
ret
test al, 3
jne 0x412dae
push 0x30
push str.Incompatible_Video_Card
push str.D3D_Capabilities_check:__src_:SRCCOLOR_blend_mode_unsupported._If_graphics__display_incorrectly__try_selecting_the_software_renderer.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0xec
ret
push str.D3D_alpha_blend_capabilities_check_OK__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
add esp, 0xec
ret
push str.D3D_capabilities_check_unsuccessful_:__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 0xec
ret