joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418d37
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
push ebx
push esi
lea eax, [ebp - 0x58]
push edi
mov esi, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], ebx
je 0x418e12
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [esi + 0x24], edi
jne 0x418d7f
push edi
push edi
push 0x31
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x24], eax
push dword [esi + 0x24]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 0x20]
mov dword [ebp - 8], eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xfffffffffffffff0
xor ebx, ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
je 0x418dab
push 1
jmp 0x418db1
test al, 2
je 0x418db2
push 2
pop ebx
lea eax, [ebp - 0x18]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov word [ebp - 0x858], di
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x856]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x858]
push 0x400
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
or ebx, 0x20
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x858]
push 0xffffffffffffffff
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x58]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndPaint]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x419338
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
mov esi, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esi + 0x60]
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
push dword [ebp + 8]
lea edi, [ebp - 0x812]
mov word [ebp - 0x814], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x814]
push 0x400
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x419423
push 1
pop edi
push edi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
push ebx
push ebx
push 0x31
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp + 8]
call ebx
push 0xfffffffffffffff0
mov dword [ebp - 4], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test ah, 3
je 0x4193d2
push edi
jmp 0x4193e2
test ah, 1
je 0x4193db
xor edi, edi
jmp 0x4193e3
test ah, 2
je 0x4193e3
push 2
pop edi
mov eax, dword [esi + 0x40]
and eax, 4
cmp al, 4
jne 0x4193fb
push 1
lea eax, [ebp - 0x14]
push 1
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x64]
or edi, 0x24
sub dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 0x814]
push 0xffffffffffffffff
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 4]
push dword [ebp + 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41a6c9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x18]
push edi
mov esi, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x80]
cmp eax, 0xffffffff
jne 0x41a6ff
push 9
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [esi + 0x20]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 8]
call ebx
push dword [esi + 4]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x41a786
lea edi, [eax + 1]
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.00432650
mov dword [ebp - 4], esp
push edi
push dword [ebp - 4]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x41a786
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
xor ecx, ecx
test al, 1
je 0x41a760
push 1
jmp 0x41a766
test al, 2
je 0x41a767
push 2
pop ecx
test al, 0xb
je 0x41a76e
push 0x24
pop ecx
or cx, 0x210
lea eax, [ebp - 0x18]
push ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 8]
push dword [ebp + 8]
call ebx
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41bb71
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x58], edi
je 0x41bbaf
call fcn.0041c57e
test eax, eax
je 0x41bbb5
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x41c01b
push edi
push edi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
mov dword [esi + 0x74], eax
je 0x41bbaf
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
pop esi
leave
ret
mov eax, dword [esi + 0x7c]
cmp eax, edi
je 0x41bbaf
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x7c]
lea edx, [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 4]
push edi
neg edx
push edx
mov eax, dword [esi + 0x7c]
push dword [ebp - 8]
mov ecx, dword [eax]
push dword [ebp - 4]
push edi
push dword [esi + 0x34]
push dword [esi + 0x30]
push edi
push edi
push dword [esi + 0x5c]
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x41bbaf
push edi
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push 1
pop eax
jmp 0x41bbb1

Function at 0x41bcc7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x469620]
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41bd79
mov eax, dword [0x469620]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41bd79
mov eax, dword [0x469620]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x41bd72
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41bd6b
cmp dword [ebp + 0xc], 0
je 0x41bd6b
push edi
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 4]
push edi
push esi
call fcn.0041b731
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x41bd7b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41cebe
Capabilities:
Delete registry key
Set registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall23F3F476_BE34_4f48_9C77_2806A8393EC4
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov ebp, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [0x43c4ec]
push 0x43da54
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0x43caa8
push eax
call fcn.00409d55
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
push 1
push str.DisplayName
push edi
push esi
call ebx
mov eax, dword [ebp + 0x48]
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
push 1
push str.DisplayIcon
push edi
push esi
call ebx
push 0x463c70
add ebp, 0x4c
push 0x43f51c
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.00418344
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00418344
lea ecx, [esp + 0x18]
call fcn.00404beb
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
push 1
push str.UninstallString
push edi
push esi
call ebx
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
push str.5.0.9.0
call ebp
pop ecx
shl eax, 1
push eax
push str.5.0.9.0
push 1
push str.DisplayVersion
push edi
push esi
call ebx
push 0x463c20
call ebp
pop ecx
shl eax, 1
push eax
push 0x463c20
push 1
push str.Publisher
push edi
push esi
call ebx
push str.www.360.cn
call ebp
pop ecx
shl eax, 1
push eax
push str.www.360.cn
push 1
push str.HelpLink
push edi
push esi
call ebx
lea ecx, [esp + 0x14]
call fcn.00404beb
lea ecx, [esp + 0x10]
call fcn.00404beb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x41d290
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
and word [ebp - 0x214], 0
push ebx
push esi
mov ebx, ecx
mov edx, 0x81
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x212]
and word [ebp - 0x41c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x41a]
mov esi, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x104
lea eax, [ebp - 0x214]
push edi
push eax
push dword [ebx + 0x4c]
call esi
lea eax, [ebp - 0x41c]
push edi
push eax
push dword [ebx + 0x48]
call esi
lea eax, [ebp - 0x214]
lea ecx, [ebp - 4]
push eax
call fcn.00404707
lea eax, [ebp - 0x41c]
lea ecx, [ebp - 8]
push eax
call fcn.00404707
mov eax, dword [ebp - 8]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360se.exe
mov edi, reloc.OLEAUT32.dll_SysReAllocString
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
push 1
push 0x467104
push ebx
push edi
call esi
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
push 1
push str.Path
push ebx
push edi
call esi
mov eax, dword [ebp - 8]
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360se_3.exe
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
push 1
push 0x467104
push ebx
push edi
call esi
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
push 1
push str.Path
push ebx
push edi
call esi
push 0x5c
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_wcsrchr]
pop ecx
test eax, eax
pop ecx
je 0x41d3db
sub eax, dword [ebp - 4]
sar eax, 1
cmp eax, 0xffffffff
je 0x41d3db
push eax
lea eax, [ebp - 0xc]
push 0
push eax
lea ecx, [ebp - 4]
call fcn.004182e4
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
push 1
push str.PathSub
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360se.exe
push edi
call esi
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
push 1
push str.PathSub
push ebx
push edi
call esi
lea ecx, [ebp - 0xc]
call fcn.00404beb
lea ecx, [ebp - 8]
call fcn.00404beb
lea ecx, [ebp - 4]
call fcn.00404beb
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d475
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push esi
push edi
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x216]
mov word [ebp - 0x218], dx
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea eax, [ebp - 0x218]
push 0x17
push eax
push edx
call esi
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x41e]
mov word [ebp - 0x420], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x420]
push 2
push eax
push edx
call esi
mov eax, dword [0x43c4ec]
mov edi, str._s360
mov dword [ebp - 8], eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 8]
push edi
push eax
call fcn.00409d55
mov eax, dword [0x43c4ec]
add esp, 0xc
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov esi, 0x4641e4
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409d55
mov eax, dword [0x43c4ec]
add esp, 0xc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.00409d55
mov eax, dword [0x43c4ec]
add esp, 0xc
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00409d55
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push dword [ebp - 8]
call esi
test eax, eax
je 0x41d566
push dword [ebp - 8]
call fcn.00424430
pop ecx
push dword [ebp - 4]
call esi
test eax, eax
je 0x41d578
push dword [ebp - 4]
call fcn.00424430
pop ecx
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x41d58a
push dword [ebp - 0xc]
call fcn.00424430
pop ecx
push dword [ebp - 0x10]
call esi
pop edi
pop esi
test eax, eax
je 0x41d59e
push dword [ebp - 0x10]
call fcn.00424430
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00404beb
lea ecx, [ebp - 0xc]
call fcn.00404beb
lea ecx, [ebp - 4]
call fcn.00404beb
lea ecx, [ebp - 8]
call fcn.00404beb
leave
ret 4
Function at 0x41dca1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x43c4ec]
push ebx
push esi
mov esi, str.360se.exe
mov dword [ebp - 4], eax
mov eax, esi
xor ebx, ebx
push edi
test eax, eax
je 0x41dcc9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [ebp - 4]
call fcn.00404d06
mov ecx, 0x83
xor eax, eax
lea edi, [ebp - 0x214]
mov byte [ebp - 0x230], 0x28
mov byte [ebp - 0x22f], 2
mov byte [ebp - 0x22e], bl
mov byte [ebp - 0x22d], bl
mov byte [ebp - 0x22c], 1
mov byte [ebp - 0x22b], bl
mov byte [ebp - 0x22a], bl
mov byte [ebp - 0x229], bl
mov byte [ebp - 0x228], bl
mov byte [ebp - 0x227], bl
mov byte [ebp - 0x226], 0x81
mov byte [ebp - 0x225], bl
mov byte [ebp - 0x224], bl
mov byte [ebp - 0x223], bl
mov byte [ebp - 0x222], bl
mov byte [ebp - 0x221], bl
mov byte [ebp - 0x220], 0x1a
mov byte [ebp - 0x21f], 0xe4
mov byte [ebp - 0x21e], 0x73
mov byte [ebp - 0x21d], 0xc
mov byte [ebp - 0x21c], 0x19
mov byte [ebp - 0x21b], 0xfb
mov byte [ebp - 0x21a], 0xca
mov byte [ebp - 0x219], 1
mov byte [ebp - 0x218], 0x21
mov byte [ebp - 0x217], bl
mov byte [ebp - 0x216], bl
mov byte [ebp - 0x215], bl
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 4]
mov eax, dword [eax - 8]
add eax, eax
push eax
push 0x104
call fcn.00404b50
push eax
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x230]
mov dword [ebp - 8], ebx
push 0x228
push eax
push 3
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionApp_ManagementARPCache23F3F476_BE34_4f48_9C77_2806A8393EC4
push str.SlowInfoCache
mov edi, SysReAllocString
push ebx
push edi
call esi
lea eax, [ebp - 8]
push 4
push eax
push 4
push str.Changed
push ebx
push edi
call esi
lea ecx, [ebp - 4]
call fcn.00404beb
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41de05
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x43c4ec]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
add ecx, 0x4c
push str.360se.exe
lea eax, [ebp - 8]
push ecx
push eax
call fcn.00418344
push eax
lea ecx, [ebp - 4]
call fcn.00404768
lea ecx, [ebp - 8]
call fcn.00404beb
xor ebx, ebx
mov ecx, 0x83
xor eax, eax
lea edi, [ebp - 0x218]
mov byte [ebp - 0x234], 0x28
mov byte [ebp - 0x233], 2
mov byte [ebp - 0x232], bl
mov byte [ebp - 0x231], bl
mov byte [ebp - 0x230], 1
mov byte [ebp - 0x22f], bl
mov byte [ebp - 0x22e], bl
mov byte [ebp - 0x22d], bl
mov byte [ebp - 0x22c], bl
mov byte [ebp - 0x22b], bl
mov byte [ebp - 0x22a], 0x81
mov byte [ebp - 0x229], bl
mov byte [ebp - 0x228], bl
mov byte [ebp - 0x227], bl
mov byte [ebp - 0x226], bl
mov byte [ebp - 0x225], bl
mov byte [ebp - 0x224], bl
mov byte [ebp - 0x223], bl
mov byte [ebp - 0x222], bl
mov byte [ebp - 0x221], bl
mov byte [ebp - 0x220], bl
mov byte [ebp - 0x21f], bl
mov byte [ebp - 0x21e], bl
mov byte [ebp - 0x21d], bl
mov byte [ebp - 0x21c], bl
mov byte [ebp - 0x21b], bl
mov byte [ebp - 0x21a], bl
mov byte [ebp - 0x219], bl
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x234]
mov dword [ebp - 0xc], ebx
push 0x228
push eax
push 3
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionApp_ManagementARPCache23F3F476_BE34_4f48_9C77_2806A8393EC4
push str.SlowInfoCache
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push ebx
push edi
call esi
lea eax, [ebp - 0xc]
push 4
push eax
push 4
push str.Changed
push ebx
push edi
call esi
lea ecx, [ebp - 4]
call fcn.00404beb
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41df85
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2098
call fcn.00432650
push ebx
push esi
mov esi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
xor edi, edi
push dword [esi + 0x3c]
push edi
push str.IsSave
push str.AddUnstall
call ebx
test eax, eax
jne 0x41e0bf
cmp dword [esi + 0x1510], edi
jne 0x41e0bf
mov word [ebp - 0x1050], di
mov ecx, 0x411
lea edi, [ebp - 0x104e]
mov dword [ebp - 4], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 4]
push eax
push str.Start_Page
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, str.http:__hao.360.cn
mov eax, edi
test eax, eax
jne 0x41e020
xor eax, eax
jmp 0x41e023
push edi
call ebx
push edi
push eax
lea ecx, [esi + 0x14f8]
call fcn.00404cc7
cmp dword [esi + 0x1508], 0
jne 0x41e080
cmp word [ebp - 0x1050], 0
je 0x41e05b
lea eax, [ebp - 0x1050]
push str.about:blank
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x41e080
mov eax, edi
test eax, eax
je 0x41e064
push edi
call ebx
push edi
push eax
lea ecx, [esi + 0x14f8]
call fcn.00404cc7
mov dword [esi + 0x14e8], 3
jmp 0x41e1ab
xor eax, eax
lea ecx, [ebp - 0x1050]
cmp dword [esi + 0x1508], eax
lea edi, [esi + 0x14fc]
test ecx, ecx
je 0x41e0a1
lea eax, [ebp - 0x1050]
push eax
call ebx
lea ecx, [ebp - 0x1050]
push ecx
push eax
mov ecx, edi
call fcn.00404cc7
mov dword [esi + 0x14e8], 5
jmp 0x41e1ab
mov word [ebp - 0x2098], di
mov ecx, 0x823
xor eax, eax
lea edi, [ebp - 0x2096]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2098]
push 0x1047
push eax
mov ecx, esi
call fcn.0041e5d7
push dword [esi + 0x3c]
push 0
push str.IE6Mode
push str.option
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2098]
push str.http:__hao.360.cn_
push eax
call edi
test eax, eax
jne 0x41e150
lea eax, [ebp - 0x2098]
push str.hao.360.cn
push eax
call edi
test eax, eax
jne 0x41e150
lea eax, [ebp - 0x2098]
lea edi, [esi + 0x14f8]
test eax, eax
je 0x41e145
lea eax, [ebp - 0x2098]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x2098]
jmp 0x41e0a7
mov ebx, dword [sym.imp.MSVCRT.dll__wcsicmp]
mov edi, str.http:__hao.360.cn
lea eax, [ebp - 0x2098]
push edi
push eax
mov dword [esi + 0x14e8], 2
call ebx
pop ecx
test eax, eax
pop ecx
jne 0x41e189
lea eax, [ebp - 0x2098]
push str.hao.360.cn
push eax
call ebx
pop ecx
test eax, eax
pop ecx
je 0x41e1ab
cmp dword [ebp - 4], 1
jne 0x41e1ab
mov eax, edi
add esi, 0x14f8
test eax, eax
je 0x41e1a2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, esi
call fcn.00404cc7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e1b0
Capabilities:
Get common file path
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc20
push ebx
push esi
mov ebx, ecx
push edi
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x41e]
mov word [ebp - 0x420], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x420]
push 0x1a
push eax
push edx
mov dword [ebp - 8], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0xc], eax
mov eax, dword [0x43c4ec]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x420]
push str.360se360se.ini
push eax
lea eax, [ebp - 4]
push 0x43d538
push eax
call fcn.00409d55
add esp, 0x10
cmp dword [ebx + 0x1510], 0
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
mov esi, str.NotJoinPrivate
je 0x41e278
and word [ebp - 0x218], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
cmp dword [ebp + 8], eax
sete al
push eax
push 0x4645a4
lea eax, [ebp - 0x218]
push 0x103
push eax
call ebx
add esp, 0x10
push dword [ebp - 4]
push 0
push esi
push str.Option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
neg eax
sbb eax, eax
inc eax
jmp 0x41e27b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
lea edi, [ebp - 0xc1e]
push str.Software360360se5
push str._sdefaultoption
mov dword [ecx + 0x14bc], eax
xor ecx, ecx
test eax, eax
sete cl
and word [ebp - 0xc20], 0
mov dword [0x468558], eax
mov eax, ecx
mov ecx, 0x1ff
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push 0x3ff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xc20]
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x10]
push 4
push eax
push 4
lea eax, [ebp - 0xc20]
push esi
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [ebp - 0xc], 0
je 0x41e349
and word [ebp - 0x218], 0
push dword [ebp + 8]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x216]
push 0x4645a4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x218]
push 0x103
push eax
call ebx
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x218]
mov ebx, str.option
push dword [ebp - 4]
push eax
push esi
push ebx
call edi
mov eax, dword [ebp - 8]
push dword [eax + 0x40]
lea eax, [ebp - 0x218]
push eax
push esi
push ebx
call edi
lea ecx, [ebp - 4]
call fcn.00404beb
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41e47f
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push edi
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea eax, [ebp - 0x208]
push 0x1a
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
pop edi
je 0x41e511
lea eax, [ebp - 0x208]
push str.360se
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e511
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41e511
test al, 0x10
jne 0x41e511
lea eax, [ebp - 0x208]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
leave
ret