joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401128
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x11a8]
mov eax, 0x1228
call fcn.004339e0
mov eax, dword [0x451220]
xor eax, ebp
mov dword [ebp + 0x11a4], eax
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp + 0xf9c], ax
lea eax, [ebp + 0xf9e]
mov esi, edx
push edi
push eax
mov ebx, ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x7c], 0x104
call fcn.00429ac0
mov eax, dword [ebx]
add esp, 0xc
cmp dword [eax - 0xc], edi
je 0x40119d
add eax, 0xfffffff0
call fcn.0040698f
add eax, 0x10
mov dword [esi], eax
mov eax, esi
jmp 0x401322
cmp dword [ebx + 0xc], edi
je 0x4011f3
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xf9c]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebx + 0x18]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp + 0xf9c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x4011c9
sub eax, edx
sar eax, 1
jne 0x40120b
xor eax, eax
movzx ecx, word [eax + str.configdefaultskin]
mov word [ebp + eax + 0xf9c], cx
inc eax
inc eax
cmp cx, di
jne 0x4011db
jmp 0x40120b
xor eax, eax
movzx ecx, word [eax + str.configdefaultskin]
mov word [ebp + eax + 0xf9c], cx
inc eax
inc eax
cmp cx, di
jne 0x4011f5
lea eax, [ebp + 0xf9c]
push eax
push ebx
call fcn.00406e04
xor esi, esi
inc esi
lea ecx, [ebp - 0x70]
mov eax, ebx
mov dword [ebp - 0x6c], esi
call fcn.00404caf
mov eax, dword [eax]
cmp dword [eax - 0xc], esi
jne 0x401235
cmp word [eax], 0x5c
je 0x401259
lea ecx, [ebp - 0x74]
mov eax, ebx
mov dword [ebp - 0x6c], 3
call fcn.00404caf
mov eax, dword [eax]
cmp dword [eax - 0xc], esi
jne 0x401253
cmp word [eax], 0x2f
je 0x401259
mov byte [ebp - 0x65], 0
jmp 0x40125d
mov byte [ebp - 0x65], 1
test byte [ebp - 0x6c], 2
je 0x401272
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x6c], 0xfffffffd
add eax, 0xfffffff0
call fcn.00406e8b
test byte [ebp - 0x6c], 1
je 0x401283
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
call fcn.00406e8b
cmp byte [ebp - 0x65], 0
je 0x401297
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
dec ecx
push ebx
mov eax, esi
call fcn.00404bc4
mov edi, dword [ebx + 4]
lea esi, [ebp + 0x79c]
call fcn.00406916
xor esi, esi
cmp dword [ebx + 8], esi
jle 0x4012bf
lea eax, [ebp + 0x79c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
inc esi
cmp esi, dword [ebx + 8]
jl 0x4012ac
push dword [ebx]
lea eax, [ebp + 0x79c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x800
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00429ac0
add esp, 0xc
lea esi, [ebp - 0x64]
lea edi, [ebp + 0x79c]
call fcn.0040679f
test eax, eax
je 0x401301
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40130c
push str.configdefaultskin
push ebx
call fcn.00406e04
mov ebx, dword [ebx]
sub ebx, 0x10
mov eax, ebx
call fcn.0040698f
mov ecx, eax
mov eax, dword [ebp - 0x80]
add ecx, 0x10
mov dword [eax], ecx
mov ecx, dword [ebp + 0x11a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427527
add ebp, 0x11a8
leave
ret
Function at 0x40194e
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1464
call fcn.004339e0
mov eax, dword [0x451220]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 0x24c
lea eax, [ebp - 0x145c]
push edi
push eax
mov ebx, ecx
mov dword [ebp - 0x1460], edi
call fcn.00429ac0
mov eax, dword [0x453c6c]
add esp, 0xc
mov ecx, 0x453c6c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1464], eax
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.00429ac0
add esp, 0xc
mov esi, 0x800
push esi
lea eax, [ebp - 0x1210]
push edi
push eax
call fcn.00429ac0
add esp, 0xc
push esi
lea eax, [ebp - 0xa10]
push edi
push eax
call fcn.00429ac0
mov edi, dword [ebx + 4]
add esp, 0xc
lea esi, [ebp - 0x1210]
call fcn.00406916
xor esi, esi
cmp dword [ebx + 8], esi
jle 0x401a0a
lea eax, [ebp - 0x1210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
inc esi
cmp esi, dword [ebx + 8]
jl 0x4019f7
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.config
lea eax, [ebp - 0x1210]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x1464]
push eax
call fcn.00406e04
push str..
lea eax, [ebp - 0x1464]
push eax
call fcn.00404b6a
lea eax, [ebp - 0x1460]
push eax
push dword [ebp - 0x1464]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
test ebx, ebx
je 0x401b26
push 4
pop esi
test byte [ebp - 0x1460], 0x10
je 0x401b09
mov ecx, 0x4468b8
lea eax, [ebp - 0x1434]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401aa5
test dx, dx
je 0x401aa1
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401aa5
add eax, esi
add ecx, esi
test dx, dx
jne 0x401a81
xor eax, eax
jmp 0x401aaa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401b09
mov ecx, 0x4468bc
lea eax, [ebp - 0x1434]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401add
test dx, dx
je 0x401ad9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401add
add eax, esi
add ecx, esi
test dx, dx
jne 0x401ab9
xor eax, eax
jmp 0x401ae2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401b09
lea eax, [ebp - 0x1434]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xa10]
push eax
call edi
lea eax, [ebp - 0xa10]
push eax
call fcn.00401776
lea eax, [ebp - 0x1460]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401a69
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x1464]
add eax, 0xfffffff0
call fcn.00406e8b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427527
leave
ret
Function at 0x401b63
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x451220]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x41c], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x41c]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.SOFTWARE360Safe360Ent
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
test eax, eax
jne 0x401d22
and dword [ebp - 0x428], eax
push 4
pop eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push str.ServiceCall
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401d16
cmp dword [ebp - 0x420], 4
jne 0x401d16
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x41c]
push eax
push ebx
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push edi
call esi
test eax, eax
jne 0x401d22
mov esi, 0x40e
push esi
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push ebx
push eax
call fcn.00429ac0
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push str.Path
push dword [ebp - 0x41c]
xor edi, edi
inc edi
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x424], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401d16
cmp dword [ebp - 0x420], edi
jne 0x401d16
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.entclientEntSvcCall.dll
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401d22
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0040508e
pop ecx
test eax, eax
jne 0x401cd9
lea eax, [ebp - 0x418]
call fcn.00401df7
test eax, eax
je 0x401d22
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x401d22
push str.Init
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x401d0d
call eax
test al, al
je 0x401d0d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
jmp 0x401d24
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401d22
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427527
leave
ret
Function at 0x40216e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
test esi, esi
je 0x4021f4
test eax, eax
je 0x4021f4
xor ecx, ecx
cmp cx, word [eax]
je 0x4021f4
and dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4021f4
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push str.Path
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ax, word [esi]
je 0x4021df
push esi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4021e4
sub eax, edx
sar eax, 1
leave
ret
xor eax, eax
leave
ret

Function at 0x4021f8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x451220]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test esi, esi
je 0x402252
test edi, edi
je 0x402252
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00429ac0
push edi
push esi
push 0x4467f4
mov ecx, 0x104
lea edi, [ebp - 0x20c]
call fcn.00405853
add esp, 0x18
test eax, eax
jl 0x402252
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x402254
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00427527
leave
ret

Function at 0x40250d
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
push esi
push edi
call fcn.004020dd
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x455244], eax
call esi
push eax
push ecx
call fcn.004078c2
pop ecx
push eax
call fcn.00413ab4
pop ecx
pop ecx
call fcn.004023bd
test eax, eax
je 0x402580
call esi
push eax
lea esi, [esp + 0xc]
call fcn.00406e38
push str._ff1
call fcn.00404c5b
test eax, eax
jle 0x402566
push str._funnameshamuma_new__ff1
jmp 0x40256b
push str._funnameshamuma_new
call fcn.004036df
mov eax, dword [esp + 8]
add eax, 0xfffffff0
call fcn.00406e8b
xor eax, eax
jmp 0x4025fc
xor edi, edi
call esi
push eax
lea esi, [esp + 0xc]
call fcn.00406e38
push str._noelevate1
call fcn.00404c5b
test eax, eax
jle 0x4025a2
call fcn.00413ab4
inc edi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
call fcn.00406e8b
and dword [esp + 8], 0
and dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov esi, 0x455294
push edi
mov ecx, esi
call fcn.00402d3d
test eax, eax
je 0x4025e9
cmp dword [esp + 8], 0
je 0x4025e0
mov eax, dword [esp + 0xc]
jmp 0x4025fc
mov ecx, esi
call fcn.004036dc
jmp 0x4025fc
mov eax, dword [0x454a28]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40281e
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x451220]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x18]
push ecx
push 0xa
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40286c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413ab4
pop ecx
cmp dword [ebp - 0x18], ebx
je 0x402865
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4029b6
cmp dword [ebp - 0x18], ebx
je 0x40284a
lea eax, [ebp - 0x1c]
push eax
push 2
push dword [ebp - 0x18]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x40298b
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
mov dword [ebp - 0x24], ebx
call esi
test eax, eax
je 0x402973
cmp dword [ebp - 0x24], ebx
je 0x402973
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x20], ebx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_FreeSid]
test eax, eax
je 0x40295f
cmp dword [ebp - 0x20], ebx
je 0x40295f
mov esi, dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x1c]
call esi
test eax, eax
je 0x40294b
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x2c], ebx
push dword [ebp - 0x1c]
call esi
test eax, eax
je 0x40294b
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
call fcn.00413ab4
pop ecx
pop ecx
cmp dword [ebp - 0x28], ebx
jne 0x402958
cmp dword [ebp - 0x2c], ebx
je 0x402958
mov dword [ebp - 0x30], 1
jmp 0x402958
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413ab4
pop ecx
push dword [ebp - 0x20]
call edi
jmp 0x40296c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413ab4
pop ecx
push dword [ebp - 0x24]
call edi
jmp 0x402980
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413ab4
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40299c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413ab4
pop ecx
pop ecx
push dword [ebp - 0x30]
call fcn.00413ab4
pop ecx
cmp dword [ebp - 0x18], ebx
je 0x4029b3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427527
leave
ret
Function at 0x4029c5
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x451220]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x424], eax
call fcn.00413ab4
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
mov dword [ebp - 0x420], 0xffffff9c
call fcn.00429ac0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push edi
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00429ac0
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.00428a91
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call esi
lea eax, [ebp - 0x214]
push eax
call esi
push str.360Util.dll
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00413ab4
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402b5e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0040508e
pop ecx
test eax, eax
jne 0x402ac1
lea eax, [ebp - 0x214]
push eax
call fcn.004114b4
pop ecx
test eax, eax
je 0x402b5e
call fcn.00413ab4
lea eax, [ebp - 0x214]
push eax
call fcn.004057ed
pop ecx
test eax, eax
je 0x402b5e
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea esi, [ebp - 0x420]
call fcn.00406e38
push str.__elevated
mov eax, esi
push eax
call fcn.00404b6a
call fcn.004027ec
test eax, eax
jne 0x402b21
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.0040281e
pop ecx
test eax, eax
je 0x402b21
push str.__ElevateStandUserSaas
mov eax, esi
push eax
call fcn.00404b6a
mov esi, dword [ebp - 0x420]
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.00413ab4
pop ecx
pop ecx
push dword [ebp - 0x424]
lea eax, [ebp - 0x41c]
push esi
push eax
mov eax, 0x453680
call fcn.00401ef5
mov dword [ebp - 0x420], eax
lea eax, [esi - 0x10]
call fcn.00406e8b
jmp 0x402b63
call fcn.00413ab4
push dword [ebp - 0x420]
call fcn.00413ab4
mov eax, dword [ebp - 0x420]
pop ecx
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00427527
leave
ret
Function at 0x402b83
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x798]
sub esp, 0x818
mov eax, dword [0x451220]
xor eax, ebp
mov dword [ebp + 0x794], eax
push ebx
push str.Program_Manager
xor ebx, ebx
push str.Progman
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x402c14
push esi
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], ebx
call esi
test eax, eax
je 0x402c02
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call esi
test eax, eax
je 0x402c02
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x74]
je 0x402c26
push dword [ebp - 0x74]
push eax
call fcn.00413ab4
pop ecx
jmp 0x402c0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413ab4
pop ecx
jmp 0x402d26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413ab4
pop ecx
jmp 0x402d27
push edi
push dword [ebp - 0x7c]
mov edi, 0x400
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x80], eax
cmp eax, ebx
je 0x402d14
lea ecx, [ebp - 0x74]
push ecx
push 0xc
push eax
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402cf8
cmp dword [ebp - 0x74], ebx
je 0x402cf8
xor esi, esi
mov eax, dword [0x453c6c]
mov ecx, 0x453c6c
call dword [eax + 0xc]
push dword [esi + 0x452654]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push str.___s__
push eax
call fcn.0040678c
push 0x804
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00429ac0
add esp, 0x18
push edi
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
push dword [ebp - 0x74]
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
test eax, eax
je 0x402cd6
lea eax, [ebp - 0x70]
push eax
push dword [esi + 0x452654]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0x70]
push ecx
push dword [esi + 0x452654]
push eax
call fcn.00413ab4
add esp, 0xc
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.00406e8b
add esi, 4
cmp esi, 0x14
jb 0x402c65
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402d09
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413ab4
pop ecx
pop ecx
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402d25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x7c]
call fcn.00413ab4
pop ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x794]
xor ecx, ebp
pop ebx
call fcn.00427527
add ebp, 0x798
leave
ret
Function at 0x4039cb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push str.Software360Safe360Scan
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403a31
cmp dword [ebp - 4], edi
je 0x403a31
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push edi
push 0x44717c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x403a25
mov dword [esi], edi
jmp 0x403a28
xor edi, edi
inc edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret

Function at 0x403bb6
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.GlobalScanInProgress_Q360DsMainMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x403beb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0xb7
jne 0x403be5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret

Function at 0x403bef
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.GlobalScanArkPopDlg_Q360DsMainMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x403c24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0xb7
jne 0x403c1e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret

Function at 0x403d3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, 0x814
push esi
push 0
push 0x454a30
call fcn.00429ac0
mov dword [0x454a30], esi
add esp, 0xc
mov esi, pe_nt_image_headers32
push esi
call fcn.00405839
mov edi, str.360safe
test eax, eax
jl 0x403d7f
mov eax, edi
mov ecx, esi
mov edx, 0x454a34
call fcn.00405737
push esi
call fcn.00405839
test eax, eax
jl 0x403d9a
mov eax, str.newspy_killer
mov ecx, esi
mov edx, 0x454c34
call fcn.00405737
push 0
push 0x1a
mov esi, 0x454e34
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x403dd1
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call edi
push esi
call fcn.00407c89
mov dword [esp], str.LogInfo
push esi
call edi
push esi
call fcn.00407c89
pop ecx
lea ecx, [ebp - 4]
call fcn.00403cc7
push dword [eax]
mov eax, 0x208
mov edx, 0x45503c
call fcn.00405074
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00406e8b
pop edi
pop esi
leave
ret