joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor esp, ebp
or al, 0x88
mov ebx, dword [ebp + 8]
push esi
push edi
lea esi, [ebx + 0x38]
push esi
call fcn.004056f0
add byte [eax], al
mov eax, dword [ebx + 4]
add esp, 4
mov dl, 0xf1
xor dword [eax], eax
add byte [eax], al
pushal
mov dword [ebx + 0x3c], 0x1151
je 0x404e13
push eax
call fcn.00404e00
sub dword [ebx - 6], eax
test eax, eax
jne 0x404e2c
lea eax, [ebx + 0x10]
push eax
test al, 0xae
or byte [eax], al
add byte [ebx - 0x17aee36b], cl
in eax, 8
add byte [edi - 0x3b7cfca2], al
or byte [ebp - 0x74ca8b40], al
push eax
sal byte [ebp + esi - 0x75], 0x50
sbb dl, al
call fcn.004048c5
mov esi, eax
or al, 0xf6
je 0x404e51
push esi
call 0x40d5d0
mov eax, dword [ebx + 0xc]
mov edi, esi
or byte [ecx - 0x29bc74f8], cl
movsd dword es:[edi], dword [esi]
inc ecx
add byte [esp + ecx - 0x75], dh
xor al, 0xe8
jbe 0x404ec0
or al, 0x7b
div byte [esi + eax + 0x56]
je 0x404e89
push esi
cmp esi, dword [edi - 0x7476ffac]
xchg ebx, eax
xor byte [esi - 0x80], dh
sbb dh, ah
mov esp, dword [esi + 0xc704]
mov edx, dword [ebx + 0x18807630]
out 0x8b, al
cmpsb byte [esi], byte es:[edi]
add al, 0xc7
add byte [eax], al
add ah, bl
add al, ch
pop eax
cli
invalid
pop ss
push esp
add byte [eax], al
jo 0x404f12
add al, 0x43
jns 0x57cb9e18
dec edi
mov edx, dword [edi + 8]
mov dword [ebp - 4], ecx
or byte [ecx + 0x4b8bfc4d], cl
mov ecx, dword [ebp - 0x63]
mov ecx, dword [ebx - 0x75]
dec ebp
popfd
cmovne edi, dword [edx - 0x7af76a75]
leave
je 0x404ee0
cmp eax, edx
jbe 0x404ee0
mov dword [esi], ebx
mov ebx, esi
jmp 0x404eb5
cmp eax, 0x12
push esi
sbb byte [ebx - 0x7aeb78b4], cl
leave
mov dword [esi], ecx
jne 0x404f04
rol dword [ebp - 4], 0x76
mov esi, 0x89094589
je 0x404e81
adc al, 0xeb
aam 0xe1
dec edi
adc al, 0x97
push cs
sti
ja 0x404f19
adc al, 0x3b
sal byte [edx + 4], 1
cmp edx, eax
jb 0x404f0d
sub edx, eax
jmp 0x404f0f
xor edx, edx
mov esi, dword [ebp + 0x7e]
test esi, esi
jne 0x404ec7
mov eax, dword [ebp - 4]
mov dword [edi + 8], edx
mov dword [edi], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x404f25
push eax
mov ecx, 0x5415
test ebx, ebx
je 0x404f43
mov esi, dword [0x2ac130]
mov eax, ebx
mov ebx, dword [ebx]
int1
call esi
add esp, 0xffffff81
test ebx, ebx
jne 0x404f35
push edi
call 0x3f7530
cmp eax, dword [ebp - 0x75]
jne 0x404f54
push edi
call fcn.004048b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
in al, dx
mov ecx, dword es:[ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push 0
lea edx, [ebp - 8]
push 0
mov eax, dword [esi]
pop ecx
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
or dword [ecx - 0x50], esp
push eax
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x10]
push 1
push eax
mov dword [ebp - 4], 0x752c00
mov dword [ebp - 6], 0x5200dc00
call dword [sym.imp.WS2_32.dll_WSARecv]
or byte [esi - 0x24], cl
jne 0x408bb3
push edi
mov edi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call edi
inc edx
sal byte [ebp + 0xa], 0x89
push es
jns 0x408bf6
push esi
in eax, 0x5d
ret 0xc
fld dword [ebp - 4]
mov dword [esi], eax
pop esi
neg eax
sbb eax, eax
and eax, 0xfffeee82
add eax, 0x1117e
mov esp, ebp
pop ebp
ret 0xad
fmul dword [eax]
inc eax
add dl, cl
salc
test eax, eax
jne 0x408c6e
pop esi
cmc
in eax, 0x5d
stc
pop ds
salc
add eax, 0xcfc80
pop esi
mov esp, ebp
pop ebp
ret
and byte [edi + 0x21ec8b55], ch
and byte [edi], 0x2f
and ecx, dword [ebx - 0x74a8f78b]
jge 0x408c8f
or al, byte [ecx]
add byte [ecx - 0x75], dl
push esi
add al, 0x1f
Function at 0x4034c9
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x8b6588], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x40350e
push 0x402b40
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push 0x402b6c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x805d28]
mov ebx, dword [0x805d2c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.004034c2
mov eax, dword [0x805d30]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x805d34]
add edi, 0x23f
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
mov ecx, eax
shl ecx, 4
cmp dword [0x8b6588], 0xc
mov dword [ebp - 4], ecx
jne 0x4035af
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x444]
push eax
push esi
push 0x402b7c
push 0x402b8c
push 0x402bac
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
lea eax, [ebp - 0x844]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 4], ecx
mov ecx, dword [0x8b6588]
cmp ecx, 0xfa9
jne 0x4035cd
mov dword [0x8b5b24], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x4035db
mov dword [0x8b54d8], esi
lea ecx, [edi + eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
shr eax, cl
mov dword [0x8b5b20], 0xf4ea3dee
add eax, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x8b6588], 0x213
mov dword [ebp - 0x14], ecx
jne 0x403619
push esi
push 0x402bb4
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x8b6588], 0xc
jne 0x403662
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupRead]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0xc44]
push eax
push 0x402bf0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [edi + eax]
shr eax, cl
add eax, ebx
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
add edi, 0x61c88647
dec dword [ebp - 0x18]
jne 0x403547
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x4036ad
Capabilities:
Create pipe
Get common file path
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x8b6588]
mov ecx, dword [0x8b54dc]
sub esp, 0x834
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4037a5
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x8b6588], 0x959
jne 0x403793
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
push esi
push esi
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402cb0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x402d00
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402d40
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.004034c9
add ebx, 8
dec dword [ebp - 4]
jne 0x4036d6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40557b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x805494]
jne 0x405585
repz ret
jmp fcn.00408d9c

Function at 0x40abbb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406b46
and dword [ebp - 4], 0
cmp dword [0x807108], 0
mov ebx, eax
jne 0x40ac6c
push 0x4021ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ad1d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021a0
push edi
call esi
test eax, eax
je 0x40ad1d
push eax
call fcn.00406ad4
mov dword [esp], 0x402190
push edi
mov dword [0x807108], eax
call esi
push eax
call fcn.00406ad4
mov dword [esp], 0x40217c
push edi
mov dword [0x80710c], eax
call esi
push eax
call fcn.00406ad4
mov dword [esp], 0x402160
push edi
mov dword [0x807110], eax
call esi
push eax
call fcn.00406ad4
pop ecx
mov dword [0x807118], eax
test eax, eax
je 0x40ac6c
push 0x402148
push edi
call esi
push eax
call fcn.00406ad4
pop ecx
mov dword [0x807114], eax
mov eax, dword [0x807114]
cmp eax, ebx
je 0x40acc4
cmp dword [0x807118], ebx
je 0x40acc4
push eax
call fcn.00406b4f
push dword [0x807118]
mov esi, eax
call fcn.00406b4f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40acc4
test edi, edi
je 0x40acc4
call esi
test eax, eax
je 0x40acbb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40acbb
test byte [ebp - 0xc], 1
jne 0x40acc4
or dword [ebp + 0x10], 0x200000
jmp 0x40acfd
mov eax, dword [0x80710c]
cmp eax, ebx
je 0x40acfd
push eax
call fcn.00406b4f
pop ecx
test eax, eax
je 0x40acfd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40acfd
mov eax, dword [0x807110]
cmp eax, ebx
je 0x40acfd
push eax
call fcn.00406b4f
pop ecx
test eax, eax
je 0x40acfd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x807108]
call fcn.00406b4f
pop ecx
test eax, eax
je 0x40ad1d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ad1f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401061
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [0x439050]
mov esi, ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4010c9
lea eax, [ebp - 0x20c]
push 0x208
push eax
mov ecx, esi
call fcn.004010ce
test eax, eax
je 0x4010c9
lea eax, [ebp - 0x20c]
push str.safemon_safemon.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4010c9
push 1
pop eax
jmp 0x4010cb
xor eax, eax
pop esi
leave
ret

Function at 0x401123
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
push str.Q360SafeMonClass
call dword [sym.imp.USER32.dll_FindWindowW]
push 4
mov esi, eax
pop eax
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
neg esi
sbb esi, esi
push str.SOFTWARE360Safe_safemon
push 0x80000002
neg esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 4], 0
je 0x40117d
test esi, esi
je 0x40117d
push 1
pop eax
jmp 0x40117f
xor eax, eax
pop esi
leave
ret 4

Function at 0x40120e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 4
mov dword [ebp - 4], 2
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.update
push str.SOFTWARE360Safe_setting
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 4]
cmp eax, 1
jb 0x401252
cmp eax, 3
jbe 0x401255
push 2
pop eax
leave
ret

Function at 0x401257
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
call fcn.00401061
cmp dword [ebp + 8], eax
jne 0x401272
push 1
pop eax
jmp 0x4012c1
lea eax, [ebp - 0x208]
push 0x208
push eax
mov ecx, esi
call fcn.004010ce
test eax, eax
je 0x4012bf
lea eax, [ebp - 0x208]
push str.safemon_safemon.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4012bf
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.00406331
pop ecx
pop ecx
jmp 0x4012c1
xor eax, eax
pop esi
leave
ret 4
Function at 0x401341
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc]
mov ebx, str.360Safetray
push eax
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push ebx
mov esi, 0x80000002
push edi
mov dword [ebp - 4], ecx
push esi
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp + 8], 0
mov dword [ebp - 8], eax
jne 0x4013a1
test eax, eax
jne 0x40141e
push ebx
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
jmp 0x40141e
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x218]
push 0x208
push eax
call fcn.004010ce
test eax, eax
je 0x401423
lea eax, [ebp - 0x218]
push str.safemon360tray.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push str.__start
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
cmp dword [ebp - 8], 0
jne 0x4013fd
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x40141e
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push ebx
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 1
pop eax
jmp 0x401425
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40142c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
xor ebx, ebx
push ebx
mov dword [ebp - 4], ecx
push str.Q360SafeMonClass
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
jne 0x4014e7
push edi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov ecx, dword [ebp - 4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x260]
push 0x208
push eax
mov dword [ebp - 0x58], 0x44
mov word [ebp - 0x28], 5
call fcn.004010ce
test eax, eax
pop edi
je 0x40149b
lea eax, [ebp - 0x260]
push str.safemon360tray.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x260]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4014fb
push esi
push 0x3e8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov ecx, dword [ebp - 4]
call fcn.0040131d
cmp eax, ebx
pop esi
je 0x4014fb
push 0x168
push dword [ebp + 8]
push 0x416
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 1
pop eax
pop ebx
leave
ret 4
Function at 0x402b08
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov eax, dword [eax + 4]
mov edx, dword [eax]
cmp eax, edx
mov dword [ebp - 4], edx
je 0x402b56
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
cmp dword [edx + 0x2c], 0
je 0x402b5a
mov ecx, dword [ebp - 8]
lea eax, [edx + 0x1c]
add edx, 0xc
push eax
push edx
push ebx
call fcn.00403015
lea ecx, [ebp - 4]
call fcn.0040518d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
cmp dword [eax + 4], edx
jne 0x402b29
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [edx + 0x20]
mov esi, dword [eax]
mov dword [ebp + 8], esi
cmp dword [edx + 0x20], esi
je 0x402b40
and word [ebp - 0x210], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
stosw word es:[edi], ax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x402b8f
mov eax, ecx
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x402b98
mov esi, ecx
mov edx, dword [edx + 0x10]
test edx, edx
je 0x402ba1
mov ecx, edx
push eax
lea eax, [ebp - 0x210]
push 0x103
push eax
push 0x441ed4
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x402be3
mov eax, dword [ebp + 8]
lea esi, [eax + 0x1c]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
lea ecx, [ebp + 8]
call fcn.00405041
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 4]
jmp 0x402b62

Function at 0x403e95
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.0042e5d0
and word [ebp - 0x1048], 0
push edi
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x1046]
push 0x824
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1048]
push ecx
mov eax, dword [eax]
push eax
call fcn.00407b9b
add esp, 0xc
lea ecx, [ebp + 0xc]
push eax
call fcn.00404729
mov eax, dword [ebp + 0xc]
push 2
pop ecx
pop edi
mov eax, dword [eax - 8]
cdq
idiv ecx
test edx, edx
je 0x403efb
push str.favorite_dll_cfg_shield_:_EmcryptStr_Fail__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp + 0x10], 0
je 0x403f13
push 0x441ed4
push 0x4395a8
lea ecx, [ebp + 0xc]
call fcn.00404876
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.004046e3
lea ecx, [ebp + 0xc]
call fcn.00404c0d
mov eax, dword [ebp + 8]
leave
ret 0xc
Function at 0x40427f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov al, byte [ebp + 0xb]
push esi
mov esi, ecx
push 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 0x10], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00404328
push 1
lea ecx, [ebp - 0x20]
mov esi, eax
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
test esi, esi
je 0x404314
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4042ed
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov ecx, dword [ebp - 8]
add ecx, ecx
push ecx
push eax
push 1
push str.homepage
push str.Software360360se3
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x404314
push 1
pop esi
jmp 0x404316
xor esi, esi
push 1
lea ecx, [ebp - 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, esi
pop esi
leave
ret 4

Function at 0x407623
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call sub.MSVCRT.dll_strlen
mov ebx, dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
lea eax, [edi + 1]
push eax
call ebx
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
je 0x407698
test edi, edi
jle 0x40765d
sub esi, eax
mov ecx, edi
mov dl, byte [esi + eax]
xor dl, 0x13
mov byte [eax], dl
inc eax
dec ecx
jne 0x407651
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
call ebx
mov ebx, eax
lea eax, [esi + 1]
push eax
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0x10
test ebx, ebx
je 0x40768c
push ebx
push edi
push dword [ebp + 8]
call fcn.00407597
add esp, 0xc
and byte [esi + ebx], 0
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40769d
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call sub.MSVCRT.dll_strlen
mov edi, eax
push esi
push edi
push esi
call fcn.004075d8
mov eax, edi
add esp, 0x10
cdq
sub eax, edx
xor ecx, ecx
sar eax, 1
test eax, eax
jle 0x4076cc
xor byte [ecx + esi], 0x13
inc ecx
cmp ecx, eax
jl 0x4076c3
and byte [eax + esi], 0
pop edi
pop esi
ret