joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497d82
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x541af0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x497e1a
push 0x506eac
push 4
push eax
call fcn.004bad91
push eax
call fcn.00403230
add esp, 0x10
push ebx
push edi
call fcn.004bd305
mov edi, dword [eax]
call fcn.004bd305
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004bd2a2
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.004bd305
cmp dword [eax], ebx
je 0x497e31
call fcn.004bd305
push dword [eax]
call fcn.00486010
pop ecx
jmp 0x497e38
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x497dc5
jmp 0x497ebf
call fcn.004bd305
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x497ebb
cmp dword [ebp - 0x234], esi
jae 0x497ebb
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.004b5d10
add esp, 0xc
push 0x506c0c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x497eaa
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x497eaa
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x497eaa
push ebx
push ebx
push esi
jmp 0x497eb3
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x497ebd
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b5c0b
leave
ret

Function at 0x499873
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4998bb
call fcn.0049c9e7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4998bb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4998fe
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4998e7
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4998e7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4998fb
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x49ad83
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x49ada7
cmp dword [edi + 0x54], 0
jne 0x49ada7
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0049c9e7
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0049ad44
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x49d182
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4f6efd
call fcn.004bd17a
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x49d1a7
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x49d1ed
lea ecx, [ebp - 0x10]
call fcn.00407160
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00496d66
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403540
mov eax, esi
call fcn.004bd252
ret 8

Function at 0x4a2aef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4a2b36
call fcn.0049c9e7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4a2b36
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4a2b52
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004a2667
mov esi, eax
test edi, edi
je 0x4a2b50
test ebx, ebx
je 0x4a2b50
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4a34ff
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x4a352a
call fcn.0049c9e7
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x4a354d
push eax
push dword [esi + 4]
call fcn.004a3485
push esi
push eax
mov ecx, 0x5458e4
call fcn.004a310c
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4a3f41
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4f71e0
call fcn.004bd17a
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004a3f01
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00407160
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x4a3fa7
push eax
push dword [esi + 8]
call fcn.004a3485
push dword [esi + 0xc]
mov ecx, 0x5458e4
push eax
call fcn.004a310c
mov eax, esi
call fcn.004bd252
ret 0x18

Function at 0x4b5c0b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x541af0]
jne 0x4b5c15
repz ret
jmp fcn.004c0022

Function at 0x4cd609
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004bfa31
and dword [ebp - 4], 0
cmp dword [0x54699c], 0
mov ebx, eax
jne 0x4cd6ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4cd76b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4cd76b
push eax
call fcn.004bf9bf
mov dword [esp], 0x50c0bc
push edi
mov dword [0x54699c], eax
call esi
push eax
call fcn.004bf9bf
mov dword [esp], 0x50c0a8
push edi
mov dword [0x5469a0], eax
call esi
push eax
call fcn.004bf9bf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5469a4], eax
call esi
push eax
call fcn.004bf9bf
pop ecx
mov dword [0x5469ac], eax
test eax, eax
je 0x4cd6ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004bf9bf
pop ecx
mov dword [0x5469a8], eax
mov eax, dword [0x5469a8]
cmp eax, ebx
je 0x4cd712
cmp dword [0x5469ac], ebx
je 0x4cd712
push eax
call fcn.004bfa3a
push dword [0x5469ac]
mov esi, eax
call fcn.004bfa3a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4cd712
test edi, edi
je 0x4cd712
call esi
test eax, eax
je 0x4cd709
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4cd709
test byte [ebp - 0xc], 1
jne 0x4cd712
or dword [ebp + 0x10], 0x200000
jmp 0x4cd74b
mov eax, dword [0x5469a0]
cmp eax, ebx
je 0x4cd74b
push eax
call fcn.004bfa3a
pop ecx
test eax, eax
je 0x4cd74b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4cd74b
mov eax, dword [0x5469a4]
cmp eax, ebx
je 0x4cd74b
push eax
call fcn.004bfa3a
pop ecx
test eax, eax
je 0x4cd74b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x54699c]
call fcn.004bfa3a
pop ecx
test eax, eax
je 0x4cd76b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4cd76d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d4860
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 5
push 0xffffffffffffffff
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x4d48aa
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004bad91
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
jmp 0x4d48b8
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4d4e70
Capabilities:
Check if file exists
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8b59
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x541af0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf0], ecx
lea ecx, [ebp - 0x10]
call fcn.00407160
mov dword [ebp - 4], 0
push str.AUTOFORCE_QiyiClient
lea eax, [ebp - 0x10]
push eax
call fcn.00406050
add esp, 8
push 0x50de80
push 0x546d8c
lea ecx, [ebp - 0xd4]
push ecx
call fcn.00404490
add esp, 0xc
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp - 0xf4]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0xd0], eax
lea ecx, [ebp - 0xd4]
call fcn.004030e0
cmp dword [ebp - 0xd0], 0
je 0x4d509b
push ecx
mov ecx, esp
mov dword [ebp - 0xd8], esp
push str.Run_Force_Update...
call fcn.00403a90
mov dword [ebp - 0xf8], eax
mov ecx, 0x546ce8
call fcn.004e9ae0
push 0x50dec8
push 0x546d8c
lea edx, [ebp - 0xe0]
push edx
call fcn.00404490
add esp, 0xc
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0xdc], eax
lea ecx, [ebp - 0xe0]
call fcn.004030e0
cmp dword [ebp - 0xdc], 0
je 0x4d4fc6
push str.local.inf
push 0x546d8c
lea eax, [ebp - 0xe4]
push eax
call fcn.00404490
add esp, 0xc
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
push 0x50def8
push 0x50defc
push str.ForceVersion
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0xe4]
call fcn.004030e0
push str.QiyiUpdate.exe
push 0x546d8c
lea ecx, [ebp - 0xe8]
push ecx
call fcn.00404490
add esp, 0xc
mov dword [ebp - 0x104], eax
push 5
push 0
lea ecx, [ebp - 0x10]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
mov ecx, dword [ebp - 0x104]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
push 0x50df44
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0xe8]
call fcn.004030e0
mov dword [0x546df8], 1
push 0
mov edx, dword [ebp - 0xf0]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0xcc]
call fcn.004f2260
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0xec], esp
push str.SendLog_7cancelsysbtn2
call fcn.00403a90
mov dword [ebp - 0x108], eax
lea ecx, [ebp - 0xcc]
call fcn.004f2160
push 0
push 0
push 0x464
mov ecx, dword [ebp - 0xf0]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xcc]
call fcn.004f2140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004030e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4d50c0
Capabilities:
Check if file exists
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8b82
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x541af0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd0], ecx
mov ecx, 0x546dbc
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d51d6
push ecx
mov ecx, esp
mov dword [ebp - 0xc8], esp
push str.Run_QiyiInstaller_Repair...
call fcn.00403a90
mov dword [ebp - 0xd4], eax
mov ecx, 0x546ce8
call fcn.004e9ae0
push 5
push 0
push str._repair
mov ecx, 0x546dbc
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
push 0x50de10
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [0x546df8], 1
push 0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0xc4]
call fcn.004f2260
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0xcc], esp
push str.SendLog_7cancelsysbtn3
call fcn.00403a90
mov dword [ebp - 0xd8], eax
lea ecx, [ebp - 0xc4]
call fcn.004f2160
push 0
push 0
push 0x464
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call fcn.004f2140
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4d51f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8bab
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x541af0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd4], ecx
cmp dword [0x546df8], 0
jne 0x4d52f6
push 0
mov eax, dword [ebp - 0xd4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0xc4]
call fcn.004f2260
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xd4]
cmp dword [edx + 0x3bc], 0
je 0x4d528b
push ecx
mov ecx, esp
mov dword [ebp - 0xc8], esp
push str.OpenUrl_http:__app.iqiyi.com_pc_player_feedback_index.html_entryuninstallversion_realversionie
call fcn.00403a90
mov dword [ebp - 0xd8], eax
lea ecx, [ebp - 0xc4]
call fcn.004f2160
jmp 0x4d52e4
mov eax, dword [ebp - 0xd4]
cmp dword [eax + 0x3c0], 0
je 0x4d52c0
push ecx
mov ecx, esp
mov dword [ebp - 0xcc], esp
push str.SendLog_7cancelsysbtn0
call fcn.00403a90
mov dword [ebp - 0xdc], eax
lea ecx, [ebp - 0xc4]
call fcn.004f2160
jmp 0x4d52e4
push ecx
mov ecx, esp
mov dword [ebp - 0xd0], esp
push str.SendLog_7cancelsysbtn1
call fcn.00403a90
mov dword [ebp - 0xe0], eax
lea ecx, [ebp - 0xc4]
call fcn.004f2160
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call fcn.004f2140
push 0
push 0
push 0x464
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4d6ea0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x541af0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.004b5d10
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x4d6fb3
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4d6fb3
lea eax, [ebp - 4]
push eax
push 0x10008
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x4d6fb1
cmp dword [ebp - 0x21c], 0
jne 0x4d6fa7
mov dword [ebp - 0x220], 0x104
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0x103
jne 0x4d6f80
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x21c], eax
jmp 0x4d6fa7
cmp dword [ebp - 0x21c], 0
jne 0x4d6fa2
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004d6ea0
add esp, 8
mov dword [ebp - 0x21c], eax
jmp 0x4d6f21
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4d6fbd
mov dword [ebp - 0x21c], 0x3f2
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004b5c0b
mov esp, ebp
pop ebp
ret
Function at 0x4d7290
Capabilities:
Check if file exists
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x541af0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
call fcn.00403b60
mov dword [ebp - 0xc], eax
cmp dword [0x546e34], 6
jae 0x4d72be
lea ecx, [ebp + 8]
call fcn.004030e0
jmp 0x4d739b
lea ecx, [ebp + 8]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d72de
lea ecx, [ebp + 8]
call fcn.004030e0
jmp 0x4d739b
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d7393
mov dword [ebp - 0x18], 1
lea ecx, [ebp + 8]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4d7322
mov dword [ebp - 0x20], 0
jmp 0x4d7371
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3fffffff
jle 0x4d7344
mov dword [ebp - 0x24], 0
jmp 0x4d736b
mov eax, dword [ebp - 4]
shl eax, 1
call fcn.004bbdc0
mov dword [ebp - 0x28], esp
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
shl eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00407870
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
push 4
lea ecx, [ebp - 0x18]
push ecx
push 4
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call fcn.004030e0
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004b5c0b
mov esp, ebp
pop ebp
ret
Function at 0x4d74a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp + 8]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call fcn.004b82a2
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xa
jae 0x4d74cd
lea ecx, [ebp + 8]
call fcn.004030e0
jmp 0x4d758d
lea ecx, [ebp - 8]
call fcn.00407160
cmp dword [0x546e34], 6
jae 0x4d753b
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d7539
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0
push str.MaxConnectionsPerServer
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.MaxConnectionsPer1_0Server
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4d757d
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftInternet_ExplorerMAINFeatureControlFEATURE_MAXCONNECTIONSPER1_0SERVER
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d757d
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0
push str.explorer.exe
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 8]
call fcn.004030e0
lea ecx, [ebp + 8]
call fcn.004030e0
mov esp, ebp
pop ebp
ret
Function at 0x4d7750
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea ecx, [ebp + 8]
call fcn.00404690
movzx eax, al
test eax, eax
je 0x4d7772
lea ecx, [ebp + 8]
call fcn.004030e0
jmp 0x4d788d
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftInternet_Explorer_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d7885
mov dword [ebp - 0xc], 0x400
mov dword [ebp - 8], 1
lea ecx, [ebp - 0x10]
call fcn.00407160
lea edx, [ebp - 0xc]
push edx
push 0x400
lea ecx, [ebp - 0x10]
call fcn.004037f0
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.Version
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00405f50
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x2e
lea ecx, [ebp - 0x10]
call fcn.00408250
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00404410
lea ecx, [ebp - 0x14]
call fcn.00404690
movzx ecx, al
test ecx, ecx
jne 0x4d7875
push 0x511e1c
lea ecx, [ebp - 0x14]
call fcn.00403fa0
lea ecx, [ebp - 0x14]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call fcn.004b82a2
add esp, 4
mov dword [ebp - 0x18], eax
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftInternet_ExplorerMAINFeatureControlFEATURE_BROWSER_EMULATION
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d7875
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push 0
lea ecx, [ebp + 8]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
call fcn.004030e0
lea ecx, [ebp - 0x10]
call fcn.004030e0
lea ecx, [ebp + 8]
call fcn.004030e0
mov esp, ebp
pop ebp
ret