joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4048e3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.00486d70
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x40493c
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x4049ea
mov eax, dword [ebp - 0x94]
dec eax
je 0x4049d6
dec eax
jne 0x4049ea
cmp dword [ebp - 0xa0], 6
jne 0x404987
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x40496f
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x404983
cmp dword [ebp - 0x9c], edi
jne 0x4049c3
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x4049ea
cmp dword [ebp - 0xa0], 5
jne 0x4049b6
cmp dword [ebp - 0x9c], 2
jne 0x40499d
push 5
jmp 0x4049d3
cmp dword [ebp - 0x9c], 1
jne 0x4049aa
push 6
jmp 0x4049d3
cmp dword [ebp - 0x9c], edi
jne 0x4049ea
push 3
jmp 0x4049d3
cmp dword [ebp - 0xa0], 4
ja 0x4049ea
push 4
jmp 0x4049d3
cmp dword [ebp - 0x9c], 2
jne 0x4049ea
cmp byte [ebp + 0x76], al
jne 0x4049ea
push 0xa
pop edi
jmp 0x4049ea
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x404e67
Capabilities:
Query or enumerate registry value

Disassembly:
cmp dword [esp + 8], 0
jne 0x404e72
xor eax, eax
jmp 0x404e97
lea ecx, [eax + 0x1004]
push ecx
push eax
add eax, 0x1000
push eax
mov eax, dword [esp + 0x10]
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
inc eax
ret 8

Function at 0x405142
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
mov dword [ebp - 8], ebx
jne 0x405169
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], 1
call fcn.00404fef
mov eax, dword [eax]
pop ecx
push eax
lea eax, [ebp - 4]
call fcn.00423978
test byte [ebp - 8], 1
je 0x405183
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], ebx
jne 0x405192
push 0x4e67a8
jmp 0x4051f1
push str.oem.ini
lea eax, [ebp - 4]
push eax
call fcn.00401000
push 0x206
lea eax, [ebp - 0x216]
push ebx
push eax
mov word [ebp - 0x218], bx
call fcn.00486d70
mov esi, dword [ebp - 4]
add esp, 0xc
push esi
push 0x208
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x4e67c0
push 0x4e67cc
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
jne 0x4051ea
push edi
call fcn.004050bc
pop ecx
jmp 0x4051f8
lea eax, [ebp - 0x218]
push eax
mov eax, edi
call fcn.00423978
lea eax, [esi - 0x10]
call fcn.00401023
pop esi
mov eax, edi
pop ebx
leave
ret
Function at 0x4052da
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0xc], edi
jne 0x405304
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xc], 1
call fcn.00404fef
mov eax, dword [eax]
pop ecx
push eax
lea eax, [ebp - 8]
call fcn.00423978
test byte [ebp - 0xc], 1
je 0x40531e
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401023
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], edi
jne 0x40532d
push str.v1.0
jmp 0x4053a4
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
call fcn.00405206
mov eax, dword [eax]
pop ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
call fcn.0040103b
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401023
push 0x206
lea eax, [ebp - 0x21a]
push edi
push eax
mov word [ebp - 0x21c], di
call fcn.00486d70
mov esi, dword [ebp - 8]
add esp, 0xc
push esi
push 0x208
lea eax, [ebp - 0x21c]
push eax
push edi
push str.Version
push 0x4e6838
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
jne 0x40539d
push ebx
call fcn.00405251
pop ecx
jmp 0x4053ab
lea eax, [ebp - 0x21c]
push eax
mov eax, ebx
call fcn.00423978
lea eax, [esi - 0x10]
call fcn.00401023
pop edi
mov eax, ebx
pop esi
leave
ret

Function at 0x405717
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push str.ProgramPath
lea eax, [ebp - 0xc]
call fcn.00423978
push str.SOFTWAREcmcmkdesk
lea eax, [ebp - 8]
call fcn.00423978
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
lea ebx, [ebp - 4]
call fcn.0040556c
mov eax, dword [ebp - 8]
pop ecx
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
mov eax, dword [ebp - 4]
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x405777
add eax, 0xfffffff0
call fcn.00401023
xor eax, eax
pop edi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
call fcn.00473567
push dword [ebp + 0xc]
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.0041525c
mov ebx, dword [ebp - 0xc]
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4057b6
lea eax, [ebx - 0x10]
call fcn.00401023
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
mov eax, edi
jmp 0x405773
mov eax, dword [0x50e594]
push esi
mov ecx, 0x50e594
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 0xc], eax
push 0x4e66c0
lea eax, [ebp - 0xc]
call fcn.0042318c
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
push 1
push edi
push esi
push ebx
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
lea eax, [esi - 0x10]
mov edi, ecx
call fcn.00401023
pop esi
jmp 0x40579f
Function at 0x4060c9
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
lea eax, [ebp - 4]
call fcn.00423978
mov ebx, dword [ebp - 4]
push ebx
lea edi, [ebp - 0x1c]
call fcn.0043f190
push 0x4ed978
mov eax, edi
call fcn.0043f56c
xor edi, edi
inc edi
test al, al
je 0x406106
mov dword [0x510208], edi
push str.fast_inst
lea eax, [ebp - 0x1c]
call fcn.0043f56c
test al, al
je 0x40611d
mov dword [0x51022c], edi
mov esi, str.installpath
push esi
lea eax, [ebp - 0x1c]
call fcn.0043f56c
test al, al
je 0x406143
push esi
lea eax, [ebp - 0x1c]
call fcn.0043f5a7
push eax
push 0x510218
call fcn.004152cd
push str.can_cover
lea eax, [ebp - 0x1c]
call fcn.0043f56c
test al, al
je 0x40615a
mov dword [0x510204], edi
push str.yuanqi_inst
lea eax, [ebp - 0x1c]
call fcn.0043f56c
test al, al
je 0x406171
mov dword [0x510228], edi
push 0x4ed9e0
lea eax, [ebp - 0x1c]
call fcn.0043f56c
test al, al
je 0x406189
and dword [0x510208], 0
push str.showlaucherrordlg
lea eax, [ebp - 0x1c]
call fcn.0043f56c
test al, al
je 0x4061a0
mov dword [0x51021c], edi
push 0x4eda10
lea eax, [ebp - 0x1c]
call fcn.0043f5a7
test eax, eax
je 0x4061c6
push eax
call fcn.0048770b
cmp dword [0x50f8e0], 0
pop ecx
jne 0x4061c6
mov dword [0x50f8e0], eax
push str.showfuncpop
lea eax, [ebp - 0x1c]
call fcn.0043f56c
test al, al
mov esi, str.action
je 0x406209
push esi
lea eax, [ebp - 0x1c]
mov dword [0x510220], edi
call fcn.0043f5a7
push eax
lea eax, [ebp - 4]
call fcn.00423978
mov edi, 0x510224
call fcn.00424a4a
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
lea edi, [ebp - 0x1c]
call fcn.0040668b
mov eax, edi
push eax
call fcn.0040676f
push esi
mov eax, edi
call fcn.0043f5a7
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ecx, edi
mov dword [0x50f8e8], eax
call fcn.0043f1e5
lea eax, [ebx - 0x10]
call fcn.00401023
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407184
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x18
mov eax, dword [0x50f4dc]
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], edi
je 0x40719e
mov esi, dword [eax + 4]
jmp 0x4071a0
xor esi, esi
cmp esi, edi
jne 0x4071b0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, edi
je 0x4071d5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x4071d5
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4071d5
push edi
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push esi
mov eax, ebx
mov dword [ebx + 0x330], edi
call fcn.00407ee4
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x4071fb
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x407304
mov edx, eax
call fcn.0040f028
mov dword [esp + 0x20], eax
lea ebp, [ebx + 4]
push ebp
mov eax, esi
call fcn.0040eedb
cmp dword [ebx + 0x320], edi
je 0x4072ae
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push edi
push edi
push edi
push 0x2001
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push edi
push edi
push edi
push edi
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
je 0x40726f
push 1
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
je 0x40728f
push edi
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x4072ae
push edi
push edi
push 0xf
push dword [ebp]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, ebx
call fcn.00408410
push 0x97
push edi
push ebp
mov dword [ebx + 0x330], edi
call fcn.0040eebe
cmp dword [esp + 0x1c], edi
je 0x4072ec
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, edi
je 0x4072ec
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x4072ec
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040f028
push dword [ebp]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x334]
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x40730b
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x18
mov eax, dword [0x50f4dc]
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], edi
je 0x407325
mov esi, dword [eax + 4]
jmp 0x407327
xor esi, esi
cmp esi, edi
jne 0x407337
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, edi
je 0x40735c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x40735c
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40735c
push edi
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push esi
mov eax, ebx
mov dword [ebx + 0x330], edi
call fcn.00407fff
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x407382
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x40748b
mov edx, eax
call fcn.0040f028
mov dword [esp + 0x20], eax
lea ebp, [ebx + 4]
push ebp
mov eax, esi
call fcn.0040eedb
cmp dword [ebx + 0x320], edi
je 0x407435
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push edi
push edi
push edi
push 0x2001
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push edi
push edi
push edi
push edi
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
je 0x4073f6
push 1
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
je 0x407416
push edi
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x407435
push edi
push edi
push 0xf
push dword [ebp]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, ebx
call fcn.00408410
push 0x97
push edi
push ebp
mov dword [ebx + 0x330], edi
call fcn.0040eebe
cmp dword [esp + 0x1c], edi
je 0x407473
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, edi
je 0x407473
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x407473
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040f028
push dword [ebp]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x334]
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x407898
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x18
mov eax, dword [0x50f4dc]
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], edi
je 0x4078b2
mov esi, dword [eax + 4]
jmp 0x4078b4
xor esi, esi
cmp esi, edi
jne 0x4078c4
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, edi
je 0x4078e9
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x4078e9
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4078e9
push edi
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push esi
mov eax, ebx
mov dword [ebx + 0x330], edi
call fcn.004082b3
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x40790f
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x407a18
mov edx, eax
call fcn.0040f028
mov dword [esp + 0x20], eax
lea ebp, [ebx + 4]
push ebp
mov eax, esi
call fcn.0040eedb
cmp dword [ebx + 0x320], edi
je 0x4079c2
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push edi
push edi
push edi
push 0x2001
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push edi
push edi
push edi
push edi
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
je 0x407983
push 1
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
je 0x4079a3
push edi
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x4079c2
push edi
push edi
push 0xf
push dword [ebp]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, ebx
call fcn.00408410
push 0x97
push edi
push ebp
mov dword [ebx + 0x330], edi
call fcn.0040eebe
cmp dword [esp + 0x1c], edi
je 0x407a00
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, edi
je 0x407a00
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x407a00
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040f028
push dword [ebp]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x334]
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x407aee
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x1c], ebx
jne 0x407b20
mov eax, dword [0x50f4dc]
cmp eax, ebx
je 0x407b0e
mov esi, dword [eax + 4]
jmp 0x407b10
xor esi, esi
cmp esi, ebx
jne 0x407b20
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, ebx
je 0x407b45
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x407b45
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x407b45
push ebx
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push esi
mov eax, edi
mov dword [edi + 0x330], ebx
call fcn.00408bd3
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x407b6b
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x407c74
mov edx, eax
call fcn.0040f028
mov dword [esp + 0x20], eax
lea ebp, [edi + 4]
push ebp
mov eax, esi
call fcn.0040eedb
cmp dword [edi + 0x320], ebx
je 0x407c1e
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push ebx
push ebx
push ebx
push 0x2001
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
je 0x407bdf
push 1
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
je 0x407bff
push ebx
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xffffffffffffffec
push dword [ebp]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x407c1e
push ebx
push ebx
push 0xf
push dword [ebp]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, edi
call fcn.00408410
push 0x97
push ebx
push ebp
mov dword [edi + 0x330], ebx
call fcn.0040eebe
cmp dword [esp + 0x1c], ebx
je 0x407c5c
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, ebx
je 0x407c5c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x407c5c
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040f028
push dword [ebp]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x334]
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x40a1df
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x28]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x40a22b
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0xfc]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x40a22b
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x1d0]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
cmp dword [esi + 0x2c0], 0
je 0x40a2a3
lea ebx, [esi + 0x2cc]
cmp dword [ebx], 0
je 0x40a248
call dword [sym.imp.USER32.dll_ReleaseCapture]
and dword [ebx], 0
cmp dword [esi + 0x2c0], edi
jne 0x40a29c
push edi
call fcn.004246dd
mov edi, eax
movzx eax, word [ebp + 0x10]
pop ecx
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x205
call fcn.0042491e
mov eax, dword [esi + 4]
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xd
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0x10]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x2c0], 0
pop edi
pop ebx
leave
ret 0xc
Function at 0x40a553
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x2cc]
cmp dword [edi], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
je 0x40a581
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x28]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ebx, eax
test ebx, ebx
jne 0x40a5c5
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0xfc]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ebx, eax
test ebx, ebx
jne 0x40a5c5
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x1d0]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ebx, eax
mov eax, dword [esi + 0x2bc]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x40a721
push eax
call fcn.004246dd
mov edi, eax
test edi, edi
pop ecx
je 0x40a6a0
mov eax, dword [edi + 0x10]
push 2
mov dword [ebp - 4], eax
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x40a60c
push 1
push edi
push esi
call fcn.004083ce
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.0042491e
cmp dword [esi + 0x2bc], ebx
jne 0x40a660
mov ecx, dword [edi + 0x40]
xor eax, eax
cmp ecx, eax
je 0x40a652
cmp word [ecx], ax
je 0x40a652
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40a6a0
cmp dword [edi + 0x10], eax
je 0x40a6a0
mov dword [ebp - 8], 1
jmp 0x40a6a0
mov eax, dword [edi]
xor ebx, ebx
inc ebx
push ebx
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x40a680
push ebx
push edi
push esi
call fcn.004083ce
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x2a3
call fcn.0042491e
mov dword [ebp - 0xc], ebx
xor eax, eax
cmp dword [ebp - 8], eax
mov dword [esi + 0x2bc], eax
je 0x40a6e2
mov eax, dword [esi + 4]
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x1c], 1
call dword [eax + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push 0x4e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40a721
cmp dword [ebp - 0xc], eax
je 0x40a721
mov ecx, dword [ebp - 4]
cmp ecx, eax
je 0x40a721
mov eax, dword [esi + 4]
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x24]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x10]
lea eax, [esi + 0x2b8]
cmp ecx, dword [eax]
jne 0x40a721
and dword [eax], 0
pop edi
pop ebx
leave
ret 0xc