joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404db5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408688
cmp edx, dword [eax]
je 0x404dd7
add eax, 8
inc ecx
cmp eax, 0x408718
jl 0x404dc8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408688]
jne 0x404f05
mov eax, dword [0x408a48]
cmp eax, 1
je 0x404edf
test eax, eax
jne 0x404e08
cmp dword [0x4085d4], 1
je 0x404edf
cmp edx, 0xfc
je 0x404f05
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404e3f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404e82
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4065d0
push edi
call fcn.004056f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004032d0
lea eax, [ebp - 0xa0]
push 0x4065b0
push eax
call fcn.004032d0
push dword [esi + 0x40868c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004032d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405667
add esp, 0x2c
pop edi
jmp 0x404f05
lea eax, [ebp + 8]
lea esi, [esi + 0x40868c]
push 0
push eax
push dword [esi]
call fcn.004033b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x7c826e7c
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x1bc0074e
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4041a0
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x458240]
test eax, eax
je 0x4041c8
mov eax, dword [0x45829c]
test eax, eax
jne 0x4041b7
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [0x458240], 0
mov eax, dword [0x458244]
test eax, eax
je 0x4041f8
mov eax, dword [0x45824c]
test eax, eax
jne 0x4041df
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0
push 1
push 0
push eax
call fcn.00427e70
add esp, 0x10
mov dword [0x458244], 0
ret
Function at 0x404c68
Capabilities:
Check if file exists
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4478d9
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
call fcn.00404560
mov eax, dword [esp + 0x28]
cmp eax, 0x3e9
jne 0x404c8e
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 0x3ea
jne 0x404cc7
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [esi + 4]
push 0
push 0
push 0x591
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
cmp eax, 0x3eb
jne 0x404ddd
mov al, byte [esi + 0x43c]
test al, al
je 0x404cff
mov eax, dword [esi + 4]
push 0x3eb
push eax
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
push 0x455744
lea ecx, [esp + 8]
push 0x4580a0
push ecx
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
add esp, 0xc
mov eax, dword [esp + 8]
mov dword [esp + 0x1c], 0
test eax, eax
jne 0x404d2b
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404da5
mov edx, dword [esi + 4]
push 0x3eb
push edx
call dword [sym.imp.USER32.dll_KillTimer]
lea eax, [esp + 4]
push eax
call fcn.00430240
add esp, 4
cmp eax, 0xffffffff
je 0x404da5
lea ecx, [esp + 4]
push ecx
call fcn.00430240
add esp, 4
test eax, eax
jle 0x404d77
mov edx, dword [esi + 4]
push 0
push 0
push 0x499
push edx
jmp 0x404d98
push 0xb
call fcn.0042a1f0
add esp, 4
mov dword [0x457ed0], 0xb
mov eax, dword [esi + 4]
push 0
push 0
push 0x4c8
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [esi + 0x43c], 1
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x404ddd
mov al, byte [ecx - 1]
test al, al
je 0x404dd1
cmp al, 0xff
je 0x404dd1
dec al
pop esi
mov byte [ecx - 1], al
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x14]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x40de20
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x447ed7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40de55
mov ecx, dword [esi + 4]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0040edf0
mov ecx, esi
call fcn.0040f810
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x40df1a
push 0x2740
call fcn.0043c870
mov edi, eax
add esp, 4
mov dword [esp + 0xc], edi
test edi, edi
mov dword [esp + 0x18], 0
je 0x40dee5
mov ecx, edi
call fcn.0040f8a0
lea ebx, [edi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.00407560
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 2
mov dword [edi + 0x2c], 0
call fcn.0042b7c0
lea ecx, [edi + 0x26cc]
mov byte [esp + 0x18], 3
call fcn.0042b1d0
lea ecx, [edi + 0x2718]
mov byte [esp + 0x18], 4
call fcn.00425720
mov dword [edi], 0x44c66c
mov dword [ebx], 0x44c650
jmp 0x40dee7
xor edi, edi
mov ebx, dword [esi + 4]
mov dword [esi + 0x1c], edi
push edi
add edi, 8
push edi
push 0x457de8
mov dword [esp + 0x24], 0xffffffff
call fcn.0040f8b0
mov edx, dword [0x457df0]
push 0
push 0x405af0
push ebx
push 0xe2
push edx
jmp 0x40df6a
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x40df70
mov ebx, dword [esi + 4]
lea edi, [eax + 8]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x457e1c
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x457e50]
push 0x457e1c
mov dword [edi + 8], eax
mov dword [0x457e50], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x457df0]
push 0
push 0x405af0
push ebx
push 0xe2
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x48]
mov ecx, dword [esi + 0x3c]
sub edx, eax
push 1
push edx
mov edx, dword [esi + 0x44]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x1c]
push ecx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 0x1c]
push 5
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x34], 0
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40e730
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x44809b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x40e768
mov ecx, dword [esi + 4]
push 5
push ecx
call ebp
mov ecx, esi
call fcn.0040edf0
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x40e7f1
push 0x15c
call fcn.0043c870
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x1c], 0
je 0x40e7a1
mov edx, dword [esp + 0x24]
mov ecx, eax
push edx
call fcn.00411570
jmp 0x40e7a3
xor eax, eax
mov ebx, dword [esi + 4]
lea edi, [eax + 8]
mov dword [esi + 0x20], eax
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x457e1c
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x457e50]
push 0x457e1c
mov dword [edi + 8], eax
mov dword [0x457e50], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x457df0]
push 0
push 0x405af0
push ebx
push 0x83
push ecx
jmp 0x40e841
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x40e847
mov ebx, dword [esi + 4]
lea edi, [eax + 8]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x457e1c
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x457e50]
push 0x457e1c
mov dword [edi + 8], edx
mov dword [0x457e50], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x457df0]
push 0
push 0x405af0
push ebx
push 0x83
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x48]
mov ecx, dword [esi + 0x3c]
sub edx, eax
push 1
push edx
mov edx, dword [esi + 0x44]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 0x20]
push 5
mov eax, dword [edx + 4]
push eax
call ebp
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x34], 1
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40e8a0
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x4480bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x10]
push edi
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add eax, 0xaa
mov dword [esp + 0x20], eax
sub eax, ecx
push 1
push eax
mov eax, dword [esp + 0x1c]
sub edx, eax
push edx
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40e914
mov edx, dword [esi + 4]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0040edf0
lea eax, [esi + 0x3c]
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov ebp, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov eax, dword [esi + 0x30]
add edi, 0xaa
test eax, eax
jne 0x40e9c6
push 0x15c
call fcn.0043c870
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x3c], 0
je 0x40e96e
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, eax
call fcn.00412ca0
jmp 0x40e970
xor eax, eax
mov edx, dword [esi + 4]
lea ebx, [eax + 8]
mov dword [esi + 0x30], eax
mov dword [esp + 0x44], edx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x457e1c
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x457e50]
push 0x457e1c
mov dword [ebx + 8], eax
mov dword [0x457e50], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x44]
mov edx, dword [0x457df0]
push 0
push 0x405af0
push ecx
push 0xe4
push edx
jmp 0x40ea1f
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x40ea25
mov ecx, dword [esi + 4]
lea ebx, [eax + 8]
mov dword [esp + 0x44], ecx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x457e1c
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x457e50]
push 0x457e1c
mov dword [ebx + 8], edx
mov dword [0x457e50], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x44]
mov ecx, dword [0x457df0]
push 0
push 0x405af0
push eax
push 0xe4
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x30]
sub edi, ecx
push 1
sub ebp, eax
push edi
push ebp
push ecx
push eax
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esi + 0x30]
push 5
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x34], 1
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x40ea80
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x4480f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40eab4
mov ecx, dword [esi + 4]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0040edf0
mov ecx, esi
call fcn.0040f810
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x40eb6f
push ebp
push 0xa8
call fcn.0043c870
mov edi, eax
add esp, 4
mov dword [esp + 0xc], edi
test edi, edi
mov dword [esp + 0x18], 0
je 0x40eb33
mov dword [edi + 4], 0
mov dword [edi + 0x18], 0
lea ebp, [edi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebp
call fcn.00407560
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 2
call fcn.0042b1d0
lea ecx, [edi + 0x7c]
mov byte [esp + 0x18], 3
call fcn.00425720
mov dword [edi], 0x44c6c0
mov dword [ebp], 0x44c6a4
jmp 0x40eb35
xor edi, edi
mov ebp, dword [esi + 4]
mov dword [esi + 0x2c], edi
push edi
add edi, 8
push edi
push 0x457de8
mov dword [esp + 0x24], 0xffffffff
call fcn.0040f8b0
mov edx, dword [0x457df0]
push 0
push 0x405af0
push ebp
push 0xe3
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
pop ebp
jmp 0x40eba1
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x40eba1
mov edi, dword [esi + 4]
push eax
add eax, 8
push eax
push 0x457de8
call fcn.0040f8b0
mov eax, dword [0x457df0]
push 0
push 0x405af0
push edi
push 0xe3
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x48]
mov ecx, dword [esi + 0x3c]
sub edx, eax
push 1
push edx
mov edx, dword [esi + 0x44]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x2c]
push ecx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 0x2c]
push 5
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x34], 3
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40edf0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40ee0d
mov eax, dword [eax + 4]
test eax, eax
je 0x40ee0d
push 0
push eax
call edi
mov eax, dword [esi + 0x28]
test eax, eax
je 0x40ee20
mov eax, dword [eax + 4]
test eax, eax
je 0x40ee20
push 0
push eax
call edi
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40ee33
mov eax, dword [eax + 4]
test eax, eax
je 0x40ee33
push 0
push eax
call edi
mov eax, dword [esi + 0x20]
test eax, eax
je 0x40ee46
mov eax, dword [eax + 4]
test eax, eax
je 0x40ee46
push 0
push eax
call edi
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40ee59
mov eax, dword [eax + 4]
test eax, eax
je 0x40ee59
push 0
push eax
call edi
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40ee6c
mov eax, dword [eax + 4]
test eax, eax
je 0x40ee6c
push 0
push eax
call edi
pop edi
pop esi
ret
Function at 0x40f030
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x40f047
mov eax, dword [eax + 4]
test eax, eax
je 0x40f047
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x410010
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0xc0c
push ebx
push esi
mov esi, ecx
push edi
mov bl, 1
mov eax, dword [esi + 0x54]
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
jne 0x410073
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [esp + 0x10], eax
call edi
mov edx, dword [esi + 4]
mov dword [esp + 0x10], eax
push edx
mov dword [esp + 0x18], 0xfffffffe
call edi
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [esp + 0xc]
push ecx
push edi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0xc0c
ret
shr eax, 2
test al, 1
je 0x4100b3
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esi + 4]
and edi, 0xffff
push ecx
push edi
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0xc0c
ret
mov dx, word [0x457dd4]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x41a]
mov word [esp + 0x418], dx
mov word [esp + 0x18], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x1a]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
push 0x400
push edx
push 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x18]
push str...Maxthon.exe
lea ecx, [esp + 0x41c]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x418]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410130
pop edi
pop esi
xor al, al
pop ebx
add esp, 0xc0c
ret
mov eax, dword [esi + 0x24]
push 1
push 0
lea ecx, [esp + 0x420]
push eax
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x41016d
mov al, byte [esi + 0x58]
mov edx, dword [esi + 4]
push 1
or al, 2
push 0
push edx
mov byte [esi + 0x58], al
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0xc0c
ret
Function at 0x410b06
Capabilities:
Hide graphical window

Disassembly:
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push esi
mov esi, ecx
mov ecx, dword [0x457ee4]
test ecx, ecx
jne 0x410b15
mov ecx, edx
mov eax, dword [0x457efc]
test eax, eax
jne 0x410b20
mov eax, edx
push 0
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esi + 4]
mov dword [esi + 0xa0], 1
push ecx
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x410b4f
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x1c]
lea ecx, [esi + 0x1c]
call dword [edx + 0xc]
xor eax, eax
pop esi
ret 0x10

Function at 0x411570
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x44845a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], ebx
mov dword [esi + 0x18], ebx
lea edi, [esi + 0x1c]
mov dword [esp + 0x18], ebx
mov ecx, edi
call fcn.00404e00
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x44], ebx
mov al, byte [edi + 0x58]
lea ecx, [edi + 0x34]
and al, 0xf1
push ecx
or al, 1
mov dword [edi + 0x48], 0xff0000
mov dword [edi + 0x4c], 0x800080
mov dword [edi + 0x50], 0xffffff
mov dword [edi + 0x54], ebx
mov byte [edi + 0x58], al
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [edi], 0x44c6d8
mov dl, byte [esp + 0x20]
mov dword [esi + 0x80], ebx
mov byte [esi + 0x7c], dl
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
lea ecx, [esi + 0x94]
mov byte [esp + 0x18], 2
call fcn.0042b1d0
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 3
call fcn.0042b1d0
lea ecx, [esi + 0x12c]
mov byte [esp + 0x18], 4
call fcn.00425720
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x150], ebx
mov dword [esi + 0x90], eax
mov dword [esi], 0x44c6e4
mov dword [esi + 0x158], ebx
mov dword [esi + 0x78], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x412ca0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4486da
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], ebx
mov dword [esi + 0x18], ebx
lea edi, [esi + 0x1c]
mov dword [esp + 0x18], ebx
mov ecx, edi
call fcn.00404e00
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x44], ebx
mov al, byte [edi + 0x58]
lea ecx, [edi + 0x34]
and al, 0xf1
push ecx
or al, 1
mov dword [edi + 0x48], 0xff0000
mov dword [edi + 0x4c], 0x800080
mov dword [edi + 0x50], 0xffffff
mov dword [edi + 0x54], ebx
mov byte [edi + 0x58], al
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [edi], 0x44c6d8
mov dl, byte [esp + 0x20]
mov dword [esi + 0x80], ebx
mov byte [esi + 0x7c], dl
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
lea ecx, [esi + 0x94]
mov byte [esp + 0x18], 2
call fcn.0042b1d0
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 3
call fcn.0042b1d0
lea ecx, [esi + 0x12c]
mov byte [esp + 0x18], 4
call fcn.00425720
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x150], ebx
mov dword [esi + 0x90], eax
mov dword [esi], 0x44c710
mov dword [esi + 0x158], ebx
mov dword [esi + 0x78], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4