joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021e0
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
mov esi, ecx
push 0x80000002
call edi
test eax, eax
je 0x402219
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
lea ecx, [esp + 0x18]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [esi + 0x108]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40226f
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push 0x104
push edx
push 1
push 0
push str.EasyShutSys
push eax
call ebx
test eax, eax
je 0x402265
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov dword [esp + 0x10], 1
jmp 0x402297
mov ecx, dword [esp + 0xc]
push str.EasyShutSys
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x40228f
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push str.SoftwareEasyShutSys
push 0x80000002
call edi
test eax, eax
je 0x4022cc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.autorun
push edx
call ebx
test eax, eax
je 0x4022f3
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0x14]
push eax
call esi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x110
ret

Function at 0x402610
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
call fcn.004025e0
test eax, eax
je 0x402699
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402645
push eax
push eax
push str.Open_ProcessToken_failed_
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x402699
push 0
push 0
push str.AdjustTokenPrivileges_enable_failed_
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov esi, dword [esi + 0x100]
sub esi, 0
je 0x4026c8
dec esi
je 0x4026b9
dec esi
jne 0x4026d2
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
add esp, 0x14
ret
push 0
push 0
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
add esp, 0x14
ret
push 0
push 0xc
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
add esp, 0x14
ret
Function at 0x402840
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
push edi
push eax
push 0xf003f
push 0
push str.SoftwareEasyShutSys
mov esi, ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40286d
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edi, [esi + 0x110]
push 4
push edi
push 4
push 0
push str.TipFlag
push ecx
call ebx
test eax, eax
je 0x402897
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
cmp dword [edi], 0
je 0x402925
mov ecx, esi
mov dword [esi + 0x108], 1
call fcn.004021e0
mov eax, dword [esp + 0xc]
lea edx, [esi + 0xe0]
push 4
push edx
push 4
push 0
push str.Period
push eax
call ebx
test eax, eax
je 0x4028d5
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esi + 0xe4]
push ebp
lea ebp, [esi + 0x164]
xor eax, eax
mov edx, dword [ecx - 8]
mov ecx, 0x32
mov edi, ebp
test edx, edx
rep stosd dword es:[edi], eax
jle 0x402907
mov ecx, dword [esi + 0xe4]
inc eax
cmp eax, edx
mov cl, byte [ecx + eax - 1]
mov byte [eax + ebp - 1], cl
jl 0x4028f4
push edx
mov edx, dword [esp + 0x14]
push ebp
push 1
push 0
push str.TipSentence
push edx
call ebx
test eax, eax
pop ebp
je 0x402925
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x402b30
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push ebx
push esi
push edi
push eax
push 0xf003f
push 0
push str.SoftwareEasyShutSys
mov esi, ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402b61
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ebx, [esi + 0x10c]
push 4
push ebx
push 4
push 0
push str.ShutFlag
push ecx
call edi
test eax, eax
je 0x402b8d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [ebx], 0
je 0x402c65
mov ecx, esi
mov dword [esi + 0x108], 1
call fcn.004021e0
mov eax, dword [esp + 0xc]
lea edx, [esi + 0x240]
push 4
push edx
push 4
push 0
push str.hour
push eax
call edi
test eax, eax
je 0x402bcd
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0xc]
lea ecx, [esi + 0x244]
push 4
push ecx
push 4
push 0
push str.minute
push edx
call edi
test eax, eax
je 0x402bf3
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0xc]
lea eax, [esi + 0x248]
push 4
push eax
push 4
push 0
push str.second
push ecx
call edi
test eax, eax
je 0x402c19
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0xc]
lea edx, [esi + 0x100]
push 4
push edx
push 4
push 0
push str.ShutType
push eax
call edi
test eax, eax
je 0x402c3f
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0xc]
add esi, 0xfc
push 4
push esi
push 4
push 0
push str.TimerType
push ecx
call edi
test eax, eax
je 0x402cb5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push 0
push str.ShutType
push eax
mov dword [esp + 0x28], 0xffffffff
call edi
test eax, eax
je 0x402c91
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.TimerType
push edx
call edi
test eax, eax
je 0x402cb5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x4038f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x441e7a
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x18
cmp dword [0x450020], 0
push esi
jne 0x403926
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov ecx, 0x450010
call fcn.00403ba2
mov dword [eax], 0x13
jmp 0x403985
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40395a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov ecx, 0x450010
call fcn.00403ba2
mov dword [eax], 0x10
jmp 0x403985
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40398c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
mov ecx, 0x450010
call fcn.00403ba2
mov dword [eax], 0xf
xor eax, eax
jmp 0x403a12
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov edi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x2800
push eax
push edi
lea ecx, [ebp - 0x24]
call fcn.00412d36
and dword [ebp - 4], 0
push 0x11c
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
mov byte [ebp - 4], 1
pop edi
je 0x4039d5
call fcn.004102f6
mov esi, eax
jmp 0x4039d7
xor esi, esi
and byte [ebp - 4], 0
test esi, esi
je 0x403a02
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.004107d7
test eax, eax
je 0x403a02
push esi
mov ecx, 0x4501f0
call fcn.0040adf5
mov esi, eax
call fcn.0040373c
jmp 0x403a04
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00412d7a
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x407b47
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
jle 0x407bbc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor edi, edi
mov eax, dword [esi + 4]
add eax, edi
movzx ecx, word [eax + 2]
cmp ecx, dword [esp + 0x14]
jne 0x407bb4
mov al, byte [eax]
and al, 4
cmp al, 4
jne 0x407b80
push 0x10
call ebp
and ax, 0x8000
cmp ax, 0x8000
jne 0x407bb4
mov eax, dword [esi + 4]
mov al, byte [edi + eax]
and al, 8
cmp al, 8
jne 0x407b9a
push 0x11
call ebp
and ax, 0x8000
cmp ax, 0x8000
jne 0x407bb4
mov eax, dword [esi + 4]
mov al, byte [edi + eax]
and al, 0x10
cmp al, 0x10
jne 0x407bc5
push 0x12
call ebp
and ax, 0x8000
cmp ax, 0x8000
je 0x407bc5
inc ebx
add edi, 6
cmp ebx, dword [esi]
jl 0x407b5b
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, dword [esi + 4]
lea eax, [ebx + ebx*2]
push 6
lea eax, [ecx + eax*2]
push eax
push dword [esp + 0x20]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 1
pop eax
jmp 0x407bbe
Function at 0x40d38e
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40d3f6
push 1
mov esi, 0x94
pop ebx
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x40d450
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [edi], esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x40d3d9
push 5
jmp 0x40d447
cmp eax, 5
jne 0x40d448
cmp dword [edi + 8], 0
jne 0x40d3e8
push 6
jmp 0x40d447
cmp eax, 5
jne 0x40d448
cmp dword [edi + 8], ebx
jne 0x40d448
push 7
jmp 0x40d447
cmp al, 4
jae 0x40d3fe
xor ebx, ebx
jmp 0x40d450
push 2
mov esi, 0x94
pop ebx
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x40d450
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [edi], esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x40d448
cmp dword [edi + 8], 0xa
jne 0x40d43b
push 3
jmp 0x40d447
cmp eax, 4
jne 0x40d448
cmp dword [edi + 8], 0x5a
jne 0x40d448
push eax
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x40daab
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40db19
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40db19
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov edi, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x44d700
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40db19
push esi
push 1
push ebx
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
push 1
pop eax
jmp 0x40db1b
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40db20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40db4f
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x208]
push eax
push 0
lea eax, [ebp - 0x104]
push 0x44d718
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40dbb6
push dword [ebp + 0x10]
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x105], 0x5c
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
je 0x40dbaf
push str._s_s
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x40dbc7
push 0x44d708
jmp 0x40dba1
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
cmp dword [ebp + 0x14], 0
je 0x40dbe8
push 0x44d704
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
push dword [ebp + 0x14]
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
add esp, 0x10
leave
ret
Function at 0x40f3f4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 0
push dword [edi + 0xac]
lea esi, [edi + 0xac]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_KillTimer]
push 0x3e8
push dword [esi]
call ebx
push 0x3f2
push dword [esi]
call ebx
and dword [edi + 0x11c], 0
pop edi
pop esi
pop ebx
ret

Function at 0x40f85c
Capabilities:
Check os version

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40f874
cmp al, 5
sbb eax, eax
and eax, 2
add eax, 6
ret
push 8
pop eax
ret

Function at 0x412f90
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x442845
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x24
mov al, byte [ebp + 0xb]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], ebx
and byte [ebx + 0xc], 0
lea ecx, [ebx + 4]
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
call fcn.004121c0
mov al, byte [ebp + 0xb]
and byte [ebx + 0xac], 0
lea ecx, [ebx + 0xa4]
xor edi, edi
mov dword [ebp - 4], edi
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
call fcn.004142fb
mov eax, dword [ebp + 8]
push 0x33
mov dword [ebx + 0xa0], eax
lea eax, [ebx + 0x6c]
push edi
push eax
mov byte [ebp - 4], 1
mov dword [ebx], 0x444f14
call sub.MSVCRT.dll_memset
push 0x33
lea eax, [ebx + 0x34]
push edi
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
add esp, 0x18
push 0xf
call esi
push 8
mov dword [ebx + 0x14], eax
call esi
push 0x1e
mov dword [ebx + 0x18], eax
push 0x3c
push edi
lea eax, [ebp - 0x30]
push edi
push eax
mov dword [ebx + 0x1c], 0xff
mov dword [ebx + 0x68], edi
call fcn.0040bc07
mov esi, eax
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x20]
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x14
and dword [ebx + 0x30], 0
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x6c]
push 0x33
mov esi, 0x450024
push eax
lea edi, [ebx + 0x30]
push esi
push str.NAME
push 1
mov ecx, ebx
call fcn.00413095
push 4
push edi
push esi
push str.AUTOPLACE
push 6
mov ecx, ebx
call fcn.00413095
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x419423
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x419448
push 0xfffffffffffffffa
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp + 8], eax
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x419466
mov ecx, esi
call fcn.00419619
lea ecx, [esi + 0x138]
call fcn.0043b9ee
jmp 0x419596
test ebx, 0xffff0000
jne 0x4194c5
mov edi, 0x44dad4
lea eax, [ebp - 0x104]
push edi
push 0x44dad0
push str.SM__TEMP.AVI
push eax
call fcn.0040db20
movzx eax, bx
push edi
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0040daab
add esp, 0x20
test eax, eax
je 0x41952d
lea eax, [ebp - 0x104]
lea ecx, [esi + 0x138]
push eax
call fcn.0043b9a2
test eax, eax
lea eax, [ebp - 0x104]
jmp 0x419523
lea ecx, [esi + 0x138]
push ebx
call fcn.0043b9a2
test eax, eax
jne 0x419538
mov edi, 0x44dad4
lea eax, [ebp - 0x104]
push edi
push 0x44dad0
push str.SM__TEMP.AVI
push eax
call fcn.0040db20
push edi
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0040daab
add esp, 0x20
test eax, eax
je 0x41952d
lea eax, [ebp - 0x104]
lea ecx, [esi + 0x138]
push eax
call fcn.0043b9a2
test eax, eax
lea eax, [ebp - 0x104]
push eax
jne 0x419531
call dword [sym.imp.MSVCRT.dll_remove]
pop ecx
xor eax, eax
jmp 0x419599
call dword [sym.imp.MSVCRT.dll_remove]
pop ecx
mov ecx, dword [esi + 0x1f0]
or word [esi + 0x132], 0xffff
or dword [esi + 0x12c], 0xffffffff
and ecx, 1
xor eax, eax
cmp cl, 1
mov word [esi + 0x130], ax
mov word [esi + 0x134], ax
je 0x419582
push 6
push dword [esi + 0x15c]
push dword [esi + 0x158]
push eax
push eax
push eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x1f0]
and eax, 4
cmp al, 4
jne 0x419596
mov ecx, esi
call fcn.00419687
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x419687
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 0x128], eax
jne 0x4196e6
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
push ecx
push eax
push esi
push 0x4196e9
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
movzx ecx, word [esi + 0x11c]
mov dword [esi + 0x120], eax
mov eax, dword [esi + 0xac]
or ecx, 0x10000
push eax
push ecx
push 0x111
push eax
mov dword [esi + 0x128], 1
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
leave
ret
Function at 0x4225d4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
push edi
lea eax, [ebp - 0x420]
mov esi, ecx
push 0x400
push eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetWindowTextA]
and byte [ebp - 0x21], 0
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [eax + 0x15c], 0
jne 0x42263d
mov ebx, dword [ebp + 8]
push 1
push dword [eax + 0x14]
add eax, 0xf4
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0040bf07
add esp, 0x14
jmp 0x422656
mov ecx, esi
call fcn.00406f9b
push dword [esi + 0xac]
mov ebx, dword [ebp + 8]
push ebx
push 0x1795
push eax
call edi
push 0
push 0
push 0x31
push dword [esi + 0xac]
call edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x14]
push dword [eax + 0xf0]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0xfffffffffffffff0
mov dword [ebp - 0x18], eax
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_GetWindowLongA]
and dword [ebp + 8], 0
push 2
mov edx, eax
pop ecx
and edx, ecx
mov dword [ebp - 0x20], eax
cmp dl, cl
jne 0x4226b3
mov dword [ebp + 8], ecx
push 1
mov edx, eax
pop ecx
and edx, ecx
cmp dl, cl
jne 0x4226c1
mov dword [ebp + 8], ecx
mov edx, eax
mov ecx, 0x200
and edx, ecx
cmp edx, ecx
jne 0x4226d2
or dword [ebp + 8], 0x24
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
jne 0x4226e2
or dword [ebp + 8], 0x20
jmp 0x4226e6
or dword [ebp + 8], 0x10
mov ecx, eax
and cx, 0x80
cmp cl, 0x80
jne 0x4226f6
or byte [ebp + 9], 8
and eax, 0xb
cmp al, 0xb
jne 0x422701
or dword [ebp + 8], 0x20
mov ecx, esi
call fcn.00407242
test eax, eax
je 0x422710
or byte [ebp + 0xa], 2
push dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
mov eax, 0x2000
push dword [ebp - 8]
and ecx, eax
cmp ecx, eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
jne 0x422745
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [ebp + 8]
mov esi, dword [esi + 0x14]
or ax, 0x2010
push eax
lea eax, [ebp - 0x420]
push eax
jmp 0x422768
call dword [sym.imp.GDI32.dll_IntersectClipRect]
push dword [esi + 0xac]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
push dword [ebp + 8]
mov esi, dword [esi + 0x14]
test eax, eax
lea eax, [ebp - 0x420]
push eax
je 0x422782
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x10]
push eax
add esi, 0x160
jmp 0x42279a
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x10]
push eax
add esi, 0x170
push esi
push ebx
call fcn.0040da65
add esp, 0x18
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x14]
push ebx
call edi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x426902
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x442fe2
call sub.MSVCRT.dll__EH_prolog
push ecx
cmp dword [0x460fc8], 0
jne 0x426a99
push ebx
push esi
push edi
call fcn.00426840
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, str.LoadLibraryA
push edi
push eax
mov dword [0x460ff8], eax
call esi
mov ebx, str.LoadLibraryW
mov dword [0x460fc8], eax
push ebx
push dword [0x460ff8]
call esi
push str.LoadLibraryExA
mov dword [0x460fcc], eax
push dword [0x460ff8]
call esi
push str.LoadLibraryExW
mov dword [0x460fd0], eax
push dword [0x460ff8]
call esi
push str.GetProcAddress
mov dword [0x460fd4], eax
push dword [0x460ff8]
call esi
push 0x18
mov dword [0x460fd8], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov esi, str.Kernel32.dll
test eax, eax
je 0x4269b9
push 0
push 0x426de6
push edi
push esi
mov ecx, eax
call fcn.00426b71
jmp 0x4269bb
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x18
mov dword [0x460fdc], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 4], 1
cmp eax, edi
je 0x4269ed
push edi
push 0x426e01
push ebx
push esi
mov ecx, eax
call fcn.00426b71
jmp 0x4269ef
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x18
mov dword [0x460fe0], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
mov dword [ebp - 4], 2
je 0x426a23
push edi
push 0x426e1c
push str.LoadLibraryExA
push esi
mov ecx, eax
call fcn.00426b71
jmp 0x426a25
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x18
mov dword [0x460fe4], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
mov dword [ebp - 4], 3
je 0x426a59
push edi
push 0x426e41
push str.LoadLibraryExW
push esi
mov ecx, eax
call fcn.00426b71
jmp 0x426a5b
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x18
mov dword [0x460fe8], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
mov dword [ebp - 4], 4
je 0x426a8f
push edi
push 0x426e66
push str.GetProcAddress
push esi
mov ecx, eax
call fcn.00426b71
jmp 0x426a91
xor eax, eax
pop edi
pop esi
mov dword [0x460fec], eax
pop ebx
mov ecx, dword [ebp - 0xc]
push 1
pop eax
mov dword fs:[0], ecx
leave
ret