joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4066c6
Capabilities:
Get common file path

Disassembly:
sub esp, 0x518
lea eax, [esp + 8]
push ebx
mov ebx, dword [esp + 0x520]
push ebp
push esi
mov esi, 0x104
push edi
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.00405ccf
mov edx, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call dword [edx + 0x10]
test eax, eax
je 0x406875
lea eax, [esp + 0x11c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x11c]
push str.etrnview.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x11c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004063bd
pop ecx
test eax, eax
pop ecx
je 0x406895
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebp, 0x446764
push 0x40
push ebp
push 1
push ebx
call edi
mov esi, 0x4467a4
push 0x400
push esi
push 2
push ebx
call edi
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x43
push ebp
push esi
push 0
call ebx
cmp eax, 2
je 0x406875
xor ecx, ecx
cmp eax, 6
lea eax, [esp + 0x18]
push 0x4464f8
sete cl
push eax
mov dword [esp + 0x1c], ecx
call fcn.00405ccf
mov ecx, eax
call fcn.0040e73b
lea eax, [esp + 0x424]
mov dword [esp + 0x10], 1
push eax
call fcn.004061e1
test eax, eax
pop ecx
jne 0x4067ea
push eax
lea eax, [esp + 0x1c]
push str.application_x_etranscript
push eax
push str.E_Transcript_File
push str.ptxfile
push str..ptx
call fcn.00406455
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4067ea
push 0x400
push esi
push 0xe
jmp 0x406864
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x224]
push eax
call fcn.0042a830
lea eax, [esp + 0x228]
push 0x5c
push eax
call fcn.0042a630
add esp, 0x10
test eax, eax
je 0x406815
and byte [eax], 0
lea eax, [esp + 0x324]
push 0xff
push eax
push 0x10
push dword [esp + 0x538]
call edi
push 0
lea eax, [esp + 0x328]
push dword [esp + 0x18]
push 1
push eax
lea eax, [esp + 0x230]
push eax
push dword [esp + 0x540]
call fcn.00405f5d
mov ecx, dword [esp + 0x28]
add esp, 0x18
test ecx, eax
push 0x400
push esi
jne 0x406882
push 0x13
push dword [esp + 0x538]
call edi
push 0x10
push ebp
push esi
push 0
call ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret
push 3
push dword [esp + 0x538]
call edi
push 0x40
push ebp
push esi
push 0
call ebx
push 1
pop eax
jmp 0x406877
Function at 0x409797
Capabilities:
Get common file path

Disassembly:
mov eax, 0x436cfc
call fcn.0042b128
sub esp, 0x164
push esi
lea eax, [ebp - 0x170]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x170]
push str.pnxetkey.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x170]
push 0x11
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4097f8
lea eax, [ebp - 0x170]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov esi, eax
cmp esi, 0xffffffff
je 0x409869
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x6c]
call fcn.004117ff
and dword [ebp - 4], 0
push str.Invalid_password.
lea ecx, [ebp - 0x6c]
call fcn.0041181e
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00411975
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00411975
lea eax, [ebp - 0x20]
push 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00411814
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x409876
Capabilities:
Get common file path

Disassembly:
mov eax, 0x436d10
call fcn.0042b128
sub esp, 0x164
push edi
lea eax, [ebp - 0x170]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x170]
push str.pnxetkey.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x170]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4098c8
xor eax, eax
jmp 0x409980
push esi
lea ecx, [ebp - 0x6c]
call fcn.004117ff
and dword [ebp - 4], 0
mov esi, dword [sym.imp.KERNEL32.dll__lread]
lea eax, [ebp - 0x20]
push 0x10
push eax
push edi
call esi
cmp eax, 0x10
jne 0x409968
push str.Invalid_password.
lea ecx, [ebp - 0x6c]
call fcn.0041181e
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041198c
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041198c
and byte [ebp - 0x10], 0
cmp dword [ebp + 0x10], 0
jne 0x40992e
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.0040f1c1
jmp 0x40993a
push dword [ebp + 0x14]
lea eax, [ebp - 0x20]
push eax
call fcn.0040976b
pop ecx
test eax, eax
pop ecx
jne 0x409949
lea eax, [ebp - 0x20]
push 0x10
push eax
push edi
jmp 0x4098e2
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [ebp + 0xc], 0
je 0x409963
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
pop esi
jmp 0x409971
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00411814
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x40b084
Capabilities:
Read .ini file

Disassembly:
lea eax, [ecx + 4]
push eax
mov eax, dword [ecx]
push dword [esp + 0x10]
push dword [esp + 0xc]
call dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 8]
mov dword [ecx], eax
ret 0xc

Function at 0x40b0a5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
lea eax, [ebp - 0x20]
push 0xa
push eax
push dword [ebp + 0x10]
mov esi, ecx
call fcn.0043693f
add esp, 0xc
lea eax, [esi + 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x40]
push 0x20
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esi]
push dword [ebp + 8]
call dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x40]
push eax
call fcn.0042b7cd
pop ecx
pop esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
leave
ret 0xc
Function at 0x40e73b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x436e50
call fcn.0042b128
sub esp, 0x260
push ebx
mov dword [ebp - 0x10], ecx
push esi
push edi
lea ecx, [ebp - 0x64]
call fcn.004117ff
push 0x20
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x40e8a6
mov esi, dword [sym.imp.KERNEL32.dll__llseek]
push 2
push 0xfffffffffffffff4
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll__lread]
lea eax, [ebp - 0x18]
push 4
push eax
push edi
call ebx
cmp dword [ebp - 0x18], 0xe79a45c9
jne 0x40e7f8
xor eax, eax
cmp dword [ebp + 0xc], eax
jne 0x40e7d8
and byte [ebp - 0x26c], al
push eax
push eax
lea eax, [ebp - 0x26c]
push eax
push dword [ebp + 8]
call fcn.00409876
add esp, 0x10
test eax, eax
jne 0x40e7f8
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00411814
xor eax, eax
jmp 0x40e8b4
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push dword [ebp + 8]
call dword [eax + 0x18]
test eax, eax
jne 0x40e7f8
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
xor esi, esi
jmp 0x40e8a6
push 2
push 0xfffffffffffffffc
push edi
call esi
lea eax, [ebp - 0x14]
push 4
push eax
push edi
call ebx
cmp eax, 4
jne 0x40e860
xor ebx, ebx
push ebx
push ebx
push edi
call esi
lea eax, [ebp - 0x168]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x168]
push str.etrnview.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x168]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e863
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
push edi
push ebx
call fcn.0040e5ad
test eax, eax
jne 0x40e886
jmp 0x40e863
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll__lclose]
push edi
call esi
cmp ebx, 0xffffffff
je 0x40e7f1
push ebx
call esi
lea eax, [ebp - 0x168]
push eax
call fcn.0042a920
pop ecx
jmp 0x40e7f1
mov esi, dword [sym.imp.KERNEL32.dll__lclose]
push edi
call esi
push ebx
call esi
lea eax, [ebp - 0x168]
push eax
push dword [ebp + 8]
call fcn.0042a830
pop ecx
pop ecx
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00411814
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x411057
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 0x40
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0042b210
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov edi, esi
xor edx, edx
and edi, 0x3f
jbe 0x4110a0
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, edx
and ecx, 3
mov eax, edx
movzx ebx, byte [ebx]
shl ecx, 3
shr eax, 2
shl ebx, cl
lea eax, [ebp + eax*4 - 0x40]
xor dword [eax], ebx
inc dword [ebp + 0xc]
inc edx
cmp edx, edi
jb 0x41107c
pop ebx
mov ecx, esi
mov eax, esi
and ecx, 3
push 1
shr eax, 2
lea ecx, [ecx*8 + 7]
pop edx
and eax, 0xf
shl edx, cl
lea eax, [ebp + eax*4 - 0x40]
xor dword [eax], edx
cmp edi, 0x37
jbe 0x4110e0
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
call fcn.0040f311
push 0x40
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0042b210
add esp, 0x14
mov eax, esi
shl eax, 3
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
shr esi, 0x1d
shl eax, 3
or esi, eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], esi
push dword [ebp + 8]
call fcn.0040f311
pop ecx
pop ecx
pop edi
pop esi
leave
ret

Function at 0x411831
Capabilities:
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0042a950
pop ecx
mov edx, 0x43e358
mov ecx, dword [ebp + 0xc]
push 4
xor edi, edi
mov dword [ebp - 0xc], eax
sub edx, ecx
mov dword [ebp - 4], 0x12
pop ebx
xor esi, esi
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
movsx eax, di
shl esi, 8
mov al, byte [eax + ebx]
and eax, 0xff
or esi, eax
inc edi
cmp di, word [ebp - 0xc]
jl 0x41187d
xor edi, edi
dec dword [ebp - 8]
jne 0x411861
mov eax, dword [edx + ecx]
push 4
xor eax, esi
pop ebx
mov dword [ecx], eax
add ecx, ebx
dec dword [ebp - 4]
jne 0x41185c
mov eax, dword [ebp + 0x10]
mov esi, ebx
mov ecx, 0x43e3a0
mov edx, 0x100
sub ecx, dword [ebp + 0x10]
mov edi, dword [ecx + eax]
mov dword [eax], edi
add eax, ebx
dec edx
jne 0x4118a5
dec esi
jne 0x411898
and dword [ebp - 4], 0
and dword [ebp - 8], 0
mov esi, dword [ebp + 0xc]
push 9
pop edi
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041191e
mov eax, dword [ebp - 4]
add esp, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
add esi, 8
dec edi
jne 0x4118c0
mov esi, dword [ebp + 0x10]
mov edi, 0x80
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041191e
mov eax, dword [ebp - 4]
add esp, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
add esi, 8
dec edi
jne 0x4118ef
dec ebx
jne 0x4118ea
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41191e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, dword [ebx]
mov edi, dword [ecx]
mov dword [ebp + 8], esi
mov dword [ebp + 0x10], 0x10
mov ecx, dword [ebp + 8]
push dword [ebp + 0x14]
xor eax, dword [ecx]
push eax
mov dword [ebp - 4], eax
call fcn.004117b2
add dword [ebp + 8], 4
pop ecx
xor eax, edi
dec dword [ebp + 0x10]
mov edi, dword [ebp - 4]
pop ecx
jne 0x41193c
mov ecx, eax
mov eax, dword [esi + 0x40]
xor eax, ecx
mov ecx, dword [esi + 0x44]
xor ecx, edi
pop edi
mov dword [ebx], ecx
mov ecx, dword [ebp + 0xc]
pop esi
pop ebx
mov dword [ecx], eax
leave
ret

Function at 0x4119a3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [eax]
mov ebx, dword [ecx]
push edi
lea edi, [esi + 0x44]
mov dword [ebp + 0x10], 0x10
xor eax, dword [edi]
push dword [ebp + 0x14]
push eax
mov dword [ebp - 4], eax
call fcn.004117b2
pop ecx
xor eax, ebx
mov ebx, dword [ebp - 4]
sub edi, 4
dec dword [ebp + 0x10]
pop ecx
jne 0x4119c1
mov edx, dword [ebp + 8]
mov ecx, eax
mov eax, dword [esi + 4]
pop edi
xor eax, ecx
mov ecx, dword [esi]
xor ecx, ebx
pop esi
mov dword [edx], ecx
mov ecx, dword [ebp + 0xc]
pop ebx
mov dword [ecx], eax
leave
ret

Function at 0x413130
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jle 0x413166
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ebx
push edi
mov eax, dword [ecx]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x43f3e4]
xor edi, eax
inc edx
dec esi
mov dword [ecx], edi
jne 0x413143
pop edi
pop ebx
pop esi
ret
Function at 0x413641
Capabilities:
Copy file

Disassembly:
mov eax, 0x436f0c
call fcn.0042b128
sub esp, 0x224
push ebx
push esi
push edi
mov edi, 0x438b20
push 0x104
mov dword [ebp - 0x1c], edi
call fcn.0042b147
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x18], esi
mov byte [esi], bl
push 0x80
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x24], edi
call fcn.0042b147
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0x20], edi
mov byte [edi], bl
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 1
call fcn.00413190
call fcn.00405cbd
push eax
lea ecx, [ebp - 0x12c]
call fcn.00413203
push dword [0x43f804]
push edi
call fcn.0042a830
cmp byte [ebp + 0x18], bl
pop ecx
pop ecx
je 0x4136cc
push dword [0x43f808]
push edi
call fcn.0042a840
pop ecx
pop ecx
push 0x4402b4
push edi
call fcn.0042a840
push esi
push str.E_Transcript
push 0x413cb3
push ebx
push 0x4402b0
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041343e
add esp, 0x30
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x4137f8
call fcn.00405ccf
mov edx, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call dword [edx + 8]
push 0x2e
push esi
call fcn.0042a630
pop ecx
cmp eax, ebx
pop ecx
je 0x41373b
push str..exe
push eax
call fcn.0042d6a0
pop ecx
test eax, eax
pop ecx
jne 0x41373b
mov byte [ebp - 0xd], 1
push 0x7f02
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp byte [ebp - 0xd], bl
jne 0x41379c
cmp byte [ebp + 0x18], bl
je 0x41379c
push 0x2e
push esi
call fcn.0042a630
pop ecx
cmp eax, ebx
pop ecx
je 0x413773
push str..ptx
push eax
call fcn.0042a830
pop ecx
pop ecx
lea eax, [ebp - 0x230]
push 1
push eax
lea eax, [ebp + 0x18]
push dword [ebp + 0x14]
mov dword [ebp + 0x18], ebx
push eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push esi
call fcn.00405ccf
mov ecx, eax
call fcn.0040e3b5
jmp 0x4137a7
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4137bc
push ebx
push ebx
push dword [0x43f80c]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x5c
push esi
call fcn.0042a630
push esi
push 0x447d30
mov byte [eax], bl
call fcn.0042a830
add esp, 0x10
call fcn.00405cbd
push eax
lea ecx, [ebp - 0x12c]
call fcn.00413342
push edi
call fcn.0042a492
push esi
call fcn.0042a492
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x416ef2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0x417336
push dword [ebp + 8]
push 0x2a4
push dword [0x446760]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push dword [ebp + 0xc]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
call fcn.0041739e
push 8
mov edi, eax
call fcn.0042b147
mov ebx, dword [ebp + 0x10]
pop ecx
pop ecx
mov dword [eax], edi
push eax
push 8
push esi
mov dword [eax + 4], ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
push edi
call fcn.004173c9
pop ecx
push eax
mov eax, dword [ebp - 8]
add eax, 0xffffffe6
push eax
push 0xd
push 0xd
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
test ebx, ebx
jne 0x416fb8
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x10]
push eax
push esi
call ebx
lea eax, [ebp - 8]
push eax
push esi
call ebx
xor ebx, ebx
push ebx
push 2
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push 6
add eax, 0xfffffffe
push eax
push dword [ebp - 8]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417053
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x447e68]
add ecx, 0x64
cmp ecx, eax
jae 0x4170ad
call esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
xor edi, edi
push 1
mov dword [0x447e68], eax
push edi
push edi
lea eax, [ebp - 0x1c]
push edi
push eax
call esi
test eax, eax
je 0x4170ad
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
lea eax, [ebp - 0x1c]
push edi
push eax
jmp 0x417088
pop edi
pop esi
leave
ret
Function at 0x42394c
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
mov dword [ebp - 0xc], esi
je 0x423970
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x423977
xor eax, eax
jmp 0x423adc
push eax
call fcn.00423ae1
cmp dword [ebp + 0x18], esi
mov dword [ebp - 8], eax
je 0x423996
push 1
push dword [ebp + 0x18]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [ebp - 0xc], eax
push ebx
mov ebx, dword [sym.imp.GDI32.dll_SetStretchBltMode]
push edi
push 3
push dword [ebp + 8]
call ebx
mov esi, dword [ebp + 0x14]
push 0xcc0020
push 0
mov edi, dword [ebp + 0xc]
push dword [ebp - 4]
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
push dword [ebp - 8]
sub edx, eax
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
mov edx, dword [edi + 8]
push eax
mov eax, dword [edi + 4]
push ecx
mov ecx, dword [edi + 0xc]
sub ecx, eax
push ecx
mov ecx, dword [edi]
sub edx, ecx
push edx
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_StretchDIBits]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
test eax, eax
mov dword [ebp - 0x10], ecx
jne 0x423aba
push eax
push dword [ebp - 4]
push dword [ebp - 4]
call fcn.00423ae1
push eax
push 4
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push 3
mov dword [ebp + 0xc], eax
push dword [ebp + 8]
call ebx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp + 0xc]
mov dword [ebp + 0x18], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [edi]
mov ecx, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp + 0x14], ebx
mov ebx, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov edx, dword [edi + 4]
sub ebx, eax
push 0xcc0020
sub esi, ecx
push ebx
push esi
push eax
mov eax, dword [edi + 0xc]
push ecx
push dword [ebp + 0x18]
sub eax, edx
push eax
mov eax, dword [edi + 8]
sub eax, dword [ebp + 0x14]
push eax
push edx
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_StretchBlt]
test eax, eax
jne 0x423a9c
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push dword [ebp - 0x24]
lea eax, [ebp - 0x130]
push 0
push str.cant_paint__page__d___d_bytes_left_n
push eax
call fcn.0042d20c
add esp, 0x10
push dword [ebp - 8]
push dword [ebp + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0xc], 0
pop edi
pop ebx
je 0x423ad9
push 1
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, dword [ebp - 0x10]
pop esi
leave
ret 0x18
Function at 0x423c76
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.0042b210
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x423cc7
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
je 0x423cdf
mov eax, dword [ebp - 0x8c]
dec eax
dec eax
jne 0x423cdf
cmp dword [ebp - 0x98], 5
jb 0x423cdf
push 1
pop eax
jmp 0x423ce1
xor eax, eax
pop esi
leave
ret
Function at 0x427c99
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
imul edi, edi, 0x1c
mov esi, ecx
mov eax, dword [esi + 8]
add eax, edi
mov ebx, dword [eax]
test ebx, ebx
jne 0x427d0d
push dword [esi + 0x14]
push dword [eax + 0xc]
movzx eax, word [eax + 8]
push dword [esi + 4]
push eax
push dword [0x446760]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov ebx, eax
push ebx
call fcn.00417436
pop ecx
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 4]
sub ecx, eax
push 1
sub ecx, 0x3c
add eax, 0x11
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0xffffffde
push ecx
push eax
push 0x11
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 8]
mov dword [eax + edi], ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ebx
call edi
mov eax, dword [esi + 0x24]
test eax, eax
je 0x427d24
push 0
push eax
call edi
push ebx
mov dword [esi + 0x24], ebx
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42a657
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42a682
test byte [esp + 8], 0x80
je 0x42a671
and al, 0xfe
jmp 0x42a673
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42a693
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042d77c
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42b2f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042d77c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42b312
test byte [esp + 8], 2
je 0x42b312
mov dword [0x447ef8], 0xd
mov dword [0x447efc], 5
jmp 0x42b2ed
xor eax, eax
ret