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

Disassembly:
push 0x70
mov eax, 0x535069
call fcn.004f1db2
mov esi, ecx
push str.PM_Requirement_InstallEnd_Begin_r_n
push 0x5aca00
call fcn.004dddd9
xor edi, edi
pop ecx
pop ecx
cmp dword [esi + 0xb4], edi
je 0x4da397
mov ecx, esi
call fcn.004da4ee
cmp dword [esi + 0xb4], edi
jne 0x4da3a0
cmp dword [esi + 0x28], edi
je 0x4da4d7
lea eax, [ebp - 0x74]
push eax
call fcn.00494777
mov dword [esp], 0x559c0c
lea ecx, [ebp - 0x74]
push 0x55d688
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 0x4da4b4
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 0x4da4b4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push str._respathex:_
push eax
call fcn.00425330
push str.___cid:9999__rid:9999__sid:9999
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 7
push eax
call fcn.00493dbf
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.004cf9dd
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 0x5aca00
call fcn.004dddd9
pop ecx
pop ecx
call fcn.004f1d61
ret

Function at 0x4da531
Capabilities:
Create thread

Disassembly:
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push esi
push 0x4da561
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 0x4db2ec
Capabilities:
Check if file exists

Disassembly:
push 0x20
mov eax, 0x5352be
call fcn.004f1db2
mov esi, ecx
push dword [esi + 0x12c]
mov ecx, dword [esi + 0x130]
call fcn.004de942
mov edi, eax
test edi, edi
js 0x4db3b6
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.004cf906
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 [0x5ac984]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
je 0x4db372
push dword [0x5ac984]
lea ecx, [ebp - 0x28]
call fcn.00417260
mov byte [ebp - 4], 1
jmp 0x4db38a
push dword [ebp - 0x2c]
call ebx
test eax, eax
je 0x4db3a7
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.004e0325
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 0x4db3d2
mov ecx, dword [esi + 0x12c]
call fcn.004992ac
mov eax, dword [esi + 0x128]
call fcn.004f1d61
ret

Function at 0x4db8ca
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x5353cd
call fcn.004f1d7f
lea eax, [ebp - 0x10]
push eax
call fcn.004949a8
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 0x4db94e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4db94e
push str.KSDllGetClassObject
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4db947
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push 0x5424bc
push 0x53f28c
call eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4db947
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.004f1d4d
ret
Function at 0x4dc260
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, 0x5aca00
push ebx
call fcn.004dddd9
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 0x55d4ac
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.004dddd9
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 0x4dd241
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x5356d6
call fcn.004f1d7f
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.004cf906
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 0x4dd2b6
push edi
push 1
push edi
push str._install
push dword [ebp - 0x10]
call fcn.004cf9dd
add esp, 0x14
mov edi, eax
jmp 0x4dd2cb
push dword [ebp - 0x10]
push str.no_exists__ws
push 0x5aca00
call fcn.004dddd9
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 0x4dd2ed
mov dword [ebx + 0x150], 0xf
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov eax, edi
call fcn.004f1d4d
ret
Function at 0x4dd6b7
Capabilities:
Delete file

Disassembly:
push 0x34
mov eax, 0x53578b
call fcn.004f1db2
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 0x5aca00
mov dword [ebp - 4], ebx
call fcn.004dddd9
add esp, 0xc
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
push esi
call fcn.004dd855
mov esi, eax
push esi
push str.GetPacketData_return:_d
push 0x5aca00
mov dword [ebp - 0x3c], esi
call fcn.004dddd9
add esp, 0xc
test esi, esi
mov esi, dword [ebp - 0x38]
je 0x4dd7c7
call fcn.004c2ebf
mov dword [edi + 0x18], eax
test eax, eax
je 0x4dd7c7
push 0x542574
push 0x5aca00
call fcn.004dddd9
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 0x5aca00
call fcn.004dddd9
add esp, 0xc
test edi, edi
mov edi, dword [ebp - 0x30]
je 0x4dd7c0
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 0x4dd7a0
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 0x4dd7e6
mov dword [ebp - 0x34], 1
cmp dword [esi - 0xc], ebx
je 0x4dd7d3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x4dd7e3
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.004f1d61
ret 8
Function at 0x4dd90a
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x581d10]
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.004f28b0
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 0x4dd99b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
push 0x5aca00
call fcn.004dddd9
add esp, 0x10
jmp 0x4dda0f
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 0x4dd9ce
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
jmp 0x4dd9f6
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 0x4dda05
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
push 0x5aca00
call fcn.004dddd9
add esp, 0x10
jmp 0x4dda08
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.004f1cdb
mov esp, ebp
pop ebp
ret

Function at 0x4ddc52
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 0x4ddc7d
xor eax, eax
jmp 0x4ddc98
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 0x4ddc9e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x581d10]
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.004f28b0
push esi
call fcn.0043a8c3
add esp, 0x10
lea ecx, [ebx + 0x14]
push eax
push esi
call fcn.0043a84a
mov ecx, ebx
call fcn.004ddbd9
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.004f52ad
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 0x4dddc4
test eax, eax
je 0x4dddc4
push edi
push edi
push ebx
push 0x4ddf2c
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 0x4dddc6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret 4

Function at 0x4ddf3b
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 0x4de109
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x4de139
push dword [esi + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004f892c
push dword [esi + 4]
push 2
push 1
push 0x557030
call fcn.004f892c
add esp, 0x20
pop esi
pop ebp
ret 8
Function at 0x4df0aa
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 0x4df1dd
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 0x4df1b4
push edi
call fcn.004f046c
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 0x4df1b6
cmp dword [ebp - 0xc], edi
jne 0x4df1b6
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 0x4df1af
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0x18], ecx
jne 0x4df1af
mov eax, dword [ebx + 0x24]
cmp eax, ecx
ja 0x4df1af
mov edx, dword [ebx + 0x28]
add eax, edx
cmp eax, ecx
ja 0x4df1af
xor edi, edi
inc edi
cmp dword [ebx + 0x2c], edi
jne 0x4df1af
lea eax, [edx + 1]
push eax
call fcn.004f046c
push dword [ebx + 0x28]
mov esi, eax
mov eax, dword [ebx + 0x24]
add eax, ebx
push eax
push esi
call fcn.004f2260
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 0x4df198
mov cl, byte [ebp + 0xb]
xor byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x4df18d
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 0x4df1b6
mov esi, dword [ebp - 4]
jmp 0x4df1b6
mov esi, ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x4df1d0
test esi, esi
je 0x4df1d0
push esi
call fcn.004f2acf
pop ecx
pop edi
pop esi
test ebx, ebx
je 0x4df1dd
push ebx
call fcn.004f2acf
pop ecx
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4df318
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x581d10]
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 0x4df342
mov eax, dword [esi]
jmp 0x4df344
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 0x4df40c
push edi
push eax
call fcn.004f33b9
mov edi, eax
mov dword [ebp - 0x58], edi
pop ecx
test edi, edi
je 0x4df40b
cmp dword [esi + 0x14], 8
jb 0x4df376
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 0x4df404
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
push eax
push 0x559c0c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4df404
cmp dword [ebp - 0x4c], ebx
je 0x4df404
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.004f28b0
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.004f1820
pop ecx
pop edi
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret 8
Function at 0x4dfa06
Capabilities:
Print debug messages

Disassembly:
push 0x68
mov eax, 0x535c78
call fcn.004f1db2
mov esi, dword [ebp + 0xc]
push 0x5427e8
push 0x5aca00
call fcn.004dddd9
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 0x4dfafa
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 0x5aca00
call fcn.004dddd9
add esp, 0xc
jmp 0x4dfafd
mov esi, dword [ebp - 0x44]
cmp dword [ebp - 0x64], 0
je 0x4dfb38
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 0x5aca00
call fcn.004dddd9
add esp, 0xc
mov edx, dword [ebp - 0x48]
test edx, edx
je 0x4dfb6d
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 0x5aca00
call fcn.004dddd9
mov edx, dword [ebp - 0x48]
add esp, 0xc
cmp dword [ebp - 0x60], 0
je 0x4dfbd6
cmp dword [ebp - 0x64], 0
je 0x4dfbd6
test edx, edx
je 0x4dfbd6
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 0x5aca00
call fcn.004dddd9
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.004f1d61
ret 8
Function at 0x4e1776
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x581d10]
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.004f28b0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4e1832
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4e17ca
sub ecx, edx
sar ecx, 1
je 0x4e17ff
cmp word [ebp + ecx*2 - 0x212], 0x5c
jne 0x4e17ff
lea ecx, [ecx*2 - 2]
cmp ecx, 0x20a
jae 0x4e1842
xor eax, eax
mov word [ebp + ecx - 0x210], ax
push 0x6c
call fcn.004b1c79
mov edi, eax
pop ecx
test edi, edi
je 0x4e182c
push 0x160
sub esp, 0x18
lea eax, [ebp - 0x210]
mov ecx, esp
push eax
call fcn.00417260
mov ecx, edi
call fcn.004e100c
mov esi, eax
mov dword [0x5aca40], esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
call fcn.004f5873
int3

Function at 0x4e216b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x581d10]
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 0x4e2252
test ebx, ebx
je 0x4e2252
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4e2252
push 0x7ff
lea eax, [ebp - 0x803]
mov byte [ebp - 0x804], 0
push 0
push eax
call fcn.004f28b0
add esp, 0xc
cmp edi, 0x800
ja 0x4e2252
lea eax, [ebp - 0x804]
push eax
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4e2252
and dword [ebp - 0x80c], 0
lea eax, [ebp - 0x80c]
and dword [ebp - 0x808], 0
push eax
lea eax, [ebp - 0x808]
push eax
push 0x559c0c
lea eax, [ebp - 0x804]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4e2252
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.004f8b54
add esp, 0x1c
mov al, 1
jmp 0x4e2254
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret