joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460940
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x460973
push esi
call fcn.00463a50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46096c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4609f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4609e2
mov eax, dword [esi + 8]
test eax, eax
je 0x460997
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4609de
cmp eax, 2
je 0x4609e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46098a
cmp eax, 3
je 0x4609bd
cmp eax, 1
jne 0x46098a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x46098a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46098a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00460a20
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x460a08
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00460a20
add esp, 4
pop esi
ret

Function at 0x46e030
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x46e0d3
test eax, eax
jbe 0x46e0d3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x46e0d3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46e07e
xor esi, esi
jmp 0x46e084
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46e0af
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00425e70
add esi, eax
push esi
mov ebx, esi
call fcn.00425e70
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x46e090
pop ebp
test edi, edi
pop edi
jne 0x46e0d3
test ebx, ebx
je 0x46e0d3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00479800
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x46e215
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46e32d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46e32d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048a589
mov esi, eax
test esi, esi
je 0x46e32d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46e32d
mov ecx, esi
call fcn.0046e180
cmp edi, eax
jge 0x46e32d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x46e2b3
mov dword [esp + 0x34], 1
jmp 0x46e30e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46e32d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0046d710
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x48af2c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48af64
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00488fb9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00488f91
jmp 0x48af70
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48c61e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48c660
call fcn.00492303
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48c660
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48c657
xor eax, eax
jmp 0x48c668
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048c66e
pop edi
pop esi
pop ebx
ret 4
Function at 0x492833
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x492861
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49287f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00492799
jmp 0x49287f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49287f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00492799
test edi, edi
mov eax, edi
jne 0x492869
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x402ef0
Capabilities:
Get disk size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4209b0
push eax
mov dword fs:[0], esp
sub esp, 0x4c
lea eax, [esp + 0x10]
lea edx, [esp + 0x20]
push ebx
push ebp
mov ebp, ecx
push eax
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4030af
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push esi
push edi
push ecx
push edx
lea eax, [esp + 0x50]
push str._I64d
push eax
call fcn.00417eed
lea ecx, [esp + 0x58]
push ecx
call fcn.00417a8e
mov dl, byte [esp + 0x80]
add esp, 0x14
xor ebx, ebx
lea ecx, [esp + 0x38]
push ebx
mov esi, eax
mov byte [esp + 0x3c], dl
call fcn.0040cf30
lea eax, [esp + 0x48]
push eax
call fcn.00417a8e
add esp, 4
mov edi, eax
lea ecx, [esp + 0x38]
push 1
push edi
call fcn.0040ce00
test al, al
je 0x402fab
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x48]
push edi
push ecx
push edx
call fcn.00401be0
add esp, 0xc
lea ecx, [esp + 0x38]
push edi
call fcn.0040cd60
cmp esi, 6
mov dword [esp + 0x64], ebx
jle 0x403076
add esi, 0xfffffffa
lea eax, [esp + 0x10]
push esi
push ebx
push eax
lea ecx, [esp + 0x44]
call fcn.0040a270
mov ecx, dword [0x422604]
mov byte [esp + 0x64], 1
push ecx
push ebx
push eax
lea ecx, [esp + 0x44]
call fcn.0040c980
push 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], bl
call fcn.0040cf30
mov dword [esp + 0x6c], ebx
mov esi, 0x422600
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
push ebx
push str.disk_free
push 0x42731c
lea edx, [esp + 0x1c]
push ebx
push edx
lea ecx, [ebp + 0x45c]
mov byte [esp + 0x78], 3
call fcn.0040f110
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], esi
push eax
mov edi, eax
call dword [sym.imp.MxUI.dll_HTMLayout_UseElement]
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, edi
je 0x403076
mov edi, dword [esp + 0x3c]
cmp edi, ebx
jne 0x403051
mov edi, 0x422470
cmp edi, ebx
je 0x403063
push edi
call fcn.00417a8e
add esp, 4
push eax
push edi
push esi
call dword [sym.imp.MxUI.dll_HTMLayoutSetElementInnerText16]
push 0x8000
push esi
call dword [sym.imp.MxUI.dll_HTMLayoutUpdateElementEx]
push esi
call dword [sym.imp.MxUI.dll_HTMLayout_UnuseElement]
mov ecx, dword [esp + 0x3c]
pop edi
cmp ecx, ebx
pop esi
je 0x4030af
mov al, byte [ecx - 1]
cmp al, bl
je 0x4030a3
cmp al, 0xff
je 0x4030a3
dec al
pop ebp
mov byte [ecx - 1], al
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 4
add ecx, 0xfffffffe
push ecx
call fcn.0041749e
add esp, 4
mov ecx, dword [esp + 0x54]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 4
Function at 0x405740
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x418
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x420]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 4]
push edx
push 0x422c9c
push 1
push 0
push 0x422f7c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4057a5
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop edi
add esp, 0x418
ret
mov eax, dword [esp + 4]
push ebx
lea edx, [esp + 0x10]
push esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov esi, dword [esp + 0x434]
test esi, esi
je 0x4057d9
push esi
call fcn.00417a8e
add esp, 4
test eax, eax
je 0x4057d9
mov eax, dword [esp + 0xc]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov ebx, dword [esp + 0x430]
test ebx, ebx
je 0x405846
push esi
call fcn.00417a8e
add esp, 4
test eax, eax
je 0x405846
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x42c4b4]
test eax, eax
jne 0x40581b
mov eax, 0x422470
push ebx
push eax
lea edx, [esp + 0x224]
push 0x4278d8
push edx
call fcn.00417eed
mov eax, dword [esp + 0x1c]
add esp, 0x10
lea edx, [esp + 0x21c]
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x44]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 0x12], 0x5c
lea eax, [esp + eax*2 + 0x12]
pop esi
pop ebx
je 0x405868
sub eax, 2
cmp word [eax], 0x5c
jne 0x40585f
mov word [eax], 0
mov eax, dword [esp + 4]
lea edx, [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x42334c
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x4058a3
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop edi
add esp, 0x418
ret
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x424]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
pop edi
add esp, 0x418
ret
Function at 0x4058e0
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x524
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x126]
mov word [esp + 0x124], bx
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x124]
push eax
push ebx
push ebx
push ebx
push ebx
call esi
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x14], 6
jae 0x405960
lea edx, [esp + 0x124]
mov ecx, 0x82
push edx
push ebx
xor eax, eax
lea edi, [esp + 0x12c]
push ebx
push 0x19
rep stosd dword es:[edi], eax
push ebx
call esi
xor ebp, ebp
mov esi, dword [0x42c49c]
test esi, esi
je 0x405a1b
mov ecx, dword [0x42c4a0]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ebp, edx
jae 0x405a1b
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x32e]
mov word [esp + 0x32c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + esi + 0x14]
test eax, eax
jne 0x4059ba
mov eax, 0x422470
lea ecx, [esp + 0x124]
push eax
push ecx
lea edx, [esp + 0x334]
push str._s_s.lnk
push edx
call fcn.00417eed
mov ecx, dword [0x42c49c]
add esp, 0x10
mov eax, dword [ebx + ecx + 4]
test eax, eax
jne 0x4059eb
mov eax, 0x422470
mov ecx, dword [ebx + ecx + 0x24]
test ecx, ecx
jne 0x4059f8
mov ecx, 0x422470
push eax
push ecx
mov ecx, dword [esp + 0x540]
lea eax, [esp + 0x334]
push eax
push ecx
call fcn.00405740
add esp, 0x10
inc ebp
add ebx, 0x30
jmp 0x405962
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x524
ret 4
Function at 0x406640
Capabilities:
Set registry value

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallMaxthon2
mov esi, ecx
push 0x80000002
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x406800
mov eax, dword [esi + 0x4f8]
mov ecx, dword [esi + 0x4fc]
test eax, eax
jne 0x406680
mov eax, 0x422470
mov edx, dword [esp + 4]
add ecx, ecx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ecx
push eax
push 1
push 0
push str.DisplayName
push edx
call edi
push str.Mx2Uninstall.exe
lea eax, [esp + 0x10]
push 0x42c4b0
push eax
call fcn.00410f20
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x4066bf
mov eax, 0x422470
mov ecx, dword [esp + 0x14]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [esp + 0x10]
push 1
push 0
push str.UninstallString
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4066e5
mov eax, 0x422470
mov ecx, dword [esp + 0x14]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [esp + 0x10]
push 1
push 0
push str.DisplayIcon
push eax
call edi
mov eax, dword [esi + 0x474]
mov ecx, dword [esi + 0x478]
test eax, eax
jne 0x406713
mov eax, 0x422470
mov edx, dword [esp + 8]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.DisplayVersion
push edx
call edi
mov ecx, dword [0x42c4b4]
mov eax, dword [0x42c4b8]
test ecx, ecx
jne 0x40673b
mov ecx, 0x422470
add eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x10]
push 1
push 0
push str.InstallLocation
push ecx
call edi
mov eax, dword [esi + 0x588]
mov ecx, dword [esi + 0x58c]
test eax, eax
jne 0x406764
mov eax, 0x422470
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [esp + 0x10]
push 1
push 0
push str.URLInfoAbout
push eax
call edi
mov eax, dword [esi + 0x588]
mov ecx, dword [esi + 0x58c]
test eax, eax
jne 0x40678e
mov eax, 0x422470
mov edx, dword [esp + 8]
add ecx, ecx
push ecx
push eax
push 1
push 0
push str.URLUpdateInfo
push edx
call edi
mov eax, dword [esi + 0x59c]
mov esi, dword [esi + 0x598]
test esi, esi
jne 0x4067b7
mov esi, 0x422470
mov ecx, dword [esp + 8]
add eax, eax
push eax
push esi
push 1
push 0
push str.Publisher
push ecx
call edi
mov ecx, dword [esp + 0x10]
pop edi
test ecx, ecx
je 0x406800
mov al, byte [ecx - 1]
test al, al
je 0x4067f4
cmp al, 0xff
je 0x4067f4
dec al
mov byte [ecx - 1], al
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x14
ret
add ecx, 0xfffffffe
push ecx
call fcn.0041749e
add esp, 4
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x14
ret
Function at 0x406810
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x780
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x582]
mov word [esp + 0x580], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x42c4b4]
cmp eax, esi
jne 0x406842
mov eax, 0x422470
push eax
lea eax, [esp + 0x584]
push str._sMaxthon.exe_0
push eax
call fcn.00417eed
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x386]
mov word [esp + 0x384], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x42c4b4]
add esp, 0xc
cmp eax, esi
jne 0x406880
mov eax, 0x422470
push eax
lea ecx, [esp + 0x37c]
push str._sMaxthon.exe
push ecx
call fcn.00417eed
add esp, 0xc
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0x5c]
lea edx, [esp + 0x5c]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x60], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x4270e0], esi
je 0x406963
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
mov word [esp + 0x170], si
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov ecx, 0x81
mov dword [esp + 0xc], eax
lea edi, [esp + 0x172]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x170]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x44
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x378]
push ecx
push str._s__SetDefault
push edx
stosw word es:[edi], ax
call fcn.00417eed
add esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x170]
push eax
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406963
mov eax, dword [esp + 8]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop edi
pop esi
add esp, 0x780
ret
Function at 0x4072d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420d90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
push 0x42c54c
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], ebx
call fcn.00417a8e
mov edi, eax
add esp, 4
cmp edi, 0x7ffffffd
jbe 0x40731c
call fcn.004177a5
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x407345
mov al, byte [ecx - 1]
test al, al
je 0x407345
cmp al, 0xff
je 0x407345
cmp edi, ebx
jne 0x407369
dec al
mov byte [ecx - 1], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
jmp 0x40739d
cmp edi, ebx
jne 0x407354
push 1
mov ecx, esi
call fcn.0040cf30
jmp 0x40739d
mov eax, dword [esi + 0xc]
cmp eax, 0x1f
ja 0x407360
cmp eax, edi
jae 0x407371
push 1
mov ecx, esi
call fcn.0040cf30
push edi
mov ecx, esi
call fcn.0040e670
mov eax, dword [esi + 4]
mov edx, edi
mov ecx, 0x42c54c
cmp edx, ebx
jbe 0x407390
mov bx, word [ecx]
add ecx, 2
mov word [eax], bx
add eax, 2
dec edx
xor ebx, ebx
jmp 0x40737b
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
mov word [eax + edi*2], bx
lea edi, [eax + edi*2]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
push edx
mov dword [ebp - 0x20], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x4073c8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
call fcn.004180fc
add esp, 4
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
push edi
push ebx
xor ebx, ebx
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x18]
push ecx
push edx
push 0x4274f0
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [eax + 0xc]
mov cx, word [eax + 0xc]
shr edx, 0x10
push ecx
push edx
mov edx, dword [eax + 8]
xor ecx, ecx
mov cx, word [eax + 8]
mov eax, dword [ebp - 0x28]
shr edx, 0x10
push ecx
push edx
push str._d._d._d._d
push esi
push eax
call fcn.00407470
add esp, 0x1c
jmp 0x407447
test edi, edi
je 0x407454
push edi
call fcn.0041749e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40bb30
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42135b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
test ecx, ecx
mov dword [esp], 0
mov dword [esp + 0x218], 0xffffffff
je 0x40bb67
lea eax, [ecx - 0x20]
jmp 0x40bb69
xor eax, eax
mov ecx, dword [esp + 0x220]
push ebx
push ebp
mov ebp, dword [eax + 4]
mov ebx, dword [ecx + 0xc]
push esi
test ebx, ebx
push edi
je 0x40bd18
cmp word [ebx], 0
je 0x40bd18
push 5
push str.file:
push ebx
call fcn.00418257
add esp, 0xc
test eax, eax
je 0x40bd1d
push 5
push str.http:
push ebx
call fcn.00418257
add esp, 0xc
test eax, eax
je 0x40bd1d
push 6
push str.https:
push ebx
call fcn.00418257
add esp, 0xc
test eax, eax
je 0x40bd1d
push 4
push str.res:
push ebx
call fcn.00418257
add esp, 0xc
test eax, eax
jne 0x40bbeb
add ebx, 8
push 0x104
lea edx, [esp + 0x1c]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [esp + 0x10]
call fcn.0040eca0
lea eax, [esp + 0x18]
push 0x2f
push eax
mov dword [esp + 0x230], 1
lea edi, [esp + 0x20]
call fcn.00418217
add esp, 8
test eax, eax
je 0x40bc53
lea ecx, [esp + 0x18]
lea edi, [eax + 2]
push ecx
mov word [eax], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40bc53
test al, 0x10
jne 0x40bc53
lea edx, [esp + 0x18]
push 2
push edx
lea ecx, [esp + 0x18]
call fcn.0040ecd0
push 0x2e
push edi
call fcn.00418217
mov esi, eax
add esp, 8
test esi, esi
je 0x40bc89
mov word [esi], 0
add esi, 2
je 0x40bc89
push str.HTML
push esi
call fcn.00417f5c
add esp, 8
test eax, eax
je 0x40bc89
mov eax, dword [esp + 0x10]
push esi
push edi
push eax
jmp 0x40bc91
mov ecx, dword [esp + 0x10]
push 0x17
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40bcb5
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.0040ecb0
xor eax, eax
jmp 0x40bd1d
mov edx, dword [esp + 0x10]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40bd04
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40bd04
mov eax, dword [esp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x40bd04
push eax
push esi
push ebx
push ebp
call dword [sym.imp.MxUI.dll_HTMLayoutDataReady]
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.0040ecb0
xor eax, eax
jmp 0x40bd1d
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.0040ecb0
mov eax, 1
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret 4