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

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, ecx
test eax, eax
je 0x41229b
cmp dword [edi], 0
je 0x41218f
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 0x41229b
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 0x414e30
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48d11b
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 0x414e89
add eax, 2
dec ecx
jne 0x414e7b
jmp 0x414ed6
test ecx, ecx
je 0x414ed6
lea eax, [esp + 4]
test eax, eax
je 0x414e9e
mov eax, 0x104
sub eax, ecx
jmp 0x414ea2
mov eax, dword [esp + 4]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax*2 + 8]
je 0x414ed6
mov esi, str.system32drivers_
sub esi, eax
mov cx, word [esi + eax]
test cx, cx
je 0x414eca
mov word [eax], cx
add eax, 2
dec edx
jne 0x414eb6
jmp 0x414ece
test edx, edx
jne 0x414ed1
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 0x414f34
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 0x414f4d
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 0x416b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48d24d
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.00418ef0
lea ebx, [esi + 0x88]
mov dword [esp + 0x28], 0
mov ecx, ebx
call fcn.00444430
mov dword [esi], 0x495b84
mov dword [esi + 0x60], 0x495b78
mov ecx, ebx
mov dword [esp + 0x28], 1
call fcn.0043be90
mov dword [esi], 0x496518
mov dword [esi + 0x60], 0x49650c
mov dword [ebx], fcn.0040ec80
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 0x4b99c0
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.004109a0
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.00418bb0
lea ecx, [esi + 0x60]
push 0x4b15d0
mov byte [esp + 0x2c], 6
mov dword [esi + 0xd0], 1
mov dword [esi + 0xd4], 3
mov dword [esi + 0x26c], 0
mov dword [esi], 0x49642c
mov dword [ecx], 0x496420
mov dword [ebx], fcn.0040ec80
call fcn.0043ba90
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.0040fcd0
mov ebx, dword [edi + 4]
mov ecx, dword [edi + 0x10]
test ecx, ecx
mov eax, dword [ebx]
mov dword [esp + 0x30], eax
je 0x416d20
mov ecx, eax
cmp eax, ecx
jne 0x416d20
mov eax, dword [ebx + 4]
mov ecx, edi
push eax
call fcn.00410540
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.0040fa90
jmp 0x416d49
cmp eax, ebx
je 0x416d49
lea ecx, [esp + 0x18]
push 0
push ecx
lea ecx, [esp + 0x38]
call fcn.00418760
mov edx, dword [eax]
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, edi
call fcn.00410170
cmp dword [esp + 0x30], ebx
jne 0x416d24
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 0x416f30
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 0x417044
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 0x416fbf
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 0x4b16c0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x104
call esi
test eax, eax
jne 0x417038
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 0x4b16bc
push 0x4b16b4
mov ecx, esi
call sub.MFC42u.DLL_CString::Replace
push 0x4b16b0
mov ecx, esi
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
je 0x417038
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 0x417090
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 0x417085
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 0x4170a0
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 0x417132
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0xa
call fcn.00436500
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 [0x4965f4]
jae 0x417130
mov dword [esp], ecx
mov dword [esp + 4], 0
fild qword [esp]
fsubr st(1)
fcomp dword [0x4965f0]
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x417132
inc ecx
mov dword [edx + 8], ecx
add esp, 0x48
ret 4
fstp st(0)
add esp, 0x48
ret 4
Function at 0x417140
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x48d290
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.00416f30
push esi
mov ecx, edi
call fcn.004170a0
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.00436032
mov ecx, edi
call fcn.00417280
mov dword [edi + 0xb4], eax
push 0
mov ecx, 0x4ba4c0
mov dword [0x4ba860], eax
call fcn.00404850
lea edx, [esp + 0x10]
push edx
call fcn.00402040
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 0x41720b
mov eax, 2
jmp 0x417258
lea ecx, [esp + 0x18]
push ecx
call fcn.00402040
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.004172d0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret
Function at 0x4172d0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48d2c0
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.0040aa30
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 0x417333
lea ecx, [esp + 0x10]
push ecx
call fcn.0040aa30
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.0040fdd0
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.004233d0
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, ebx
jne 0x4173a8
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.0040fd80
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 0x41744e
add edi, 0xa0
mov bl, 2
lea eax, [esi + 8]
lea ecx, [esp + 0x28]
push eax
call fcn.004227e0
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.004113c0
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.00411540
lea edx, [esp + 0x3c]
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, edi
mov byte [esp + 0x7c], 3
call fcn.0040faa0
lea ecx, [esp + 0x40]
mov byte [esp + 0x74], bl
call fcn.00422860
lea ecx, [esp + 0x58]
mov byte [esp + 0x74], 1
call fcn.00422860
lea ecx, [esp + 0x28]
mov byte [esp + 0x74], 0
call fcn.00422860
mov esi, dword [esi]
mov eax, dword [esp + 0x20]
cmp esi, eax
jne 0x4173be
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 0x417485
mov eax, esi
mov esi, dword [esi]
lea edx, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00410c50
cmp esi, edi
jne 0x41746a
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 0x419ab0
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 [0x4ba8fc], edi
call esi
add esp, 4
mov dword [0x4ba8f4], eax
test eax, eax
je 0x419b54
call fcn.0041a050
cmp edi, 1
je 0x419b54
push 0x800
call esi
add esp, 4
mov dword [0x4ba8f0], eax
test eax, eax
jne 0x419b07
mov eax, dword [0x4ba8f4]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
ret
push 0x4b1a78
push eax
call fcn.00419fc0
push 0x800
call esi
add esp, 0xc
mov dword [0x4ba8f8], eax
test eax, eax
jne 0x419b46
mov ecx, dword [0x4ba8f4]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ecx
call esi
mov edx, dword [0x4ba8f0]
push edx
call esi
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
ret
push 0x4b1ab8
push eax
call fcn.00419fc0
add esp, 8
pop edi
xor eax, eax
pop esi
ret

Function at 0x419bc0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x70
push ebp
mov ebp, dword [esp + 0x78]
test ebp, ebp
jne 0x419bd4
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 + 0x4b1d90], eax
setne al
mov byte [esp + ecx + 0x10], al
inc ecx
cmp ecx, 0x38
jl 0x419be8
xor edi, edi
movsx ecx, byte [edi + 0x4b1b30]
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 0x419c33
lea esi, [ecx - 0x1c]
mov dl, byte [esp + esi + 0x10]
mov byte [esp + eax + 0x48], dl
inc eax
inc ecx
cmp eax, 0x38
jl 0x419c1b
xor ecx, ecx
movsx eax, byte [ecx + 0x4b1b40]
mov dl, byte [esp + eax + 0x47]
test dl, dl
je 0x419c82
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 + 0x4b1d90]
sar edx, 2
or al, dl
mov byte [esi], al
inc ecx
cmp ecx, 0x30
jl 0x419c44
inc edi
cmp edi, 0x10
jl 0x419c12
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x70
ret
Function at 0x41a050
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x28
xor ecx, ecx
xor eax, eax
movsx edx, byte [eax + 0x4b1d70]
dec edx
cmp edx, ecx
je 0x41a06b
inc eax
cmp eax, 0x20
jl 0x41a057
jmp 0x41a06f
mov byte [esp + ecx + 8], al
inc ecx
cmp ecx, 0x20
jl 0x41a055
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 + 0x4b1b70]
mov eax, 8
mov ecx, edx
sar eax, cl
test ebp, eax
je 0x41a0db
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 0x41a0b7
mov ecx, dword [0x4ba8f4]
inc esi
mov dword [ebx + ecx], edi
add ebx, 4
cmp esi, 0x40
jl 0x41a08f
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 0x41a08b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x41a620
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 0x41a6aa
mov word [eax], si
mov ebp, dword [esp + 0x650]
mov edx, str.bdfltlib.dll
test edx, edx
je 0x41a779
mov eax, dword [esp + esi + 0x28]
test eax, eax
je 0x41a779
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 0x4b0678
lea ecx, [esp + 0x248]
push 0x104
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
test ebp, ebp
je 0x41a73f
test ebx, ebx
jne 0x41a759
jmp 0x41a76a
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 0x41a76a
lea ecx, [esp + 0x23c]
push ebp
push ecx
call fcn.0041a840
add esp, 8
mov eax, dword [esp + esi + 0x20]
add esi, 4
test eax, eax
jne 0x41a6be
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 0x41a7d3
test eax, eax
jne 0x41a7d3
push 3
lea edx, [esp + 0x28]
push 0x4b1e28
push edx
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x41a7d3
mov ecx, dword [esp + 8]
call fcn.0041a7e0
add esp, 0x63c
ret 4

Function at 0x41a7e0
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 0x41a838
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 0x41a833
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 0x41a970
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x48d488
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 0x41a9b8
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 0x41a9eb
push str.GetSecurityInfo_Error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41aaa6
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 0x41aa49
push str.SetEntriesInAcl_Error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41aaa6
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 0x41aaa6
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.0040ec80
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 0x41aab7
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41aac2
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