joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401160
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
mov eax, dword [0x4b99e4]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x13c]
xor ebx, ebx
push ebx
push 2
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4011b1
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0044c23d
add esp, 0x12c
ret
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4011f9
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x34]
push ecx
push edi
call ebp
test eax, eax
je 0x4011e4
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4011c7
jmp 0x4011f8
mov eax, dword [esp + 0x18]
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0044c23d
add esp, 0x12c
ret

Function at 0x401f10
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], 8
mov ecx, dword [eax + 0x14]
jb 0x401f22
mov eax, dword [eax + 4]
jmp 0x401f25
add eax, 4
mov edx, dword [esp + 4]
inc ecx
push ecx
mov ecx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
push 1
push eax
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x403040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48f258
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4b99e4]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4b99e4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x40]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], ecx
mov word [esp + 0xc], dx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 8]
push ecx
push edx
push eax
call fcn.00402fd0
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp dword [esp + 0x20], 8
jae 0x4030b2
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x1c]
push esi
push ecx
push eax
call fcn.004029f0
add esp, 0xc
cmp dword [esp + 0x20], 8
jb 0x4030d5
mov edx, dword [esp + 0xc]
push edx
call fcn.00418a35
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0044c23d
add esp, 0x2c
ret
Function at 0x403100
Capabilities:
Check if file exists
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x48f288
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4b99e4]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b99e4]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0x9c]
xor ebx, ebx
push ebx
mov ebp, 0xf
push 0x497a4e
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.00402910
mov dword [esp + 0x90], ebx
cmp edi, ebx
jne 0x4031a9
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x30]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00402830
cmp dword [esp + 0x40], 0x10
jb 0x403304
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00418a35
add esp, 4
jmp 0x403304
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4031e9
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x30]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00402830
cmp dword [esp + 0x40], 0x10
jb 0x403304
mov eax, dword [esp + 0x2c]
push eax
call fcn.00418a35
add esp, 4
jmp 0x403304
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
cmp ebp, ebx
jg 0x40322f
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x30]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00402830
cmp dword [esp + 0x40], 0x10
jb 0x403304
mov edx, dword [esp + 0x2c]
push edx
call fcn.00418a35
add esp, 4
jmp 0x403304
lea eax, [ebp + 4]
push eax
call fcn.00418a40
add esp, 4
push eax
push ebp
push ebx
push edi
mov dword [esp + 0x24], eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x403256
lea ecx, [esp + 0x28]
push ecx
jmp 0x4032f4
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push 0x497a4c
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x403282
lea edx, [esp + 0x28]
push edx
jmp 0x4032f4
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 8]
mov edi, eax
and eax, 0xffff
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0xc]
mov ebp, eax
and eax, 0xffff
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
push eax
shr edi, 0x10
shr ebp, 0x10
call fcn.00418a4b
push 0x3f
lea ecx, [esp + 0x4d]
push ebx
push ecx
mov byte [esp + 0x54], bl
call fcn.0044c250
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
push edx
push ebp
push eax
push edi
lea ecx, [esp + 0x64]
push str._d._d._d._d
push ecx
call fcn.0044ce53
add esp, 0x28
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x2c]
call fcn.00402fa0
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00402cb0
lea ecx, [esp + 0x28]
call fcn.00402580
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0044c23d
add esp, 0x80
ret
Function at 0x403660
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4b99e4]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
mov ebx, dword [esp + 0x41c]
push ebp
mov ebp, dword [esp + 0x424]
push esi
mov esi, dword [esp + 0x41c]
push edi
mov edi, dword [esp + 0x424]
push 0x400
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x20], 0x200
call fcn.0044c250
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push edi
push esi
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4036df
mov ecx, ebp
call fcn.00402e20
xor eax, eax
jmp 0x403707
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4036e6
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
call fcn.00402d30
mov eax, 1
mov ecx, dword [esp + 0x418]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044c23d
add esp, 0x40c
ret
Function at 0x40ae30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x48fd13
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b99e4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.00478a99
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x40ae81
mov eax, dword [esi + 0x1c]
push eax
call fcn.00418a35
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x40e760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40e779
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40e7b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40e7b0
lea ebx, [ebx]
cmp esi, eax
jae 0x40e7b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40e7a0
cmp esi, eax
jb 0x40e7ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40e900
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x40e913
push 0x80004005
call fcn.004013a0
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test esi, esi
je 0x40e97a
mov ecx, dword [edi]
test ecx, ecx
jbe 0x40e977
mov edx, dword [esp + 0x14]
test edx, edx
jbe 0x40e972
cmp edx, 2
jbe 0x40e96b
cmp edx, 7
jne 0x40e972
cmp ecx, 1
jb 0x40e972
cmp byte [ecx + esi - 1], 0
jne 0x40e972
cmp ecx, 1
jbe 0x40e97a
cmp byte [ecx + esi - 2], 0
jmp 0x40e970
cmp byte [ecx + esi - 1], 0
je 0x40e97a
mov eax, 0xd
mov byte [esi], 0
pop esi
pop edi
ret 0xc

Function at 0x40f270
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4904b9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
mov eax, dword [0x4b99e4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, dword [esp + 0x44]
xor ebx, ebx
mov dword [esp + 0x10], ebx
push 1
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x49851c
mov ecx, esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x1c], esi
mov byte [esi + 4], bl
call fcn.00402910
push 0x497a4e
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x14], 1
call fcn.0040f1b0
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x40], 1
call fcn.0040f040
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40f336
mov edx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00403100
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x48], 2
call fcn.00402830
cmp dword [esp + 0x30], 0x10
jb 0x40f336
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00418a35
add esp, 4
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x3c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f35a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x34
ret
Function at 0x40faa0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x49055b
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x4b99e4]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x4b99e4]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov edi, dword [esp + 0x134]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
push 0x103
lea eax, [esp + 0x21]
push ebx
push eax
mov dword [esp + 0x138], ebx
mov byte [esp + 0x28], bl
call fcn.0044c250
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
push SysReAllocString
mov dword [esp + 0x24], ebx
call esi
cmp eax, ebx
je 0x40fc35
lea edx, [esp + 0x10]
push edx
push 0x2001f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallChromium
push SysReAllocString
mov dword [esp + 0x24], ebx
call esi
cmp eax, ebx
je 0x40fc35
push 0x2001f
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x20]
call fcn.0040e8a0
test eax, eax
je 0x40fbf7
push 0x2001f
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallChromium
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x20]
call fcn.0040e8a0
test eax, eax
je 0x40fbf7
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push str.GoogleChromeApplicationchrome.exe
lea ecx, [esp + 0x20]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0040f000
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40fbd0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0044c23d
add esp, 0x120
ret
lea ecx, [esp + 0x10]
push ecx
push str.InstallLocation
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], 0x400
call fcn.0040e900
test eax, eax
jne 0x40fbc1
push str.chrome.exe
lea eax, [esp + 0x20]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [esp + 0x1c]
push edx
jmp 0x40fbba
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push str.InstallLocation
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0x400
call fcn.0040e900
test eax, eax
jne 0x40fc96
push str.chrome.exe
lea edx, [esp + 0x20]
push edx
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40fc80
sub eax, edx
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.0040ee80
cmp esi, ebx
je 0x40fbd0
push esi
jmp 0x40fbca
Function at 0x40fcb0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4905b9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
mov eax, dword [0x4b99e4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, dword [esp + 0x44]
xor ebx, ebx
mov dword [esp + 0x10], ebx
push 1
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x49851c
mov ecx, esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x1c], esi
mov byte [esi + 4], bl
call fcn.00402910
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x10], 1
call fcn.0040f9d0
test eax, eax
je 0x40fda7
push 0x497a4e
lea ecx, [esp + 0x10]
call fcn.0040f1b0
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x40], 1
call fcn.0040faa0
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40fd83
mov edx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00403100
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x48], 2
call fcn.00402830
cmp dword [esp + 0x30], 0x10
jb 0x40fd83
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00418a35
add esp, 4
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x3c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fda7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x34
ret
Function at 0x410460
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4906a9
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4b99e4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x4b99e4]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, dword [esp + 0x64]
xor ebx, ebx
mov dword [esp + 0x10], ebx
push 1
mov edi, ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x49851c
mov ecx, esi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], esi
mov byte [esi + 4], bl
call fcn.00402910
mov ecx, edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x10], 1
call fcn.00410110
test eax, eax
jne 0x410566
push str._firefox.exe
lea eax, [esp + 0x38]
push edi
push eax
call fcn.004103a0
add esp, 0xc
mov eax, dword [esp + 0x38]
mov edi, 0x10
mov dword [esp + 0x5c], 1
cmp dword [esp + 0x4c], edi
jae 0x410509
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x410553
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x410522
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403100
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x68], 2
call fcn.00402830
cmp dword [esp + 0x30], edi
jb 0x410553
mov edx, dword [esp + 0x1c]
push edx
call fcn.00418a35
add esp, 4
cmp dword [esp + 0x4c], edi
jb 0x410566
mov eax, dword [esp + 0x38]
push eax
call fcn.00418a35
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0044c23d
add esp, 0x50
ret 4
Function at 0x410850
Capabilities:
Get file version info

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4b99e4]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x22c]
push ebx
mov ebx, dword [esp + 0x228]
push ebp
mov ebp, dword [esp + 0x228]
push esi
push edi
push 0x103
lea edx, [esp + 0x25]
push 0
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov byte [esp + 0x2c], 0
call fcn.0044c250
mov ecx, dword [0x4be170]
add esp, 0xc
push 0x104
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x103
lea edx, [esp + 0x129]
push 0
push edx
mov byte [esp + 0x130], 0
call fcn.0044c250
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0
lea eax, [esp + 0x128]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
lea ecx, [edi + 4]
push ecx
call fcn.00418a40
mov esi, eax
add esp, 4
test esi, esi
jne 0x41092c
push eax
call fcn.00418a4b
add esp, 4
xor eax, eax
jmp 0x4109ac
push esi
push edi
push 0
lea edx, [esp + 0x130]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x41094e
push esi
call fcn.00418a4b
add esp, 4
xor eax, eax
jmp 0x4109ac
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x497a4c
push esi
mov dword [esp + 0x20], 0
call sub.VERSION.dll_VerQueryValueA
push esi
test eax, eax
je 0x41091d
mov eax, dword [esp + 0x14]
movzx edx, word [eax + 0xa]
mov dword [ebp], edx
mov ecx, dword [eax + 8]
and ecx, 0xffff
mov dword [ebx], ecx
movzx edx, word [eax + 0xe]
mov ecx, dword [esp + 0x1c]
mov dword [ecx], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x18]
and edx, 0xffff
mov dword [eax], edx
call fcn.00418a4b
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044c23d
add esp, 0x21c
ret 0x10
Function at 0x410b00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x4b99e4]
xor eax, esp
mov dword [esp + 0x110], eax
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov dword [esp + 0xc], ecx
mov esi, 0x4b84c0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
push SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], 0x104
call edi
test eax, eax
lea eax, [esp + 0x14]
je 0x410b9e
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x410bd5
add esi, 8
cmp esi, 0x4b84d8
jl 0x410b25
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0044c23d
add esp, 0x114
ret
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410ba1
sub eax, edx
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
add ecx, 4
call fcn.00402910
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0044c23d
add esp, 0x114
ret
lea eax, [esp + 0x14]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410be0
mov ecx, dword [esp + 0xc]
sub eax, edx
push eax
lea edx, [esp + 0x18]
push edx
add ecx, 4
call fcn.00402910
mov ecx, dword [esp + 0x118]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0044c23d
add esp, 0x114
ret
Function at 0x410c60
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x490709
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4b99e4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x4b99e4]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, dword [esp + 0x64]
xor ebx, ebx
mov dword [esp + 0x10], ebx
push 1
mov edi, ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x49851c
mov ecx, esi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], esi
mov byte [esi + 4], bl
call fcn.00402910
mov ecx, edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x10], 1
call fcn.00410b00
test eax, eax
jne 0x410d69
push str.Maxthon.exe
add edi, 4
lea eax, [esp + 0x38]
push edi
push eax
call fcn.004103a0
add esp, 0xc
mov eax, dword [esp + 0x38]
mov edi, 0x10
mov dword [esp + 0x5c], 1
cmp dword [esp + 0x4c], edi
jae 0x410d0c
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x410d56
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x410d25
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403100
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x68], 2
call fcn.00402830
cmp dword [esp + 0x30], edi
jb 0x410d56
mov edx, dword [esp + 0x1c]
push edx
call fcn.00418a35
add esp, 4
cmp dword [esp + 0x4c], edi
jb 0x410d69
mov eax, dword [esp + 0x38]
push eax
call fcn.00418a35
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0044c23d
add esp, 0x50
ret 4

Function at 0x410d90
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x1c
push esi
push edi
mov edi, ecx
call fcn.0040d1e0
mov ecx, eax
call fcn.00408250
push str.XLMaxthonSvr::InitPath
push 2
call fcn.0040d1e0
mov ecx, eax
call fcn.0040e0a0
test eax, eax
je 0x410dbf
add eax, 8
jmp 0x410dc1
xor eax, eax
push str.Enter_
push eax
call fcn.0040d500
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040d990
mov ecx, esi
call fcn.0040c6d0
call fcn.0040d1e0
mov ecx, eax
call fcn.00408270
mov ecx, edi
call fcn.00410b00
test eax, eax
jne 0x410e48
push str.Maxthon.exe
add edi, 4
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004103a0
mov edi, 0x10
add esp, 0xc
cmp dword [eax + 0x18], edi
jb 0x410e1d
mov eax, dword [eax + 4]
jmp 0x410e20
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov esi, eax
cmp dword [esp + 0x20], edi
jb 0x410e3c
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00418a35
add esp, 4
test esi, esi
je 0x410e48
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
pop edi
mov eax, 3
pop esi
add esp, 0x1c
ret