joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bd14
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 0x34], esp
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x44], sym.___gxx_personality_sj0
mov dword [ebp - 0x40], 0x44a590
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 0x41be7c
call sym.__Unwind_SjLj_Register
mov dword [ebp - 0x64], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41bd93
mov eax, dword [0x44c2e8]
test eax, eax
je 0x41bdb4
cmp dword [ebp + 0xc], 0x80
ja 0x41bd7e
cmp dword [0x44c2e8], 1
jne 0x41bde6
mov dword [ebp - 0x58], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym.operator_new_unsigned_int_
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x64]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], str.GLIBCXX_FORCE_NEW
call sym._getenv
test eax, eax
jne 0x41be64
mov edi, 0xffffffff
mov dword [esp + 4], edi
mov dword [esp], 0x44c2e8
mov dword [ebp - 0x58], 0xffffffff
call method.__gnu_cxx.__atomic_add_int_volatile__int_
jmp 0x41bd6c
mov dword [ebp - 0x58], 0xffffffff
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], ecx
mov dword [esp], eax
call method.__gnu_cxx::__pool_alloc_base._M_get_free_list_unsigned_int_
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x60]
mov dword [esp], ecx
call method.__gnu_cxx::__pool_alloc_base._M_get_mutex__
mov dword [ebp - 0x28], eax
mov esi, dword [0x455880]
test esi, esi
jne 0x41be72
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
test edx, edx
je 0x41beb3
mov eax, dword [edx]
mov dword [ebp - 0x64], edx
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x41beda
mov edx, dword [0x455880]
mov eax, dword [ebp - 0x28]
test edx, edx
je 0x41bd93
mov dword [esp], eax
mov dword [ebp - 0x58], 1
call sym.___gthr_win32_mutex_unlock
jmp 0x41bd93
mov eax, 1
mov dword [esp + 4], eax
jmp 0x41bdd1
mov dword [esp], eax
call sym.___gthr_win32_mutex_lock
jmp 0x41be1a
mov dword [ebp - 0x58], 3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x60]
add eax, 7
and eax, 0xfffffff8
mov dword [esp + 4], eax
mov dword [esp], ecx
call method.__gnu_cxx::__pool_alloc_base._M_refill_unsigned_int_
mov dword [ebp - 0x64], eax
jmp 0x41be31
mov dword [ebp - 0x58], 3
call method.std.__throw_bad_alloc__
jmp 0x41be3c
Function at 0x41c0e4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 0x34], esp
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], edi
mov dword [ebp - 0x44], sym.___gxx_personality_sj0
mov dword [ebp - 0x40], 0x44a5b8
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 0x41c28d
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
mov dword [ebp - 0x64], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41c1f4
mov edi, dword [ebp + 0xc]
test edi, edi
js 0x41c1e8
mov esi, dword [0x44c2ec]
test esi, esi
je 0x41c244
mov eax, dword [ebp + 0xc]
add eax, eax
cmp eax, 0x80
mov dword [ebp - 0x68], eax
ja 0x41c214
cmp dword [0x44c2ec], 1
je 0x41c214
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x60]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [ebp - 0x58], 0xffffffff
call method.__gnu_cxx::__pool_alloc_base._M_get_free_list_unsigned_int_
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call method.__gnu_cxx::__pool_alloc_base._M_get_mutex__
mov dword [ebp - 0x28], eax
mov edx, dword [0x455880]
test edx, edx
jne 0x41c280
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx]
test edx, edx
je 0x41c2c4
mov eax, dword [edx]
mov dword [ebp - 0x64], edx
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x41c2eb
mov esi, dword [0x455880]
mov eax, dword [ebp - 0x28]
test esi, esi
je 0x41c1f4
mov dword [esp], eax
mov dword [ebp - 0x58], 1
call sym.___gthr_win32_mutex_unlock
jmp 0x41c1f4
mov dword [ebp - 0x58], 0xffffffff
call method.std.__throw_bad_alloc__
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x64]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x68]
mov dword [esp], ecx
mov dword [ebp - 0x58], 0xffffffff
call sym.operator_new_unsigned_int_
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x64]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], str.GLIBCXX_FORCE_NEW
call sym._getenv
test eax, eax
je 0x41c275
mov ebx, 1
mov dword [esp + 4], ebx
mov dword [esp], 0x44c2ec
mov dword [ebp - 0x58], 0xffffffff
call method.__gnu_cxx.__atomic_add_int_volatile__int_
jmp 0x41c150
mov ecx, 0xffffffff
mov dword [esp + 4], ecx
jmp 0x41c25d
mov dword [esp], eax
call sym.___gthr_win32_mutex_lock
jmp 0x41c1a8
mov eax, dword [ebp - 0x68]
add eax, 7
and eax, 0xfffffff8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
mov dword [ebp - 0x58], 3
call method.__gnu_cxx::__pool_alloc_base._M_refill_unsigned_int_
mov dword [ebp - 0x64], eax
jmp 0x41c1bf
mov dword [ebp - 0x58], 3
call method.std.__throw_bad_alloc__
jmp 0x41c1ca
Function at 0x41cd98
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
call sym._fread
test eax, eax
mov edx, eax
jle 0x41cde8
movzx eax, byte [esi + eax - 1]
mov dword [ebx + 0x24], eax
mov ebx, dword [ebp - 8]
mov eax, edx
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x24], 0xffffffff
mov eax, edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40109a
Capabilities:
Encode data using xor

Disassembly:
pop ebx
mov ecx, 0x49e
xor byte [ecx + ebx], 0x24
loop 0x4010a0
jmp 0x4010ae
Function at 0x406000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x406175
cmp dword [esp + 0x54], 0x40
jne 0x406175
cmp word [esp + 0x10], 0x5a4d
jne 0x406175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x406175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x40c960
push esi
call ebx
test eax, eax
je 0x406175
cmp dword [esp + 0x54], 0xf8
jne 0x406175
cmp dword [0x40c960], 0x4550
jne 0x406175
mov eax, dword [0x40c976]
test ah, 0x20
jne 0x406175
mov edx, dword [0x40ca80]
xor eax, eax
mov ax, word [0x40c966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x40ca58], eax
je 0x406175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x40ca6c], eax
xor eax, eax
mov ax, word [0x40c966]
mov edx, dword [0x40ca58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x406175
cmp dword [esp + 0x54], edi
jne 0x406175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x40ca80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x40c9b4]
cmp edx, eax
ja 0x406175
mov edi, dword [0x40ca58]
mov ecx, dword [0x40c988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x406175
xor eax, eax
push 2
mov ax, word [0x40c966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x406175
cmp dword [edi - 0x20], ebx
ja 0x406175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x408769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c190
cmp edx, dword [eax]
je 0x40878b
add eax, 8
inc ecx
cmp eax, 0x40c220
jl 0x40877c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c190]
jne 0x4088b9
mov eax, dword [0x40cbb0]
cmp eax, 1
je 0x408893
test eax, eax
jne 0x4087bc
cmp dword [0x40c0e4], 1
je 0x408893
cmp edx, 0xfc
je 0x4088b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4087f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b45c
push edi
call fcn.00409f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409680
lea eax, [ebp - 0xa0]
push 0x40b43c
push eax
call fcn.00409680
push dword [esi + 0x40c194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409e75
add esp, 0x2c
pop edi
jmp 0x4088b9
lea eax, [ebp + 8]
lea esi, [esi + 0x40c194]
push 0
push eax
push dword [esi]
call fcn.00409490
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 0x40ba16
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push dword [0x499700]
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call fcn.0040c040
mov esi, dword [ebp + 0x10]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [0x49c6e8]
push 8
pop edx
cmove ecx, edx
xor ebx, ebx
inc ebx
or esi, ecx
cmp eax, ebx
je 0x40ba5d
cmp eax, 2
je 0x40ba5d
cmp eax, 3
je 0x40ba5d
mov dword [ebp - 0xc], edi
jmp 0x40bacd
cmp byte [0x49c6f9], 0
mov dword [ebp - 0xc], ebx
jne 0x40ba6e
call fcn.0040be70
mov eax, dword [0x49e1e4]
cmp byte [eax + 3], 0
je 0x40ba9f
push ebx
push dword [0x49c6e4]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [0x49c6f9], 0
je 0x40ba9f
push edi
push ebx
push 6
push dword [0x49c6e4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x49e1e4]
mov eax, dword [eax + 0x1a]
mov dword [ebp - 0x10], eax
call fcn.0040124f
inc dword [0x49d440]
test esi, 0x1000
jne 0x40bac3
and esi, 0xffffdfff
call dword [sym.imp.USER32.dll_InSendMessage]
test eax, eax
je 0x40bad9
and esi, 0xffffdfff
or esi, 0x1000
mov ebx, dword [sym.imp.USER32.dll_GetActiveWindow]
call ebx
mov edi, eax
push 1
mov dword [ebp + 0x10], edi
call fcn.00413114
push edi
mov dword [ebp - 8], eax
call fcn.00412eb8
test eax, eax
jne 0x40bb0d
cmp edi, dword [0x49c6e4]
je 0x40bb0d
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
mov dword [ebp + 0x10], eax
call ebx
push 1
push dword [ebp - 8]
mov ebx, eax
call fcn.00412b98
mov ecx, dword [0x49c6e4]
cmp ebx, ecx
je 0x40bb49
test ecx, ecx
je 0x40bb49
push ecx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40bb49
push 0
push dword [0x49c6e4]
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_EnableWindow]
call dword [sym.imp.USER32.dll_ReleaseCapture]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call fcn.0040c316
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40bb8e
and esi, 0xf0f
or esi, 0x1010
call dword [sym.imp.USER32.dll_ReleaseCapture]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call fcn.0040c316
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x40bb63
mov edi, dword [ebp + 0x10]
cmp dword [ebp - 4], 0
je 0x40bba2
push 1
push dword [0x49c6e4]
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x40bbb0
push 0
push dword [ebp - 8]
call fcn.00412b98
cmp dword [ebp - 0xc], 0
je 0x40bc05
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40bbc3
push eax
call fcn.004011bb
push 2
call fcn.00486f50
call fcn.00490dc7
test eax, eax
jne 0x40bbdb
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov eax, dword [0x49e1e4]
dec dword [0x49d440]
cmp byte [eax + 3], 0
je 0x40bbfa
push 0
push dword [0x49c6e4]
call dword [sym.imp.USER32.dll_EnableWindow]
test edi, edi
je 0x40bc05
push edi
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40dd7c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40dd9e
movzx eax, byte [ebp - 4]
jmp 0x40dda0
xor eax, eax
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
inc esi
cmp dword [ebp + 8], 0
push edi
mov edi, esi
jne 0x40ec3d
cmp dword [0x49d440], 0
jg 0x40ec3d
cmp dword [0x49d890], 0
jg 0x40ec3d
cmp byte [0x49c6f9], 0
je 0x40ec98
cmp dword [0x49c6e8], esi
jne 0x40ec98
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [0x49c6d4]
mov dword [ebp - 4], ebx
mov ebx, eax
mov dword [0x49c6d4], 0x3000
push 0xe000
call fcn.0040cda5
test eax, eax
jne 0x40ec8e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x3e8
jb 0x40ec8a
push 0
push esi
call fcn.0040ecc3
mov edi, eax
xor esi, esi
test edi, edi
jne 0x40ec61
mov ebx, dword [ebp - 4]
mov dword [0x49c6d4], ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x494cd8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ecx, ecx
push esi
mov dword [ebp - 0x48], ecx
push edi
mov dword [ebp - 0x4c], ecx
cmp byte [0x49c6f8], cl
je 0x40eced
xor eax, eax
jmp 0x40edb6
mov eax, dword [0x49c6ec]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x44]
push ecx
push eax
mov dword [0x49c6ec], eax
call sub.VCRUNTIME140.dll__setjmp3
pop ecx
pop ecx
test eax, eax
jne 0x40ed98
cmp dword [ebp + 8], eax
je 0x40ed1e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x49c704], eax
mov byte [0x49c6f8], 1
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov edi, ebx
sub edi, dword [0x49c704]
jns 0x40ed42
and dword [0x49c704], 0
mov edi, ebx
push 0x8000
call fcn.0040cda5
test eax, eax
jne 0x40ed98
cmp dword [0x49c6e8], 1
jne 0x40ed98
mov eax, dword [esi + 0x4999ec]
test eax, eax
je 0x40ed7c
cmp dword [ebp + 0xc], 0
jne 0x40ed72
cmp dword [esi + 0x4999f0], 0
jne 0x40ed7c
push ebx
push edi
push dword [ebp + 8]
call eax
or dword [ebp - 0x48], eax
add esi, 8
cmp esi, 0x38
jb 0x40ed27
mov eax, dword [ebp - 0x4c]
mov dword [0x49c6ec], eax
mov eax, dword [ebp - 0x48]
mov byte [0x49c6f8], 0
jmp 0x40edb6
cmp dword [ebp + 0xc], 0
mov ecx, dword [ebp - 0x4c]
mov dword [0x49c6ec], ecx
mov byte [0x49c6f8], 0
je 0x40edb3
call fcn.0040d114
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490511
mov esp, ebp
pop ebp
ret 8

Function at 0x40f028
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
push 0x10
call ebx
movzx esi, ax
shr esi, 1
push 0x11
and esi, 0x4000
call ebx
movzx edi, ax
and edi, 0x8000
or edi, esi
push 0x12
shr edi, 2
call ebx
and eax, 0x8000
or eax, edi
pop edi
pop esi
shr eax, 0xa
pop ebx
ret
Function at 0x40f064
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 0x18]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push ebx
call edi
test eax, eax
jne 0x40f092
push 2
pop eax
jmp 0x40f140
cmp dword [0x49c6e8], 1
jne 0x40f13d
cmp dword [ebx + 4], 0xa0
je 0x40f0be
cmp dword [ebx + 4], 0x112
jbe 0x40f13d
cmp dword [ebx + 4], 0x200
ja 0x40f13d
push 0
push 0x9f
push 0
push esi
lea eax, [ebp - 0x1c]
push eax
call edi
test eax, eax
jne 0x40f13d
push eax
push 0x109
push 0xa1
push esi
lea eax, [ebp - 0x1c]
push eax
call edi
test eax, eax
jne 0x40f13d
push eax
push 0x400
push 0x201
push esi
lea eax, [ebp - 0x1c]
push eax
call edi
test eax, eax
jne 0x40f13d
cmp dword [ebx + 4], 0xa0
je 0x40f110
cmp dword [ebx + 4], 0x200
jne 0x40f136
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call esi
mov edi, 0x8000
test di, ax
jne 0x40f13d
push 2
call esi
test di, ax
jne 0x40f13d
push 4
call esi
test di, ax
jne 0x40f13d
push 3
jmp 0x40f08c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4109b1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x494cd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x49e148]
test eax, eax
je 0x410af3
cmp dword [0x49e14c], 0
push esi
push 2
pop esi
je 0x410ac2
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_DeleteMenu]
push 0
push esi
push eax
call edi
xor ebx, ebx
push ebx
push 0x410
jmp 0x410a00
inc ebx
mov eax, ebx
or eax, 0x410
push eax
push dword [0x49e148]
call edi
push 0
test eax, eax
jne 0x4109f7
xor ebx, ebx
jmp 0x410aab
push edi
call fcn.00412f57
test eax, eax
jne 0x410aaa
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push edi
mov dword [ebp - 0x64], eax
call fcn.00412dc5
test eax, eax
jne 0x410a9e
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x410a9e
cmp ebx, 9
jg 0x410a9e
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
mov dword [eax + 0x14], ebx
jne 0x410a66
push 0x5b
lea eax, [ebp - 0x60]
push eax
push 0x110003
call fcn.0045ca1c
mov eax, esi
jmp 0x410a88
lea eax, [ebx + 0x31]
mov byte [ebp - 0x60], 0x26
mov byte [ebp - 0x5f], al
lea eax, [ebp - 0x5d]
push 0x58
push eax
push edi
mov byte [ebp - 0x5e], 0x20
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, ebx
or eax, 0x410
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0
push dword [0x49e148]
call dword [sym.imp.USER32.dll_AppendMenuA]
inc ebx
jmp 0x410aaa
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
mov dword [eax + 0x14], 9
push edi
call fcn.00413138
mov edi, eax
test edi, edi
jne 0x410a15
and dword [0x49e14c], eax
pop edi
pop ebx
mov eax, dword [0x49c738]
test eax, eax
je 0x410af2
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov eax, dword [eax]
cmp dword [eax + 0x14], 9
je 0x410ae4
mov esi, dword [eax + 0x14]
or esi, 0x410
push 1
push esi
push dword [0x49e148]
call fcn.0041143f
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490511
mov esp, ebp
pop ebp
ret

Function at 0x413c69
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 0
mov esi, eax
jne 0x413c92
push dword [ebp + 8]
call fcn.00412f57
test eax, eax
jne 0x413c92
call fcn.00410c5e
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x41edc7
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x494cd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push eax
call fcn.0041edae
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41edec
sub ecx, edx
cmp ecx, 8
jbe 0x41edfe
xor eax, eax
jmp 0x41ee2b
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push esi
push 0x104
push eax
call fcn.0041f0c7
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
pop ecx
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00490511
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41f0c7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x494cd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x31c], esi
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x41f0ed
push 8
pop eax
sub edi, edx
cmp edi, eax
cmovg edi, eax
lea eax, [ebp - 0x14]
push edi
push eax
push ecx
call fcn.00489fea
push 3
lea eax, [ebp - 0x14]
pop esi
add edi, eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, eax
and ebx, 0xf
cmp ebx, 0xa
lea eax, [ebx + 0x37]
movzx ecx, al
lea edx, [ebx + 0x30]
movzx eax, dl
cmovl ecx, eax
mov eax, dword [ebp + 0x14]
shr eax, 4
mov byte [esi + edi], cl
sub esi, 1
mov dword [ebp + 0x14], eax
jns 0x41f115
mov esi, dword [ebp - 0x31c]
add edi, 4
mov dword [ebp - 0x320], edi
pop ebx
mov byte [edi], 0
mov edi, dword [ebp + 0xc]
mov eax, edi
sub eax, dword [ebp - 0x320]
mov byte [esi], 0
lea eax, [ebp + eax - 0x15]
test eax, eax
jle 0x41f1a6
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [esi], 0
je 0x41f1a6
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f178
sub ecx, edx
cmp byte [ecx + esi - 1], 0x5c
je 0x41f194
lea eax, [edi - 1]
cmp ecx, eax
jge 0x41f194
mov byte [ecx + esi], 0x5c
inc ecx
sub edi, ecx
lea eax, [ecx + esi]
push edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00487337
jmp 0x41f203
push edi
push esi
push dword [0x49e1fc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, pe_nt_image_headers32
lea eax, [ebp - 0x115]
push ecx
push eax
push ecx
lea eax, [ebp - 0x215]
push eax
push ecx
lea eax, [ebp - 0x315]
push eax
push 3
lea eax, [ebp - 0x318]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath_s]
push 0x49e1f0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x315]
push eax
lea eax, [ebp - 0x318]
push eax
push edi
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__makepath_s]
add esp, 0x3c
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00490511
mov esp, ebp
pop ebp
ret 0x10