joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40699c
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x89c
mov eax, dword [0x45a258]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push eax
push 0x26
lea ecx, [ebp - 0x230]
push ecx
push eax
mov dword [ebp - 0x894], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x406b3f
mov esi, str.TencentQQPCMgr
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, str.QQPCTray.exe
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
push eax
movsb byte es:[edi], byte [esi]
call ebx
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x406a0b
and dword [ebp - 0x89c], 0
jmp 0x406a27
lea eax, [edi + edi]
call fcn.00433160
mov esi, esp
push 0
push edi
lea eax, [ebp - 0x24]
push eax
call fcn.0040807f
mov dword [ebp - 0x89c], eax
lea eax, [ebp - 0x14]
push eax
call ebx
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x406a41
and dword [ebp - 0x898], 0
jmp 0x406a5d
lea eax, [edi + edi]
call fcn.00433160
mov esi, esp
push 0
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.0040807f
mov dword [ebp - 0x898], eax
push dword [ebp - 0x89c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x230]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x44db68
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x640]
push eax
call edi
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406b39
test byte [ebp - 0x890], 0x10
je 0x406b14
cmp word [ebp - 0x864], 0x2e
jne 0x406add
cmp word [ebp - 0x862], 0
je 0x406b14
cmp word [ebp - 0x862], 0x2e
jne 0x406add
cmp word [ebp - 0x860], 0
je 0x406b14
lea eax, [ebp - 0x864]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x438]
push eax
call edi
push dword [ebp - 0x898]
lea eax, [ebp - 0x438]
push eax
call esi
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406b28
lea eax, [ebp - 0x890]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406aac
jmp 0x406b32
mov dword [ebp - 0x894], 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x894]
lea esp, [ebp - 0x8a8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042deb1
leave
ret
Function at 0x406b54
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x45a258]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x254], 0
mov esi, str.QQPCTray.exe
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, str.QQPCRTP.exe
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x20]
push eax
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x24c], 0x22c
call ebx
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x406bb2
and dword [ebp - 0x250], 0
jmp 0x406bce
lea eax, [edi + edi]
call fcn.00433160
mov esi, esp
push 0
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.0040807f
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x10]
push eax
call ebx
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x406be3
xor edi, edi
jmp 0x406bfb
lea eax, [edi + edi]
call fcn.00433160
mov esi, esp
push 0
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.0040807f
mov edi, eax
mov ebx, dword [0x45c3f0]
cmp ebx, 0xffffffff
je 0x406c5b
lea eax, [ebp - 0x24c]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406c5b
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push dword [ebp - 0x250]
lea eax, [ebp - 0x228]
push eax
call esi
test eax, eax
je 0x406c51
push edi
lea eax, [ebp - 0x228]
push eax
call esi
test eax, eax
je 0x406c51
lea eax, [ebp - 0x24c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406c1d
jmp 0x406c5b
mov dword [ebp - 0x254], 1
mov eax, dword [ebp - 0x254]
lea esp, [ebp - 0x260]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042deb1
leave
ret
Function at 0x406d40
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x45a258]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x223]
push ebx
push eax
mov byte [ebp - 0x224], bl
call fcn.0042dec0
push esi
lea eax, [ebp - 0x11f]
push ebx
push eax
mov byte [ebp - 0x120], bl
call fcn.0042dec0
push esi
lea eax, [ebp - 0x327]
push ebx
push eax
mov byte [ebp - 0x328], bl
call fcn.0042dec0
add esp, 0x24
push ebx
push 0x26
lea eax, [ebp - 0x224]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x406e17
push edi
mov esi, str.ksafe
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, str.ksafetray.exe
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x224]
lea ecx, [ebp - 0x120]
movsw word es:[edi], word [esi]
call fcn.0040804b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
neg eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042deb1
leave
ret
Function at 0x406e25
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x45a258]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, str.ksafetray.exe
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x258], 0
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, str.ksafesvc.exe
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
push eax
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x250], 0x22c
call ebx
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x406e85
and dword [ebp - 0x254], 0
jmp 0x406ea1
lea eax, [edi + edi]
call fcn.00433160
mov esi, esp
push 0
push edi
lea eax, [ebp - 0x24]
push eax
call fcn.0040807f
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x14]
push eax
call ebx
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x406eb6
xor edi, edi
jmp 0x406ece
lea eax, [edi + edi]
call fcn.00433160
mov esi, esp
push 0
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.0040807f
mov edi, eax
mov ebx, dword [0x45c3f0]
cmp ebx, 0xffffffff
je 0x406f2e
lea eax, [ebp - 0x250]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406f2e
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push dword [ebp - 0x254]
lea eax, [ebp - 0x22c]
push eax
call esi
test eax, eax
je 0x406f24
push edi
lea eax, [ebp - 0x22c]
push eax
call esi
test eax, eax
je 0x406f24
lea eax, [ebp - 0x250]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406ef0
jmp 0x406f2e
mov dword [ebp - 0x258], 1
mov eax, dword [ebp - 0x258]
lea esp, [ebp - 0x264]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042deb1
leave
ret
Function at 0x407034
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x45a258]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x103
push esi
xor edi, edi
lea eax, [ebp - 0x35b]
push edi
push eax
mov byte [ebp - 0x35c], 0
call fcn.0042dec0
push esi
lea eax, [ebp - 0x153]
push edi
push eax
mov byte [ebp - 0x154], 0
call fcn.0042dec0
push esi
lea eax, [ebp - 0x257]
push edi
push eax
mov byte [ebp - 0x258], 0
call fcn.0042dec0
add esp, 0x24
push edi
push 0x26
lea eax, [ebp - 0x35c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x407191
push ebx
push 7
pop ecx
mov esi, str.kingsoftkingsoft_antivirus
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
push 9
pop ecx
mov esi, str.KingsoftKingsoft_Internet_Security
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov esi, str.kxetray.exe
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x35c]
lea ecx, [ebp - 0x154]
movsd dword es:[edi], dword [esi]
call fcn.0040804b
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x154]
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x258]
push eax
call ebx
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x407125
xor eax, eax
inc eax
jmp 0x407190
mov esi, 0x104
push esi
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.0042dec0
push esi
lea eax, [ebp - 0x154]
push 0
push eax
call fcn.0042dec0
add esp, 0x18
lea edx, [ebp - 0x35c]
lea ecx, [ebp - 0x154]
call fcn.0040804b
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x154]
push eax
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x258]
push eax
call ebx
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
neg eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042deb1
leave
ret
Function at 0x40719f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x45a258]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x254], 0
mov esi, str.kxetray.exe
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, str.kxescore.exe
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x10]
push eax
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x24c], 0x22c
call ebx
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x4071fd
and dword [ebp - 0x250], 0
jmp 0x407219
lea eax, [edi + edi]
call fcn.00433160
mov esi, esp
push 0
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.0040807f
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x20]
push eax
call ebx
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x40722e
xor edi, edi
jmp 0x407246
lea eax, [edi + edi]
call fcn.00433160
mov esi, esp
push 0
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.0040807f
mov edi, eax
mov ebx, dword [0x45c3f0]
cmp ebx, 0xffffffff
je 0x4072a6
lea eax, [ebp - 0x24c]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4072a6
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push dword [ebp - 0x250]
lea eax, [ebp - 0x228]
push eax
call esi
test eax, eax
je 0x40729c
push edi
lea eax, [ebp - 0x228]
push eax
call esi
test eax, eax
je 0x40729c
lea eax, [ebp - 0x24c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x407268
jmp 0x4072a6
mov dword [ebp - 0x254], 1
mov eax, dword [ebp - 0x254]
lea esp, [ebp - 0x260]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042deb1
leave
ret
Function at 0x4073ad
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x45a258]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, str.liebao.exe
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x254], 0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, str.knbcenter.exe
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x10]
push eax
movsw word es:[edi], word [esi]
mov dword [ebp - 0x24c], 0x22c
call ebx
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x40740e
and dword [ebp - 0x250], 0
jmp 0x40742a
lea eax, [edi + edi]
call fcn.00433160
mov esi, esp
push 0
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.0040807f
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x20]
push eax
call ebx
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x40743f
xor edi, edi
jmp 0x407457
lea eax, [edi + edi]
call fcn.00433160
mov esi, esp
push 0
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.0040807f
mov edi, eax
mov ebx, dword [0x45c3f0]
cmp ebx, 0xffffffff
je 0x4074b7
lea eax, [ebp - 0x24c]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4074b7
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push edi
lea eax, [ebp - 0x228]
push eax
call esi
test eax, eax
je 0x4074ad
push dword [ebp - 0x250]
lea eax, [ebp - 0x228]
push eax
call esi
test eax, eax
je 0x4074ad
lea eax, [ebp - 0x24c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x407479
jmp 0x4074b7
mov dword [ebp - 0x254], 1
mov eax, dword [ebp - 0x254]
lea esp, [ebp - 0x260]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042deb1
leave
ret

Function at 0x407af0
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x45a258]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0042dec0
fldz
add esp, 0xc
fstp qword [ebp - 0x228]
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x407bc6
push 0x3a
pop eax
cmp ax, word [ebp - 0x216]
jne 0x407bc6
mov ax, word [ebp - 0x218]
mov esi, 0x44df14
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x407bc6
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0xc], eax
and dword [ebp - 0xc], 0x80000000
and eax, 0x7fffffff
and dword [ebp - 0x10], 0
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], eax
fild qword [ebp - 0x220]
fild qword [ebp - 0x10]
fchs
faddp st(1)
fmul qword [0x453120]
fstp qword [ebp - 0x228]
mov ecx, dword [ebp - 4]
fld qword [ebp - 0x228]
pop edi
xor ecx, ebp
pop esi
call fcn.0042deb1
leave
ret
Function at 0x408faa
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x228
mov eax, 0x4496d1
call fcn.00433037
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], esi
push 8
push str.Software360safe_tpi
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x228]
mov dword [ebp - 4], esi
call fcn.004051c7
test eax, eax
je 0x409005
cmp dword [ebp - 0x228], esi
je 0x4090bf
push dword [ebp - 0x228]
jmp 0x4090b9
mov ebx, dword [ebp - 0x228]
mov dword [ebp - 0x21c], esi
lea eax, [ebp - 0x234]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
mov dword [ebp - 0x22c], 0x104
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4090b4
xor edi, edi
push dword [edi + 0x45c3b8]
lea eax, [ebp - 0x218]
push eax
call fcn.0042e574
pop ecx
pop ecx
test eax, eax
je 0x40909e
add edi, 4
cmp edi, 8
jb 0x409046
xor edi, edi
push dword [edi + 0x45c3c0]
lea eax, [ebp - 0x218]
push eax
call fcn.0042e574
pop ecx
pop ecx
test eax, eax
je 0x4090c7
add edi, 4
cmp edi, 8
jb 0x409068
push esi
push 1
push esi
push ebx
push dword [ebp - 0x220]
lea ecx, [ebp - 0x218]
call fcn.00408e17
inc dword [ebp - 0x21c]
cmp dword [ebp - 0x21c], 0x200
jl 0x409011
cmp ebx, esi
je 0x4090bf
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004330ba
ret 4
push esi
push esi
jmp 0x40908b
Function at 0x409e18
Capabilities:
Create thread

Disassembly:
and dword [ecx + 0x3c], 0
mov dword [ecx + 0x4c], 1
or eax, 0xffffffff
jmp fcn.00409d5d

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x45a258]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push eax
call fcn.0042dec0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x80c]
push eax
push str.Path
xor edi, edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
inc edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80c], edi
mov dword [ebp - 0x810], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40c349
push str.360ver.dll
lea eax, [ebp - 0x808]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c349
lea eax, [ebp - 0x808]
push eax
call fcn.004063b3
mov esi, eax
pop ecx
test esi, esi
je 0x40c349
push str.IsBetaVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0042deb1
leave
ret

Function at 0x40c359
Capabilities:
Create process on windows

Disassembly:
push 5
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret 8

Function at 0x40c375
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004401d0
mov eax, dword [0x45a258]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push 0x1000
xor ebx, ebx
lea eax, [ebp - 0x100c]
push ebx
push eax
call fcn.0042dec0
add esp, 0xc
mov esi, 0x800
push 0x44eb28
mov eax, esi
lea ecx, [ebp - 0x100c]
call fcn.0040c1f1
push edi
mov eax, esi
lea ecx, [ebp - 0x100c]
call fcn.0040c1f1
push 0x44eb30
mov eax, esi
lea ecx, [ebp - 0x100c]
call fcn.0040c1f1
push edi
mov eax, esi
lea ecx, [ebp - 0x100c]
call fcn.0040c1f1
push str.vL
mov eax, esi
lea ecx, [ebp - 0x100c]
call fcn.0040c1f1
push dword [ebp + 8]
mov eax, esi
lea ecx, [ebp - 0x100c]
call fcn.0040c1f1
push 0x44eb80
mov eax, esi
lea ecx, [ebp - 0x100c]
call fcn.0040c1f1
push 0x14
push edi
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40c47b
push 0xc8
push 0x44ea38
mov esi, str.http:__down.360safe.com_setup.exe
push esi
call fcn.0042e0ab
add esp, 0xc
test eax, eax
jne 0x40c46a
call fcn.0040c287
test eax, eax
je 0x40c46a
push 5
push ebx
push ebx
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x40c46f
push 5
push ebx
push ebx
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebx
call fcn.0042f938
int3
Function at 0x40c482
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c4e6
cmp dword [ebp + 0xc], 1
je 0x40c4be
cmp dword [ebp + 0xc], 2
je 0x40c4be
push 0xd
pop eax
jmp 0x40c4e6
mov eax, dword [ebp - 4]
test edi, edi
je 0x40c4e0
test eax, eax
je 0x40c4db
test al, 1
jne 0x40c4b9
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40c4e0
jmp 0x40c4b9
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x40c65f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], eax
je 0x40c6af
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40c68d
xor al, al
jmp 0x40c6b1
push 5
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042fa00
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 5
push dword [ebp + 8]
call esi
test eax, eax
je 0x40c689
mov al, 1
pop esi
leave
ret 8

Function at 0x40c765
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push dword [ebp + 8]
xor esi, esi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40c7df
push edi
lea eax, [ebp - 0x1c]
push eax
push ebx
mov dword [ebp - 0x1c], 0x1c
call sub.KERNEL32.dll_Thread32First
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40c7db
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x10], eax
jne 0x40c7ca
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
je 0x40c7ca
push eax
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x40c7ca
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
call edi
lea eax, [ebp - 0x1c]
push eax
push ebx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x40c79c
xor esi, esi
inc esi
push ebx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40ce78
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
cmp word [0x45f5f0], 0
jne 0x40ce8c
xor eax, eax
leave
ret
push esi
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0042dec0
mov eax, dword [ebp + 8]
and dword [ebp - 0x34], 0
and dword [ebp - 0x24], 0
mov esi, 0x45f5f0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x1000
mov dword [ebp - 0x30], str.runas
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 1
call fcn.0040d2a1
pop esi
test eax, eax
je 0x40ce88
or dword [ebp - 0x38], 0x1000
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
leave
ret

Function at 0x40ceec
Capabilities:
Accept command line arguments

Disassembly:
push 8
mov eax, 0x4481c0
call fcn.00432fce
push str._elevated
lea eax, [ebp - 0x10]
push eax
call fcn.0040291c
and dword [ebp - 4], 0
test byte [0x460590], 0x6c
mov ebx, 0x44ed20
je 0x40cf30
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.00402ae3
push 0x44ed24
lea eax, [ebp - 0x10]
push eax
call fcn.00402ae3
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x40cf6b
xor esi, esi
inc esi
cmp dword [ebp - 0x14], esi
jle 0x40cf6b
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.00402ae3
push dword [edi + esi*4]
lea eax, [ebp - 0x10]
push eax
call fcn.00402ae3
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x40cf4f
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x10]
push 0xbb8
call fcn.0040cd63
pop ecx
test eax, eax
jne 0x40cfa0
push dword [ebp - 0x10]
call fcn.0040ce78
pop ecx
test eax, eax
jne 0x40cfa0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00406004
xor eax, eax
jmp 0x40cfae
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00406004
xor eax, eax
inc eax
call fcn.004330a6
ret