joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40489b
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.004857c0
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 0x4048f4
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x4049a2
mov eax, dword [ebp - 0x94]
dec eax
je 0x40498e
dec eax
jne 0x4049a2
cmp dword [ebp - 0xa0], 6
jne 0x40493f
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x404927
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x40493b
cmp dword [ebp - 0x9c], edi
jne 0x40497b
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x4049a2
cmp dword [ebp - 0xa0], 5
jne 0x40496e
cmp dword [ebp - 0x9c], 2
jne 0x404955
push 5
jmp 0x40498b
cmp dword [ebp - 0x9c], 1
jne 0x404962
push 6
jmp 0x40498b
cmp dword [ebp - 0x9c], edi
jne 0x4049a2
push 3
jmp 0x40498b
cmp dword [ebp - 0xa0], 4
ja 0x4049a2
push 4
jmp 0x40498b
cmp dword [ebp - 0x9c], 2
jne 0x4049a2
cmp byte [ebp + 0x76], al
jne 0x4049a2
push 0xa
pop edi
jmp 0x4049a2
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 0x404e1f
Capabilities:
Query or enumerate registry value

Disassembly:
cmp dword [esp + 8], 0
jne 0x404e2a
xor eax, eax
jmp 0x404e4f
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 0x4050fa
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 0x405121
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], 1
call fcn.00404fa7
mov eax, dword [eax]
pop ecx
push eax
lea eax, [ebp - 4]
call fcn.00423484
test byte [ebp - 8], 1
je 0x40513b
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00401023
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], ebx
jne 0x40514a
push 0x4e2798
jmp 0x4051a9
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.004857c0
mov esi, dword [ebp - 4]
add esp, 0xc
push esi
push 0x208
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x4e27b0
push 0x4e27bc
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
jne 0x4051a2
push edi
call fcn.00405074
pop ecx
jmp 0x4051b0
lea eax, [ebp - 0x218]
push eax
mov eax, edi
call fcn.00423484
lea eax, [esi - 0x10]
call fcn.00401023
pop esi
mov eax, edi
pop ebx
leave
ret
Function at 0x405292
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 0x4052bc
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xc], 1
call fcn.00404fa7
mov eax, dword [eax]
pop ecx
push eax
lea eax, [ebp - 8]
call fcn.00423484
test byte [ebp - 0xc], 1
je 0x4052d6
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401023
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], edi
jne 0x4052e5
push str.v1.0
jmp 0x40535c
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
call fcn.004051be
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.004857c0
mov esi, dword [ebp - 8]
add esp, 0xc
push esi
push 0x208
lea eax, [ebp - 0x21c]
push eax
push edi
push str.Version
push 0x4e2828
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
test eax, eax
jne 0x405355
push ebx
call fcn.00405209
pop ecx
jmp 0x405363
lea eax, [ebp - 0x21c]
push eax
mov eax, ebx
call fcn.00423484
lea eax, [esi - 0x10]
call fcn.00401023
pop edi
mov eax, ebx
pop esi
leave
ret

Function at 0x4056cf
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.00423484
push str.SOFTWAREcmcmkdesk
lea eax, [ebp - 8]
call fcn.00423484
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
lea ebx, [ebp - 4]
call fcn.00405524
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 0x40572f
add eax, 0xfffffff0
call fcn.00401023
xor eax, eax
pop edi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
call fcn.00472a8e
push dword [ebp + 0xc]
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00414f25
mov ebx, dword [ebp - 0xc]
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40576e
lea eax, [ebx - 0x10]
call fcn.00401023
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
mov eax, edi
jmp 0x40572b
mov eax, dword [0x509500]
push esi
mov ecx, 0x509500
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 0xc], eax
push 0x4e26b0
lea eax, [ebp - 0xc]
call fcn.00422cb5
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 0x405757
Function at 0x40608a
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.00423484
mov ebx, dword [ebp - 4]
push ebx
lea edi, [ebp - 0x1c]
call fcn.0043f1e7
push 0x4e94c0
mov eax, edi
call fcn.0043f5c3
xor edi, edi
inc edi
test al, al
je 0x4060c7
mov dword [0x50b158], edi
push str.fast_inst
lea eax, [ebp - 0x1c]
call fcn.0043f5c3
test al, al
je 0x4060de
mov dword [0x50b17c], edi
mov esi, str.installpath
push esi
lea eax, [ebp - 0x1c]
call fcn.0043f5c3
test al, al
je 0x406104
push esi
lea eax, [ebp - 0x1c]
call fcn.0043f5fe
push eax
push 0x50b168
call fcn.00414fa4
push str.can_cover
lea eax, [ebp - 0x1c]
call fcn.0043f5c3
test al, al
je 0x40611b
mov dword [0x50b154], edi
push str.yuanqi_inst
lea eax, [ebp - 0x1c]
call fcn.0043f5c3
test al, al
je 0x406132
mov dword [0x50b178], edi
push 0x4e9528
lea eax, [ebp - 0x1c]
call fcn.0043f5c3
test al, al
je 0x40614a
and dword [0x50b158], 0
push str.showlaucherrordlg
lea eax, [ebp - 0x1c]
call fcn.0043f5c3
test al, al
je 0x406161
mov dword [0x50b16c], edi
push 0x4e9558
lea eax, [ebp - 0x1c]
call fcn.0043f5fe
test eax, eax
je 0x406187
push eax
call fcn.0048387e
cmp dword [0x50a838], 0
pop ecx
jne 0x406187
mov dword [0x50a838], eax
push str.showfuncpop
lea eax, [ebp - 0x1c]
call fcn.0043f5c3
test al, al
mov esi, str.action
je 0x4061ca
push esi
lea eax, [ebp - 0x1c]
mov dword [0x50b170], edi
call fcn.0043f5fe
push eax
lea eax, [ebp - 4]
call fcn.00423484
mov edi, 0x50b174
call fcn.0042454d
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
lea edi, [ebp - 0x1c]
call fcn.00406631
mov eax, edi
push eax
call fcn.00406715
push esi
mov eax, edi
call fcn.0043f5fe
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ecx, edi
mov dword [0x50a840], eax
call fcn.0043f23c
lea eax, [ebx - 0x10]
call fcn.00401023
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406f97
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x18
mov eax, dword [0x50a434]
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], edi
je 0x406fb1
mov esi, dword [eax + 4]
jmp 0x406fb3
xor esi, esi
cmp esi, edi
jne 0x406fc3
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, edi
je 0x406fe8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x406fe8
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x406fe8
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.00407ca2
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x40700e
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x407117
mov edx, eax
call fcn.0040ee5e
mov dword [esp + 0x20], eax
lea ebp, [ebx + 4]
push ebp
mov eax, esi
call fcn.0040ed11
cmp dword [ebx + 0x320], edi
je 0x4070c1
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 0x407082
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 0x4070a2
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 0x4070c1
push edi
push edi
push 0xf
push dword [ebp]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, ebx
call fcn.00407ed8
push 0x97
push edi
push ebp
mov dword [ebx + 0x330], edi
call fcn.0040ecf4
cmp dword [esp + 0x1c], edi
je 0x4070ff
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, edi
je 0x4070ff
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x4070ff
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040ee5e
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 0x40711e
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x18
mov eax, dword [0x50a434]
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], edi
je 0x407138
mov esi, dword [eax + 4]
jmp 0x40713a
xor esi, esi
cmp esi, edi
jne 0x40714a
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, edi
je 0x40716f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x40716f
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40716f
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.00407dbd
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x407195
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x40729e
mov edx, eax
call fcn.0040ee5e
mov dword [esp + 0x20], eax
lea ebp, [ebx + 4]
push ebp
mov eax, esi
call fcn.0040ed11
cmp dword [ebx + 0x320], edi
je 0x407248
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 0x407209
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 0x407229
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 0x407248
push edi
push edi
push 0xf
push dword [ebp]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, ebx
call fcn.00407ed8
push 0x97
push edi
push ebp
mov dword [ebx + 0x330], edi
call fcn.0040ecf4
cmp dword [esp + 0x1c], edi
je 0x407286
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, edi
je 0x407286
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x407286
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040ee5e
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 0x4076f2
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x18
mov eax, dword [0x50a434]
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], edi
je 0x40770c
mov esi, dword [eax + 4]
jmp 0x40770e
xor esi, esi
cmp esi, edi
jne 0x40771e
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, edi
je 0x407743
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x407743
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x407743
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.00408482
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x407769
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x407872
mov edx, eax
call fcn.0040ee5e
mov dword [esp + 0x20], eax
lea ebp, [ebx + 4]
push ebp
mov eax, esi
call fcn.0040ed11
cmp dword [ebx + 0x320], edi
je 0x40781c
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 0x4077dd
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 0x4077fd
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 0x40781c
push edi
push edi
push 0xf
push dword [ebp]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, ebx
call fcn.00407ed8
push 0x97
push edi
push ebp
mov dword [ebx + 0x330], edi
call fcn.0040ecf4
cmp dword [esp + 0x1c], edi
je 0x40785a
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, edi
je 0x40785a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x40785a
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040ee5e
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 0x4078aa
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 0x4078dc
mov eax, dword [0x50a434]
cmp eax, ebx
je 0x4078ca
mov esi, dword [eax + 4]
jmp 0x4078cc
xor esi, esi
cmp esi, ebx
jne 0x4078dc
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, ebx
je 0x407901
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x407901
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x407901
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.00408d5a
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x407927
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x407a30
mov edx, eax
call fcn.0040ee5e
mov dword [esp + 0x20], eax
lea ebp, [edi + 4]
push ebp
mov eax, esi
call fcn.0040ed11
cmp dword [edi + 0x320], ebx
je 0x4079da
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 0x40799b
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 0x4079bb
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 0x4079da
push ebx
push ebx
push 0xf
push dword [ebp]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, edi
call fcn.00407ed8
push 0x97
push ebx
push ebp
mov dword [edi + 0x330], ebx
call fcn.0040ecf4
cmp dword [esp + 0x1c], ebx
je 0x407a18
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, ebx
je 0x407a18
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp]
jne 0x407a18
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040ee5e
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 0x409fae
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, eax
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 - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
je 0x409fdf
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov ebx, dword [ebp + 0x10]
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], eax
jne 0x40a023
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0xfc]
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
mov dword [ebp - 4], eax
jne 0x40a023
push 1
push ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0x1d0]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x2bc]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x40a177
push eax
call fcn.004241f5
mov edi, eax
test edi, edi
pop ecx
je 0x40a0f6
mov eax, dword [edi + 0x10]
push 2
mov dword [ebp - 8], 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 0x40a06a
push 1
push edi
push esi
call fcn.004085cc
movzx eax, word [ebp + 0xc]
movzx ebx, bx
shl ebx, 0x10
or ebx, eax
push ebx
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.00424436
mov eax, dword [ebp - 4]
cmp dword [esi + 0x2bc], eax
jne 0x40a0c0
mov ecx, dword [edi + 0x40]
xor eax, eax
cmp ecx, eax
je 0x40a0b2
cmp word [ecx], ax
je 0x40a0b2
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40a0f6
cmp dword [edi + 0x10], eax
je 0x40a0f6
mov dword [ebp - 0xc], 1
jmp 0x40a0f6
mov eax, dword [edi]
push 1
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x40a0df
push 1
push edi
push esi
call fcn.004085cc
push ebx
push dword [ebp + 8]
mov ecx, edi
push 0x2a3
call fcn.00424436
mov dword [ebp - 0x10], 1
xor eax, eax
cmp dword [ebp - 0xc], eax
mov dword [esi + 0x2bc], eax
je 0x40a138
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x20], 1
call dword [eax + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x24]
push 0x4e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40a177
cmp dword [ebp - 0x10], eax
je 0x40a177
mov ecx, dword [ebp - 8]
cmp ecx, eax
je 0x40a177
mov eax, dword [esi + 4]
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x28]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
add esi, 0x2b8
cmp eax, dword [esi]
jne 0x40a177
and dword [esi], 0
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40a864
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x18
lea edi, [esi + 0x3f4]
push 0
push edi
call fcn.004857c0
fld dword [0x4f3408]
add esp, 0xc
fstp dword [edi]
fldz
lea ebx, [esi + 0x3fc]
push ebx
fstp dword [esi + 0x3f8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
mov esi, ebx
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], eax
movsd dword es:[edi], dword [esi]
fild dword [ebp - 8]
fld qword [0x4f3400]
movsd dword es:[edi], dword [esi]
fmul st(1), st(0)
fxch st(1)
call fcn.004c2e90
push eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fmulp st(1)
call fcn.004c2e90
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov edi, dword [ebp + 8]
lea eax, [edi + 0x418]
push eax
lea eax, [ebp - 0x18]
call fcn.0040e833
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
lea esi, [edi + 0x3cc]
push eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
push eax
call fcn.0042408c
mov eax, edi
call fcn.0044defe
test eax, eax
je 0x40a93f
add eax, 4
push eax
push dword [edi + 0x3d8]
neg esi
push dword [edi + 0x3d4]
lea eax, [edi + 0x3d0]
sbb esi, esi
and esi, eax
push esi
call fcn.0040d7af
add esp, 0x10
push edi
call fcn.0040a98f
push 0
push 0x14
push 0x5f5e103
push dword [edi + 4]
mov dword [edi + 0x3c8], 3
call dword [sym.imp.USER32.dll_SetTimer]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
lea esi, [edi + 0x418]
push dword [esi]
call ebx
push 0
push 0
push 0xf
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [edi + 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret 4