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

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, ecx
test eax, eax
je 0x4126ab
cmp dword [edi], 0
je 0x41259f
pop edi
mov eax, 1
pop esi
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4126ab
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SmartCacheCreate
push esi
call ebx
push str.SmartCacheClose
push esi
mov dword [edi + 4], eax
call ebx
push str.SmartCacheQuery
push esi
mov dword [edi + 8], eax
call ebx
push str.SmartNetQuery
push esi
mov dword [edi + 0xc], eax
call ebx
push str.SmartNetQueryCancel
push esi
mov dword [edi + 0x10], eax
call ebx
push str.SmartSetOption
push esi
mov dword [edi + 0x14], eax
call ebx
push str.SetComOption
push esi
mov dword [edi + 0x18], eax
call ebx
push str.SmartUploadCreate
push esi
mov dword [edi + 0x1c], eax
call ebx
push str.SmartUploadWithExtInfo
push esi
mov dword [edi + 0x20], eax
call ebx
push str.SmartUploadCancel
push esi
mov dword [edi + 0x24], eax
call ebx
push str.SmartUploadClose
push esi
mov dword [edi + 0x28], eax
call ebx
push str.SmartUploadSetNetTimeout
push esi
mov dword [edi + 0x2c], eax
call ebx
push str.SmartUploadGetError
push esi
mov dword [edi + 0x30], eax
call ebx
push str.AVCacheCreate
push esi
mov dword [edi + 0x34], eax
call ebx
push str.AVCacheClose
push esi
mov dword [edi + 0x38], eax
call ebx
push str.AVCacheQuery
push esi
mov dword [edi + 0x3c], eax
call ebx
push str.AVInsertWhite
push esi
mov dword [edi + 0x40], eax
call ebx
push str.AVDeleteWhite
push esi
mov dword [edi + 0x44], eax
call ebx
push str.MisKillCreate
push esi
mov dword [edi + 0x48], eax
call ebx
push str.MisKillClose
push esi
mov dword [edi + 0x4c], eax
call ebx
push str.MisKillJudgeWhiteOnlyFile
push esi
mov dword [edi + 0x50], eax
call ebx
mov dword [edi + 0x54], eax
mov dword [edi], esi
pop ebx
pop edi
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x415260
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48ceeb
push eax
mov dword fs:[0], esp
sub esp, 0x20c
lea eax, [esp + 4]
push esi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov ecx, 0x104
lea eax, [esp + 8]
cmp word [eax], 0
je 0x4152b9
add eax, 2
dec ecx
jne 0x4152ab
jmp 0x415306
test ecx, ecx
je 0x415306
lea eax, [esp + 4]
test eax, eax
je 0x4152ce
mov eax, 0x104
sub eax, ecx
jmp 0x4152d2
mov eax, dword [esp + 4]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax*2 + 8]
je 0x415306
mov esi, str.system32drivers_
sub esi, eax
mov cx, word [esi + eax]
test cx, cx
je 0x4152fa
mov word [eax], cx
add eax, 2
dec edx
jne 0x4152e6
jmp 0x4152fe
test edx, edx
jne 0x415301
sub eax, 2
mov word [eax], 0
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_2
mov edx, dword [esp + 0x220]
lea ecx, [esp + 4]
push edx
mov dword [esp + 0x21c], 0
call sub.MFC42u.DLL_CString::operator_2
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415364
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x218], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, esi
jmp 0x41537d
lea ecx, [esp + 4]
mov dword [esp + 0x218], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x210]
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x416fa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48d01d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x8b
mov dword [esp + 0x18], esi
call fcn.004192a0
lea ebx, [esi + 0x88]
mov dword [esp + 0x28], 0
mov ecx, ebx
call fcn.004747c0
mov dword [esi], 0x495bb4
mov dword [esi + 0x60], 0x495ba8
mov ecx, ebx
mov dword [esp + 0x28], 1
call fcn.0043c410
mov dword [esi], 0x496548
mov dword [esi + 0x60], 0x49653c
mov dword [ebx], fcn.0040ef50
lea edi, [esi + 0x90]
mov dword [esp + 0x28], 2
mov dword [esp + 0x30], edi
lea ebp, [edi + 0xc]
mov ecx, ebp
call sub.MFC42u.DLL_CString::CString_3
xor eax, eax
push 0x4b9760
mov ecx, ebp
mov byte [esp + 0x2c], 3
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
call sub.MFC42u.DLL_CString::operator_1
mov cl, byte [esp + 0x30]
mov dl, byte [esp + 0x30]
lea ebp, [esi + 0xa0]
mov byte [esp + 0x28], 4
mov byte [ebp], cl
mov ecx, ebp
mov byte [ebp + 1], dl
mov byte [ebp + 0xc], 0
call fcn.00410cb0
mov cl, byte [esp + 0x30]
mov al, byte [esp + 0x30]
lea edi, [esi + 0xb8]
mov byte [esp + 0x28], 5
mov byte [edi + 1], cl
mov ecx, edi
mov byte [edi], al
mov byte [edi + 0xc], 0
call fcn.004113c0
lea ecx, [esi + 0x60]
push 0x4b15d8
mov byte [esp + 0x2c], 6
mov dword [esi + 0xd0], 1
mov dword [esi + 0xd4], 3
mov dword [esi + 0x26c], 0
mov dword [esi], 0x49645c
mov dword [ecx], 0x496450
mov dword [ebx], fcn.0040ef50
call fcn.0043c010
mov dword [esi + 0xd8], 0x7d0
mov dword [esi + 0xdc], 0xfa0
mov dword [esi + 0xe0], 0xbb8
mov eax, dword [ebp + 4]
push eax
lea edx, [esp + 0x34]
mov ecx, dword [eax]
push ecx
push edx
mov ecx, ebp
call fcn.0040ffe0
mov ebx, dword [edi + 4]
mov ecx, dword [edi + 0x10]
test ecx, ecx
mov eax, dword [ebx]
mov dword [esp + 0x30], eax
je 0x417150
mov ecx, eax
cmp eax, ecx
jne 0x417150
mov eax, dword [ebx + 4]
mov ecx, edi
push eax
call fcn.00410850
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [ecx + 4], edx
mov eax, dword [edi + 4]
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
lea eax, [esp + 0x14]
push eax
call fcn.0045c380
jmp 0x417179
cmp eax, ebx
je 0x417179
lea ecx, [esp + 0x18]
push 0
push ecx
lea ecx, [esp + 0x38]
call fcn.00418b90
mov edx, dword [eax]
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, edi
call fcn.00410480
cmp dword [esp + 0x30], ebx
jne 0x417154
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x417360
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x220
push ebp
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 1
call edi
mov ebp, dword [esp + 0x22c]
test eax, eax
jne 0x417474
mov eax, 4
lea ecx, [esp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.MHz
push ecx
call esi
test eax, eax
jne 0x4173ef
mov edx, dword [esp + 0x18]
mov dword [ebp], edx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0x4b16c8
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x104
call esi
test eax, eax
jne 0x417468
lea ecx, [esp + 0x24]
lea esi, [ebp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CString::operator_1
mov ecx, esi
call sub.MFC42u.DLL_CString::TrimLeft
push 0x4b16c4
push 0x4b16bc
mov ecx, esi
call sub.MFC42u.DLL_CString::Replace
push 0x4b16b8
mov ecx, esi
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
je 0x417468
mov edx, dword [esi]
mov ecx, dword [edx - 8]
sub ecx, eax
push ecx
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::Delete
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemCentralProcessor
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x4174c0
push eax
push eax
mov edx, dword [esp + 0x20]
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x34]
push eax
push ecx
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4174b5
mov eax, dword [esp + 0x1c]
mov dword [ebp + 4], eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
add esp, 0x220
ret 4

Function at 0x4174d0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x48
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
pop edi
je 0x417562
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0xa
call fcn.004365d0
mov edx, dword [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], 0
mov ecx, eax
fild qword [esp]
shr ecx, 0xa
cmp ecx, 0x3e8
mov dword [edx + 8], ecx
fmul dword [0x496624]
jae 0x417560
mov dword [esp], ecx
mov dword [esp + 4], 0
fild qword [esp]
fsubr st(1)
fcomp dword [0x496620]
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x417562
inc ecx
mov dword [edx + 8], ecx
add esp, 0x48
ret 4
fstp st(0)
add esp, 0x48
ret 4
Function at 0x417570
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x48d060
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x90]
push esi
call fcn.00417360
push esi
mov ecx, edi
call fcn.004174d0
mov ecx, dword [esi]
sub esp, 0x10
mov eax, esp
add esi, 0xc
mov dword [esp + 0x2c], esp
push esi
mov dword [eax], ecx
mov edx, dword [esi - 8]
mov dword [eax + 4], edx
mov ecx, dword [esi - 4]
mov dword [eax + 8], ecx
lea ecx, [eax + 0xc]
call fcn.00436102
mov ecx, edi
call fcn.004176b0
mov dword [edi + 0xb4], eax
push 0
mov ecx, 0x4ba260
mov dword [0x4ba600], eax
call fcn.004048c0
lea edx, [esp + 0x10]
push edx
call fcn.00402050
add esp, 4
push str.emalware.300
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x30], 0
push eax
call sub.MFC42u.DLL_operator_2
mov eax, dword [eax]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
lea ecx, [esp + 0xc]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
test esi, esi
je 0x41763b
mov eax, 2
jmp 0x417688
lea ecx, [esp + 0x18]
push ecx
call fcn.00402050
add esp, 4
push str.emalware.010
lea edx, [esp + 0x18]
push eax
push edx
mov dword [esp + 0x34], 1
call sub.MFC42u.DLL_operator_2
mov eax, dword [eax]
push eax
call ebx
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
test esi, esi
setne al
mov ecx, edi
mov dword [edi + 0xcc], eax
call fcn.00417700
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret
Function at 0x417700
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48d090
push eax
mov dword fs:[0], esp
sub esp, 0x60
lea eax, [esp + 4]
push ebx
push esi
push edi
mov edi, ecx
push eax
call fcn.0040ab00
mov eax, dword [eax]
add esp, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x10]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
xor ebx, ebx
cmp esi, ebx
je 0x417763
lea ecx, [esp + 0x10]
push ecx
call fcn.0040ab00
mov eax, dword [eax]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString
mov dl, byte [esp + 0xf]
push ebx
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], dl
call fcn.004100e0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x1c]
push 1
push eax
mov dword [esp + 0x7c], ebx
call fcn.00423560
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, ebx
jne 0x4177d8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], 0xffffffff
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x28]
call fcn.00410090
mov edx, dword [esp + 0x20]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
mov eax, dword [esp + 0x20]
mov esi, dword [eax]
cmp esi, eax
je 0x41787e
add edi, 0xa0
mov bl, 2
lea eax, [esi + 8]
lea ecx, [esp + 0x28]
push eax
call fcn.00422970
lea eax, [esp + 0x28]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x58]
push ecx
push edx
mov byte [esp + 0x80], 1
call fcn.004117d0
add esp, 0xc
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x3c], ecx
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x78], bl
call fcn.00411950
lea edx, [esp + 0x3c]
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, edi
mov byte [esp + 0x7c], 3
call fcn.0040fdb0
lea ecx, [esp + 0x40]
mov byte [esp + 0x74], bl
call fcn.004229f0
lea ecx, [esp + 0x58]
mov byte [esp + 0x74], 1
call fcn.004229f0
lea ecx, [esp + 0x28]
mov byte [esp + 0x74], 0
call fcn.004229f0
mov esi, dword [esi]
mov eax, dword [esp + 0x20]
cmp esi, eax
jne 0x4177ee
mov esi, dword [esp + 0x24]
xor ecx, ecx
cmp ecx, esi
mov edi, eax
sbb ebx, ebx
mov dword [esp + 0x74], 0xffffffff
mov esi, dword [edi]
neg ebx
cmp esi, edi
je 0x4178b5
mov eax, esi
mov esi, dword [esi]
lea edx, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00410f60
cmp esi, edi
jne 0x41789a
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x70]
add esp, 4
mov eax, ebx
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
Function at 0x419d50
Capabilities:
Encrypt data using des

Disassembly:
push esi
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push edi
mov edi, dword [esp + 0xc]
push 0x800
mov dword [0x4ba69c], edi
call esi
add esp, 4
mov dword [0x4ba694], eax
test eax, eax
je 0x419df4
call fcn.0041a2f0
cmp edi, 1
je 0x419df4
push 0x800
call esi
add esp, 4
mov dword [0x4ba690], eax
test eax, eax
jne 0x419da7
mov eax, dword [0x4ba694]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
ret
push 0x4b1a5c
push eax
call fcn.0041a260
push 0x800
call esi
add esp, 0xc
mov dword [0x4ba698], eax
test eax, eax
jne 0x419de6
mov ecx, dword [0x4ba694]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ecx
call esi
mov edx, dword [0x4ba690]
push edx
call esi
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
ret
push 0x4b1a9c
push eax
call fcn.0041a260
add esp, 8
pop edi
xor eax, eax
pop esi
ret

Function at 0x419e60
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x70
push ebp
mov ebp, dword [esp + 0x78]
test ebp, ebp
jne 0x419e74
or eax, 0xffffffff
pop ebp
add esp, 0x70
ret
mov edx, dword [esp + 0x7c]
push ebx
push esi
push edi
mov ecx, 0x20
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
xor ecx, ecx
movsx eax, byte [ecx + str.91__]
dec eax
mov esi, eax
sar eax, 3
and esi, 7
movsx eax, byte [eax + edx]
test dword [esi*4 + 0x4b1d74], eax
setne al
mov byte [esp + ecx + 0x10], al
inc ecx
cmp ecx, 0x38
jl 0x419e88
xor edi, edi
movsx ecx, byte [edi + 0x4b1b14]
xor eax, eax
xor edx, edx
cmp eax, 0x1c
setge dl
dec edx
mov esi, ecx
and edx, 0xffffffe4
add edx, 0x38
cmp ecx, edx
jl 0x419ed3
lea esi, [ecx - 0x1c]
mov dl, byte [esp + esi + 0x10]
mov byte [esp + eax + 0x48], dl
inc eax
inc ecx
cmp eax, 0x38
jl 0x419ebb
xor ecx, ecx
movsx eax, byte [ecx + 0x4b1b24]
mov dl, byte [esp + eax + 0x47]
test dl, dl
je 0x419f22
mov eax, 0x2aaaaaab
mov ebx, 6
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ebp
add eax, edx
lea esi, [eax + edi*8]
mov eax, ecx
cdq
idiv ebx
mov al, byte [esi]
mov edx, dword [edx*4 + 0x4b1d74]
sar edx, 2
or al, dl
mov byte [esi], al
inc ecx
cmp ecx, 0x30
jl 0x419ee4
inc edi
cmp edi, 0x10
jl 0x419eb2
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x70
ret
Function at 0x41a2f0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x28
xor ecx, ecx
xor eax, eax
movsx edx, byte [eax + 0x4b1d54]
dec edx
cmp edx, ecx
je 0x41a30b
inc eax
cmp eax, 0x20
jl 0x41a2f7
jmp 0x41a30f
mov byte [esp + ecx + 8], al
inc ecx
cmp ecx, 0x20
jl 0x41a2f5
push ebx
lea eax, [esp + 0xc]
push ebp
push esi
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x10], 0
xor eax, eax
xor esi, esi
mov ebx, eax
mov eax, esi
mov ecx, esi
sar eax, 1
and ecx, 1
and eax, 0xf
shl ecx, 4
mov edx, esi
or eax, ecx
mov ecx, dword [esp + 0x10]
and edx, 0x20
or eax, edx
xor edi, edi
xor edx, edx
movsx ebp, byte [ecx + eax + 0x4b1b54]
mov eax, 8
mov ecx, edx
sar eax, cl
test ebp, eax
je 0x41a37b
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + edx]
mov ecx, 0x1f
sub ecx, eax
mov eax, 1
shl eax, cl
or edi, eax
inc edx
cmp edx, 4
jl 0x41a357
mov ecx, dword [0x4ba694]
inc esi
mov dword [ebx + ecx], edi
add ebx, 4
cmp esi, 0x40
jl 0x41a32f
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esi, 0x40
add edx, 4
cmp ebx, 0x800
mov dword [esp + 0x10], esi
mov eax, ebx
mov dword [esp + 0x14], edx
jl 0x41a32b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x41a8c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x63c
push ebx
push ebp
push esi
mov dword [esp + 0x14], ecx
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x36]
mov word [esp + 0x34], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x444]
push 0x104
push eax
push esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x208
mov dword [esp + 0x34], str.CLSID0128F9B2_8DAB_4E2D_A999_66DD9C4C83B2InProcServer32
mov dword [esp + 0x38], str.CLSID65416821_217D_44BD_9C61_F53398FB1B46InProcServer32
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], str.bdfltlib.dll
mov dword [esp + 0x2c], str.scan.dll
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x444]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
cmp eax, esi
je 0x41a94a
mov word [eax], si
mov ebp, dword [esp + 0x650]
mov edx, str.bdfltlib.dll
test edx, edx
je 0x41aa19
mov eax, dword [esp + esi + 0x28]
test eax, eax
je 0x41aa19
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x18]
push edx
push ecx
push 0
push eax
push SysReAllocString
mov dword [esp + 0x28], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ebx, eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x23e]
mov word [esp + 0x23c], 0
mov edx, dword [esp + esi + 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x444]
push edx
push eax
push 0x4b0680
lea ecx, [esp + 0x248]
push 0x104
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
test ebp, ebp
je 0x41a9df
test ebx, ebx
jne 0x41a9f9
jmp 0x41aa0a
lea edx, [esp + 0x23c]
lea eax, [esp + 0x34]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x41aa0a
lea ecx, [esp + 0x23c]
push ebp
push ecx
call fcn.0041aae0
add esp, 8
mov eax, dword [esp + esi + 0x20]
add esi, 4
test eax, eax
jne 0x41a95e
lea edx, [esp + 0x10]
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push str.DisplayName
push str.SYSTEMCurrentControlSetServices_scan
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
pop edi
pop esi
test ebp, ebp
pop ebp
pop ebx
je 0x41aa73
test eax, eax
jne 0x41aa73
push 3
lea edx, [esp + 0x28]
push 0x4b2294
push edx
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x41aa73
mov ecx, dword [esp + 8]
call fcn.0041aa80
add esp, 0x63c
ret 4

Function at 0x41aa80
Capabilities:
Modify service

Disassembly:
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x41aad8
push ebx
push esi
push 2
push str.scan
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x41aad3
push str.360_
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
ret
Function at 0x41ac10
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x48d238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x40]
push edi
xor edi, edi
cmp ebx, edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov dword [esp + 0x10], edi
jne 0x41ac58
pop edi
mov eax, 0x57
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 0x18
push ebp
mov ebp, dword [esp + 0x4c]
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
push edi
push edi
push 4
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
mov esi, eax
cmp esi, edi
je 0x41ac8b
push str.GetSecurityInfo_Error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41ad46
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x24], ecx
mov ecx, 5
lea edi, [esp + 0x28]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1c]
push edx
push eax
push ecx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov esi, eax
test esi, esi
je 0x41ace9
push str.SetEntriesInAcl_Error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41ad46
mov edx, dword [esp + 0x10]
push 0
push edx
push 0
push 0
push 4
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test esi, esi
je 0x41ad46
lea ecx, [esp + 0x4c]
call sub.MFC42u.DLL_CString::CString_3
push esi
lea eax, [esp + 0x50]
push str.SetSecurityInfo_Error__u_n
push eax
mov dword [esp + 0x50], 0
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x58]
add esp, 0xc
push ecx
call fcn.0040ef50
add esp, 4
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x41ad57
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41ad62
push eax
call edi
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 0x18