joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40010
call fcn.00409480
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x40010], eax
mov eax, dword [ebp + 0xc]
cmp ebx, edi
jne 0x40150c
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b02
mov esp, ebp
pop ebp
ret
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40008], eax
cmp eax, 0xffffffff
jne 0x40153f
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b02
mov esp, ebp
pop ebp
ret
push esi
mov dword [ebp - 0x4000c], edi
mov esi, 0x40000
cmp ebx, 0x40000
ja 0x401555
mov esi, ebx
test esi, esi
je 0x4015d5
lea esp, [esp]
mov eax, dword [ebp - 0x40008]
push 0
lea ecx, [ebp - 0x4000c]
push ecx
push esi
lea edx, [ebp - 0x40004]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401616
cmp dword [ebp - 0x4000c], esi
jne 0x401616
mov eax, dword [ebp - 0x40010]
push 0
lea ecx, [ebp - 0x4000c]
push ecx
push esi
lea edx, [ebp - 0x40004]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4015f7
cmp dword [ebp - 0x4000c], esi
jne 0x4015f7
add edi, esi
mov esi, ebx
sub esi, edi
cmp esi, 0x40000
jbe 0x4015d1
mov esi, 0x40000
jmp 0x401560
test esi, esi
jne 0x401560
mov eax, dword [ebp - 0x40008]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b02
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x40008]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b02
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x40008]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00402b02
mov esp, ebp
pop ebp
ret
Function at 0x4017c0
Capabilities:
Get file version info
Impersonate file version information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20f4
call fcn.00409480
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x100c]
push ecx
push 0x1000
push 0
push eax
mov dword [ebp - 0x20f0], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x401812
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00402b02
mov esp, ebp
pop ebp
ret
push 0x1000
lea edx, [ebp - 0x200c]
push 0
push edx
mov dword [ebp - 0x2090], 0
call fcn.004064c0
xor eax, eax
push 0x40
push eax
mov dword [ebp - 0x20b0], eax
mov dword [ebp - 0x20ac], eax
mov dword [ebp - 0x20a8], eax
mov dword [ebp - 0x20a4], eax
mov dword [ebp - 0x20a0], eax
mov dword [ebp - 0x209c], eax
mov dword [ebp - 0x2098], eax
mov dword [ebp - 0x2094], eax
lea eax, [ebp - 0x208c]
push eax
call fcn.004064c0
push 0x40
lea ecx, [ebp - 0x204c]
push 0
push ecx
call fcn.004064c0
push 0x34
lea edx, [ebp - 0x20e4]
push 0
push edx
call fcn.004064c0
add esp, 0x30
lea eax, [ebp - 0x100c]
lea ebx, [ebp - 0x20e4]
call fcn.004026a0
test eax, eax
jne 0x4018ba
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00402b02
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20ec]
push eax
lea ecx, [ebp - 0x100c]
push ecx
lea edx, [ebp - 0x20e4]
xor ebx, ebx
push edx
mov dword [ebp - 0x20ec], ebx
call fcn.00402900
test eax, eax
je 0x4018a8
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov dword [ebp - 0x20e8], ebx
movzx ebx, word [ebp - 0x100c]
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov esi, eax
test esi, esi
je 0x40193a
mov edx, dword [ebp - 0x20ec]
push ebx
lea ecx, [ebp - 0x100c]
push ecx
push edx
push 1
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
jne 0x401927
push 1
jmp 0x401933
mov dword [ebp - 0x20e8], 1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [ebp - 0x20f0]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x40196d
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x20e8]
pop esi
xor ecx, ebp
pop ebx
call fcn.00402b02
mov esp, ebp
pop ebp
ret
Function at 0x401d10
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, esi
mov dword [ebp - 0x218], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d34
sub eax, edx
sar eax, 1
cmp eax, 4
jbe 0x401ea4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d51
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2 - 8]
push eax
push str..exe
call fcn.00402cc2
add esp, 8
test eax, eax
jne 0x401ea4
push ebx
push esi
push edi
push str._s_s
mov ecx, 0x104
lea ebx, [ebp - 0x20c]
call fcn.00401080
mov ebx, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
add esp, 0xc
call ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401da0
sub eax, edx
sar eax, 1
mov esi, eax
lea ecx, [esi + esi]
push ecx
call fcn.00402d87
mov edi, eax
xor edx, edx
add esp, 4
lea eax, [ebp - 0x214]
mov word [edi], dx
push eax
mov dword [ebp - 0x214], edx
call ebx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov eax, 1
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x214], eax
jle 0x401e63
jmp 0x401df6
mov eax, 1
cmp dword [ebp - 0x210], eax
jne 0x401e31
mov eax, dword [ebx + 4]
push 0x40b9ec
push eax
call fcn.00402e49
mov ecx, dword [ebx + 4]
add esp, 8
cmp eax, ecx
jne 0x401e31
lea eax, [ecx + 4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401e20
sub eax, edx
sar eax, 1
jne 0x401e4e
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebx + ecx*4]
push edx
mov eax, esi
call section..text
push 0x40b9f4
mov eax, esi
call section..text
mov eax, dword [ebp - 0x210]
inc eax
mov dword [ebp - 0x210], eax
cmp eax, dword [ebp - 0x214]
jl 0x401df1
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x218]
push 5
push eax
push edi
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
call fcn.00402d4d
add esp, 4
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b02
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00402b02
mov esp, ebp
pop ebp
ret
Function at 0x401ec0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x80218
call fcn.00409480
mov eax, dword [0x40d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea ecx, [edi + 4]
push ecx
mov dword [ebp - 0x80218], eax
mov eax, dword [ebp + 0xc]
push eax
push str._s_s
mov ecx, 0x104
lea ebx, [ebp - 0x20c]
call fcn.00401080
add esp, 0xc
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
mov edx, ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401fe6
mov dword [ebp - 0x80210], esi
mov dword [ebp - 0x80214], esi
mov esi, dword [edi]
cmp esi, 0x80000
jbe 0x401f45
mov esi, 0x80000
jmp 0x401f50
test esi, esi
je 0x401fc3
lea esp, [esp]
mov edx, dword [ebp - 0x80218]
push 0
lea eax, [ebp - 0x80210]
push eax
push esi
lea ecx, [ebp - 0x8020c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401fdf
cmp esi, dword [ebp - 0x80210]
jne 0x401fdf
push 0
lea eax, [ebp - 0x80210]
push eax
push esi
lea ecx, [ebp - 0x8020c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401fdf
cmp esi, dword [ebp - 0x80210]
jne 0x401fdf
mov eax, dword [ebp - 0x80214]
add eax, esi
mov esi, dword [edi]
sub esi, eax
mov dword [ebp - 0x80214], eax
cmp esi, 0x80000
jbe 0x401fbf
mov esi, 0x80000
jmp 0x401f50
test esi, esi
jne 0x401f50
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b02
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00402b02
mov esp, ebp
pop ebp
ret
Function at 0x4022d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.004011b0
add esp, 4
test eax, eax
je 0x4023ac
push esi
push edi
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 4], 1
mov esi, eax
jle 0x402347
mov eax, dword [esi + 4]
push 0x40b9ec
push eax
call fcn.00402e49
mov ecx, dword [esi + 4]
add esp, 8
cmp eax, ecx
jne 0x402347
lea edx, [ecx + 4]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402334
sub eax, edi
sar eax, 1
je 0x402347
mov ebx, edx
mov edx, dword [ebp - 4]
push esi
push edx
call fcn.004023c0
add esp, 8
cmp eax, 0xffffffff
je 0x40237e
lea esp, [esp]
cmp eax, 0x78
jne 0x40236c
mov byte [0x40ddb0], 0
mov eax, dword [ebp - 4]
push esi
push eax
call fcn.004023c0
add esp, 8
cmp eax, 0xffffffff
jne 0x402360
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push ebx
push edi
push ecx
call fcn.00402000
add esp, 0xc
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call fcn.00402d4d
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401990
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402b02
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d004]
jne 0x402b0c
repz ret
jmp fcn.00403313
Function at 0x407a8c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d004]
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.00403e36
and dword [ebp - 0x14], 0
cmp dword [0x40eb1c], 0
mov dword [ebp - 0x18], eax
jne 0x407b3f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407be7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407be7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40eb1c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40eb20], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40eb24], eax
call edi
push eax
call esi
mov dword [0x40eb2c], eax
test eax, eax
je 0x407b3f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40eb28], eax
mov eax, dword [0x40eb28]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407b98
cmp dword [0x40eb2c], ecx
je 0x407b98
push eax
call esi
push dword [0x40eb2c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407b98
test ebx, ebx
je 0x407b98
call edi
test eax, eax
je 0x407b8f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407b8f
test byte [ebp - 8], 1
jne 0x407b98
or dword [ebp + 0x10], 0x200000
jmp 0x407bcb
mov eax, dword [0x40eb20]
cmp eax, dword [ebp - 0x18]
je 0x407bcb
push eax
call esi
test eax, eax
je 0x407bcb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407bcb
mov eax, dword [0x40eb24]
cmp eax, dword [ebp - 0x18]
je 0x407bcb
push eax
call esi
test eax, eax
je 0x407bcb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40eb1c]
call esi
test eax, eax
je 0x407be7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407be9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402b02
leave
ret
Function at 0x401052
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e8
push ebx
push esi
mov dword [ebp - 8], ecx
mov ebx, 0x81
push edi
xor edx, edx
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x2de]
mov word [ebp - 0x2e0], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x31
xor eax, eax
pop ecx
lea edi, [ebp - 0xd6]
mov word [ebp - 0xd8], dx
mov esi, 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], edx
push eax
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0xc]
push eax
push str.Path
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360se_3.exe
push 0x80000002
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40112e
and word [ebp - 0x4e8], ax
mov ecx, ebx
lea edi, [ebp - 0x4e6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2e0]
push eax
push str._s360se.exe
lea eax, [ebp - 0x4e8]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40112e
lea eax, [ebp - 0xd8]
push 0x64
push eax
lea eax, [ebp - 0x4e8]
push eax
call fcn.0040555b
add esp, 0xc
test eax, eax
jne 0x4011b7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0xc]
push eax
push str.Path
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360se.exe
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x401215
and word [ebp - 0x4e8], ax
mov ecx, ebx
lea edi, [ebp - 0x4e6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2e0]
push eax
push str._s360se.exe
lea eax, [ebp - 0x4e8]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401215
lea eax, [ebp - 0xd8]
push 0x64
push eax
lea eax, [ebp - 0x4e8]
push eax
call fcn.0040555b
add esp, 0xc
test eax, eax
je 0x401215
mov esi, dword [ebp - 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0xd8]
mov dword [ebp - 4], 1
test eax, eax
lea edi, [esi + 0x10]
jne 0x4011d8
xor eax, eax
jmp 0x4011e1
lea eax, [ebp - 0xd8]
push eax
call ebx
lea ecx, [ebp - 0xd8]
push ecx
push eax
mov ecx, edi
call fcn.00401b9e
lea eax, [ebp - 0x2e0]
add esi, 0x14
test eax, eax
je 0x401206
lea eax, [ebp - 0x2e0]
push eax
call ebx
lea ecx, [ebp - 0x2e0]
push ecx
push eax
mov ecx, esi
call fcn.00401b9e
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40121d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x40b020]
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], eax
call fcn.00401d25
mov ecx, eax
call fcn.00401d5a
push eax
lea eax, [ebp - 4]
push 0x40b19c
push eax
call fcn.00401757
add esp, 0xc
push dword [ebp - 4]
push 0
push str.DefaultBrowser
push str.Option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
test esi, esi
je 0x40127e
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, edi
call fcn.00401522
cmp dword [ebp - 8], 1
je 0x40127e
xor esi, esi
lea ecx, [ebp - 4]
call fcn.00401b31
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40128c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x40b020]
push esi
mov esi, ecx
mov dword [ebp - 4], eax
call fcn.00401d25
mov ecx, eax
call fcn.00401d5a
push eax
lea eax, [ebp - 4]
push 0x40b19c
push eax
call fcn.00401757
add esp, 0xc
push dword [ebp - 4]
push 0x40b1d0
push str.DefaultBrowser
push str.Option
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [esi + 0x14]
lea eax, [ebp - 4]
push str._s360se.exe
push eax
call fcn.00401757
add esp, 0xc
xor eax, eax
push eax
push eax
push str._tp:2__v:1
push dword [ebp - 4]
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 4]
call fcn.00401b31
pop esi
leave
ret

Function at 0x401304
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
and word [ebp - 0x218], 0
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
push 1
mov dword [ebp - 0xc], 0x103
stosw word es:[edi], ax
pop ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
push str.UninstallString
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall23F3F476_BE34_4f48_9C77_2806A8393EC4
push 0x80000002
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
test eax, eax
pop ecx
jbe 0x40136f
xor eax, eax
jmp 0x4013e9
mov eax, dword [0x40b020]
push esi
mov dword [ebp - 8], eax
call fcn.00401d25
mov ecx, eax
call fcn.00401d5a
push eax
lea eax, [ebp - 8]
push str._sdata360sefav.db
push eax
call fcn.00401757
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4013de
mov eax, dword [0x40b020]
mov dword [ebp - 4], eax
call fcn.00401d25
mov ecx, eax
call fcn.00401d5a
push eax
lea eax, [ebp - 4]
push 0x40b1d4
push eax
call fcn.00401757
add esp, 0xc
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4013d6
xor ebx, ebx
lea ecx, [ebp - 4]
call fcn.00401b31
lea ecx, [ebp - 8]
call fcn.00401b31
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x40144b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
push 0x44
pop ecx
xor eax, eax
lea edi, [ebp - 0x110]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x104], 2
pop edi
jne 0x4014a2
cmp dword [ebp - 0x110], 5
jne 0x4014a2
cmp dword [ebp - 0x10c], eax
je 0x40149f
cmp dword [ebp - 0x10c], 1
jne 0x4014a2
push 1
pop eax
leave
ret

Function at 0x4015ef
Capabilities:
Enumerate browser history

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov eax, dword [edi + 8]
lea esi, [edi + 8]
test eax, eax
je 0x401606
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
push 0x409c3c
push 3
push 0
push 0x409c2c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401664
cmp dword [esi], 0
je 0x401664
mov eax, dword [edi + 0xc]
add edi, 0xc
test eax, eax
je 0x401637
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [edi], 0
mov eax, dword [esi]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jl 0x401659
mov edi, dword [edi]
test edi, edi
je 0x401659
mov eax, dword [edi]
push edi
call dword [eax + 0x14]
xor ecx, ecx
test eax, eax
setge cl
mov ebx, ecx
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
and dword [esi], 0
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x401d5a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
xor edx, edx
mov eax, dword [esi + 4]
cmp dword [eax - 8], edx
jne 0x401dad
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x1a
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
push 0x40b49c
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
pop edi
mov eax, dword [esi + 4]
pop esi
leave
ret

Function at 0x401db3
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov ebx, ecx
push edi
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x1a
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
lea edi, [ebx + 4]
push eax
push str._s360se
push edi
call fcn.00401757
add esp, 0xc
lea esi, [ebx + 8]
mov ecx, esi
push edi
call fcn.00402160
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, 0x40b4a8
mov eax, edi
test eax, eax
je 0x401e2b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, esi
call fcn.0040228b
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, ebx
call fcn.00401e4a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401e4a
Capabilities:
Download url
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00405f40
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 8]
lea ebx, [esi + 0x14]
push str._spd.ini
push ebx
call fcn.00401757
mov eax, dword [0x40b020]
add esp, 0xc
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 4]
push str.http:__seupdate.360safe.com_pd_ver.ini__d
push eax
call fcn.00401757
mov eax, dword [ebx]
add esp, 0xc
xor edi, edi
push edi
push edi
push eax
push dword [ebp - 4]
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jne 0x401f6e
mov word [ebp - 0x1008], di
mov ecx, 0x3ff
lea edi, [ebp - 0x1006]
push dword [ebx]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1008]
push 0x7ff
push eax
push 0x40db5c
push str.vermin
push 0x40b4d8
call edi
lea eax, [esi + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1008]
test eax, eax
je 0x401f00
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x1008]
push ecx
mov ecx, dword [ebp - 8]
push eax
call fcn.00401b9e
push dword [ebx]
lea eax, [ebp - 0x1008]
push 0x7ff
push eax
push 0x40db5c
push str.verlatest
push 0x40b4d8
call edi
lea eax, [ebp - 0x1008]
add esi, 0x10
test eax, eax
je 0x401f49
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x1008]
push ecx
push eax
mov ecx, esi
call fcn.00401b9e
mov eax, dword [ebp - 8]
xor edi, edi
mov eax, dword [eax]
cmp dword [eax - 8], edi
jle 0x401f6e
mov eax, dword [esi]
cmp dword [eax - 8], edi
jle 0x401f6e
push 1
pop edi
lea ecx, [ebp - 4]
call fcn.00401b31
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401f7d
Capabilities:
Download url
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1208
call fcn.00405f40
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], bx
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1206]
mov word [ebp - 0x1208], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.type_d_bg
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x1208]
push dword [esi + 0x14]
push 0x800
push eax
lea eax, [ebp - 0x208]
push 0x40db5c
push eax
push 0x40b4d8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi + 8]
lea edi, [esi + 0x18]
push str._s_bg.png
push edi
call fcn.00401757
add esp, 0xc
push 3
pop esi
mov eax, dword [edi]
push ebx
push ebx
push eax
lea eax, [ebp - 0x1208]
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
je 0x402036
dec esi
cmp esi, ebx
jg 0x40201b
cmp esi, ebx
mov eax, 0x40db5c
je 0x402041
mov eax, dword [edi]
pop edi
pop esi
pop ebx
leave
ret 4