joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001b8e
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esp + 8], 1
push esi
push edi
jne 0x10001c67
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov dword [0x1000bbd0], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.ttpctrl.dll
call esi
mov edi, eax
test edi, edi
jne 0x10001bc4
push eax
call esi
mov edi, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateStdContent
push edi
call esi
push str.GetSoundCodecName
push edi
mov dword [0x1000bbc8], eax
call esi
push str.tak_deco_lib.dll
mov dword [0x1000bbcc], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10001c5b
push str.tak_SSD_Destroy
push edi
call esi
test eax, eax
mov dword [0x1000bbd4], eax
je 0x10001c5b
push str.tak_SSD_GetStreamInfo
push edi
call esi
test eax, eax
mov dword [0x1000bbd8], eax
je 0x10001c5b
push str.tak_SSD_Valid
push edi
call esi
test eax, eax
mov dword [0x1000bbdc], eax
je 0x10001c5b
push str.tak_SSD_Create_FromStream
push edi
call esi
test eax, eax
mov dword [0x1000bbe0], eax
je 0x10001c5b
push str.tak_SSD_ReadAudio
push edi
call esi
test eax, eax
mov dword [0x1000bbe4], eax
je 0x10001c5b
push str.tak_SSD_Seek
push edi
call esi
test eax, eax
mov dword [0x1000bbe8], eax
jne 0x10001c5f
xor eax, eax
jmp 0x10001c81
mov dword [0x1000bbec], edi
jmp 0x10001c7e
cmp dword [esp + 0x10], 0
jne 0x10001c7e
mov eax, dword [0x1000bbec]
test eax, eax
je 0x10001c7e
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
inc eax
pop edi
pop esi
ret 0xc

Function at 0x10001e38
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001e50
xor eax, eax
jmp 0x10001e8f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001e4c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x10001e81
cmp esi, eax
jae 0x10001e4c
movzx edx, word [esi]
dec ecx
lea esi, [esi + edx*2 + 2]
jne 0x10001e73
cmp esi, eax
jae 0x10001e4c
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x10005922
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1000b2f0
cmp edx, dword [eax]
je 0x10005944
add eax, 8
inc ecx
cmp eax, 0x1000b380
jl 0x10005935
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1000b2f0]
jne 0x10005a72
mov eax, dword [0x1000bbfc]
cmp eax, 1
je 0x10005a4c
test eax, eax
jne 0x10005975
cmp dword [0x1000bc00], 1
je 0x10005a4c
cmp edx, 0xfc
je 0x10005a72
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100059ac
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10006400
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.100064f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x100059ef
lea eax, [ebp - 0x1a4]
push eax
call fcn.100064f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100085dc
push edi
call fcn.100069f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10006400
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10006410
lea eax, [ebp - 0xa0]
push 0x100085bc
push eax
call fcn.10006410
push dword [esi + 0x1000b2f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.10006410
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1000695f
add esp, 0x2c
pop edi
jmp 0x10005a72
lea eax, [ebp + 8]
lea esi, [esi + 0x1000b2f4]
push 0
push eax
push dword [esi]
call fcn.100064f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x44a810
Capabilities:
Get common file path

Disassembly:
sub esp, 0x23c
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x104
jbe 0x44a82f
xor eax, eax
mov ecx, dword [esp + 0x240]
lea edx, [esp + eax*2]
push ecx
push str._s.dll
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add esp, 0x23c
ret 4

Function at 0x51da24
Capabilities:
Encode data using xor

Disassembly:
mov al, 0xb9
mov al, byte [0x7ad9a0e5]
leave
dec eax
call 0x15ba0232
xor byte [0x2590354c], al
dec esp
xor eax, 0x9f2c2590
dec esp
xor eax, 0x9f2c2590
cmp al, 0x8b
add al, 0xbf
sbb al, 0xaa
mov al, byte [0xcc85b0b9]
mov ch, 0xdc
outsb dx, byte [esi]
or bl, byte [ebx]
dec esp
lds eax, [eax - 0xb]
pushfd
das
insb byte es:[edi], dx
push ebp
jl 0x51da13
dec esp
lock sub byte [eax + edx*4 + 0x5530d5], cl
jns 0x51da5f
imul ebp, dword [eax], 0xcc05f00d
mov ch, 0xdc
arpl word [eax], sp
sbb al, 0
inc ebp
aad 0xe5
cmp dword [0x97c15ac], 0xffffff89
mov ecx, 0x21e51995
cmp eax, 0x97c15ac
mov dword [ecx + 0x21e51995], edi
cmc
test dword [eax], eax
jno 0x51daa0
sub cx, word [ecx + 0x35c02b44]
push ebp
sbb eax, 0xc9148d93
inc ebx
std
js 0x51da4d
loopne 0x51da92
int3
mov al, byte [0x80b55485]
movsd dword es:[edi], dword [esi]
lodsb al, byte [esi]
sbb esi, ebp
inc ebp
int1
xor al, 0xb8
and eax, 0xc50cd121
and ecx, edx
or al, 0xc5
add ecx, edi
mov byte [0xc5009401], ah
push ebp
cmc
adc byte [ecx - 0x20], ch
sub al, 0xe8
or byte [eax], 0xb5
sal ch, 1
mov al, byte [0x4ac975d9]
dec ebp
xor byte [ebp + 0x5f015e0], dh
dec esp
out dx, eax
invalid
Function at 0x5cc25e
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
xor ah, al
push edi
mov edx, edi
inc esp
sub eax, 0x3cc023af
push es
out dx, al
out dx, al
cmp byte [eax + 0x40], ch
test byte [ebx + ebx*8], dh
xlatb
or esi, dword [esi]
mov ch, 0xec
mov eax, 0x9cd16337
arpl cx, dx
pushfd
arpl cx, dx
pushfd
jb 0x5cc243
mov al, 0x36
add al, 0x5f
xor esp, dword [edi]
xchg dword [ecx + 0x10], esi
jbe 0x5cc2c4
jbe 0x5cc2e5
xchg dword [edi], edx
cli
and eax, 0x2752cf97
add dword [edx], ecx
out 0x7a, eax
add bh, ah
xchg edi, eax
wait
out 0x38, al
jne 0x5cc250
cmp ebx, dword [esi + 0x57]
dec di
push esi
stc
add byte [edi], 0xf6
xchg dword [ebp - 0x666e240c], esp
call 0xde256a03
pop ebx
out 0x2c, al
lahf
sub dword [edi - 0x39], ebp
pop eax
and eax, 0xecb5f7a2
wait
out 0x97, eax
mov esp, 0x56d5268f
cmc
das
fcom dword [ebx + 0x7d06869a]
mov bl, 0xfb
push ss
lcall 0xbc16, 0xb827c6d7
jne 0x5cc31c
xlatb
invalid
push edi
stc
salc
daa
mov byte [edx - 0x5338f87], cl
push ss
sbb byte ss:[edi - 0x79ab359f], dh
in eax, 0x95
fdiv dword [eax]
mov esp, dword [edi]
test eax, 0xe4d37e80
hlt
cmpsb byte [esi], byte es:[edi]
pop edx
clc
inc esi
invalid
mov eax, dword [0x27cc86aa]
jp 0x5cc392
dec edx
jl 0x5cc2bd
hlt
cli
std
clc
jb 0x5cc3dd
insb byte es:[edi], dx
dec edi
xchg ebx, eax
mov ebx, dword [edx]
jmp 0x5a548ce
fsubr qword [ebp + 0x55f5fa3f]
mov dh, 0xd5
jg 0x5cc3c4
dec edi
les esi, [ebx]
not byte [esi]
xor esi, esi
push ss
mov ch, 0x73
or edi, dword [ecx + 0x6c302c6]
mov eax, 0x75c87982
lahf
mov dword [0xb677], eax
inc ebx
mov ch, 0x3e
das
xchg esp, eax
jo 0x5cc459
les eax, [ebp + 0x695e75f2]
pop es
xchg esi, eax
xchg byte [ecx + 0x6a0e9002], cl
out dx, al
pop ss
push es
not dword [edx - 0x499a3d94]
jbe 0x5cc3b8
aam 0xed
adc byte [ecx], 0x46
aam 0xa6
cmp al, 0xcc
retf 0x89c9
cld
xchg bl, ah
invalid

Function at 0x5d05a3
Capabilities:
Check for vm using instruction vpcext

Disassembly:
mov edx, 0x7a73ed59
fnstenv [ebp - 0x7e5aeba]
rcr byte [edx + 0x24], 0x5b
loope 0x5d0611
fstp dword [ecx]
push 0x42
cmp eax, 0x96a856ab
invalid
sbb byte [edi], 0xaf
imul esi, dword [esi - 0x4a], 0xffffff98
cmpsb byte [esi], byte es:[edi]
push ss
mov cl, byte [eax - 0x49]
out 0x1f, al
xor byte [ebx + edx*4 - 0x56c3577], al
mov eax, ebx
ja 0x5d0691
invalid
invalid
Function at 0x4011a1
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push str.Global__Q360FWMainMutex__
push 1
push edi
mov dword [0x489150], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, edi
mov dword [0x489150], eax
je 0x4012a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4012a6
push esi
push edi
push 0x480320
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
cmp esi, edi
je case.0x401230.2
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
or ecx, 0xffffffff
cmp eax, edi
je 0x401228
mov ecx, dword [ebp - 4]
push dword [eax + ecx*4 - 4]
call fcn.00401076
pop ecx
mov ecx, eax
lea eax, [ecx - 1]
cmp eax, 0xb
ja case.0x401230.2
jmp dword [eax*4 + 0x4012ab]
push edi
push 2
jmp 0x401294
push edi
push 4
jmp 0x401294
push 3
push 2
push 0x3400
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0x401
jmp 0x40126f
push 2
push 2
push 0x3400
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0x800
push 0x8100
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp case.0x401230.2
push 0xffffffffffffffff
push 3
jmp 0x401294
push edi
push 5
jmp 0x401294
push 3
jmp 0x401292
push 1
jmp 0x401292
push 2
push 6
push 0x3400
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
pop eax
pop esi
jmp 0x4012a8
xor eax, eax
pop edi
leave
ret
Function at 0x4013a1
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x46b4f7
call fcn.0045b030
sub esp, 0x300
call fcn.004011a1
test eax, eax
je 0x4013c1
xor eax, eax
jmp 0x401587
push ebx
push esi
push edi
lea ecx, [ebp - 0x70]
call fcn.004016d6
lea eax, [ebp - 0x70]
mov esi, 0x489158
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040165e
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push 9
xor eax, eax
pop ecx
lea edi, [ebp - 0x34]
mov dword [ebp - 0x38], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push str.32770
push dword [0x48915c]
call dword [sym.imp.USER32.dll_GetClassInfoW]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x14], 0x480320
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push ebx
push 0x4012db
push ebx
push eax
call dword [sym.imp.GDI32.dll_EnumFontFamiliesW]
call fcn.00401304
lea ecx, [ebp - 0x30c]
call fcn.00427393
push ebx
push ebx
lea ecx, [ebp - 0x30c]
mov byte [ebp - 4], 1
call fcn.004047fa
test eax, eax
jne 0x40146f
lea ecx, [ebp - 0x30c]
mov byte [ebp - 4], bl
call fcn.00427e97
mov dword [ebp - 4], 2
jmp 0x40156e
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
or eax, 0xffffffff
cmp ecx, ebx
je 0x401496
mov eax, dword [ebp - 0x10]
push dword [ecx + eax*4 - 4]
call fcn.00401076
pop ecx
dec eax
push 3
cmp eax, 0xb
pop edi
ja case.0x4014a3.2
jmp dword [eax*4 + 0x401593]
push ebx
push 2
jmp 0x401512
push ebx
push 4
jmp 0x401512
push edi
push 2
push 0x3400
push dword [ebp - 0x308]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 0x401
jmp 0x4014eb
push 2
push 2
push 0x3400
push dword [ebp - 0x308]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 0x800
push 0x8100
push dword [ebp - 0x308]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp case.0x4014a3.2
push ebx
push edi
jmp 0x401512
push ebx
push 5
jmp 0x401512
push edi
jmp 0x401510
push 1
jmp 0x401510
push 2
push 6
push 0x3400
push dword [ebp - 0x308]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp + 0xc]
push dword [ebp - 0x308]
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x70]
call fcn.004015c3
mov dword [ebp + 0xc], eax
mov eax, dword [0x489150]
cmp eax, ebx
je 0x401553
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x489150], ebx
mov ecx, esi
call fcn.0040169d
lea ecx, [ebp - 0x30c]
mov byte [ebp - 4], bl
call fcn.00427e97
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x60]
call fcn.0040498c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.0040498c
pop edi
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x402382
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x46b650
call fcn.0045b030
mov eax, 0x1460
call fcn.0045b070
push ebx
push esi
mov dword [ebp - 0x14], ecx
push edi
xor ebx, ebx
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x468]
mov dword [ebp - 0x46c], ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x4802e0]
mov dword [ebp - 0x10], eax
mov ax, word [0x489444]
mov ecx, 0x81
mov word [ebp - 0x21c], ax
xor eax, eax
lea edi, [ebp - 0x21a]
mov esi, 0x800
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea eax, [ebp - 0xc6c]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x146c]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0xc6c]
push 0x400
push eax
push ebx
call fcn.004046d3
mov edi, dword [ebp - 0x14]
add esp, 0x24
xor esi, esi
cmp dword [edi + 8], ebx
jle 0x40242f
lea eax, [ebp - 0xc6c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
inc esi
cmp esi, dword [edi + 8]
jl 0x40241c
lea eax, [ebp - 0xc6c]
push str.config
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x21c]
test eax, eax
jne 0x40245c
xor eax, eax
jmp 0x402465
lea eax, [ebp - 0x21c]
push eax
call edi
lea ecx, [ebp - 0x21c]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00403113
mov esi, 0x480538
mov eax, esi
test eax, eax
je 0x402483
push esi
call edi
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.00403152
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, ebx
je 0x40251d
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
test byte [ebp - 0x46c], 0x10
je 0x402504
lea eax, [ebp - 0x440]
push 0x480534
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x402504
lea eax, [ebp - 0x440]
push 0x48052c
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x402504
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x146c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x146c]
push eax
call fcn.00402538
lea eax, [ebp - 0x46c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4024a9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403037
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404680
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
cmp dword [ebp + 0xc], 0
je 0x4046c0
push 0x800
lea eax, [ebp - 0x800]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x800]
push 0x400
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040474b
add esp, 0x1c
test eax, eax
jne 0x4046c4
xor eax, eax
leave
ret
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
leave
ret

Function at 0x404ac6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
push 0xd
push esi
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
sub eax, esi
mov dword [esi], 0x42444c7
sub eax, 0xd
mov byte [esi + 8], 0xe9
mov dword [esi + 9], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp + 0xc]
push eax
push 0x40
push 0xd
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebp
ret 8
Function at 0x405f51
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
pop edi
cmp eax, edi
je 0x405f88
cmp eax, 2
je 0x405f88
push 7
call fcn.00406171
cmp eax, 3
pop ecx
jne 0x405f81
mov eax, edi
jmp 0x406014
push 4
pop esi
cmp eax, esi
jne 0x405f8f
xor eax, eax
jmp 0x406014
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x405fca
lea eax, [ebp - 0xc]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push str.MonAccess
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor eax, eax
cmp dword [ebp - 8], eax
jmp 0x406011
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00406018
cmp eax, esi
je 0x40600c
lea ecx, [ebp - 4]
push ecx
push 0xbb8
push edi
push 0x168
push 0x97
push 0x418
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x40600c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5b4
jne 0x40600c
mov dword [ebp - 4], esi
xor eax, eax
cmp dword [ebp - 4], esi
setne al
pop edi
pop esi
leave
ret

Function at 0x406018
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x46b9b0
call fcn.0045b030
sub esp, 0x60
push ebx
mov ebx, dword [sym.imp.USER32.dll_FindWindowW]
push esi
xor esi, esi
push esi
push str.Q360SafeMonClass
call ebx
cmp eax, esi
jne 0x4060fc
push edi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x68]
mov dword [ebp - 0x28], esi
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x24]
push str.360Tray.exe
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x6c], 0x44
stosd dword es:[edi], eax
mov word [ebp - 0x3c], 5
call fcn.00403305
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.00406112
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.00408184
mov ecx, dword [ebp - 0x10]
cmp ecx, esi
je 0x40609e
call fcn.004033a0
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
je 0x4060aa
call fcn.004033a0
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x4060b5
mov eax, dword [eax]
jmp 0x4060b7
xor eax, eax
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4060ef
push 0x3e8
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x28]
call edi
mov ecx, dword [ebp - 0x18]
pop edi
cmp ecx, esi
je 0x4060fc
call fcn.004033a0
push esi
push str.Q360SafeMonClass
call ebx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4063c7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
lea eax, [ebp - 0x120]
push esi
push eax
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jae 0x4063f6
push 1
pop eax
jmp 0x40643f
lea eax, [ebp - 4]
xor esi, esi
push eax
push 8
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40643f
lea eax, [ebp - 8]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0xc]
push 4
push eax
push 0x14
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x406434
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret

Function at 0x406467
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
pop edi
cmp eax, edi
je 0x40649e
cmp eax, 2
je 0x40649e
push 5
call fcn.00406171
cmp eax, 3
pop ecx
jne 0x406497
mov eax, edi
jmp 0x4065c7
push 4
pop esi
cmp eax, esi
jne 0x4064a5
xor eax, eax
jmp 0x4065c7
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x4064e6
lea eax, [ebp - 8]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.AppMonAccess
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor eax, eax
cmp dword [ebp - 4], eax
setne al
jmp 0x4065c7
push ebx
call fcn.0040c5be
test eax, eax
je 0x406554
lea eax, [ebp - 0xc]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov ebx, str.SOFTWARE360Safe_safemon
push str.NewExec
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push ebx
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor eax, eax
cmp dword [ebp - 4], eax
jne 0x4065c6
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push str.ExecAccess
push ebx
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor eax, eax
cmp dword [ebp - 4], eax
setne al
jmp 0x4065c6
lea eax, [ebp - 0xc]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov ebx, str.SOFTWARE360Safe_safemon
push str.NewExec
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push ebx
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 4], 0
je 0x40658e
call fcn.004065cb
jmp 0x4065c6
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push str.ExecAccess
push ebx
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 4], 0
jne 0x4065c3
call fcn.004065cb
test eax, eax
je 0x4065c6
push 1
pop eax
pop ebx
pop edi
pop esi
leave
ret