joyce8/EMBER2024-capa huggingface dataset:
Function at 0x503f78
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x50401a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x503fed
mov edx, ebx
mov eax, dword [0x4c0154]
call fcn.004c494c
test al, al
je 0x503fdd
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.004c485c
call fcn.0049afd8
jmp 0x504021
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x503fa8
mov ecx, dword [0x543280]
mov dl, 1
mov eax, dword [0x486e6c]
call fcn.0048bd14
call fcn.0049af2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504021
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x504028
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x504080
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504087
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x504090
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x5040e5
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5040ec
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x50415c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x5041d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00503e34
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.004c4920
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x5041bb
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5041d8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x5041e0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x504255
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00503e34
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x50423f
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50425c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x509c14
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x509c30
call fcn.0050b264
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x509c4c
test bl, 1
je 0x509c4c
call fcn.0050f218
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x509e30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0050ae00
test byte [ebp + 0xd], 0xc0
jne 0x509e54
mov eax, dword [0x53f798]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x509e61
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x509e8e
je 0x509ea0
sub ecx, 0x100
je 0x509eae
sub ecx, 0x100
je 0x509eb5
sub ecx, 0x100
je 0x509ea7
jmp 0x509ebc
sub ecx, 0x600
je 0x509eb5
sub ecx, 0x100
je 0x509ea0
jmp 0x509ebc
mov edi, 1
jmp 0x509ec1
mov edi, 2
jmp 0x509ec1
mov edi, 4
jmp 0x509ec1
mov edi, 5
jmp 0x509ec1
mov edi, 3
test byte [ebp + 0xd], 1
je 0x509ee8
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x53f210]
test al, 0x80
je 0x509ee1
mov ebx, 0x80
jmp 0x509efa
mov ebx, 1
jmp 0x509efa
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x509efa
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x509f0c
je 0x509f15
dec eax
je 0x509f1e
jmp 0x509f27
mov dword [ebp - 4], 0x80000000
jmp 0x509f36
mov dword [ebp - 4], 0x40000000
jmp 0x509f36
mov dword [ebp - 4], 0xc0000000
jmp 0x509f36
push 1
call fcn.0050b1f8
pop ecx
mov ebx, eax
jmp 0x50a026
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x509f52
sub eax, 0x10
je 0x509f59
sub eax, 0x10
je 0x509f62
sub eax, 0x10
je 0x509f6b
jmp 0x509f6b
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x509f72
mov dword [ebp - 8], 1
jmp 0x509f72
mov dword [ebp - 8], 2
jmp 0x509f72
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x509fdf
call sub.kernel32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x509fd4
test byte [ebp + 0xd], 1
je 0x509fcf
mov ebx, 0x50
jmp 0x509fd4
mov ebx, 2
push ebx
call fcn.0050b1f8
pop ecx
mov ebx, eax
jmp 0x50a026
mov edi, esi
push edi
call fcn.00509d94
pop ecx
test eax, eax
je 0x509ff3
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x509fff
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0050af20
add esp, 8
mov ebx, eax
inc eax
jne 0x50a026
push 4
call fcn.0050b1f8
pop ecx
push esi
call sub.kernel32.dll_CloseHandle
call fcn.0050ae34
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50a4c4
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
dec eax
je 0x50a4e0
call fcn.0050b264
jmp 0x50a54f
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test eax, eax
jne 0x50a4fc
call fcn.0050b264
jmp 0x50a54f
cmp dword [0x55939c], 1
je 0x50a54d
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.0050f098
pop ecx
cmp al, 0x41
jl 0x50a54d
cmp al, 0x5a
jg 0x50a54d
cmp byte [ebp - 0x107], 0x3a
jne 0x50a54d
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.kernel32.dll_SetEnvironmentVariableA
dec eax
je 0x50a54d
call fcn.0050b264
jmp 0x50a54f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x50a554
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x50a584
movsx edx, byte [ebp - 0x104]
sub edx, 0x61
inc edx
jmp 0x50a58f
movsx edx, byte [ebp - 0x104]
sub edx, 0x41
inc edx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret

Function at 0x50a598
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
jne 0x50a5fe
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.kernel32.dll_SetEnvironmentVariableA
dec eax
je 0x50a5fe
call fcn.0050b264
jmp 0x50a639
push edi
call sub.kernel32.dll_SetCurrentDirectoryA
dec eax
je 0x50a60e
call fcn.0050b264
jmp 0x50a639
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x50a634
push edi
call sub.kernel32.dll_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x50a632
cmp ebx, 1
je 0x50a632
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x50a61f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50f1b0
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 0x50f212
call fcn.0050f160
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.005089dc
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.005089dc
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 0x50f290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x5407a4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x50f36a
cmp dword [0x5407a0], 0
jne 0x50f36a
cmp dword [0x5409ac], 0
je 0x50f324
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.0050f040
add esp, 8
mov ebx, eax
test eax, eax
jne 0x50f30a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0050f040
add esp, 8
mov ebx, eax
test eax, eax
jne 0x50f30a
lea ebx, [ebp - 0x84]
jmp 0x50f30b
inc ebx
call fcn.0050f24c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.user32.dll_MessageBoxA
jmp 0x50f3a5
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x5407a8
push ebx
call sub.kernel32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.005089dc
pop ecx
push eax
push esi
push ebx
call sub.kernel32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x5407ab
push ebx
call sub.kernel32.dll_WriteFile
jmp 0x50f3a5
cmp dword [0x5407a0], 0
je 0x50f384
cmp dword [0x5407a0], 0xffffffff
je 0x50f3a5
push esi
call dword [0x5407a0]
pop ecx
mov eax, dword [0x5407a4]
test eax, eax
je 0x50f3a5
cmp dword [0x5407a4], 0xffffffff
je 0x50f3a5
cmp byte [eax], 0
je 0x50f3a5
push esi
push eax
call fcn.0050f1b0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50fc2c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x5593b4], 0
jne 0x50fcad
cmp dword [0x5593d4], 0
jne 0x50fc5c
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x5593d4], eax
test eax, eax
jne 0x50fc5c
push 0x5408e4
call fcn.0050f3bc
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x5593d4]
jmp 0x50fc70
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.005089dc
pop ecx
mov edi, eax
test eax, eax
jne 0x50fc68
lea edi, [ebp + 1]
push edi
call fcn.005082c0
pop ecx
mov ebx, eax
mov dword [0x5593b8], ebx
test ebx, ebx
jne 0x50fc9a
xor eax, eax
jmp 0x50fd70
push edi
mov edx, dword [0x5593d4]
push edx
push ebx
call fcn.0050888c
add esp, 0xc
jmp 0x50fccd
xor esi, esi
mov ebx, dword [0x5593b4]
jmp 0x50fcc7
push eax
call fcn.005089dc
pop ecx
test eax, eax
jne 0x50fcc3
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x50fcb7
lea ebx, [esi + 4]
push 4
mov dword [0x5593bc], ebx
inc ebx
push ebx
call fcn.00507a7c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x50fcf0
xor eax, eax
jmp 0x50fd70
cmp dword [0x5593b4], 0
jne 0x50fd21
xor esi, esi
mov ebx, dword [0x5593b8]
mov eax, dword [esp]
mov ebp, eax
jmp 0x50fd12
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.005089dc
pop ecx
mov edi, eax
test eax, eax
jne 0x50fd08
jmp 0x50fd52
xor esi, esi
mov ebx, dword [0x5593b4]
mov eax, dword [esp]
mov edi, eax
jmp 0x50fd4c
push eax
call fcn.005089dc
pop ecx
test eax, eax
je 0x50fd41
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x50fd45
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x50fd30
mov eax, dword [0x5593b4]
test eax, eax
je 0x50fd62
push eax
call fcn.005082d0
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x5593b4], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x516810
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x51683e
mov eax, ebx
call fcn.005172c8
cmp dword [ebx + 0x3c], 0
je 0x516837
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x5168af
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x5168a1
cmp dword [ebx + 8], 0
je 0x516860
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x516872
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5168a1
cmp dword [ebx + 8], 0
je 0x516853
cmp eax, 3
je 0x516885
dec eax
jne 0x516853
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x516853
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x516853
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x5168cd
cmp dword [ebx + 0x10], 0xcc
je 0x5168cd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005168d8
pop ebx
ret
Function at 0x41ed85
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
xor edi, edi
call fcn.0041f9b1
lea eax, [fcn.0041fc77]
mov dword [0x42ee94], eax
cmp dword [ebp + 8], 0
je 0x41ee9d
mov eax, dword [ebp + 8]
mov dword [0x42ee84], eax
mov eax, dword [ebp + 0x14]
mov dword [0x42ee10], eax
mov eax, dword [ebp + 0x18]
mov dword [0x433dc0], eax
mov eax, dword [ebp + 0x14]
mov dword [0x42ee8c], eax
mov eax, dword [ebp + 0x18]
mov dword [0x433de0], eax
push dword [0x42ee84]
call sub.USER32.dll_GetDC
mov dword [ebp - 4], eax
push 0xc
push eax
call sub.GDI32.dll_GetDeviceCaps
mov dword [0x433de4], eax
push dword [ebp - 4]
push dword [0x42ee84]
call sub.USER32.dll_ReleaseDC
cmp dword [0x433de8], 0
jne 0x41ee16
push 0x3c
call fcn.0041f070
mov dword [0x433dec], 1
jmp 0x41ee1d
and dword [0x433dec], 0
mov dword [0x433ddc], 1
cmp dword [0x42ee9c], 0
je 0x41ee75
push 1
push dword [0x42ee84]
call sub.USER32.dll_ShowWindow
push dword [0x42ee84]
push 0
push 0x42eda7
push dword [0x433de4]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call dword [0x433df0]
or eax, eax
je 0x41ee9d
call dword [0x433df4]
mov dword [0x42ee18], eax
mov dword [0x42ee1c], eax
xor edi, edi
inc edi
jmp 0x41ee9d
push 8
push dword [0x42ee84]
mov eax, dword [0x42ee70]
push eax
mov esi, dword [eax]
call dword [esi + 0x50]
or eax, eax
jne 0x41ee9d
call fcn.0041ea30
or eax, eax
je 0x41ee9d
call fcn.0041fa44
xor edi, edi
inc edi
or edi, edi
je 0x41ef61
mov eax, dword [ebp + 0xc]
mov dword [0x430ba4], eax
mov eax, dword [ebp + 0x10]
mov dword [0x430bac], eax
mov eax, dword [ebp + 0x20]
mov dword [0x430ba0], eax
mov eax, dword [ebp + 0x24]
mov dword [0x430ba8], eax
mov eax, dword [ebp + 0x1c]
mov dword [0x433dcc], eax
call fcn.0041ec10
push str.pb_dxpaint
push dword [0x42ee84]
call sub.USER32.dll_GetPropA
or eax, eax
jne 0x41ef45
push 0x41ece8
push 0xfffffffffffffffc
push dword [0x42ee84]
call sub.USER32.dll_SetWindowLongA
mov dword [0x430bb0], eax
push 1
push str.pb_dxpaint
push dword [0x42ee84]
call sub.USER32.dll_SetPropA
push str.Wtsapi32.dll
call sub.KERNEL32.dll_LoadLibraryA
mov dword [ebp - 8], eax
or eax, eax
je 0x41ef45
push str.WTSRegisterSessionNotification
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0xc], eax
or eax, eax
je 0x41ef3d
push 0
push dword [0x42ee84]
call dword [ebp - 0xc]
push dword [ebp - 8]
call sub.KERNEL32.dll_FreeLibrary
call fcn.0041f8e0
lea eax, [0x41eb7a]
mov dword [0x433df8], eax
mov dword [0x42ee90], 1
jmp 0x41ef66
call fcn.0041f760
mov eax, edi
pop edi
pop esi
leave
ret 0x20
Function at 0x41f28d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push ebx
push esi
push edi
and dword [ebp - 4], 0
and dword [0x433ef0], 0
and dword [0x433ef4], 0
push 0x64
push 0x433dfc
call fcn.0042a20c
mov dword [0x433dfc], 0x64
push 0x7c
push 0x433e70
call fcn.0042a20c
mov dword [0x433e70], 0x7c
push 0x7c
push 0x433ef8
call fcn.0042a20c
mov dword [0x433ef8], 0x7c
push 0x7c
push 0x433f74
call fcn.0042a20c
mov dword [0x433f74], 0x7c
xor ebx, ebx
xor esi, esi
mov edi, ebx
shl edi, 0xa
mov eax, ebx
shl eax, 8
mov dword [ebp - 8], eax
mov eax, 0xff00
mov ecx, esi
inc ecx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 8]
cdq
idiv ecx
mov dword [edi + esi*4 + 0x433ff0], eax
inc esi
cmp esi, 0xff
jle 0x41f303
inc ebx
cmp ebx, 0xff
jle 0x41f301
and dword [0x473ff0], 0
and dword [0x433de8], 0
and dword [0x433dec], 0
and dword [0x473ff4], 0
and dword [0x473ff8], 0
and dword [0x473ffc], 0
and dword [0x474000], 0
and dword [0x430c00], 0
and dword [0x474004], 0
push fcn.0041f878
push 0x40
push 0x18
call fcn.00429a4f
mov dword [0x42ee20], eax
call fcn.0042031a
or eax, eax
je 0x41f475
call fcn.00420066
or eax, eax
je 0x41f475
mov dword [0x42edb0], 1
cmp dword [0x42ee9c], 0
jne 0x41f3df
call fcn.00420120
or eax, eax
je 0x41f475
mov eax, dword [0x42ee84]
mov dword [0x474008], eax
mov eax, dword [0x42ee20]
mov dword [ebp - 4], eax
jmp 0x41f475
push str.OpenScreen3D
push dword [0x42ee98]
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x433df0], eax
push str.GetBackBuffer2
push dword [0x42ee98]
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x433df4], eax
push str.GetDirectDraw7
push dword [0x42ee98]
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x47400c], eax
push str.FlipBuffers2
push dword [0x42ee98]
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x474010], eax
push str.FlipWindowedBuffers
push dword [0x42ee98]
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x433dd8], eax
push str.Quit
push dword [0x42ee98]
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x474014], eax
call dword [0x47400c]
mov dword [0x42ee70], eax
call fcn.00420120
mov eax, dword [0x42ee20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f760
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
cmp dword [0x42ee7c], 0
je 0x41f780
mov eax, dword [0x42ee7c]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
and dword [0x42ee7c], 0
push dword [0x42ee20]
call fcn.00429aa0
jmp 0x41f795
push dword [ebp - 4]
call fcn.0041f878
lea eax, [ebp - 4]
push eax
push dword [0x42ee20]
call fcn.00429ac7
or eax, eax
jne 0x41f78d
cmp dword [0x42ee70], eax
je 0x41f7bf
push 8
push 0
mov eax, dword [0x42ee70]
push eax
mov ebx, dword [eax]
call dword [ebx + 0x50]
cmp dword [0x42ee18], 0
je 0x41f7da
mov eax, dword [0x42ee18]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
and dword [0x42ee18], 0
cmp dword [0x42ee14], 0
je 0x41f7f5
mov eax, dword [0x42ee14]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
and dword [0x42ee14], 0
cmp dword [0x42ee84], 0
je 0x41f80e
cmp dword [0x433ddc], 0
jne 0x41f80e
push 1
call sub.USER32.dll_ShowCursor
cmp dword [0x474018], 0
je 0x41f829
mov eax, dword [0x474018]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
and dword [0x474018], 0
cmp dword [0x433dbc], 0
je 0x41f83d
mov eax, dword [0x433dbc]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
and dword [0x433dbc], 0
cmp dword [0x433ddc], 0
je 0x41f863
and dword [0x433ddc], 0
push 1
push 0
push dword [0x42ee84]
call sub.USER32.dll_InvalidateRect
mov eax, dword [0x474008]
mov dword [0x42ee84], eax
push 0
push eax
call sub.USER32.dll_ShowWindow
pop ebx
leave
ret

Function at 0x420a6e
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
cmp dword [ebp + 8], 0
je 0x420a88
push dword [ebp + 8]
push 0x420a00
call sub.USER32.dll_EnumWindows
jmp 0x420abf
mov edi, dword [0x42ef90]
jmp 0x420abb
mov esi, dword [edi]
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi + 8], eax
jne 0x420ab9
push 1
push dword [edi + 0xc]
call sub.USER32.dll_EnableWindow
mov eax, edi
add eax, 8
push eax
push 0x42ef90
call fcn.00429c30
add esp, 8
mov edi, esi
or edi, edi
jne 0x420a90
pop edi
pop esi
pop ebp
ret 4

Function at 0x421544
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
push 0
push edi
call sub.USER32.dll_ShowWindow
push 0
push edi
call sub.USER32.dll_EnableWindow
pop edi
pop ebp
ret

Function at 0x425e70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
push dword [0x474140]
call fcn.00429992
mov edi, eax
or eax, eax
je 0x425eb9
mov eax, dword [edi + 4]
cmp dword [eax + 0x5c], 0
je 0x425e9f
push dword [ebp + 0xc]
push edi
mov ebx, dword [edi + 4]
call dword [ebx + 0x5c]
jmp 0x425eb9
cmp dword [ebp + 0xc], 0
je 0x425eb0
push 0
push dword [edi]
call sub.USER32.dll_ShowWindow
jmp 0x425eb9
push 5
push dword [edi]
call sub.USER32.dll_ShowWindow
pop edi
pop esi
pop ebx
pop ebp
ret 8