joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406d2b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push ebx
push esi
push 0x30b
lea eax, [ebp - 0x61c]
xor ebx, ebx
push eax
mov esi, ecx
push ebx
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x406e1a
push edi
push ebx
push ebx
push 3
push ebx
xor eax, eax
push 1
mov word [ebp - 6], ax
push 0x80000000
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406e16
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esi + 4], eax
jle 0x406d93
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
cmp ecx, ebx
jle 0x406da0
cmp ecx, eax
jg 0x406da8
cmp ecx, ebx
jge 0x406dab
neg eax
cmp ecx, eax
jge 0x406dab
mov dword [esi + 8], eax
xor eax, eax
cmp byte [esi], bl
setne al
dec eax
and eax, 2
push eax
push ebx
push dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x406e16
mov eax, dword [esi + 4]
cmp byte [esi + 0xc], bl
je 0x406dd0
inc eax
push eax
call fcn.004287c0
pop ecx
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x406e16
push ebx
lea ecx, [ebp - 4]
push ecx
push dword [esi + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406e08
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 4]
jne 0x406e08
push dword [esi + 0x10]
call fcn.004286a0
pop ecx
mov dword [esi + 0x10], ebx
jmp 0x406e16
cmp byte [esi + 0xc], bl
je 0x406e16
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov byte [eax + ecx], bl
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406f63
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp byte [0x43008c], 0
je 0x406fbb
push 0x114
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0042878d
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 6
mov byte [0x43008c], 0
sbb al, al
inc al
mov byte [0x430d4c], al
leave
ret
mov al, byte [0x430d4c]
leave
ret
Function at 0x407690
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
je 0x407736
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x407735
push ebx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.004287c0
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x40772a
push esi
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407723
cmp edi, dword [ebp - 8]
jne 0x407723
push dword [ebp + 0xc]
push edi
push ebx
call fcn.00407530
add esp, 0xc
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.004286a0
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x409063
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2028
call fcn.00428904
push ebx
push esi
xor eax, eax
push 0x1ffe
mov word [ebp - 0x2028], ax
xor ebx, ebx
lea eax, [ebp - 0x2026]
push ebx
push eax
mov esi, ecx
call fcn.0042878d
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4091b1
push str.123374DE290_123F_4565_9164_39C4925E467B
lea ecx, [ebp - 0x28]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0x2000
call fcn.00404cca
push 0x429900
push 3
push 1
lea ecx, [ebp - 0x28]
call fcn.00408847
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x4090ed
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x2028]
push ecx
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4091a5
push edi
mov edi, str._USERPROFILE_
push edi
lea eax, [ebp - 0x2028]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, ebx
je 0x409196
lea ecx, [ebp - 0x2028]
sub eax, ecx
sar eax, 1
mov ebx, eax
mov eax, ecx
push eax
mov ecx, esi
call fcn.00404ca6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
mov ecx, esi
call fcn.00404a23
push 0
push 0x28
lea eax, [ebp - 0x2028]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x2028]
push eax
push ebx
mov ecx, esi
call fcn.0040881f
cmp dword [esi + 0x18], 8
jb 0x40917a
mov eax, dword [esi + 4]
jmp 0x40917d
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40918d
test al, 0x10
jne 0x4091a4
mov ecx, esi
call fcn.00408452
jmp 0x4091a4
lea eax, [ebp - 0x2028]
push eax
mov ecx, esi
call fcn.00404ca6
pop edi
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004049d8
pop esi
pop ebx
leave
ret

Function at 0x409522
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x409553
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
jmp 0x40955f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
ret 8
Function at 0x4097f7
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.0042878d
mov esi, dword [ebp + 0x7c]
add esp, 0xc
mov dword [ebp + 8], 0x3c
mov dword [ebp + 0xc], pe_nt_image_headers32
test esi, esi
je 0x409830
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 0x40984b
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 0x40986c
test esi, esi
je 0x40991a
mov eax, dword [ebp + 0x40]
jmp 0x409903
cmp dword [ebp + 0x28], 0x1b
je 0x40987c
cmp dword [ebp + 0x28], 0x1f
jne 0x40991a
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 0x409907
push 0x38
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0042878d
add esp, 0xc
mov dword [ebp - 0x34], 0x3c
mov dword [ebp - 0x30], pe_nt_image_headers32
test esi, esi
je 0x4098d3
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 0x4098eb
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 0x40991a
test esi, esi
je 0x40991a
mov eax, dword [ebp + 4]
mov dword [esi], eax
jmp 0x40991a
lea ecx, [ebp + 0x60]
push ecx
push 0
call eax
test eax, eax
jl 0x40991a
mov dword [ebp + 0x7c], 1
mov esi, dword [ebp + 0x78]
xor edi, edi
cmp esi, edi
je 0x4099be
push str.http
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, esi
je 0x40999a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40999a
mov eax, str.successfully
cmp dword [ebp + 0x7c], edi
jne 0x409951
mov eax, str.failed
push eax
lea ecx, [ebp + 0x44]
call fcn.00404cca
push str._opened_local_file:
lea ecx, [ebp + 0x44]
call fcn.0040567c
lea eax, [ebp + 0x44]
push esi
push eax
call fcn.0040ece7
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
pop ecx
pop ecx
jae 0x40997f
lea eax, [ebp + 0x48]
push eax
call fcn.0040f5fd
push eax
call fcn.0040eb04
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp + 0x44]
call fcn.004049d8
jmp 0x4099be
mov eax, str.successfully
cmp dword [ebp + 0x7c], edi
jne 0x4099a9
mov eax, str.failed
push esi
push eax
push 0x429f28
call fcn.0040f5fd
push eax
call fcn.0040eb04
add esp, 0x10
pop edi
pop esi
add ebp, 0x6c
leave
ret 0xc
Function at 0x409a2e
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 0x409a92
mov eax, dword [ebp + 0x14]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x409a5c
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 0x409a85
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x409a94
xor al, al
pop ebx
leave
ret
Function at 0x40a36d
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 0x40a428
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 0x40a428
cmp dword [ebp - 8], 1
jne 0x40a428
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 7
call fcn.00404941
mov eax, dword [ebp - 4]
cmp eax, esi
jbe 0x40a40f
push esi
shr eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00409d47
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x40a3ef
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.00409d47
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.0040648e
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.004049d8
jmp 0x40a433
push dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
call fcn.00404cca
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret

Function at 0x40a4ff
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 0x40a574
push 0x228
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042878d
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 0x40a574
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x224], eax
jne 0x40a55f
mov edi, dword [ebp - 0x214]
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x40a574
test edi, edi
je 0x40a54b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40a5f0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov byte [esp + 0x13], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call edi
push eax
push dword [esp + 0x3c]
call fcn.0040a43a
add esp, 0xc
mov ebp, eax
call esi
push eax
call edi
push eax
push dword [esp + 0x3c]
call fcn.0040a476
xor esi, esi
add esp, 0xc
mov ebx, eax
cmp ebp, esi
je 0x40a6ac
cmp ebx, esi
je 0x40a6ac
push ebp
push esi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebp, eax
cmp ebp, esi
je 0x40a6ac
push esi
push esi
push esi
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x40a6a5
push 0x1c
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, 0xfc000
cmp dword [esp + 0x20], eax
jne 0x40a69e
push eax
push edi
mov esi, 0x464550
push esi
call fcn.00428817
add esp, 0xc
push ebx
xor eax, eax
push esi
mov word [0x560550], ax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40a69e
mov byte [esp + 0x13], 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x40a795
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, 0x42a0a0
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.0041bea6
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]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a876
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1e4], 0
jne 0x40a8ce
cmp byte [esi + 0x1dc], 0
je 0x40a8ce
push edi
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 0x40a8fb
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xf4], 0
jne 0x40a94d
mov eax, dword [esi + 8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push edi
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.0040a821
pop esi
ret

Function at 0x40b161
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 0x40b17d
mov eax, dword [esi + 0xdc]
jmp 0x40b183
lea eax, [esi + 0xdc]
mov ecx, dword [esi + 0x7c]
add ecx, 0x1a8
push ecx
push eax
call fcn.00407690
pop ecx
pop ecx
push str.run_main_bundle__hash
lea ecx, [ebp - 0x20]
call fcn.00404cca
cmp dword [esi + 0xf0], 8
jb 0x40b1b3
mov eax, dword [esi + 0xdc]
jmp 0x40b1b9
lea eax, [esi + 0xdc]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040ece7
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40b1d1
lea eax, [ebp - 0x1c]
push eax
call fcn.0040f5fd
push eax
call fcn.0040eb04
pop ecx
pop ecx
lea edi, [esi + 0x1e8]
push str.openasfile
mov ecx, edi
call fcn.0040acf1
xor ebx, ebx
test eax, eax
jne 0x40b23f
push str.main_bundle_hasnt_launch_params__just_open
call fcn.0040f5fd
push eax
call fcn.0040eb04
cmp dword [esi + 0xf0], 8
pop ecx
pop ecx
mov dword [ebp - 4], 0x42a0e8
jb 0x40b221
mov eax, dword [esi + 0xdc]
jmp 0x40b227
lea eax, [esi + 0xdc]
lea ecx, [esi + 0x1e0]
push ecx
push eax
push dword [esi + 8]
lea ecx, [ebp - 4]
call fcn.004097f7
jmp 0x40b2c5
cmp dword [esi + 0x21c], 8
jb 0x40b250
mov eax, dword [esi + 0x208]
jmp 0x40b256
lea eax, [esi + 0x208]
push eax
push str.main_bundle_launch_params_s_hiddenfalse_foregroundfalse_runastrue_checkPEtrue
call fcn.0040f5fd
push eax
call fcn.0040eb04
add esp, 0xc
push str.alwaysrunas
mov ecx, edi
call fcn.0040acf1
test eax, eax
setne al
cmp dword [esi + 0x21c], 8
mov byte [ebp - 4], al
jb 0x40b28f
mov ecx, dword [esi + 0x208]
jmp 0x40b295
lea ecx, [esi + 0x208]
cmp dword [esi + 0xf0], 8
jb 0x40b2a6
mov eax, dword [esi + 0xdc]
jmp 0x40b2ac
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.0040629c
add esp, 0x20
push ebx
push ebx
push esi
push 0x40ab41
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, 0x1e0
push ebx
push eax
call fcn.0041b9fc
mov ecx, eax
call fcn.0041bc53
mov eax, dword [esi + 0x7c]
push ebx
add eax, 0x1fc
push ebx
push eax
call fcn.0041b9fc
mov ecx, eax
call fcn.0041bc53
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.004049d8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bc12
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 0x40bc3e
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.0040af2c
mov ecx, dword [esi + 0xac]
mov byte [esi + 0xa9], 1
call fcn.0041a947
test al, al
je 0x40bd00
push str.main_bundle_downloading:_html_detected
call fcn.0040f5fd
push eax
call fcn.0040eb04
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.00404cca
cmp dword [esi + 0x128], ebx
jne 0x40bca9
mov eax, dword [esi + 0x30]
add eax, 0x288
jmp 0x40bcaf
lea eax, [esi + 0x114]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040506f
push str._r_n_Do_you_want_to_continue_
lea ecx, [ebp - 0x1c]
call fcn.0040567c
cmp dword [ebp - 4], 8
mov ecx, dword [ebp - 0x18]
jae 0x40bcd4
lea ecx, [ebp - 0x18]
mov eax, dword [esi - 0x44]
push 4
lea edx, [ebp - 0x81c]
push edx
push ecx
push eax
call fcn.00410233
add esp, 0x10
cmp eax, 7
jne 0x40bcf5
mov byte [esi + 0xa9], bl
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.004049d8
cmp byte [esi + 0xa9], bl
je 0x40bd2f
cmp byte [esi + 0x199], bl
je 0x40bd17
mov ecx, edi
call fcn.0040b161
mov ecx, edi
cmp dword [esi + 0x194], ebx
je 0x40bd28
call fcn.0040a8fb
jmp 0x40bd38
mov eax, dword [edi]
call dword [eax + 0x24]
jmp 0x40bd38
push 1
mov ecx, edi
call fcn.0041c4b9
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c296
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], 0x42a5ec
mov dword [esi + 0x4c], 0x42a5e0
mov dword [esi + 0x50], 0x42cea0
mov byte [esi + 0x1e4], bl
cmp dword [esi + 0xf8], edi
je 0x40c337
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], 7
call fcn.00404941
mov ecx, dword [esi + 0xf8]
call fcn.00419f8a
cmp eax, 3
je 0x40c2fa
push 0xffffffffffffffff
push edi
lea eax, [esi + 0xd8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00404b9f
mov ecx, dword [esi + 0xf8]
mov dword [ebp - 4], ecx
cmp ecx, edi
je 0x40c315
call fcn.0041a6c9
push dword [ebp - 4]
call fcn.004286a0
pop ecx
cmp dword [ebp - 0xc], edi
je 0x40c32d
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x40c326
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push ebx
lea ecx, [ebp - 0x20]
call fcn.004049d8
mov eax, dword [esi + 0x15c]
cmp eax, edi
je 0x40c347
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x238]
call fcn.00401289
lea ecx, [esi + 0x228]
call fcn.00401289
push edi
push ebx
lea ecx, [esi + 0x204]
call fcn.004049d8
push edi
push ebx
lea ecx, [esi + 0x1e8]
call fcn.004049d8
push edi
push ebx
lea ecx, [esi + 0x1bc]
call fcn.004012cc
push edi
push ebx
lea ecx, [esi + 0x1a0]
call fcn.004049d8
push edi
push ebx
lea ecx, [esi + 0x180]
call fcn.004049d8
push edi
push ebx
lea ecx, [esi + 0x160]
call fcn.004049d8
push edi
push ebx
lea ecx, [esi + 0x140]
call fcn.004049d8
push edi
push ebx
lea ecx, [esi + 0x124]
call fcn.004049d8
push edi
push ebx
lea ecx, [esi + 0x108]
call fcn.004049d8
lea ecx, [esi + 0x90]
call fcn.00417b3a
lea ecx, [esi + 0x50]
call fcn.0040c27e
mov ecx, esi
call fcn.0041bd50
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d885
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 0x40da5e
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push esi
call edi
test eax, 0x10000000
je 0x40da5e
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x40da67
mov dword [ebp - 4], esi
push esi
mov esi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x40d8f4
push 0xfffffffffffffff0
push dword [ebp - 4]
call esi
push eax
call edi
test eax, 0x8000000
jne 0x40d8fa
push dword [ebp - 4]
call esi
mov dword [ebp - 4], eax
push eax
call esi
test eax, eax
jne 0x40d8da
xor eax, eax
push 0x40e
mov word [ebp - 0x460], ax
xor ebx, ebx
lea eax, [ebp - 0x45e]
push ebx
push eax
call fcn.0042878d
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.00404cca
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040567c
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040502d
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040504b
mov edi, eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040502d
push fcn.0042898e
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.0040d0bd
mov eax, dword [ebp - 0x1c]
add esp, 0x20
cmp dword [ebp - 8], 8
jae 0x40d99d
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.0040d3c0
pop ecx
pop ecx
test al, al
je 0x40da33
push str.click_active_window_mutex
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
cmp edi, ebx
je 0x40d9db
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40d9d2
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xffffffffffffffff
push edi
call esi
test eax, eax
jne 0x40d9cb
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 0x40da51
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40da51
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.004049d8
jmp 0x40da67
push 2
mov ecx, ebx
call fcn.0040cff3
pop edi
pop esi
pop ebx
leave
ret 4