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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x465870]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417d71
cmp byte [ebx], 0xa
jne 0x417d71
or byte [eax + edi + 0x28], 4
jmp 0x417d76
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417e74
mov al, byte [edx]
cmp al, 0x1a
je 0x417e56
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417da5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x417dca
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417dd4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x417d87
jmp 0x417e74
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417e51
cmp dword [ebp - 0xc], 0
je 0x417e51
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x465870]
test byte [eax + edi + 0x28], 0x48
je 0x417e2b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417e16
mov byte [esi], dl
jmp 0x417e27
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x465870]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417e74
cmp byte [ebp - 1], 0xa
jne 0x417e3a
cmp esi, ebx
jne 0x417e3a
mov byte [esi], 0xa
jmp 0x417e73
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004188b1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417e74
mov byte [esi], 0xd
jmp 0x417e73
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x465870]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417e70
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417e74
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417e7d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x465870]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417ec0
cmp word [esi], dx
jne 0x417ec0
or byte [edi + eax + 0x28], 4
jmp 0x417ec5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x418018
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x417ff8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417f07
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417f3d
cmp eax, edx
jae 0x417f49
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x417edf
jmp 0x418018
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417ff4
cmp dword [ebp - 0x14], 0
je 0x417ff4
mov eax, dword [ebx*4 + 0x465870]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417fcc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417f95
mov word [esi], cx
jmp 0x417fc8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x465870]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x465870]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x465870]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x418018
pop ebx
cmp word [ebp - 4], bx
jne 0x417fdd
cmp esi, dword [ebp + 0xc]
jne 0x417fdd
mov word [esi], bx
jmp 0x418015
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004188b1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x418018
push 0xd
jmp 0x418011
mov ecx, dword [ebx*4 + 0x465870]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41800f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418018
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x403ad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403ae9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403b26
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403b22
lea ebx, [ebx]
cmp esi, edx
jae 0x403b26
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403b10
cmp esi, edx
jb 0x403b2d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x406d30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.00401d80
mov eax, dword [0x41d470]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x40
lea eax, [ebp - 0x1054]
mov esi, ecx
push 0
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x1014], 0
add esp, 0xc
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x1008], eax
lea eax, [ebp - 0x1058]
mov dword [ebp - 0x1058], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 5
mov dword [ebp - 0x102c], 1
push 0x1000
mov word [ebp - 0x1028], ax
lea eax, [ebp - 0x1004]
push 0
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x1004]
push str.__s_
push eax
call fcn.00407280
push str._updateidHImmu__SECTIONIDHImmu__NAME
lea eax, [ebp - 0x1004]
push 0x800
push eax
call dword [0x415c4c]
add esp, 0x24
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1058]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406e4f
push 0x1388
push dword [ebp - 0x1014]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x1010]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1014]
call esi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x406e60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413e50
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x41d470]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov esi, ecx
mov dword [ebp - 0x20], esi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x24], 0
je 0x406f9a
cmp dword [ebp + 0xc], 0
je 0x406f9a
push 0x418814
lea ecx, [ebp - 0x10]
call fcn.00402f80
xor ecx, ecx
mov dword [ebp - 4], 0
mov eax, 0x800
mov dword [ebp - 0x14], 0x800
mov edx, 2
mov dword [ebp - 0x18], 1
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov ebx, eax
add esp, 4
or edi, 0xffffffff
test ebx, ebx
je 0x406f5c
mov ecx, dword [ebp - 0x14]
add ecx, ecx
push ecx
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00402f80
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00404ed0
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406f52
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.004050d0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x406fa4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x418814
call fcn.00402f80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406fc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413e7b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x41d470]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x114], esi
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x118], 0
mov ecx, dword [eax]
mov eax, dword [0x41f888]
cmp eax, dword [ecx + 4]
jle 0x407062
push 0x41f888
call fcn.0040ca5e
add esp, 4
cmp dword [0x41f888], 0xffffffff
jne 0x407062
call fcn.00403d90
mov ecx, eax
test ecx, ecx
jne 0x40703e
push 0x80004005
call fcn.00403b40
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x414630
mov dword [0x41f88c], eax
call fcn.004010b7
push 0x41f888
call fcn.0040ca1f
add esp, 8
mov eax, dword [0x41f88c]
cmp dword [eax - 0xc], 0
jne 0x4070f7
push 0x80
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp word [ebp - 0x10e], 0x3a
jne 0x4070e6
call fcn.00403d90
push eax
push 3
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x114]
call fcn.00405470
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x41f88c
call fcn.00404ed0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x114]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4070f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4070f7
push 3
push 0x41889c
mov ecx, 0x41f88c
call fcn.004030e0
push 0x41f88c
mov ecx, esi
call fcn.004050d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x4072a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360Safe.exe
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40733d
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 1
push eax
push 0x41e840
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x208
push eax
push 0
push str.Path
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x41e840
lea edx, [eax + 2]
jmp 0x407310
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407310
sub eax, edx
sar eax, 1
je 0x40733f
cmp word [eax*2 + 0x41e83e], 0x5c
je 0x40733f
mov ecx, 0x5c
mov word [eax*2 + 0x41e840], cx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4078a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413f06
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x41d470]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x11c
lea eax, [ebp - 0x12c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov al, byte [ebp - 0x12]
cmp al, 2
je 0x407909
cmp al, 3
jne 0x4079fe
push 0x418a30
push str.ProgressAnimate
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4079fe
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4079fe
push str.Utils360HImmu.exe
call fcn.00406b40
mov edx, eax
lea ecx, [ebp - 0x130]
call fcn.00407120
add esp, 4
mov dword [ebp - 4], 0
push dword [ebp - 0x130]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or esi, 0xffffffff
test eax, eax
jne 0x4079d6
push str.UtilsModuleUpdate.exe
call fcn.00406b40
mov edx, eax
lea ecx, [ebp - 0x134]
call fcn.00407120
add esp, 4
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.00404ed0
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x134]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4079af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x130]
call fcn.004075d0
test eax, eax
je 0x4079d6
mov ecx, dword [ebp - 0x130]
sub esp, 0xc
call fcn.00406d30
add esp, 0xc
test eax, eax
setne bl
jmp 0x4079d8
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x130]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4079fa
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
jmp 0x407a00
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x407c40
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
je 0x407c8c
push ebx
push esi
lea edx, [edi + 0x10]
lea ecx, [ebp - 4]
call fcn.004085f0
add esp, 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 4]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407c83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xc
cmp esi, dword [edi + 8]
jne 0x407c51
pop ebx
push dword [edi + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x407ca2
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408ad0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x41d470]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x41d794], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x408c34
push 0x41ea48
mov dword [0x41ea48], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x408bbb
push 0x40
push eax
lea eax, [ebp - 0x44]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x160], 1
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], 0x40
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x160]
push eax
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x408b8d
movsx eax, byte [ebp - 0x44]
sub eax, 0x30
mov dword [0x41ea58], 2
mov dword [0x41ea4c], eax
lea eax, [ebp - 0x42]
push eax
call dword [sym.imp.msvcrt.dll_atoi]
mov edx, eax
add esp, 4
mov dword [0x41ea50], edx
jmp 0x408bc1
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx edx, al
mov eax, 4
cmp eax, ecx
mov dword [0x41ea4c], ecx
mov dword [0x41ea50], edx
sbb eax, eax
neg eax
inc eax
mov dword [0x41ea58], eax
jmp 0x408bc7
mov edx, dword [0x41ea50]
mov ecx, dword [0x41ea4c]
cmp ecx, 6
ja 0x408bd3
jne 0x408c2d
cmp edx, 2
jb 0x408c2d
push 0x110
lea eax, [ebp - 0x154]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x158], 0x114
push str.RtlGetVersion
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408c2d
lea ecx, [ebp - 0x158]
push ecx
call eax
test eax, eax
jne 0x408c2d
mov ecx, 0x45
lea esi, [ebp - 0x158]
mov edi, 0x41ea48
rep movsd dword es:[edi], dword [esi]
mov byte [0x41d794], 0
mov edi, ebx
mov ecx, 0x45
mov esi, 0x41ea48
mov eax, 1
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x408c60
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 4
push eax
push 0x418ee4
push str.SOFTWARE360Safe
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 4], 0
je 0x408cb2
push str.SoftwareMicrosoftSystemCertificatesRootCertificatesF8DB7E1C16F1FFD4AAAD4AAD8DFF0F2445184AEB
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esp, ebp
pop ebp
ret
Function at 0x408cd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
push str._flightsigning
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcsstr]
add esp, 8
test eax, eax
je 0x408db6
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 1
push 0
push str.SoftwareMicrosoftSystemCertificatesRootCertificatesF8DB7E1C16F1FFD4AAAD4AAD8DFF0F2445184AEB
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x408d2a
push dword [esp + 0x10]
call edi
jmp 0x408dab
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftSystemCertificatesRootCertificatesF8DB7E1C16F1FFD4AAAD4AAD8DFF0F2445184AEB
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408dab
push 0x6c9
push 0x41d798
push 3
push eax
push str.Blob
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x10]
mov esi, eax
call edi
test esi, esi
jne 0x408dab
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 4
push 0x418ee4
push str.SOFTWARE360Safe
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408db6
push eax
call edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x408e50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0xc
push esi
push edi
mov edi, dword [eax]
mov eax, dword [0x41eb9c]
cmp eax, dword [edi + 4]
jle 0x408ea2
push 0x41eb9c
call fcn.0040ca5e
add esp, 4
cmp dword [0x41eb9c], 0xffffffff
jne 0x408ea2
push dword [ebp + 8]
call fcn.00404320
push 0x414520
call fcn.004010b7
push 0x41eb9c
call fcn.0040ca1f
add esp, 8
call dword [sym.imp.msvcrt.dll___p___wargv]
mov esi, eax
call dword [sym.imp.msvcrt.dll___p___argc]
push dword [esi]
mov ecx, 0x41eba0
push dword [eax]
call fcn.00404490
push 0x419004
mov ecx, 0x41eba0
call fcn.00404a10
test eax, eax
je 0x408ee0
call fcn.004078a0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push ebx
push str.uninstall
mov ecx, 0x41eba0
xor esi, esi
call fcn.00404a10
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x408f00
mov esi, 2
jmp 0x408f2b
test ebx, ebx
je 0x408f1b
push 0x2f
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 8
test eax, eax
je 0x408f1b
mov esi, 4
jmp 0x408f2b
call dword [sym.imp.msvcrt.dll___p___argc]
cmp dword [eax], 1
jne 0x408f2b
mov esi, 3
mov eax, dword [0x41eb5c]
cmp eax, dword [edi + 4]
jle 0x408f6a
push 0x41eb5c
call fcn.0040ca5e
add esp, 4
cmp dword [0x41eb5c], 0xffffffff
jne 0x408f6a
call fcn.00409a20
push 0x4146b0
call fcn.004010b7
push 0x41eb5c
call fcn.0040ca1f
add esp, 8
xor eax, eax
cmp eax, str.PowerSaver_Mutex
je 0x408fd2
push str.PowerSaver_Mutex
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
je 0x408fd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408fa6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 8]
mov dword [ebp - 8], str.PowerSaver_Mutex
push eax
mov ecx, 0x41eb60
mov dword [ebp - 4], edi
call fcn.00403210
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 8]
mov ecx, 0x41eb60
push eax
call fcn.004032a0
push 0xffffffffffffffff
call dword [sym.imp.IMM32.dll_ImmDisableIME]
push 3
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.00409030
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x409017
mov eax, dword [ebp - 4]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.00405150
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4092d0
Capabilities:
Delete file
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4141fb
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x41d470]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x21c], 7
add esp, 0xc
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x409382
cmp word [ebp - 0x218], 0
jne 0x409355
xor ecx, ecx
jmp 0x40936f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409360
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00406600
push ecx
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x248]
call fcn.004096e0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x40939f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4093be
inc eax
push eax
push dword [ebp - 0x248]
call fcn.00406700
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4093d6
inc eax
push eax
push dword [ebp - 0x230]
call fcn.00406700
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x409400
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41d470]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x32
push str.safemonDiagScanTips.tpi
push 1
push str.ImagePath
push str.SOFTWARE360Safe_tpiDiagScanTips
push 0x80000002
mov dword [ebp - 0x108], 1
call esi
push 4
lea eax, [ebp - 0x108]
push eax
push 4
push str.StartType
push str.SOFTWARE360Safe_tpiDiagScanTips
push 0x80000002
call esi
push 0
push str.Q360SafeMonClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
mov dword [ebp - 0x10c], 0
xor eax, eax
mov dword [ebp - 0x104], 0
push 0xf0
push eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0xf4]
push eax
call sub.msvcrt.dll_memset
push str.DiagScanTips
lea eax, [ebp - 0xf4]
mov dword [ebp - 0xf8], 0xf4
push 0x78
push eax
call dword [0x415c50]
add esp, 0x18
mov dword [ebp - 0x104], 0x4c4f504c
lea eax, [ebp - 0xf8]
mov dword [ebp - 0x100], 0xf4
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x10c]
push eax
push 0x3e8
push 1
lea eax, [ebp - 0x104]
push eax
push 0
push 0x4a
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401000
mov esp, ebp
pop ebp
ret