joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4da8e6
Capabilities:
Check if file exists

Disassembly:
push 0x70
mov eax, 0x535710
call fcn.004f2332
mov esi, ecx
push str.PM_Requirement_InstallEnd_Begin_r_n
push 0x5aea00
call fcn.004de360
xor edi, edi
pop ecx
pop ecx
cmp dword [esi + 0xb4], edi
je 0x4da91e
mov ecx, esi
call fcn.004daa75
cmp dword [esi + 0xb4], edi
jne 0x4da927
cmp dword [esi + 0x28], edi
je 0x4daa5e
lea eax, [ebp - 0x74]
push eax
call fcn.00494b94
mov dword [esp], 0x55af84
lea ecx, [ebp - 0x74]
push 0x55ea08
mov dword [ebp - 4], edi
call fcn.00468150
push str.knotifycenter.exe
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0045922d
add esp, 0xc
push dword [eax]
xor ebx, ebx
lea ecx, [ebp - 0x28]
inc ebx
mov byte [ebp - 4], bl
call fcn.00417260
mov ecx, dword [ebp - 0x78]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00436fdb
push str.datadb_complete
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0045922d
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00417260
mov ecx, dword [ebp - 0x7c]
mov byte [ebp - 4], 6
lea ecx, [ecx - 0x10]
call fcn.00436fdb
push 8
pop esi
cmp dword [ebp - 0x14], esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4daa3b
cmp dword [ebp - 0x2c], esi
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4daa3b
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push str._respathex:_
push eax
call fcn.00425420
push str.___cid:9999__rid:9999__sid:9999
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 7
push eax
call fcn.004941dc
add esp, 0x18
push edi
push ebx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00417d20
cmp dword [ebp - 0x44], esi
lea ecx, [ebp - 0x58]
push edi
cmovae ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], esi
push ebx
cmovae eax, dword [ebp - 0x28]
push edi
push ecx
push eax
call fcn.004cfeb6
add esp, 0x14
lea ecx, [ebp - 0x58]
push edi
push ebx
call fcn.00417d20
push edi
push ebx
lea ecx, [ebp - 0x40]
call fcn.00417d20
push edi
push ebx
lea ecx, [ebp - 0x28]
call fcn.00417d20
mov ecx, dword [ebp - 0x74]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00436fdb
push str.PM_Requirement_InstallEnd_End_r_n
push 0x5aea00
call fcn.004de360
pop ecx
pop ecx
call fcn.004f22e1
ret

Function at 0x4daab8
Capabilities:
Create thread

Disassembly:
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push esi
push 0x4daae8
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x78], eax
xor eax, eax
inc eax
cmp dword [esi + 0x30], edi
cmove edi, eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x4db873
Capabilities:
Check if file exists

Disassembly:
push 0x20
mov eax, 0x535965
call fcn.004f2332
mov esi, ecx
push dword [esi + 0x12c]
mov ecx, dword [esi + 0x130]
call fcn.004deec9
mov edi, eax
test edi, edi
js 0x4db93d
mov ecx, dword [esi + 0x1c]
sub ecx, 0x10
push ecx
call fcn.0043c35e
add eax, 0x10
mov dword [ebp - 0x2c], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.004cfddf
mov ebx, str.install.dat
push ebx
call fcn.0043a8c3
add esp, 0xc
lea ecx, [ebp - 0x2c]
push eax
push ebx
call fcn.004516f5
push dword [0x5ae984]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
je 0x4db8f9
push dword [0x5ae984]
lea ecx, [ebp - 0x28]
call fcn.00417260
mov byte [ebp - 4], 1
jmp 0x4db911
push dword [ebp - 0x2c]
call ebx
test eax, eax
je 0x4db92e
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call fcn.00417260
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x130]
lea eax, [ebp - 0x28]
push eax
call fcn.004e08ac
push 0
push 1
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.00417d20
mov ecx, dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00436fdb
xor eax, eax
test edi, edi
setns al
mov dword [esi + 0x128], eax
test eax, eax
je 0x4db959
mov ecx, dword [esi + 0x12c]
call fcn.004996c9
mov eax, dword [esi + 0x128]
call fcn.004f22e1
ret

Function at 0x4dbe51
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x535a74
call fcn.004f22ff
lea eax, [ebp - 0x10]
push eax
call fcn.00494dc5
and dword [ebp - 4], 0
mov esi, str.kuidsrv.dll
push esi
call fcn.0043a8c3
pop ecx
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.004516f5
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4dbed5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4dbed5
push str.KSDllGetClassObject
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4dbece
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push 0x543824
push 0x540624
call eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4dbece
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
call fcn.004f22cd
ret
Function at 0x4dc7e7
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 0x705
mov eax, dword [edi]
call dword [eax + 4]
push str.UpRegVer_Begin_r_n
mov ebx, 0x5aea00
push ebx
call fcn.004de360
pop ecx
pop ecx
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx - 0xc]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0x55e82c
push str.SOFTWAREliebao
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov esi, eax
push esi
push dword [edi + 0x4c]
push str.UpRegVer__ver_ws__hr0x_x_r_n
push ebx
call fcn.004de360
mov edx, dword [edi]
add esp, 0x10
xor ebx, ebx
mov ecx, edi
test esi, esi
push esi
setns bl
push ebx
push 0x705
call dword [edx + 8]
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4dd7c8
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x535d7d
call fcn.004f22ff
mov ebx, ecx
mov eax, dword [ebx]
push 0x600
call dword [eax + 4]
mov eax, dword [ebx + 8]
sub eax, 0x10
push eax
call fcn.0043c35e
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004cfddf
mov esi, str.ModuleqqdlTencentdl.exe
push esi
call fcn.0043a8c3
add esp, 0xc
lea ecx, [ebp - 0x10]
push eax
push esi
call fcn.004516f5
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4dd83d
push edi
push 1
push edi
push str._install
push dword [ebp - 0x10]
call fcn.004cfeb6
add esp, 0x14
mov edi, eax
jmp 0x4dd852
push dword [ebp - 0x10]
push str.no_exists__ws
push 0x5aea00
call fcn.004de360
add esp, 0xc
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x600
mov ecx, ebx
call dword [esi + 8]
test edi, edi
jne 0x4dd874
mov dword [ebx + 0x150], 0xf
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov eax, edi
call fcn.004f22cd
ret
Function at 0x4ddc3e
Capabilities:
Delete file

Disassembly:
push 0x34
mov eax, 0x535e32
call fcn.004f2332
mov edi, ecx
mov dword [ebp - 0x30], edi
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
call fcn.00437474
push eax
lea ecx, [ebp - 0x38]
call fcn.0043a4ef
push esi
push str.GetPacketData__d
push 0x5aea00
mov dword [ebp - 4], ebx
call fcn.004de360
add esp, 0xc
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
push esi
call fcn.004ddddc
mov esi, eax
push esi
push str.GetPacketData_return:_d
push 0x5aea00
mov dword [ebp - 0x3c], esi
call fcn.004de360
add esp, 0xc
test esi, esi
mov esi, dword [ebp - 0x38]
je 0x4ddd4e
call fcn.004c3398
mov dword [edi + 0x18], eax
test eax, eax
je 0x4ddd4e
push 0x5438dc
push 0x5aea00
call fcn.004de360
mov eax, dword [edi + 0x18]
pop ecx
pop ecx
push dword [ebp - 0x40]
mov ecx, dword [eax]
push dword [ebp - 0x2c]
push dword [ebp - 0x3c]
push eax
call dword [ecx]
xor ecx, ecx
mov edi, eax
test edi, edi
sete cl
push ecx
push str.Extract_return:_d
push 0x5aea00
call fcn.004de360
add esp, 0xc
test edi, edi
mov edi, dword [ebp - 0x30]
je 0x4ddd47
mov eax, dword [edi + 0x18]
lea edx, [ebp - 0x28]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov dword [ebp - 0x2c], eax
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x4ddd27
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
push eax
call fcn.0043a8c3
pop ecx
push eax
push dword [ebp - 0x2c]
lea ecx, [edi + 0x1c]
call fcn.0043a84a
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00417d20
jmp 0x4ddd6d
mov dword [ebp - 0x34], 1
cmp dword [esi - 0xc], ebx
je 0x4ddd5a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x4ddd6a
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
mov dword [edi + 0x18], ebx
mov ebx, dword [ebp - 0x34]
lea ecx, [esi - 0x10]
call fcn.00436fdb
mov eax, ebx
call fcn.004f22e1
ret 8
Function at 0x4dde91
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
mov ebx, ecx
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.004f2e30
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4ddf22
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
push 0x5aea00
call fcn.004de360
add esp, 0x10
jmp 0x4ddf96
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push eax
push esi
push 2
push esi
push edi
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx], eax
test edi, edi
jne 0x4ddf55
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x4ddf7d
push dword [ebx + 8]
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 4], eax
test eax, eax
jne 0x4ddf8c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
push 0x5aea00
call fcn.004de360
add esp, 0x10
jmp 0x4ddf8f
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f225b
mov esp, ebp
pop ebp
ret

Function at 0x4de1d9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4de204
xor eax, eax
jmp 0x4de21f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
push edi
cmove esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret 4
Function at 0x4de225
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, dword [ebp + 8]
mov ebx, ecx
lea edi, [ebp - 0xeb]
xor ecx, ecx
mov byte [ebp - 0xec], cl
stosd dword es:[edi], eax
push 0xc6
push ecx
mov dword [ebp - 0xd8], ecx
stosd dword es:[edi], eax
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xd0], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.004f2e30
push esi
call fcn.0043a8c3
add esp, 0x10
lea ecx, [ebx + 0x14]
push eax
push esi
call fcn.0043a84a
mov ecx, ebx
call fcn.004de160
xor edi, edi
lea eax, [ebp - 0xec]
inc edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push edi
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0xec]
mov dword [ebp - 0xd8], 0xc
mov dword [ebp - 0xd4], eax
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0xcc]
push str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
push eax
call fcn.004f582d
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea eax, [ebp - 0xcc]
add esp, 0xc
push eax
push edi
push edi
lea eax, [ebp - 0xd8]
push eax
call esi
push 0
push 0
push edi
xor edi, edi
mov dword [ebx + 8], eax
push edi
call esi
mov dword [ebx + 0xc], eax
cmp dword [ebx + 8], edi
je 0x4de34b
test eax, eax
je 0x4de34b
push edi
push edi
push ebx
push 0x4de4b3
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [ebx + 0x10], eax
test eax, eax
setne cl
mov eax, ecx
jmp 0x4de34d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f225b
mov esp, ebp
pop ebp
ret 4

Function at 0x4de4c2
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop ebp
ret 8

Function at 0x4de690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x4de6c0
push dword [esi + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004f8eac
push dword [esi + 4]
push 2
push 1
push 0x5583a8
call fcn.004f8eac
add esp, 0x20
pop esi
pop ebp
ret 8
Function at 0x4df631
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4df764
push esi
push edi
xor esi, esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, 0x50
jb 0x4df73b
push edi
call fcn.004f09ec
pop ecx
push esi
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4df73d
cmp dword [ebp - 0xc], edi
jne 0x4df73d
mov edi, dword [ebp + 0xc]
mov esi, ebx
push 0x14
add edi, 4
pop ecx
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx], 0x424b4c48
jne 0x4df736
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0x18], ecx
jne 0x4df736
mov eax, dword [ebx + 0x24]
cmp eax, ecx
ja 0x4df736
mov edx, dword [ebx + 0x28]
add eax, edx
cmp eax, ecx
ja 0x4df736
xor edi, edi
inc edi
cmp dword [ebx + 0x2c], edi
jne 0x4df736
lea eax, [edx + 1]
push eax
call fcn.004f09ec
push dword [ebx + 0x28]
mov esi, eax
mov eax, dword [ebx + 0x24]
add eax, ebx
push eax
push esi
call fcn.004f27e0
mov al, byte [ebx + 0x30]
xor ecx, ecx
mov edx, dword [ebx + 0x28]
add esp, 0x10
mov byte [ebp + 0xb], al
mov eax, ecx
test edx, edx
jle 0x4df71f
mov cl, byte [ebp + 0xb]
xor byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x4df714
mov ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x28]
mov dword [ebp - 8], edi
mov byte [esi + eax], cl
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x54], esi
mov eax, dword [ebx + 0x28]
mov dword [ecx + 0x58], eax
jmp 0x4df73d
mov esi, dword [ebp - 4]
jmp 0x4df73d
mov esi, ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x4df757
test esi, esi
je 0x4df757
push esi
call fcn.004f304f
pop ecx
pop edi
pop esi
test ebx, ebx
je 0x4df764
push ebx
call fcn.004f304f
pop ecx
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4df89f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x48], ebx
cmp dword [esi + 0x14], 8
jb 0x4df8c9
mov eax, dword [esi]
jmp 0x4df8cb
mov eax, esi
lea ecx, [ebp - 0x48]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4df993
push edi
push eax
call fcn.004f3aa7
mov edi, eax
mov dword [ebp - 0x58], edi
pop ecx
test edi, edi
je 0x4df992
cmp dword [esi + 0x14], 8
jb 0x4df8fd
mov esi, dword [esi]
push edi
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4df98b
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
push eax
push 0x55af84
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4df98b
cmp dword [ebp - 0x4c], ebx
je 0x4df98b
mov eax, dword [ebp - 0x50]
push 0x3a
movzx ecx, word [eax + 0xa]
movzx ebx, word [eax + 8]
movzx edi, word [eax + 0xe]
movzx esi, word [eax + 0xc]
xor eax, eax
push eax
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push eax
mov dword [ebp - 0x44], ecx
call fcn.004f2e30
push esi
push edi
push ebx
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x40]
push eax
call fcn.00416680
mov ecx, dword [ebp - 0x54]
add esp, 0x28
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00417b50
mov edi, dword [ebp - 0x58]
mov bl, 1
push edi
call fcn.004f1da0
pop ecx
pop edi
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.004f225b
mov esp, ebp
pop ebp
ret 8
Function at 0x4dff8d
Capabilities:
Print debug messages

Disassembly:
push 0x68
mov eax, 0x53631f
call fcn.004f2332
mov esi, dword [ebp + 0xc]
push 0x543b50
push 0x5aea00
call fcn.004de360
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop ecx
pop ecx
push str.OnScriptError_Begin_r_n
call edi
mov eax, dword [esi]
lea ecx, [ebp - 0x68]
push ecx
xor ebx, ebx
push esi
mov dword [ebp - 0x48], ebx
call dword [eax + 0xc]
mov eax, dword [esi]
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push esi
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebp - 0x48]
push ecx
push esi
call dword [eax + 0x14]
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
push dword [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00416680
pop ecx
push eax
push dword [ebp - 0x60]
lea ecx, [ebp - 0x28]
call fcn.00417b50
push dword [ebp - 0x64]
call fcn.00416680
pop ecx
push eax
push dword [ebp - 0x64]
lea ecx, [ebp - 0x40]
call fcn.00417b50
call fcn.00437474
push eax
lea ecx, [ebp - 0x44]
call fcn.0043a4ef
cmp dword [ebp - 0x60], 0
push 8
mov byte [ebp - 4], 2
pop ebx
je 0x4e0081
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push str.desc_s_r_n
push eax
call fcn.0043ab29
mov esi, dword [ebp - 0x44]
add esp, 0xc
push esi
call edi
push esi
push str.js_error_ws
push 0x5aea00
call fcn.004de360
add esp, 0xc
jmp 0x4e0084
mov esi, dword [ebp - 0x44]
cmp dword [ebp - 0x64], 0
je 0x4e00bf
cmp dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push str.src_s
push eax
call fcn.0043ab29
mov esi, dword [ebp - 0x44]
add esp, 0xc
push esi
call edi
push esi
push str.js_error_ws
push 0x5aea00
call fcn.004de360
add esp, 0xc
mov edx, dword [ebp - 0x48]
test edx, edx
je 0x4e00f4
push edx
lea eax, [ebp - 0x44]
push str.line_s_r_n
push eax
call fcn.0043ab29
mov esi, dword [ebp - 0x44]
add esp, 0xc
push esi
call edi
push esi
push str.js_error_ws
push 0x5aea00
call fcn.004de360
mov edx, dword [ebp - 0x48]
add esp, 0xc
cmp dword [ebp - 0x60], 0
je 0x4e015d
cmp dword [ebp - 0x64], 0
je 0x4e015d
test edx, edx
je 0x4e015d
cmp dword [ebp - 0x2c], ebx
lea ecx, [ebp - 0x40]
push edx
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], ebx
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push str.desc_s__src_s__line_s_r_n
push eax
call fcn.0043ab29
mov esi, dword [ebp - 0x44]
add esp, 0x14
push esi
call edi
cmp dword [ebp - 0x2c], ebx
lea ecx, [ebp - 0x40]
push dword [ebp - 0x48]
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], ebx
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
push str.desc_ws__src_ws__line_ws_r_n
push 0x5aea00
call fcn.004de360
add esp, 0x14
lea ecx, [esi - 0x10]
call fcn.00436fdb
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00417d20
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00417d20
xor eax, eax
call fcn.004f22e1
ret 8
Function at 0x4e1cfd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
xor esi, esi
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push esi
push eax
call fcn.004f2e30
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4e1db9
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4e1d51
sub ecx, edx
sar ecx, 1
je 0x4e1d86
cmp word [ebp + ecx*2 - 0x212], 0x5c
jne 0x4e1d86
lea ecx, [ecx*2 - 2]
cmp ecx, 0x20a
jae 0x4e1dc9
xor eax, eax
mov word [ebp + ecx - 0x210], ax
push 0x6c
call fcn.004b2155
mov edi, eax
pop ecx
test edi, edi
je 0x4e1db3
push 0x160
sub esp, 0x18
lea eax, [ebp - 0x210]
mov ecx, esp
push eax
call fcn.00417260
mov ecx, edi
call fcn.004e1593
mov esi, eax
mov dword [0x5aea40], esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f225b
mov esp, ebp
pop ebp
ret
call fcn.004f5df3
int3

Function at 0x4e26f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4e27d7
test ebx, ebx
je 0x4e27d7
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4e27d7
push 0x7ff
lea eax, [ebp - 0x803]
mov byte [ebp - 0x804], 0
push 0
push eax
call fcn.004f2e30
add esp, 0xc
cmp edi, 0x800
ja 0x4e27d7
lea eax, [ebp - 0x804]
push eax
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4e27d7
and dword [ebp - 0x80c], 0
lea eax, [ebp - 0x80c]
and dword [ebp - 0x808], 0
push eax
lea eax, [ebp - 0x808]
push eax
push 0x55af84
lea eax, [ebp - 0x804]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4e27d7
mov eax, dword [ebp - 0x808]
mov si, word [eax + 0xa]
mov dx, word [eax + 8]
mov cx, word [eax + 0xe]
mov ax, word [eax + 0xc]
movzx eax, ax
push eax
movzx eax, cx
push eax
movzx eax, dx
push eax
movzx eax, si
push eax
push str._d._d._d._d
push dword [ebp + 0x10]
push ebx
call fcn.004f90d4
add esp, 0x1c
mov al, 1
jmp 0x4e27d9
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f225b
mov esp, ebp
pop ebp
ret