joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42af00
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00444280
mov eax, dword [0x47d6c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, ecx
mov dword [ebp - 0x1024], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x42af6b
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x42af5a
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42af60
mov edi, dword [ebp - 0x1024]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x42af81
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444268
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x42afdb
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80a
call fcn.004297d0
add esp, 0xc
test eax, eax
jne 0x42afcc
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.00429580
add esp, 0xc
push 0
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x42b118
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x42b039
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80c
call fcn.004297d0
add esp, 0xc
test eax, eax
jne 0x42afcc
push str.Could_not_open_service
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.00429580
add esp, 0xc
push esi
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x42b118
lea eax, [ebp - 0x1020]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x42b0b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x42b0b2
cmp eax, 0x425
jne 0x42b06a
cmp dword [ebp - 0x101c], 3
je 0x42b0b2
push 0x400
lea ecx, [ebp - 0x804]
push ecx
push 0xd80e
call fcn.004297d0
add esp, 0xc
test eax, eax
jne 0x42b0a0
push str.Could_not_stop_service
lea edx, [ebp - 0x804]
push 0x400
push edx
call fcn.00429580
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x1024], eax
call esi
push edi
call esi
cmp dword [ebp - 0x1024], 0
jne 0x42af6b
push 0x400
lea ecx, [ebp - 0x1004]
push ecx
push 0xd80d
call fcn.004297d0
add esp, 0xc
test eax, eax
jne 0x42b10e
push str.Could_not_delete_service
lea edx, [ebp - 0x1004]
push 0x400
push edx
call fcn.00429580
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00444268
mov esp, ebp
pop ebp
ret
Function at 0x42bcb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x42bcd1
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x42b140
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x42bcf8
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42d0b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d186
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x47d6c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x42d12d
call fcn.00429820
mov edi, eax
jmp 0x42d212
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42d146
call fcn.00429820
jmp 0x42d209
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x42d164
call fcn.00429820
jmp 0x42d209
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x42d185
mov edi, 0x8007000e
jmp 0x42d20b
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0042bd80
mov dword [ebp - 4], 1
jmp 0x42d1bd
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x42d1ce
mov edi, 0x8007000e
jmp 0x42d20b
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x42d1e7
call fcn.00429820
jmp 0x42d209
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.0042cc40
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x42d230
lea ecx, [ebp - 0x418]
call fcn.0042a730
jmp 0x42d230
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00444268
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42d540
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
call fcn.0042af00
test eax, eax
jne 0x42d55e
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x481690]
push ebx
lea eax, [ebp - 0x1c]
push eax
push 1
push 0x65
xor ebx, ebx
push ecx
mov dword [ebp - 0x1c], str.APPID
mov dword [ebp - 0x18], str.F6189E3E_8B57_4CC9_B6F6_2F1FF1D1D9D4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0042d310
cmp eax, ebx
jl 0x42d690
push esi
push 0x20006
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00429cc0
cmp eax, ebx
je 0x42d5da
push eax
call fcn.00429840
mov esi, eax
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, ebx
je 0x42d5cf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x18]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.F6189E3E_8B57_4CC9_B6F6_2F1FF1D1D9D4
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00429c20
cmp eax, ebx
je 0x42d630
push eax
call fcn.00429840
mov edi, eax
mov eax, dword [ebp - 0xc]
add esp, 4
cmp eax, ebx
je 0x42d61a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x42d625
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0xc]
push str.LocalService
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0xc]
cmp byte [ebp + 8], bl
je 0x42d680
push 1
lea eax, [edi + 0x40]
push eax
push str.LocalService
call fcn.00429e10
mov ecx, edi
call fcn.0042ad50
lea ecx, [ebp - 0xc]
test eax, eax
jne 0x42d680
call fcn.0042a7e0
lea ecx, [ebp - 0x18]
call fcn.0042a7e0
pop esi
pop ebx
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 4
call fcn.0042a7e0
lea ecx, [ebp - 0x18]
call fcn.0042a7e0
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x42d6a0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.0042af00
test eax, eax
jne 0x42d6b8
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x20006
xor esi, esi
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00429cc0
cmp eax, esi
je 0x42d701
push eax
call fcn.00429840
mov edi, eax
mov eax, dword [ebp - 0x10]
add esp, 4
cmp eax, esi
je 0x42d6f9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x10]
push 0x20006
push str.F6189E3E_8B57_4CC9_B6F6_2F1FF1D1D9D4
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00429cc0
cmp eax, esi
je 0x42d752
push eax
call fcn.00429840
mov edi, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
cmp eax, esi
je 0x42d73e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x42d749
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [0x481690]
lea eax, [ebp - 0x20]
push eax
push esi
push 0x65
push ecx
mov dword [ebp - 0x20], str.APPID
mov dword [ebp - 0x1c], str.F6189E3E_8B57_4CC9_B6F6_2F1FF1D1D9D4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.0042d310
mov dword [ebp - 4], eax
cmp edi, esi
je 0x42d796
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x42d7a1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x444268
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47d6c0]
jne 0x444272
repz ret
jmp fcn.0044df6d

Function at 0x4580dc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47d6c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0044f279
and dword [ebp - 0x14], 0
cmp dword [0x482bb8], 0
mov dword [ebp - 0x18], eax
jne 0x45818f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x458237
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46e884
push ebx
call edi
test eax, eax
je 0x458237
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x482bb8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x482bbc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x482bc0], eax
call edi
push eax
call esi
mov dword [0x482bc8], eax
test eax, eax
je 0x45818f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x482bc4], eax
mov eax, dword [0x482bc4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4581e8
cmp dword [0x482bc8], ecx
je 0x4581e8
push eax
call esi
push dword [0x482bc8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4581e8
test ebx, ebx
je 0x4581e8
call edi
test eax, eax
je 0x4581df
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4581df
test byte [ebp - 8], 1
jne 0x4581e8
or dword [ebp + 0x10], 0x200000
jmp 0x45821b
mov eax, dword [0x482bbc]
cmp eax, dword [ebp - 0x18]
je 0x45821b
push eax
call esi
test eax, eax
je 0x45821b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45821b
mov eax, dword [0x482bc0]
cmp eax, dword [ebp - 0x18]
je 0x45821b
push eax
call esi
test eax, eax
je 0x45821b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x482bb8]
call esi
test eax, eax
je 0x458237
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x458239
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00444268
leave
ret

Function at 0x499b90
Capabilities:
Packed with generic packer
Resolve function by parsing pe exports

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x66000]
push edi
mov ebp, esp
lea ebx, [esp - 0x3e80]
xor eax, eax
push eax
cmp esp, ebx
jne 0x499ba8
inc esi
inc esi
push ebx
push 0x975ec
push edi
add ebx, 4
push ebx
push 0x32b7f
push esi
add ebx, 4
push ebx
push eax
mov dword [ebx], 0x20003
nop
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov edx, dword [esp + 0x90]
mov dword [esp + 0x74], 0
mov byte [esp + 0x73], 0
mov ebp, dword [esp + 0x9c]
lea eax, [edx + 4]
mov dword [esp + 0x78], eax
mov eax, 1
invalid
Function at 0x403740
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [edi + 0xf4]
push ebx
push esi
push edi
push fcn.00403a70
add ecx, 0x8c
mov dword [edi], vtable.shui::CFrmInstaller.0
call sym.SH7zInstaller.exe__Disconnect___CSHSignelWatcherT_VCSHActiveSignalArgs_shui___shui__QAEXP8CSHWidget_2_AEXPAV32_AAVCSHActiveSig
mov ecx, dword [edi + 0xfc]
push edi
push 0x403d00
add ecx, 0x8c
call sym.SH7zInstaller.exe__Disconnect___CSHSignelWatcherT_VCSHActiveSignalArgs_shui___shui__QAEXP8CSHWidget_2_AEXPAV32_AAVCSHActiveSig
mov ecx, dword [edi + 0x10c]
push edi
push 0x406650
add ecx, 0x8c
call sym.SH7zInstaller.exe__Disconnect___CSHSignelWatcherT_VCSHActiveSignalArgs_shui___shui__QAEXP8CSHWidget_2_AEXPAV32_AAVCSHActiveSig
mov ecx, dword [edi + 0xf8]
push edi
push fcn.00406670
add ecx, 0x8c
call sym.SH7zInstaller.exe__Disconnect___CSHSignelWatcherT_VCSHActiveSignalArgs_shui___shui__QAEXP8CSHWidget_2_AEXPAV32_AAVCSHActiveSig
mov ecx, dword [edi + 0x110]
push edi
push 0x408c20
add ecx, 0x8c
call sym.SH7zInstaller.exe__Disconnect___CSHSignelWatcherT_VCSHActiveSignalArgs_shui___shui__QAEXP8CSHWidget_2_AEXPAV32_AAVCSHActiveSig
mov ebx, 8
cmp dword [edi + 0x16c], ebx
jb 0x4037d6
mov eax, dword [edi + 0x158]
jmp 0x4037dc
lea eax, [edi + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [edi + 0x1a8]
call fcn.0040b200
cmp dword [edi + 0x1a4], ebx
jb 0x403805
mov eax, dword [edi + 0x190]
push eax
call fcn.0046190e
add esp, 4
xor esi, esi
mov ebx, 7
xor ecx, ecx
mov dword [edi + 0x1a4], ebx
mov dword [edi + 0x1a0], esi
mov word [edi + 0x190], cx
cmp dword [edi + 0x188], 8
jb 0x403839
mov edx, dword [edi + 0x174]
push edx
call fcn.0046190e
add esp, 4
xor eax, eax
mov dword [edi + 0x188], ebx
mov dword [edi + 0x184], esi
mov word [edi + 0x174], ax
cmp dword [edi + 0x16c], 8
jb 0x403866
mov ecx, dword [edi + 0x158]
push ecx
call fcn.0046190e
add esp, 4
xor edx, edx
mov dword [edi + 0x16c], ebx
mov dword [edi + 0x168], esi
mov ecx, edi
mov word [edi + 0x158], dx
call sym.SH7zInstaller.exe_public_virtual:_void___thiscall_shui::CShNormalFrame::destructor_void_
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406390
Capabilities:
Create directory
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x4c40a0]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.BINDATA
push 0xa8
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4063d6
xor eax, eax
jmp 0x406501
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4063cf
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.00464050
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x14]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406430
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x12], 0x5c
jne 0x406469
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406450
sub eax, edx
sar eax, 1
mov ecx, 0x5c30
mov word [esp + eax*2 + 0x12], cx
lea edx, [esp + 0x14]
push 0
push edx
call fcn.0046200a
add esp, 8
test eax, eax
je 0x406489
push 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.Sohuva_installer.7z
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.00462286
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4064e0
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4064e4
xor eax, eax
jmp 0x406500
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebp, 0x154
push ebp
lea eax, [esp + 0x18]
call fcn.00409d40
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00461919
add esp, 0x210
ret 4
Function at 0x4081a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x474018
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4c40a0]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x4c40a0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], ecx
mov word [esp + 8], dx
push 0xffffffffffffffff
mov dword [esp + 0x30], ecx
push ecx
add eax, 0x170
lea ecx, [esp + 0xc]
call fcn.0040a0f0
push 0x19
mov eax, str.FileAssociationsTool.exe
lea ecx, [esp + 8]
call fcn.0040a010
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.0040e850
add esp, 4
cmp dword [esp + 0x1c], 8
jb 0x40822f
mov ecx, dword [esp + 8]
push ecx
call fcn.0046190e
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00461919
add esp, 0x2c
ret 4

Function at 0x408260
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4735d0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4c40a0]
xor eax, esp
mov dword [esp + 0x78], eax
push esi
push edi
mov eax, dword [0x4c40a0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
xor edi, edi
mov dword [esp + 0x90], edi
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0x70], cx
add eax, 0x170
push edi
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], edi
call fcn.0040a0f0
push 0xd
mov eax, 0x498a10
lea ecx, [esp + 0x6c]
mov byte [esp + 0x94], 1
call fcn.0040a010
cmp dword [esp + 0xb0], edi
jbe 0x408313
push 2
mov eax, 0x498bd0
lea ecx, [esp + 0x6c]
call fcn.0040a010
push edi
lea edx, [esp + 0xa0]
push edx
or eax, 0xffffffff
lea esi, [esp + 0x70]
call fcn.00409f50
push 0x40
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00464050
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x80], 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], 0x44
jae 0x40834f
lea eax, [esp + 0x6c]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x408378
push eax
call esi
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x408393
push 0xbb8
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [esp + 0xc]
push eax
call esi
cmp dword [esp + 0x80], 8
jb 0x4083aa
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.0046190e
add esp, 4
xor edx, edx
cmp dword [esp + 0xb4], 8
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], dx
jb 0x4083da
mov eax, dword [esp + 0xa0]
push eax
call fcn.0046190e
add esp, 4
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00461919
add esp, 0x88
ret 0x20
Function at 0x40ad70
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x473da8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4c40a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.0040a0f0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40adc6
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.0040a010
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.0040a0f0
cmp dword [esp + 0x24], 8
jb 0x40ae0f
mov edx, dword [esp + 0x10]
push edx
call fcn.0046190e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x40b3b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4c40a0]
xor eax, esp
mov dword [esp + 0x210], eax
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SOFTWAREBaiduBaiduBrowser
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b485
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.00464050
mov edx, dword [esp + 0xc]
add esp, 0xc
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push str.installDir
push edx
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b47b
push esi
push edi
lea edi, [esp + 0x10]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40b434
lea eax, [esp + 0x10]
push 0
mov ecx, 9
mov esi, str._baidubrowser.exe
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0046200a
add esp, 8
pop edi
pop esi
test eax, eax
jne 0x40b47b
mov eax, 1
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00461919
add esp, 0x214
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x210]
xor ecx, esp
xor eax, eax
call fcn.00461919
add esp, 0x214
ret
Function at 0x40bd40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4c40a0]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SoftwareSOHUSoHuVAInstallPath
push 0x80000002
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bdcb
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x16]
push edx
mov word [esp + 0x18], cx
call fcn.00464050
mov edx, dword [esp + 0x10]
add esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push str.Path
push edx
mov dword [esp + 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bdc0
xor esi, esi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00461919
add esp, 0x214
ret

Function at 0x40be80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4c40a0]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push esi
lea edx, [esp + 4]
push edx
push 0xf003f
xor esi, esi
push esi
push ecx
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bf12
cmp dword [esp + 0x220], esi
je 0x40bf02
push 0x206
lea ecx, [esp + 0x12]
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.00464050
mov ecx, dword [esp + 0x10]
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push esi
push esi
push str.DisplayName
push ecx
mov dword [esp + 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bf07
mov esi, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00461919
add esp, 0x214
ret 8