joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003f00f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x1003f044
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x1003f041
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x1003f04d
add edx, 0x28
cmp edx, esi
jne 0x1003f02f
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x1003f04a

Function at 0x41cee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x41cf02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41cf09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41cef8
mov eax, 1
add ebx, ebx
jne 0x41cf1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41cf10
jne 0x41cf2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf10
xor ecx, ecx
sub eax, 3
jb 0x41cf40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41cfb2
mov ebp, eax
add ebx, ebx
jne 0x41cf4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41cf58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41cf7c
inc ecx
add ebx, ebx
jne 0x41cf68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41cf5d
jne 0x41cf79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41cf9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41cf8d
jmp 0x41cefe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41cf9c
add edi, ecx
jmp 0x41cefe
pop esi
mov edi, esi
mov ecx, 0x157
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41cfba
cmp byte [edi], 0
jne 0x41cfba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41cfbf
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41d02e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d0b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d100]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41cfec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d104]
or eax, eax
je 0x41d028
mov dword [ebx], eax
add ebx, 4
jmp 0x41d009
call dword [esi + 0x1d108]
popal
jmp 0x403ab4
Function at 0x44b6d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
mov cl, byte [0x65f042]
mov al, byte [0x65f041]
or cl, 0x10
push ebx
shr cl, 3
and ecx, 0xff
mov bl, byte [0x65f04b]
mov dword [esp + 4], ecx
xor bl, al
fild dword [esp + 4]
mov byte [0x65f04b], bl
mov ebx, dword [esp + 0x10]
test ebx, ebx
fdivr qword [0x6629b0]
push esi
fadd qword [0x65f058]
fstp qword [0x662a20]
je 0x44b793
call fcn.0044b610
push 0x65f0ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [0x65f030]
mov ecx, dword [0x65f034]
mov esi, eax
mov dword [esp + 0xc], 0
lea eax, [edx + edx]
or eax, ecx
mov dword [esp + 8], eax
fild qword [esp + 8]
test esi, esi
fadd qword [0x65f058]
fstp qword [0x65f058]
je 0x44b793
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x65f088
push esi
call edi
push 0x65f064
push esi
call edi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x44b793
lea ecx, [esp + 0x14]
inc eax
add ecx, 4
cmp eax, 0x36
jae 0x44b79d
cmp dword [ecx], 0
jne 0x44b785
pop esi
xor al, al
pop ebx
add esp, 8
ret 4
mov dword [ebx], esi
pop esi
mov al, 1
pop ebx
add esp, 8
ret 4

Function at 0x48923a
Capabilities:
Encode data using xor

Disassembly:
wait
in al, 0xdb
test byte [ecx - 0x11cd5c7], 0x65
fiadd word [edi - 0x1e01f0d7]
scasd eax, dword es:[edi]
and eax, 0x9166a1f3
xchg esp, eax
cdq
xchg byte [esi - 0x75], ah
lodsb al, byte [esi]
idiv cl
jl 0x4892d3
in eax, 0xf4
push esi
clc
xchg esi, eax
add dl, ch
cmp ebp, ecx
and al, byte [ebx + esi]
je 0x489283
test dword [ecx - 0x3d], ebp
imul ecx, dword [esi - 0x42], 0xdd43d65a
clc
mov ah, 0x6f
test al, 0xa2
mov dl, dh
pop ecx
jge 0x48927f
lodsd eax, dword [esi]
sbb ah, byte [ebx]
cmp dword [edi - 0x22c684ef], esp
cmp ebp, ebx
jns 0x4892fd
cmp dword [esi], edx
mov eax, dword [0xf4ffd506]
imul esi, dword [edx - 0x74e9b6e3], 0xffffffc2
xor dl, byte [ecx + 0x15]
push edi
loope 0x4892a1
dec edx
invalid
inc esi
call 0x60314042
sbb eax, 0x44994ac8
dec edx
cdq
inc esp
push ss
mov bh, 0xeb
xchg edi, edi
aas
fcmovnbe st(0), st(0)
les ecx, [0x676f6659]
jmp 0xb5342434
wait
pop ebx
cmp byte [ebx + 0x125fc4f4], ah
out 0x44, al
sbb eax, 0x80b918f9
mov edx, 0xc1d9e440
mov ecx, 0xe440ba80
fld st(1)
salc
inc edx
and al, 0xf5
xor byte [esi], bh
push ss
sbb esi, edi
mov edi, 0x3e10e185
idiv dword [edi + 0x3e10e185]
push esi
invalid
xchg ecx, eax
loopne 0x489358
mov cl, 0x56
push ss
cmp dword [ecx - 0x7e], 0xffffffa6
push edi
jnp 0x4892e3
mov edi, 0x64b7b14d
push ecx
cwde
jge 0x4892aa
stosd dword es:[edi], eax
sar byte [eax], 0xf6
and bl, 0x1a
jle 0x4892c6
adc cl, al
xchg esi, eax
sub dword [edx], esp
push es
mov dh, 0x61
push ss
and eax, 0x6898b746
ja 0x489339
int3
pop esi
ljmp 0x66a9
push esi
in eax, dx
invalid
invalid
invalid
invalid
invalid
Function at 0x6183c3
Capabilities:
Encode data using xor

Disassembly:
loopne 0x618419
imul ebp, edx, 0x6a18e883
sbb byte [eax - 0x2f], dl
bound esp, qword [ebx - 0x20]
push ecx
test al, 0xa8
cmpsb byte [esi], byte es:[edi]
inc ebx
adc ah, ch
in eax, 0
in al, 0x24
fdivr qword [ebx - 0x44be8517]
cmp ecx, dword [esi + 0x46]
add byte [ecx - 0x6decbc69], dl
and dword [esi], esp
mov byte [0x5a142077], al
mov al, byte [0xaafc9807]
pop ds
cmp dword [ebx - 0x58], eax
mov al, byte [0xd1c68c51]
aas
mov dh, 0
invalid
xchg ebp, eax
ja 0x618442
push edx
push ds
sbb ah, bl
leave
mov al, byte [0x81dbc8e6]
pop esp
jae 0x618468
fnstcw word [edx + 0x2fb85ebc]
push eax
stosd dword es:[edi], eax
mov ch, 0x70
mov al, 0x9d
xor dword [ecx - 0x156d671f], edx
mov edx, 0xb18ebc3e
push es
xchg esi, eax
jg 0x618492
cwde
pop ebp
stosb byte es:[edi], al
lcall 0xff93, 0x453a4b68
xchg ecx, eax
xor byte [edx - 0x24], ah
daa
jno 0x61844f
add ecx, ebx
xchg edi, eax
sub cl, dl
das
or eax, dword [edx + 0x2b8db92]
call 0x30a5b007
mov dword [0x6c2e6cd], eax
out 0xc2, al
push es
cmp dword [ecx + 0x31], ebx
retf 0x9720
mov eax, 0xe901da2d
mov cl, 0xf4
xchg dword [ebx + 0x65], edx
sar dl, 1
xchg ecx, eax
lea esp, [ecx + 0x7c18c13a]
stosd dword es:[edi], eax
outsb dx, byte [esi]
or esp, ecx
int1
push eax
inc eax
dec esp
mov byte [0xb24a5058], al
ret 0x4d41

Function at 0x6579dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x65f3f8
cmp edx, dword [eax]
je 0x6579ff
add eax, 8
inc ecx
cmp eax, 0x65f488
jl 0x6579f0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x65f3f8]
jne 0x657b2d
mov eax, dword [0xa5bdd4]
cmp eax, 1
je 0x657b07
test eax, eax
jne 0x657a30
cmp dword [0x65f324], 1
je 0x657b07
cmp edx, 0xfc
je 0x657b2d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x657a67
lea eax, [ebp - 0x1a4]
push 0x65c9e8
push eax
call fcn.006583c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00658850
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x657aaa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00658850
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65c9e4
push edi
call fcn.0065a720
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65c9c8
push eax
call fcn.006583c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.006583d0
lea eax, [ebp - 0xa0]
push 0x65c9c4
push eax
call fcn.006583d0
push dword [esi + 0x65f3fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.006583d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65c99c
push eax
call fcn.0065a694
add esp, 0x2c
pop edi
jmp 0x657b2d
lea eax, [ebp + 8]
lea esi, [esi + 0x65f3fc]
push 0
push eax
push dword [esi]
call fcn.00658850
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x403800
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov edx, eax
lea edx, [edx + 0x18]
movzx eax, word [eax + 0x14]
add eax, edx
mov ebx, eax
xor edi, edi
jmp 0x4038ad
cmp dword [ebx + 0x10], 0
jne 0x403872
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x4038a9
push 4
push 0x1000
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 8]
add eax, edx
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
mov dword [ebx + 8], eax
mov edx, esi
mov eax, dword [ebp - 4]
mov ecx, eax
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
jmp 0x4038a9
push 4
push 0x1000
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 8]
add eax, edx
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp + 8]
add eax, edx
push eax
push esi
call sub.CRTDLL.dll_memcpy
add esp, 0xc
mov eax, esi
mov dword [ebx + 8], eax
inc edi
lea ebx, [ebx + 0x28]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp edi, eax
jl 0x40382b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4038d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, eax
lea edx, [edx + 0x18]
movzx eax, word [eax + 0x14]
add eax, edx
mov ebx, eax
xor esi, esi
jmp 0x4039bc
mov eax, dword [ebx + 0x24]
and eax, 0x20000000
setne al
and eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x24]
and eax, 0x40000000
setne al
and eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x24]
and eax, 0x80000000
setne al
and eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x24]
mov edx, 0x2000000
test eax, edx
je 0x403949
push 0x4000
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x4039b8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
shl ecx, 4
lea edx, [ecx + edx*8 + 0x55dc44]
mov eax, dword [edx + eax*4]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x24]
mov edx, 0x4000000
test eax, edx
je 0x403975
or dword [ebp - 4], 0x200
mov edi, dword [ebx + 0x10]
test edi, edi
jne 0x40399a
test byte [ebx + 0x24], 0x40
je 0x40398c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edi, dword [eax + 0x20]
jmp 0x40399a
test byte [ebx + 0x24], 0x80
je 0x40399a
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edi, dword [eax + 0x24]
test edi, edi
je 0x4039b8
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x4039b8
inc esi
lea ebx, [ebx + 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp esi, eax
jl 0x4038f2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403cb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp word [eax], 0x5a4d
je 0x403ccd
xor eax, eax
jmp 0x403e0d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
lea esi, [edx + eax]
cmp dword [esi], 0x4550
je 0x403ce8
xor eax, eax
jmp 0x403e0d
push 4
push 0x2000
mov eax, dword [esi + 0x50]
push eax
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x403d18
push 4
push 0x2000
mov eax, dword [esi + 0x50]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x403d23
xor eax, eax
jmp 0x403e0d
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push 0x14
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebx, eax
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
push 4
push 0x1000
mov eax, dword [esi + 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push 4
push 0x1000
mov eax, dword [esi + 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov ecx, dword [esi + 0x54]
add edx, ecx
push edx
push eax
mov eax, dword [ebp - 8]
push eax
call sub.CRTDLL.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 8]
add eax, edx
mov dword [ebx], eax
mov edx, edi
mov dword [eax + 0x34], edx
push ebx
push esi
mov eax, dword [ebp + 8]
push eax
call fcn.00403800
mov eax, edi
sub eax, dword [esi + 0x34]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403dc3
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.004039e0
push ebx
call fcn.00403a90
test eax, eax
je 0x403e05
push ebx
call fcn.004038d0
mov eax, dword [ebx]
cmp dword [eax + 0x28], 0
je 0x403e01
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
add eax, edi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x403e05
push 0
push 1
push edi
call dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x403e05
mov dword [ebx + 0x10], 1
mov eax, ebx
jmp 0x403e0d
push ebx
call fcn.00403c00
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c210
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push 9
call sub.USER32.dll_GetKeyState
mov ebx, eax
movsx ebx, bx
test bl, 0x80
je 0x40c28a
push 0x11
call sub.USER32.dll_GetKeyState
mov ebx, eax
movsx ebx, bx
test bl, 0x80
jne 0x40c28a
push 0x10
call sub.USER32.dll_GetKeyState
mov ebx, eax
movsx ebx, bx
test bl, 0x80
jne 0x40c28a
push 0x12
call sub.USER32.dll_GetKeyState
mov ebx, eax
movsx ebx, bx
test bl, 0x80
jne 0x40c28a
call sub.USER32.dll_GetFocus
push 5
lea ebx, [ebp - 5]
push ebx
push eax
call sub.USER32.dll_GetClassNameA
push 4
push str.Rich
lea eax, [ebp - 5]
push eax
call sub.CRTDLL.dll_strncmp
add esp, 0xc
or eax, eax
jne 0x40c28a
jmp 0x40c2d0
mov edi, dword [0x5625c8]
jmp 0x40c29e
cmp dword [edi + 8], esi
jne 0x40c29c
mov eax, dword [edi + 0x14]
jmp 0x40c2d0
mov edi, dword [edi]
or edi, edi
jne 0x40c292
jmp 0x40c2c6
mov ebx, edi
shl ebx, 4
mov edx, dword [0x562584]
cmp dword [edx + ebx], esi
jne 0x40c2c5
mov ebx, edi
shl ebx, 4
mov edx, dword [0x562584]
mov eax, dword [ebx + edx + 0xc]
jmp 0x40c2d0
inc edi
cmp edi, dword [0x562580]
jl 0x40c2a4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40d410
Capabilities:
Hide graphical window

Disassembly:
push ebx
cmp dword [0x55dfcc], 0
je 0x40d42c
mov eax, dword [0x55dfcc]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
and dword [0x55dfcc], 0
push 0x40d3fe
call fcn.0040d3c2
pop ecx
cmp dword [0x55dfc0], 0
je 0x40d44f
push 8
push 0
mov eax, dword [0x55dfc0]
push eax
mov ebx, dword [eax]
call dword [ebx + 0x50]
cmp dword [0x55ded8], 0
je 0x40d46a
mov eax, dword [0x55ded8]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
and dword [0x55ded8], 0
cmp dword [0x55ded4], 0
je 0x40d485
mov eax, dword [0x55ded4]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
and dword [0x55ded4], 0
cmp dword [0x55dfd4], 0
je 0x40d49e
cmp dword [0x562c30], 0
jne 0x40d49e
push 1
call sub.USER32.dll_ShowCursor
cmp dword [0x562c34], 0
je 0x40d4b9
mov eax, dword [0x562c34]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
and dword [0x562c34], 0
cmp dword [0x562c38], 0
je 0x40d4cd
mov eax, dword [0x562c38]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
and dword [0x562c38], 0
cmp dword [0x562c30], 0
je 0x40d4f3
and dword [0x562c30], 0
push 1
push 0
push dword [0x55dfd4]
call sub.USER32.dll_InvalidateRect
mov eax, dword [0x562c3c]
mov dword [0x55dfd4], eax
push 0
push eax
call sub.USER32.dll_ShowWindow
pop ebx
ret
Function at 0x40d582
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 [0x562c40], 0
and dword [0x562c44], 0
push 0x64
push 0x562c48
call fcn.00421414
mov dword [0x562c48], 0x64
push 0x7c
push 0x562cac
call fcn.00421414
mov dword [0x562cac], 0x7c
push 0x7c
push 0x562d28
call fcn.00421414
mov dword [0x562d28], 0x7c
push 0x7c
push 0x562da4
call fcn.00421414
mov dword [0x562da4], 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 + 0x562e20], eax
inc esi
cmp esi, 0xff
jle 0x40d5f8
inc ebx
cmp ebx, 0xff
jle 0x40d5f6
and dword [0x5a2e20], 0
and dword [0x5a2e24], 0
and dword [0x5a2e28], 0
and dword [0x5a2e2c], 0
and dword [0x5a2e30], 0
and dword [0x5a2e34], 0
and dword [0x5a2e38], 0
and dword [0x562790], 0
and dword [0x5a2e3c], 0
mov dword [0x562c28], 0x32
push 0x4b0
push 8
push dword [0x562218]
call sub.KERNEL32.DLL_HeapAlloc
mov dword [0x562c2c], eax
call fcn.0040fdd7
or eax, eax
je 0x40d778
call fcn.0040fa95
or eax, eax
je 0x40d778
mov dword [0x55ded0], 1
cmp dword [0x55dfe8], 0
jne 0x40d6e2
call fcn.0040fbe0
or eax, eax
je 0x40d778
mov eax, dword [0x55dfd4]
mov dword [0x562c3c], eax
mov eax, dword [0x562c2c]
mov dword [ebp - 4], eax
jmp 0x40d778
push str.OpenScreen3D
push dword [0x55dfe4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5a2e40], eax
push str.GetBackBuffer2
push dword [0x55dfe4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5a2e44], eax
push str.GetDirectDraw7
push dword [0x55dfe4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5a2e48], eax
push str.FlipBuffers2
push dword [0x55dfe4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5a2e4c], eax
push str.FlipWindowedBuffers
push dword [0x55dfe4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5a2e50], eax
push str.Quit
push dword [0x55dfe4]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5a2e54], eax
call dword [0x5a2e48]
mov dword [0x55dfc0], eax
call fcn.0040fbe0
mov eax, dword [0x562c2c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dc21
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
xor edi, edi
lea eax, [fcn.0040f68f]
mov dword [0x55dfe0], eax
cmp dword [ebp + 8], 0
je 0x40dd34
mov eax, dword [ebp + 8]
mov dword [0x55dfd4], eax
mov eax, dword [ebp + 0x14]
mov dword [0x5a2e6c], eax
mov eax, dword [ebp + 0x18]
mov dword [0x5a2e68], eax
mov eax, dword [ebp + 0x14]
mov dword [0x5a2e60], eax
mov eax, dword [ebp + 0x18]
mov dword [0x5a2e64], eax
push dword [0x55dfd4]
call sub.USER32.dll_GetDC
mov dword [ebp - 0x24], eax
push 0xc
push eax
call sub.GDI32.dll_GetDeviceCaps
mov dword [0x5a2e58], eax
push dword [ebp - 0x24]
push dword [0x55dfd4]
call sub.USER32.dll_ReleaseDC
cmp dword [0x5a2e24], 0
jne 0x40dcad
push 0x3c
call fcn.0040e1c0
mov dword [0x5a2e28], 1
jmp 0x40dcb4
and dword [0x5a2e28], 0
mov dword [0x562c30], 1
cmp dword [0x55dfe8], 0
je 0x40dd0c
push 1
push dword [0x55dfd4]
call sub.USER32.dll_ShowWindow
push dword [0x55dfd4]
push 0
push 0x55df77
push dword [0x5a2e58]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call dword [0x5a2e40]
or eax, eax
je 0x40dd34
call dword [0x5a2e44]
mov dword [0x55ded8], eax
mov dword [0x55dedc], eax
xor edi, edi
inc edi
jmp 0x40dd34
push 8
push dword [0x55dfd4]
mov eax, dword [0x55dfc0]
push eax
mov esi, dword [eax]
call dword [esi + 0x50]
or eax, eax
jne 0x40dd34
call fcn.0040d970
or eax, eax
je 0x40dd34
call fcn.0040d875
xor edi, edi
inc edi
or edi, edi
je 0x40de4f
lea eax, [ebp - 0x10]
push eax
push dword [0x55dfd4]
call sub.USER32.dll_GetClientRect
lea eax, [ebp - 0x20]
push eax
push dword [0x55dfd4]
call sub.USER32.dll_GetWindowRect
lea eax, [ebp - 0x10]
push eax
push dword [0x55dfd4]
call sub.USER32.dll_ClientToScreen
lea eax, [ebp - 8]
push eax
push dword [0x55dfd4]
call sub.USER32.dll_ClientToScreen
mov eax, dword [ebp + 0x1c]
mov dword [0x5a2e90], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x20]
add eax, edx
mov dword [0x5a2e8c], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x1c]
add eax, edx
mov dword [0x5a2e88], eax
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 8]
add eax, edx
mov dword [0x5a2e94], eax
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 4]
add eax, edx
mov dword [0x5a2e98], eax
push str.pb_dxpaint
push dword [0x55dfd4]
call sub.USER32.dll_GetPropA
or eax, eax
jne 0x40de33
push 0x40db50
push 0xfffffffffffffffc
push dword [0x55dfd4]
call sub.USER32.dll_SetWindowLongA
mov dword [0x5627a0], eax
push 1
push str.pb_dxpaint
push dword [0x55dfd4]
call sub.USER32.dll_SetPropA
push str.Wtsapi32.dll
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 0x28], eax
or eax, eax
je 0x40de33
push str.WTSRegisterSessionNotification
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x2c], eax
or eax, eax
je 0x40de2b
push 0
push dword [0x55dfd4]
call dword [ebp - 0x2c]
push dword [ebp - 0x28]
call sub.KERNEL32.DLL_FreeLibrary
call fcn.0040d780
lea eax, [0x40daba]
mov dword [0x5a2e70], eax
mov dword [0x55dfdc], 1
jmp 0x40de54
call fcn.0040d410
mov eax, edi
pop edi
pop esi
leave
ret 0x20
Function at 0x40e040
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov word [ebp + 8], ax
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov eax, dword [ebp + 0x10]
mov word [ebp + 0x10], ax
xor edi, edi
lea eax, [fcn.0040f68f]
mov dword [0x55dfe0], eax
push dword [ebp + 0x14]
movsx eax, word [ebp + 0x10]
push eax
movsx eax, word [ebp + 0xc]
push eax
movsx eax, word [ebp + 8]
push eax
push 0
push 0
call fcn.0040e00f
add esp, 0x18
or eax, eax
je 0x40e179
movsx eax, word [ebp + 8]
mov dword [0x5a2e6c], eax
movsx eax, word [ebp + 0xc]
mov dword [0x5a2e68], eax
movsx eax, word [ebp + 8]
mov dword [0x5a2e60], eax
movsx eax, word [ebp + 0xc]
mov dword [0x5a2e64], eax
movsx eax, word [ebp + 0x10]
mov dword [0x5a2e58], eax
push 0
call sub.USER32.dll_ShowCursor
cmp dword [0x55dfe8], 0
je 0x40e11e
push 3
push dword [0x55dfd4]
call sub.USER32.dll_ShowWindow
push 0
push dword [0x55dfd4]
call sub.USER32.dll_EnableWindow
push dword [0x55dfd4]
push 1
push dword [ebp + 0x14]
movsx eax, word [ebp + 0x10]
push eax
movsx eax, word [ebp + 0xc]
push eax
movsx eax, word [ebp + 8]
push eax
call dword [0x5a2e40]
or eax, eax
je 0x40e179
call dword [0x5a2e44]
mov dword [0x55ded8], eax
mov dword [0x55dedc], eax
xor edi, edi
inc edi
jmp 0x40e179
push 0x11
push dword [0x55dfd4]
mov eax, dword [0x55dfc0]
push eax
mov esi, dword [eax]
call dword [esi + 0x50]
or eax, eax
jne 0x40e179
push 0
push dword [0x5a2e20]
movsx eax, word [ebp + 0x10]
push eax
movsx eax, word [ebp + 0xc]
push eax
movsx eax, word [ebp + 8]
push eax
mov eax, dword [0x55dfc0]
push eax
mov esi, dword [eax]
call dword [esi + 0x54]
or eax, eax
jne 0x40e179
call fcn.0040de60
or eax, eax
je 0x40e179
push 3
push dword [0x55dfd4]
call sub.USER32.dll_ShowWindow
call fcn.0040d875
xor edi, edi
inc edi
or edi, edi
je 0x40e1ae
push 0x5a2e7c
mov eax, dword [0x55dfc0]
push eax
mov ebx, dword [eax]
call dword [ebx + 0x3c]
call fcn.0040d780
mov dword [0x55dfdc], 1
lea eax, [0x40deea]
mov dword [0x5a2e70], eax
call fcn.0040fb46
jmp 0x40e1b3
call fcn.0040d410
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10