joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b009
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [eax], ebx
cmp dword [esi + 0x1c], 8
mov byte [ebp - 1], bl
jb 0x40b029
mov eax, dword [esi + 8]
jmp 0x40b02c
lea eax, [esi + 8]
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40b104
push edi
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x40b0fa
push dword [esi + 0x58]
call fcn.0042c364
push dword [esi + 0x58]
mov ebx, eax
push edi
push ebx
call fcn.0042c3bb
add esp, 0x10
cmp dword [esi + 0x54], 8
jb 0x40b07a
mov eax, dword [esi + 0x40]
jmp 0x40b07d
lea eax, [esi + 0x40]
push eax
push dword [esi + 0x58]
push ebx
call fcn.00407e7e
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov al, byte [esi + 3]
mov byte [ebp + 8], al
call fcn.00407f8d
test al, al
jne 0x40b0a4
mov byte [ebp + 8], 1
cmp dword [esi + 0x38], 8
jb 0x40b0af
mov ecx, dword [esi + 0x24]
jmp 0x40b0b2
lea ecx, [esi + 0x24]
cmp dword [esi + 0x54], 8
jb 0x40b0bd
mov eax, dword [esi + 0x40]
jmp 0x40b0c0
lea eax, [esi + 0x40]
movzx edx, byte [esi]
push edx
push dword [ebp + 0xc]
movzx edx, byte [esi + 2]
push dword [ebp + 8]
push 0
push edx
movzx edx, byte [esi + 1]
push edx
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00406271
cmp dword [esi + 0x38], 8
jb 0x40b0eb
mov esi, dword [esi + 0x24]
jmp 0x40b0ee
add esi, 0x24
push esi
lea ecx, [ebp - 0x20]
call fcn.0040aa2d
mov byte [ebp - 1], al
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret
Function at 0x40b10b
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa0
push esi
push edi
push 0x38
lea eax, [ebp + 0xc]
push 0
push eax
call fcn.0042c331
mov esi, dword [ebp + 0x7c]
add esp, 0xc
mov dword [ebp + 8], 0x3c
mov dword [ebp + 0xc], 0x100
test esi, esi
je 0x40b144
mov dword [ebp + 0xc], 0x140
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x24], 1
mov dword [ebp + 0x14], str.open
mov dword [ebp + 0x18], eax
test esi, esi
je 0x40b15f
and dword [esi], 0
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp + 0x7c], eax
test eax, eax
je 0x40b180
test esi, esi
je 0x40b22e
mov eax, dword [ebp + 0x40]
jmp 0x40b217
cmp dword [ebp + 0x28], 0x1b
je 0x40b190
cmp dword [ebp + 0x28], 0x1f
jne 0x40b22e
xor eax, eax
lea edi, [ebp + 0x64]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 0x78]
push str.shell32.dll
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x68], 0x24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SHOpenWithDialog
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40b21b
push 0x38
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0042c331
add esp, 0xc
mov dword [ebp - 0x34], 0x3c
mov dword [ebp - 0x30], 0x100
test esi, esi
je 0x40b1e7
mov dword [ebp - 0x30], 0x140
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x28], str.openas
mov dword [ebp - 0x24], edi
test esi, esi
je 0x40b1ff
and dword [esi], 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp + 0x7c], eax
test eax, eax
je 0x40b22e
test esi, esi
je 0x40b22e
mov eax, dword [ebp + 4]
mov dword [esi], eax
jmp 0x40b22e
lea ecx, [ebp + 0x60]
push ecx
push 0
call eax
test eax, eax
jl 0x40b22e
mov dword [ebp + 0x7c], 1
mov esi, dword [ebp + 0x78]
xor edi, edi
cmp esi, edi
je 0x40b2d2
push str.http
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, esi
je 0x40b2ae
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b2ae
mov eax, str.successfully
cmp dword [ebp + 0x7c], edi
jne 0x40b265
mov eax, str.failed
push eax
lea ecx, [ebp + 0x44]
call fcn.00404cea
push str._opened_local_file:
lea ecx, [ebp + 0x44]
call fcn.00405678
lea eax, [ebp + 0x44]
push esi
push eax
call fcn.0041108c
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
pop ecx
pop ecx
jae 0x40b293
lea eax, [ebp + 0x48]
push eax
call fcn.004119a9
push eax
call fcn.00410e49
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp + 0x44]
call fcn.004049f8
jmp 0x40b2d2
mov eax, str.successfully
cmp dword [ebp + 0x7c], edi
jne 0x40b2bd
mov eax, str.failed
push esi
push eax
push 0x42e3f8
call fcn.004119a9
push eax
call fcn.00410e49
add esp, 0x10
pop edi
pop esi
add ebp, 0x6c
leave
ret 0xc
Function at 0x40b342
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40b3a6
mov eax, dword [ebp + 0x14]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x40b370
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40b399
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x40b3a8
xor al, al
pop ebx
leave
ret
Function at 0x40bc81
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bd3c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0x14]
mov dword [ebp - 8], esi
push dword [ebp - 0xc]
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x40bd3c
cmp dword [ebp - 8], 1
jne 0x40bd3c
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 7
call fcn.00404961
mov eax, dword [ebp - 4]
cmp eax, esi
jbe 0x40bd23
push esi
shr eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00406748
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x40bd03
lea eax, [ebp - 0x24]
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0x14]
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 0x14]
push esi
dec eax
push eax
lea ecx, [ebp - 0x28]
call fcn.00406748
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.0040676c
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.004049f8
jmp 0x40bd47
push dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
call fcn.00404cea
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret

Function at 0x40be13
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40be85
push 0x228
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042c331
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
push esi
mov dword [ebp - 0x22c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40be85
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebp + 8]
jne 0x40be70
mov edi, dword [ebp - 0x214]
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x40be85
test edi, edi
je 0x40be5f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40bf1c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push dword [ebp + 0x10]
xor ebx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040bd4e
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040bd8a
add esp, 0x18
mov dword [ebp - 4], eax
cmp esi, ebx
je 0x40bfc6
cmp eax, ebx
je 0x40bfc6
push esi
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40bfc6
push edi
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x40bfbc
push 0x1c
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, 0xfc000
cmp dword [ebp - 0x18], eax
jne 0x40bfb5
push eax
push edi
mov esi, 0x46a470
push esi
call fcn.0042c3bb
add esp, 0xc
push dword [ebp - 4]
xor eax, eax
push esi
mov word [0x566470], ax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40bfb5
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x40c032
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push esi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40c089
push edi
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
mov dword [ebp - 0x1c], 0x1c
call sub.KERNEL32.dll_Thread32First
pop edi
test eax, eax
je 0x40c089
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40c077
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push ebx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x40c089
test esi, esi
je 0x40c06c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40c2ff
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x24]
mov esi, ecx
push eax
push dword [esi + 8]
call edi
mov eax, dword [esi + 8]
push 8
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, 0x42e5f0
push ebx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
push dword [ebp - 4]
mov ecx, esi
call fcn.0041e65c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call edi
add dword [ebp - 0xc], 0x32
push 9
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 0x18]
push 1
push 0x19
push dword [ebp - 0xc]
add eax, 0xffffffd8
push eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0xc]
sub eax, 0x25
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_MoveWindow]
push str.place_close_button
call fcn.004119a9
push eax
call fcn.00410e49
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c404
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1e4], 0
jne 0x40c477
cmp byte [esi + 0x1e5], 0
jne 0x40c477
cmp byte [esi + 0x1dc], 0
je 0x40c477
push edi
push str.erase_progress_bar_marque_stile
call fcn.004119a9
push eax
call fcn.00410e49
pop ecx
pop ecx
push 0xfffffffffffffff0
lea edi, [esi + 0x100]
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffffff7
push eax
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push dword [esi + 0xfc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1d20
push dword [esi + 8]
call dword [sym.imp.USER32.dll_KillTimer]
mov byte [esi + 0x1dc], 0
pop edi
pop esi
ret

Function at 0x40c479
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xf4], 0
jne 0x40c4dd
push ebx
push ebp
push edi
push str.show_progress_installing_page
call fcn.004119a9
push eax
call fcn.00410e49
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
pop ecx
pop ecx
push 0
mov edi, 0xc9
push edi
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebp
push str.Installing...
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [esi + 8]
push 5
push edi
push eax
call ebx
push eax
call ebp
pop edi
pop ebp
pop ebx
mov ecx, esi
pop esi
jmp fcn.0040c39d
pop esi
ret

Function at 0x40c539
Capabilities:
Hide graphical window

Disassembly:
mov ecx, dword [ecx + 8]
push esi
push 0xd2
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x40c576
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push str.hide_IE_control
call fcn.004119a9
push eax
call fcn.00410e49
pop ecx
pop ecx
pop esi
ret
Function at 0x40cfde
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xf0], 8
push edi
jb 0x40cffa
mov eax, dword [esi + 0xdc]
jmp 0x40d000
lea eax, [esi + 0xdc]
mov ecx, dword [esi + 0x7c]
add ecx, 0x1ac
push ecx
push eax
call fcn.00408692
pop ecx
pop ecx
push str.run_main_bundle__hash
lea ecx, [ebp - 0x20]
call fcn.00404cea
cmp dword [esi + 0xf0], 8
jb 0x40d030
mov eax, dword [esi + 0xdc]
jmp 0x40d036
lea eax, [esi + 0xdc]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041108c
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d04e
lea eax, [ebp - 0x1c]
push eax
call fcn.004119a9
push eax
call fcn.00410e49
pop ecx
pop ecx
lea edi, [esi + 0x1e8]
push str.openasfile
mov ecx, edi
call fcn.0040ca8a
xor ebx, ebx
test eax, eax
jne 0x40d0bc
push str.main_bundle_hasnt_launch_params__just_open
call fcn.004119a9
push eax
call fcn.00410e49
cmp dword [esi + 0xf0], 8
pop ecx
pop ecx
mov dword [ebp - 4], 0x42e710
jb 0x40d09e
mov eax, dword [esi + 0xdc]
jmp 0x40d0a4
lea eax, [esi + 0xdc]
lea ecx, [esi + 0x1e0]
push ecx
push eax
push dword [esi + 8]
lea ecx, [ebp - 4]
call fcn.0040b10b
jmp 0x40d142
cmp dword [esi + 0x21c], 8
jb 0x40d0cd
mov eax, dword [esi + 0x208]
jmp 0x40d0d3
lea eax, [esi + 0x208]
push eax
push str.main_bundle_launch_params_s_hiddenfalse_foregroundfalse_runastrue_checkPEtrue
call fcn.004119a9
push eax
call fcn.00410e49
add esp, 0xc
push str.alwaysrunas
mov ecx, edi
call fcn.0040ca8a
test eax, eax
setne al
cmp dword [esi + 0x21c], 8
mov byte [ebp - 4], al
jb 0x40d10c
mov ecx, dword [esi + 0x208]
jmp 0x40d112
lea ecx, [esi + 0x208]
cmp dword [esi + 0xf0], 8
jb 0x40d123
mov eax, dword [esi + 0xdc]
jmp 0x40d129
lea eax, [esi + 0xdc]
push 1
push ebx
push dword [ebp - 4]
lea edx, [esi + 0x1e0]
push edx
push ebx
push ebx
push ecx
push eax
call fcn.0040630d
add esp, 0x20
push ebx
push ebx
push esi
push 0x40cab3
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x220], eax
mov eax, dword [esi + 0x7c]
push ebx
add eax, 0x1e4
push ebx
push eax
call fcn.0041d697
mov ecx, eax
call fcn.0041d8ee
mov eax, dword [esi + 0x7c]
push ebx
add eax, 0x200
push ebx
push eax
call fcn.0041d697
mov ecx, eax
call fcn.0041d8ee
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004049f8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dbd8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x110]
xor ebx, ebx
push edi
cmp ecx, ebx
je 0x40dc04
mov edx, dword [ecx]
push ebx
mov eax, 0x3e8
push eax
push ebx
push eax
push dword [esi - 0x44]
push ecx
call dword [edx + 0x24]
lea edi, [esi - 0x4c]
push ebx
mov ecx, edi
call fcn.0040cd55
mov ecx, dword [esi + 0xac]
mov byte [esi + 0xa9], 1
call fcn.0041c480
test al, al
je 0x40dcc6
push str.main_bundle_downloading:_html_detected
call fcn.004119a9
push eax
call fcn.00410e49
pop ecx
pop ecx
push 0x400
lea eax, [ebp - 0x81c]
push eax
push dword [esi - 0x44]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push str.Cannot_download_file_from:_r_n
lea ecx, [ebp - 0x1c]
call fcn.00404cea
cmp dword [esi + 0x128], ebx
jne 0x40dc6f
mov eax, dword [esi + 0x30]
add eax, 0x28c
jmp 0x40dc75
lea eax, [esi + 0x114]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040506b
push str._r_n_Do_you_want_to_continue_
lea ecx, [ebp - 0x1c]
call fcn.00405678
cmp dword [ebp - 4], 8
mov ecx, dword [ebp - 0x18]
jae 0x40dc9a
lea ecx, [ebp - 0x18]
mov eax, dword [esi - 0x44]
push 4
lea edx, [ebp - 0x81c]
push edx
push ecx
push eax
call fcn.004124c9
add esp, 0x10
cmp eax, 7
jne 0x40dcbb
mov byte [esi + 0xa9], bl
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.004049f8
cmp byte [esi + 0xa9], bl
je 0x40dcf5
cmp byte [esi + 0x19a], bl
je 0x40dcdd
mov ecx, edi
call fcn.0040cfde
mov ecx, edi
cmp dword [esi + 0x194], ebx
je 0x40dcee
call fcn.0040c479
jmp 0x40dcfe
call fcn.0040c4df
jmp 0x40dcfe
push 1
mov ecx, edi
call fcn.0041ecaf
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40e5ad
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
inc ebx
xor edi, edi
mov dword [esi], 0x42ee84
mov dword [esi + 0x4c], 0x42ee78
mov dword [esi + 0x50], 0x431890
mov byte [esi + 0x1e4], bl
cmp dword [esi + 0xf8], edi
je 0x40e64e
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], 7
call fcn.00404961
mov ecx, dword [esi + 0xf8]
call fcn.0041bc2f
cmp eax, 3
je 0x40e611
push 0xffffffffffffffff
push edi
lea eax, [esi + 0xd8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00404bbf
mov ecx, dword [esi + 0xf8]
mov dword [ebp - 4], ecx
cmp ecx, edi
je 0x40e62c
call fcn.0041c2ef
push dword [ebp - 4]
call fcn.0042c244
pop ecx
cmp dword [ebp - 0xc], edi
je 0x40e644
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x40e63d
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push ebx
lea ecx, [ebp - 0x20]
call fcn.004049f8
mov eax, dword [esi + 0x15c]
cmp eax, edi
je 0x40e65e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, esi
call fcn.0040c539
mov eax, dword [esi + 8]
push 0xd2
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00420e41
pop ecx
lea ecx, [esi + 0x238]
call fcn.00421de0
lea ecx, [esi + 0x228]
call fcn.00421de0
push edi
push ebx
lea ecx, [esi + 0x204]
call fcn.004049f8
push edi
push ebx
lea ecx, [esi + 0x1e8]
call fcn.004049f8
push edi
push ebx
lea ecx, [esi + 0x1bc]
call fcn.004012f4
push edi
push ebx
lea ecx, [esi + 0x1a0]
call fcn.004049f8
push edi
push ebx
lea ecx, [esi + 0x180]
call fcn.004049f8
push edi
push ebx
lea ecx, [esi + 0x160]
call fcn.004049f8
push edi
push ebx
lea ecx, [esi + 0x140]
call fcn.004049f8
push edi
push ebx
lea ecx, [esi + 0x124]
call fcn.004049f8
push edi
push ebx
lea ecx, [esi + 0x108]
call fcn.004049f8
lea ecx, [esi + 0x90]
call fcn.00419bee
lea ecx, [esi + 0x50]
call fcn.0040e595
mov ecx, esi
call fcn.0041e506
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fbc5
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40fd9e
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push esi
call edi
test eax, 0x10000000
je 0x40fd9e
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x40fda7
mov dword [ebp - 4], esi
push esi
mov esi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x40fc34
push 0xfffffffffffffff0
push dword [ebp - 4]
call esi
push eax
call edi
test eax, 0x8000000
jne 0x40fc3a
push dword [ebp - 4]
call esi
mov dword [ebp - 4], eax
push eax
call esi
test eax, eax
jne 0x40fc1a
xor eax, eax
push 0x40e
mov word [ebp - 0x460], ax
xor ebx, ebx
lea eax, [ebp - 0x45e]
push ebx
push eax
call fcn.0042c331
add esp, 0xc
push 0x208
lea eax, [ebp - 0x460]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.RootWnd
lea ecx, [ebp - 0x20]
call fcn.00404cea
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x20]
call fcn.00405678
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040504d
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b46d
mov edi, eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040504d
push fcn.0042c5ad
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x30]
push eax
call fcn.0040f3fd
mov eax, dword [ebp - 0x1c]
add esp, 0x20
cmp dword [ebp - 8], 8
jae 0x40fcdd
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.0040f700
pop ecx
pop ecx
test al, al
je 0x40fd73
push str.click_active_window_mutex
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
cmp edi, ebx
je 0x40fd1b
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40fd12
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xffffffffffffffff
push edi
call esi
test eax, eax
jne 0x40fd0b
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x2010001
push dword [ebp - 4]
push 0x21
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push ebx
push 1
push 0x201
push dword [ebp + 8]
call esi
push ebx
push ebx
push 0x202
push dword [ebp + 8]
call esi
cmp edi, ebx
je 0x40fd91
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40fd91
push dword [ebp + 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
movzx eax, ax
push eax
push 0x111
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004049f8
jmp 0x40fda7
push 2
mov ecx, ebx
call fcn.0040f336
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40fe04
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push esi
push edi
push 1
mov dword [ebp - 4], ecx
call fcn.0040f336
xor eax, eax
push 0x40e
mov word [ebp - 0x450], ax
xor edi, edi
lea eax, [ebp - 0x44e]
push edi
push eax
call fcn.0042c331
add esp, 0xc
push 0x208
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.M123ain123Proce123ssWn123d123
lea ecx, [ebp - 0x28]
call fcn.00404cea
mov esi, 0x42e058
jmp 0x40fe6d
push 0x42d93c
push 3
push eax
call fcn.00409970
push 3
push edi
push esi
lea ecx, [ebp - 0x28]
call fcn.0040634d
lea ecx, [ebp - 0x28]
cmp eax, 0xffffffff
jne 0x40fe60
push ebx
lea eax, [ebp - 0x450]
push eax
call fcn.00405678
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040504d
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040b46d
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040504d
push fcn.0042c5ad
push dword [esi + 4]
push dword [esi]
push dword [ebx + 4]
push dword [ebx]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x40]
push eax
call fcn.0040f3fd
mov eax, dword [ebp - 0x24]
add esp, 0x20
cmp dword [ebp - 0x10], 8
pop ebx
jae 0x40fee3
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 4]
push eax
call fcn.0040fb43
cmp eax, edi
je 0x40ff39
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x40ff39
cmp dword [ebp - 8], edi
je 0x40ff39
push dword [ebp - 8]
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x40ff39
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
test eax, eax
je 0x40ff2b
push edi
jmp 0x40ff2d
push 2
call fcn.0040f336
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.004049f8
pop edi
pop esi
leave
ret