joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452273
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov al, byte [ecx]
and dword [esp + 0x14], 0
push ebx
push ebp
mov byte [edx], al
lea eax, [edx + 1]
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.0045221c
test eax, eax
je 0x4523cc
lea ecx, [esp + 0x18]
call fcn.0045221c
lea ecx, [esp + 0x18]
test eax, eax
je 0x45233b
call fcn.0045221c
test eax, eax
je 0x4522fd
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
call fcn.0045221c
lea edi, [eax + edi*2]
dec ebx
jne 0x4522d3
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x4522f4
mov eax, edx
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x4522f7
mov byte [edx], 0
inc edx
jmp 0x4523de
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x452333
test ecx, ecx
je 0x4523c7
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x452325
jmp 0x4523c3
xor ebp, ebp
inc ebp
jmp 0x4523c7
call fcn.00452252
test edi, edi
jne 0x452370
cmp eax, 2
jne 0x45236b
lea ecx, [esp + 0x18]
call fcn.00452252
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x4523c7
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x452360
jmp 0x4523c3
sub eax, 3
jmp 0x452373
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
jmp section..htext
mov dword [esp + 0x1c], edx
xor edi, edi
inc edi
jmp 0x4523e4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
test ebp, ebp
je 0x4522a3
sub edx, dword [esp + 0x14]
pop edi
mov eax, edx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x452569
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x45259b
mov al, byte [esp + 0x14]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [esp + 0x10]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x45257c
jmp 0x45259f
mov eax, dword [esp + 0x10]
test edi, edi
je 0x4525a9
xor byte [esi], al
inc esi
dec edi
jne 0x4525a3
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x40167e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2d21014]
sub esp, 0x400
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x2d20a0c]
test esi, esi
je 0x4016c9
cmp eax, 0x959
jne 0x4016b5
push 0
lea eax, [ebp - 0x400]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, edi
call fcn.00401481
add edi, 8
dec esi
je 0x4016c9
mov eax, dword [0x2d21014]
jmp 0x40169d
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40d7a6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404d65
mov dword [ebp - 0x14], eax
cmp dword [0x448128], esi
jne 0x40d899
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d826
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d979
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d979
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d979
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x448128], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x44812c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x448130], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x448138], eax
test eax, eax
je 0x40d896
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x448134], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d8be
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d8b1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d8d3
push 4
pop eax
jmp 0x40d97b
cmp dword [ebp - 0x14], esi
je 0x40d8d3
push dword [0x448128]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d8b8
mov eax, dword [0x448134]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d931
cmp dword [0x448138], edi
je 0x40d931
push eax
call ebx
push dword [0x448138]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d931
test eax, eax
je 0x40d931
call ecx
test eax, eax
je 0x40d926
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d926
test byte [ebp - 8], 1
jne 0x40d931
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d961
mov eax, dword [0x44812c]
cmp eax, edi
je 0x40d95e
push eax
call ebx
test eax, eax
je 0x40d95e
call eax
mov esi, eax
test esi, esi
je 0x40d95e
mov eax, dword [0x448130]
cmp eax, edi
je 0x40d95e
push eax
call ebx
test eax, eax
je 0x40d95e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x448128]
call ebx
test eax, eax
je 0x40d979
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d97b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fd7
mov esp, ebp
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x408379
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x408388
pop dword [ebp - 0x30]
mov eax, 0x408388
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x34f56
push 0
mov eax, 0x343adc21
sub eax, 0x33f9fb49
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x302c7b35
add ecx, 0xcfd3bbaf
xor edx, edx
add edx, eax
mov esi, 0xe64173ca
add esi, 0x19ffc7fa
add esi, dword [ebp - 0x30]
mov ebx, 0x9fed0852
add ebx, 0xc923e2a7
add dword [ebp - 0xc], 0x30017e05
mov edi, dword [esi]
add dword [ebp - 0x28], eax
xor edi, ebx
mov dword [edx], edi
sub dword [ebp - 0x24], edx
add edx, 0x7560892e
sub edx, 0x7560892a
add esi, 0xac1531bd
sub esi, 0xac1531b9
loop 0x4083e4
add eax, 0x13480845
sub eax, 0x134739e2
mov ebx, eax
add eax, 0x6cdf1b0d
sub eax, 0x6cdf1b08
mov ecx, 0x8e46fdcc
add ecx, 0x71f90234
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x10032b60
Capabilities:
Encode data using xor

Disassembly:
sbb dword [edx + eax*2 + 0x5a], edx
out dx, al
push 0xffffffffffffff9d
mov esi, 0x2c2197b6
cmp bh, byte [ecx + 0xf]
scasd eax, dword es:[edi]
invalid
sal dword [edx], 1
xor esi, esp
sbb al, 0x7a
push cs
mov dword [0x991a9337], eax
aad 5
mov esp, 0x8609cee8
stosb byte es:[edi], al
pop edi
push ebp
les ebx, [ecx + 0x62]
mov ebx, 0x70760d13
mov ah, 0x30
sbb dh, byte es:[ecx - 6]
call 0x8bcb0f40
jecxz 0x10032b29
jnp 0x10032bd2
jecxz 0x10032b29
jnp 0x10032bd2
movsb byte es:[edi], byte [esi]
outsd dx, dword [esi]
in eax, dx
leave
add al, 7
xlatb
aaa
loope 0x10032b3a
inc eax
dec eax
sbb al, 3
add byte [ebx - 0x4eb8ec3], ah
cmp esp, dword [edx - 0x42]
mov ch, 0x6c
xor al, 0xc8
das
pop es
inc esp
jg 0x10032bd6
inc ebp
mov ch, 0x4e
les esi, [0xed5147db]
cmp dh, 0x26
dec ebx
sbb edi, dword [eax + 0x35531bf4]
sbb al, 0xac
xchg byte [edi + 0x59479e26], ch
xlatb
add byte [edi + 0x6e3730bb], ch
das
sbb dl, byte [esi - 0x39]
iretd
mov bl, ah
xor edx, ebx
invalid
Function at 0x10ba8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10ba81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10ba807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10ba806a
add dl, dl
jne 0x10ba8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10ba80dc
xor eax, eax
add dl, dl
jne 0x10ba8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10ba817d
add dl, dl
jne 0x10ba80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ba80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ba80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ba80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10ba80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10ba8075
mov eax, 1
add dl, dl
jne 0x10ba80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ba80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10ba80e1
sub eax, ebx
mov ebx, 1
jne 0x10ba8128
mov ecx, 1
add dl, dl
jne 0x10ba810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10ba8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10ba8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10ba8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10ba813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10ba814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10ba8136
cmp eax, 0x7d00
jae 0x10ba816d
cmp eax, 0x500
jb 0x10ba8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10ba8075
cmp eax, 0x7f
ja 0x10ba8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10ba8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10ba819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10ba8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4011c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push 0x441ea8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4011f6
xor al, al
leave
ret
and dword [ebp - 0x10], 0
push esi
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.ServiceCall
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401236
cmp dword [ebp - 8], esi
jne 0x401236
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x401241
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
leave
ret
Function at 0x401244
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x44d08c]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x74]
push eax
push 0x20119
xor ebx, ebx
push ebx
push 0x441ea8
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x74], ebx
call esi
test eax, eax
jne 0x4013b6
push 4
pop eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push str.ServiceCall
push dword [ebp - 0x74]
mov dword [ebp - 0x80], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call ebx
test eax, eax
jne 0x4013ad
cmp dword [ebp - 0x78], 4
jne 0x4013ad
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x74]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push edi
call esi
test eax, eax
jne 0x4013b6
mov esi, 0x40e
push esi
push eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push eax
call fcn.004253c0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push str.Path
push dword [ebp - 0x74]
xor edi, edi
inc edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], esi
call ebx
test eax, eax
jne 0x4013ad
cmp dword [ebp - 0x78], edi
jne 0x4013ad
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.entclientEntSvcCall.dll
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4013b6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0041be71
pop ecx
test eax, eax
jne 0x401373
lea eax, [ebp - 0x70]
call fcn.0041f060
test eax, eax
je 0x4013b6
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4013b6
push str.Init
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4013a4
call eax
test al, al
je 0x4013a4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
jmp 0x4013b8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4013b6
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425271
add ebp, 0x3a4
leave
ret
Function at 0x4013eb
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43df4a
mov eax, dword fs:[0]
push eax
sub esp, 0x9e8
mov eax, dword [0x44d08c]
xor eax, esp
mov dword [esp + 0x9e0], eax
push ebx
push esi
push edi
mov eax, dword [0x44d08c]
xor eax, esp
push eax
lea eax, [esp + 0x9f8]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x24], vtable.CMyMessageLoop.0
mov dword [esp + 0xa00], ebx
mov edi, dword [0x455388]
add edi, 0x10
lea eax, [esp + 0x24]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x45458c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004039b1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x20], bl
call fcn.00405390
lea eax, [esp + 0x6c]
push eax
call fcn.0040fb8c
push 0x64
push 0x64
push ebx
push ebx
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0xa14], 1
call dword [sym.imp.USER32.dll_SetRect]
xor esi, esi
call fcn.0040103c
cmp dword [eax + 0x30], ebx
jne 0x4014da
call fcn.0040103c
mov dword [eax + 0x30], ebx
lea eax, [esp + 0x8c]
push eax
call fcn.0040103c
mov ebx, eax
call fcn.00402bf5
movzx eax, ax
push eax
push esi
push 0x80
push SysReAllocString
push 0
lea eax, [esp + 0x70]
push eax
lea ebx, [esp + 0x84]
call fcn.00402b51
test eax, eax
jne 0x401557
xor edi, edi
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0xa04], 0
call fcn.00401585
lea esi, [esp + 0x24]
call fcn.0040163a
mov eax, edi
mov ecx, dword [esp + 0x9f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9e0]
xor ecx, esp
call fcn.00425271
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x70]
push 0x6f
push 0x597
mov dword [0x45531c], eax
call fcn.0040ac34
pop ecx
pop ecx
lea esi, [esp + 0x24]
call fcn.00403426
mov edi, eax
call fcn.00403377
jmp 0x401516

Function at 0x4018e3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push str.LocalQ360MonMutex
mov dword [ebp - 8], eax
push 1
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x453324], eax
test eax, eax
je 0x401941
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401941
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret
Function at 0x401946
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push str.LocalQ360MonRescueMe
mov dword [ebp - 8], eax
push 1
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x453324], eax
test eax, eax
je 0x4019a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4019a4
xor eax, eax
leave
ret
push str.IsLastTrayCrash
xor eax, eax
call fcn.0040ad9a
neg eax
sbb eax, eax
pop ecx
neg eax
leave
ret

Function at 0x4019b9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x44d08c]
xor eax, esp
mov dword [esp + 0x420], eax
lea eax, [esp + 0xc]
push ebx
push eax
mov eax, str.lang_
call fcn.0040a54b
pop ecx
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x10]
push eax
push str.lang
push str.software360safe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0x208
mov dword [esp + 0x20], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [esp + 0x10]
push eax
mov ebx, 0x455338
call fcn.0041620c
mov ecx, dword [esp + 0x424]
pop ebx
xor ecx, esp
mov byte [0x455360], 0
call fcn.00425271
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push dword [sym.imp.USER32.dll_DestroyWindow]
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x401c62
push edi
push str.SetProcessDPIAware
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x401c61
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push edi
call esi
test eax, eax
je 0x401c60
lea eax, [ebp - 4]
push eax
mov dword [edi], 0xc3c033
push dword [ebp - 4]
push 4
push edi
call esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop esi
pop edi
leave
ret
Function at 0x401d3b
Capabilities:
Check if file exists
Delete file
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3b8]
sub esp, 0x438
mov eax, dword [0x44d08c]
xor eax, ebp
mov dword [ebp + 0x3b4], eax
push esi
xor eax, eax
push 0x206
mov word [ebp + 0x1ac], ax
xor esi, esi
lea eax, [ebp + 0x1ae]
push esi
push eax
call fcn.004253c0
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x1ac]
push eax
lea eax, [ebp - 0x60]
push eax
push str.registtime
push str.Software360safeCoop
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x64], 0x208
mov dword [ebp - 0x60], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x401e0e
mov dword [ebp - 0x80], str.safemon_bfhlib.dat
mov dword [ebp - 0x7c], str.safemoncfhlib.dat
mov dword [ebp - 0x78], str.safemonHomePageLib.dat
mov dword [ebp - 0x74], str.safemonHPlib.dat
mov dword [ebp - 0x70], str.safemon_nhplib.dat
mov dword [ebp - 0x6c], str.deepscan_speedmem2.hg
mov dword [ebp - 0x68], str.ipckpuaf.dat
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp + esi*4 - 0x80]
call fcn.0040a54b
pop ecx
test eax, eax
je 0x401e08
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401e08
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, 7
jb 0x401dde
mov ecx, dword [ebp + 0x3b4]
xor ecx, ebp
pop esi
call fcn.00425271
add ebp, 0x3b8
leave
ret
Function at 0x401e25
Capabilities:
Accept command line arguments
Create thread
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
call fcn.00401244
test al, al
je 0x401e3a
xor eax, eax
jmp 0x402054
push ebx
push esi
call fcn.00402e9a
xor ebx, ebx
inc ebx
push ebx
push 0
call fcn.00425c28
pop ecx
pop ecx
call fcn.00401000
call fcn.00409a89
call fcn.00401000
mov esi, eax
call fcn.004093f6
call fcn.0040b72c
test eax, eax
je 0x401e72
call fcn.0040ebe6
call fcn.0040ed14
test eax, eax
je 0x401e8a
mov eax, dword [0x455334]
test eax, eax
je 0x401e8a
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push edi
push 0xffffffffffffffff
call sub.IMM32.dll_ImmDisableIME
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov edi, eax
push str._RescueMe
push edi
call esi
test eax, eax
je 0x401eb2
mov dword [0x453328], ebx
cmp dword [0x453328], 0
jne 0x401ed0
push str.IsLastTrayCrash
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
and dword [ebp - 4], 0
lea ebx, [ebp - 4]
call fcn.0041b661
test eax, eax
jne 0x40204e
push edi
call fcn.0041b6f8
pop ecx
test eax, eax
je 0x401f8e
call fcn.004011c9
test al, al
jne 0x401f0b
push edi
call fcn.0040a1fd
pop ecx
test eax, eax
je 0x401f8e
push str._uninstsp
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x401f2d
call fcn.0041b7b7
neg eax
sbb eax, eax
and eax, 2
dec eax
jmp 0x402051
push str._LoadSDRule
push edi
call esi
test eax, eax
je 0x401f3e
call fcn.0041b826
push str._LoadSectxRule
push edi
call esi
test eax, eax
je 0x401f4f
call fcn.0041b88e
push str._clean
push edi
call esi
test eax, eax
je 0x401f60
call fcn.00401d3b
push edi
call fcn.00401ad0
pop ecx
test al, al
je 0x401f74
call fcn.00401b2e
test al, al
jne 0x401f8e
xor esi, esi
cmp dword [0x453328], esi
je 0x401f85
call fcn.00401946
jmp 0x401f8a
call fcn.004018e3
test eax, eax
jne 0x401f95
xor eax, eax
jmp 0x402051
call fcn.00401c64
call fcn.00401bf0
call fcn.004016a1
call fcn.004017c7
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.0040187c
call fcn.0040a8dc
call fcn.0040a99e
call fcn.0040aa60
call fcn.004019b9
call fcn.00401a44
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x401a89
push esi
push esi
call fcn.00425a61
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
cmp eax, esi
je 0x401ff9
push eax
call edi
push str.RICHED20.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push esi
push esi
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.004013eb
mov dword [ebp - 4], eax
mov eax, dword [0x453324]
cmp eax, esi
je 0x40203c
push eax
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.00402e0d
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4040d5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4040e3
push 0xd
pop eax
jmp 0x404116
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4040ea
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc