joyce8/EMBER2024-capa huggingface dataset:
Function at 0x521920
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x38
push esi
push edi
xor edi, edi
push 0x30
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x18], edi
call fcn.005dfd60
mov esi, dword [esp + 0x54]
add esp, 0xc
mov dword [esp + 8], edi
cmp esi, edi
je 0x521a11
cmp byte [esi], 0
je 0x521a11
push ebx
push ebp
push esi
call fcn.004dd6c0
mov ebx, eax
lea eax, [ebx + 0x40]
push eax
mov dword [esp + 0x58], eax
call fcn.005e20e4
mov ebp, eax
add esp, 8
cmp ebp, edi
je 0x521a0f
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0x14]
mov ecx, dword [eax]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0x20]
push ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov ecx, dword [0x692250]
lea edx, [ebp + 8]
push esi
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], 0x64
mov dword [ebp], ecx
mov dword [ebp + 4], ebx
call fcn.005e13c0
mov edx, dword [esp + 0x5c]
add esp, 0xc
push 0
lea edi, [ebx + ebp + 8]
mov ecx, 0xd
lea esi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x69224c]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [ebx + ebp + 0x3c], eax
mov eax, dword [esp + 0x58]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call fcn.005e0865
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x38
ret
Function at 0x528a10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x673ae8
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 0x7510e0
call fcn.004da7f0
call fcn.00526e40
push 0
lea eax, [ebp - 0x224]
push eax
push str.dummy
call fcn.004ad000
add esp, 0x10
push 0x693014
push str.PingMaxThreadCount
push 0x60d9ec
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004d5820
push 0x751674
push str.ICMPDebug
push 0x60d9ec
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004d5820
cmp byte [0x751b98], 0
jne 0x528c85
push 0x104
push 0x751b98
call fcn.004f0410
add esp, 8
push 0x751b98
push 0x751ca0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
push 0x751ca0
call fcn.004e24e0
add esp, 4
push str.vistaeScanMon.lan
push 0x751ca0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call edi
push 0x751b98
push 0x751da8
call esi
push 0x751da8
call fcn.004e24e0
add esp, 4
push str.eScan.lan
push 0x751da8
call edi
push 0x751b98
push 0x7520c0
call esi
push 0x7520c0
call fcn.004e24e0
add esp, 4
push str.EUpdate.INI
push 0x7520c0
call edi
push 0x751b98
push 0x751fb8
call esi
push 0x751fb8
call fcn.004e24e0
add esp, 4
push str.L0ESCANSET.INI
push 0x751fb8
call edi
push 0x7520c0
push 0x104
lea ecx, [ebp - 0x120]
push ecx
push 0x60c81c
push str.IPOnly
push 0x60da74
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x120], 0x31
jne 0x528b9f
mov dword [0x751b94], 1
mov ecx, 0x751b98
mov edx, 0x751eb0
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x528bb0
push 0x751eb0
call fcn.004e24e0
add esp, 4
mov eax, 0x751eb0
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x528bd0
mov edx, dword [str.trayicoc.lan]
mov dword [eax], edx
mov ecx, dword [0x64fd8c]
mov dword [eax + 4], ecx
mov edx, dword [0x64fd90]
mov dword [eax + 8], edx
mov cl, byte [0x64fd94]
mov byte [eax + 0xc], cl
push 1
push 0
push 0
push 0
push 0
push 0x751eb0
call fcn.004e8950
add esp, 0x18
test eax, eax
je 0x528c85
mov ecx, 0x751b98
mov edx, 0x751eb0
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x528c20
push 0x751eb0
call fcn.004e24e0
add esp, 4
mov eax, 0x751eb0
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x528c40
mov edx, dword [str.trayicos.lan]
mov dword [eax], edx
mov ecx, dword [0x64fd7c]
mov dword [eax + 4], ecx
mov edx, dword [0x64fd80]
mov dword [eax + 8], edx
mov cl, byte [0x64fd84]
mov byte [eax + 0xc], cl
jmp 0x528c85
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005dfbbe
mov esp, ebp
pop ebp
ret
Function at 0x52aa50
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
lea eax, [esp + 0x10]
push eax
xor edi, edi
push edi
push ebx
push edi
push ebp
push ecx
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x52aa8c
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x24]
mov esi, dword [edx]
test esi, esi
jne 0x52aabe
mov eax, dword [esp + 0x10]
inc eax
push eax
lea edi, [esi + 1]
call fcn.004d9470
mov esi, eax
add esp, 4
test esi, esi
jne 0x52aabe
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [edi + 0x79]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push esi
push ebx
push 0
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test edi, edi
je 0x52aadd
mov ecx, dword [esp + 0x24]
mov dword [ecx], esi
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x52aaeb
mov edx, dword [esp + 0x10]
mov dword [ecx], edx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x52ab50
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x14
push ebx
xor ebx, ebx
push str.ClusSVC
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 8], ebx
call fcn.005110b0
test eax, eax
je 0x52ab7f
xor eax, eax
pop ebx
add esp, 0x14
ret
mov eax, 0x63ef48
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52ab87
push ebp
sub eax, edx
lea ebp, [eax + 1]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetServiceslanmanserver
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004dc0a0
add esp, 0x14
test eax, eax
jne 0x52acb8
push esi
push edi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push str.DependOnService
push ecx
call fcn.0052aa50
add esp, 0x14
cmp eax, ebx
jne 0x52ac42
mov edx, dword [esp + 0x10]
push 0x63ef48
push edx
call fcn.0052ab00
add esp, 8
test eax, eax
jne 0x52ac38
mov ebx, dword [esp + 0x1c]
lea edi, [ebx + ebp]
push edi
call fcn.004d9470
mov esi, eax
add esp, 4
test esi, esi
je 0x52ac98
mov eax, dword [esp + 0x10]
push ebx
push eax
push esi
call fcn.005e13c0
push ebp
lea ecx, [esi + ebx - 1]
push 0x63ef48
push ecx
call fcn.005e13c0
add esp, 0x18
mov byte [esi + edi - 1], 0
xor ebx, ebx
jmp 0x52ac6c
mov dword [esp + 0x18], 1
jmp 0x52ac9a
cmp eax, 2
jne 0x52ac9a
lea edi, [ebp + 1]
push edi
call fcn.004d9470
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x52ac9a
push ebp
push 0x63ef48
push esi
call fcn.005e13c0
add esp, 0xc
mov byte [esi + edi - 1], bl
mov edx, dword [esp + 0x14]
push edi
push esi
push 7
push ebx
push str.DependOnService
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x52ac8d
mov dword [esp + 0x18], 1
push esi
call fcn.005e0865
add esp, 4
jmp 0x52ac9a
xor ebx, ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
cmp eax, ebx
je 0x52acad
push eax
call fcn.005e0865
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x52acd0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x14
push esi
push edi
xor edi, edi
mov eax, 0x63ef48
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
lea edx, [eax + 1]
jmp 0x52acf0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52acf0
sub eax, edx
mov esi, eax
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServiceslanmanserver
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004dc0a0
add esp, 0x14
test eax, eax
jne 0x52ae42
push ebp
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push str.DependOnService
push ecx
call fcn.0052aa50
mov edi, dword [esp + 0x20]
add esp, 0x14
test eax, eax
jne 0x52ae1f
push 0x63ef48
push edi
call fcn.0052ab00
add esp, 8
cmp eax, 1
jne 0x52ae1f
mov ebp, dword [esp + 0x14]
sub ebp, esi
dec ebp
push ebp
call fcn.004d9470
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x52ae1f
mov esi, edi
mov edx, esi
cmp byte [edx], 0
mov edi, eax
je 0x52ade7
lea ecx, [ecx]
push 0x63ef48
push esi
call fcn.005f095a
add esp, 8
test eax, eax
je 0x52adc4
mov edx, edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x52ada8
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52adb7
sub eax, edx
lea edi, [edi + eax + 1]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52add0
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x52ad90
mov eax, dword [esp + 0x14]
push ebp
push eax
push 7
push 0
mov byte [eax + ebp - 1], 0
mov eax, dword [esp + 0x20]
push str.DependOnService
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x52ae0e
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005e0865
mov edi, dword [esp + 0x10]
add esp, 4
pop ebp
test edi, edi
je 0x52ae2d
push edi
call fcn.005e0865
add esp, 4
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop esi
add esp, 0x14
ret
mov eax, edi
pop edi
pop esi
add esp, 0x14
ret
Function at 0x52b610
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x224]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x22c]
push edi
mov edi, dword [esp + 0x238]
xor ebx, ebx
push 0x207
lea ecx, [esp + 0x25]
push ebx
push ecx
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], bl
call fcn.005dfd60
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push str.SystemComponent
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [edi], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 4
call ebp
test eax, eax
jne 0x52b6a0
cmp dword [esp + 0x18], 1
jne 0x52b6a0
mov dword [edi], 1
jmp 0x52b81c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push ebx
push str.ReleaseType
push esi
mov byte [esp + 0x38], bl
mov dword [esp + 0x2c], 0x208
call ebp
test eax, eax
jne 0x52b761
cmp byte [esp + 0x20], bl
je 0x52b761
push ebx
lea eax, [esp + 0x24]
push str.Security_Update
push eax
call fcn.004f5880
add esp, 0xc
cmp eax, 0xffffffff
je 0x52b6f2
mov dword [edi], 2
jmp 0x52b750
push ebx
lea ecx, [esp + 0x24]
push str.Hotfix
push ecx
call fcn.004f5880
add esp, 0xc
cmp eax, 0xffffffff
je 0x52b712
mov dword [edi], 4
jmp 0x52b750
push ebx
lea edx, [esp + 0x24]
push str.Update
push edx
call fcn.004f5880
add esp, 0xc
cmp eax, 0xffffffff
je 0x52b732
mov dword [edi], 5
jmp 0x52b750
push ebx
lea eax, [esp + 0x24]
push str.Service_Pack
push eax
call fcn.004f5880
add esp, 0xc
cmp eax, 0xffffffff
je 0x52b761
mov dword [edi], 6
cmp dword [esp + 0x23c], ebx
je 0x52b761
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push ebx
push str.ParentKeyName
push esi
mov byte [esp + 0x38], bl
mov dword [esp + 0x2c], 0x208
call ebp
test eax, eax
jne 0x52b796
cmp byte [esp + 0x20], bl
je 0x52b796
mov dword [edi], 0xa
jmp 0x52b81c
mov ebp, dword [esp + 0x1c]
cmp ebp, ebx
je 0x52b809
cmp byte [ebp], bl
je 0x52b809
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x52b7a8
sub eax, edx
cmp eax, 8
jb 0x52b809
mov eax, ebp
lea edx, [eax + 1]
jmp 0x52b7c0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x52b7c0
sub eax, edx
cmp eax, 0xb
ja 0x52b809
push 0x6503f8
push ebp
call fcn.004dd6e0
add esp, 8
test eax, eax
jne 0x52b809
xor esi, esi
movzx eax, byte [esi + ebp + 2]
push eax
call fcn.004da320
add esp, 4
test eax, eax
je 0x52b809
inc esi
cmp esi, 6
jl 0x52b7e2
mov dword [edi], 7
cmp dword [esp + 0x23c], ebx
jne 0x52b810
cmp dword [esp + 0x10], 0xffffffff
jne 0x52b818
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x21c
ret
Function at 0x52b840
Capabilities:
Get common file path
Set file attributes

Disassembly:
sub esp, 0x210
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x20c], eax
push 0x103
lea eax, [esp + 0x10d]
push 0
push eax
mov dword [esp + 0xc], 0
mov byte [esp + 0x114], 0
call fcn.005dfd60
push 0x103
lea ecx, [esp + 0x15]
push 0
push ecx
mov byte [esp + 0x1c], 0
call fcn.005dfd60
add esp, 0x18
push 0x104
lea edx, [esp + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x108]
push eax
call fcn.004e2520
lea ecx, [esp + 0x10c]
push ecx
lea edx, [esp + 0xc]
push str._sdriversetchosts
push edx
call fcn.005dfb23
push 0
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004ec5a0
add esp, 0x24
test eax, eax
jne 0x52b907
lea ecx, [esp + 4]
push ecx
call fcn.004e0fb0
add esp, 4
cmp eax, 0xffffffff
je 0x52b907
test al, 7
je 0x52b907
push 0x80
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp]
push eax
push str.NoHostsChange
push 0x60d814
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004d5820
test al, al
jne 0x52b92c
call fcn.004f0de0
test eax, eax
jne 0x52b932
cmp dword [esp], 0
je 0x52b94c
mov eax, 1
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x210
ret
mov ecx, dword [esp + 0x20c]
xor ecx, esp
xor eax, eax
call fcn.005dfbbe
add esp, 0x210
ret
Function at 0x52c3f0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1114
call fcn.005e00d0
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x1110], eax
push ebx
mov ebx, dword [esp + 0x1124]
push ebp
mov ebp, dword [esp + 0x1124]
push esi
mov esi, dword [esp + 0x1124]
push edi
push 0xfff
xor edi, edi
lea eax, [esp + 0x125]
push edi
push eax
mov byte [esp + 0x12c], 0
call fcn.005dfd60
add esp, 0xc
push esi
push 0x1000
lea ecx, [esp + 0x128]
push ecx
push 0x60c81c
push str.Servers
push 0x60da74
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x120], 0
je 0x52c55b
push 1
push edi
push 0x2c
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x134]
push ecx
mov dword [esp + 0x28], edi
call fcn.004e1380
add esp, 0x18
cmp dword [esp + 0x10], 0xffffffff
je 0x52c55b
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.00508760
add esp, 8
test eax, eax
je 0x52c4d0
push 1
push 0x2c
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004e5820
jmp 0x52c4d5
mov edi, 1
push 1
push 0
push 0x2c
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x134]
push ecx
call fcn.004e1380
add esp, 0x18
cmp dword [esp + 0x10], 0xffffffff
jne 0x52c4a8
test edi, edi
je 0x52c55b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x52c544
cmp byte [eax], 0
je 0x52c544
push esi
push eax
push str.Servers
push 0x60da74
call fcn.004e0cb0
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x134]
push eax
push ebx
push str.__s__Servers_changed_from___s__to___s_
push ebp
call fcn.004f0f30
add esp, 0x24
mov dword [esp + 0x18], 1
jmp 0x52c55b
lea ecx, [esp + 0x120]
push ecx
push ebx
push str.__s__Could_not_find_valid_IP_in_servers_value___s_
push ebp
call fcn.004f0f30
add esp, 0x10
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x52c570
push eax
call fcn.005e0865
add esp, 4
mov ecx, dword [esp + 0x1110]
mov eax, dword [esp + 8]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x1114
ret
Function at 0x52d940
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, dword [esp + 0x220]
push edi
mov edi, dword [esp + 0x228]
lea eax, [esp + 0xc]
push eax
push str.AVExternalRegisterWSC
push 0x6111b8
xor ebx, ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], ebx
call fcn.004d5820
mov dword [edi], ebx
mov dword [esi], ebx
call fcn.005da6c0
test eax, eax
je 0x52da4a
push 0x103
lea ecx, [esp + 0x19]
push ebx
push ecx
mov byte [esp + 0x20], bl
call fcn.005dfd60
push 0x103
lea edx, [esp + 0x129]
push ebx
push edx
mov byte [esp + 0x130], bl
call fcn.005dfd60
mov dword [esi], 1
add esp, 0x18
xor esi, esi
mov dword [esp + 0x10], ebx
call fcn.004d96c0
test eax, eax
je 0x52d9ea
lea eax, [esp + 0x10]
push eax
call fcn.004f77e0
add esp, 4
mov esi, eax
push 0x104
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x14]
push edx
call fcn.004e2520
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x120]
push str._sdriverselamesn.sys
push ecx
call fcn.005dfb23
push ebx
push ebx
push ebx
lea edx, [esp + 0x134]
push ebx
push edx
call fcn.004ec5a0
add esp, 0x24
test eax, eax
jne 0x52da39
mov dword [edi], 1
cmp esi, ebx
je 0x52da4a
mov eax, dword [esp + 0x10]
push eax
call fcn.004f7860
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x214
ret

Function at 0x52df50
Capabilities:
Create thread

Disassembly:
sub esp, 8
cmp dword [esp + 0xc], 0
mov dword [esp], 0
mov dword [esp + 4], 0
jne 0x52e03c
cmp dword [0x752d84], 0
je 0x52e03c
cmp byte [0x6af4b8], 0
je 0x52e03c
call fcn.005da6c0
test eax, eax
je 0x52dfb6
push 0x752ae8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x7533c8], 0
jne 0x52e031
mov dword [0x7533c8], 1
push 0
jmp 0x52e022
push 1
call fcn.005d94a0
add esp, 4
test eax, eax
je 0x52e03c
lea eax, [esp + 0xc]
push eax
push str.AVDoNotUseELAM
push 0x6111b8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
call fcn.004d5820
cmp dword [esp + 0xc], 0
je 0x52e03c
push 0
push str.eScanProtServ
call fcn.0050d920
add esp, 8
test eax, eax
je 0x52e03c
push 0x752ae8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x7533c4], 0
jne 0x52e031
lea ecx, [esp + 0xc]
mov dword [0x7533c4], 1
push ecx
push 0
push 0x52da70
call fcn.005e07ac
add esp, 0xc
push 0x752ae8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [esp + 4]
push edx
lea eax, [esp + 4]
push eax
call fcn.0052d940
add esp, 8
test eax, eax
jne 0x52e064
cmp dword [esp], eax
jne 0x52e05d
xor eax, eax
add esp, 8
ret
cmp dword [esp + 4], 0
je 0x52e057
mov eax, 1
add esp, 8
ret
Function at 0x52e070
Capabilities:
Delete service
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x673c08
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 1
push 0x63ef48
call fcn.004d8010
add esp, 8
mov edi, eax
cmp edi, 1
jne 0x52e0e8
push 0x63ef48
push eax
call fcn.005001f0
add esp, 8
test eax, eax
jne 0x52e0e8
push eax
push 0x63ef48
call fcn.0050d920
add esp, 8
test eax, eax
je 0x52e1a4
mov dword [ebp - 0x1c], 0x1e
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x52e1a4
push 0xf01ff
push 0x63ef48
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x52e183
cmp edi, 1
jne 0x52e175
push 0x752b00
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x52e175
push 0x3e8
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x52e150
push 0x752b00
push esi
call ebx
test eax, eax
je 0x52e172
cmp dword [0x752b04], 3
jne 0x52e172
push 0x3e8
call edi
sub dword [ebp - 0x1c], 1
jne 0x52e150
mov ebx, dword [ebp - 0x20]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x52e1a4
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52f080
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x673cc8
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
cmp eax, 5
je 0x52f0fa
cmp eax, 0xb
jne 0x52f286
mov esi, dword [ebp + 0xc]
cmp dword [0x72bcb8], ebx
je 0x52f0ee
push edi
push esi
push esi
push str._RDI__SERVICE_CONTROL_DEVICEEVENT__EventType___u__0x_x___EventData__0x_x_
push ebx
call fcn.004f0f30
add esp, 0x14
push edi
push esi
call fcn.0052e860
jmp 0x52f286
cmp dword [0x752d8c], ebx
je 0x52f110
push str._MONSERV__System_going_for_Shutdown
push ebx
call fcn.004f0f30
add esp, 8
call fcn.004f0de0
test eax, eax
je 0x52f25f
mov dword [ebp - 0x32c], 0x3c
lea eax, [ebp - 0x32c]
push eax
push str.SendSessionEvents
push str.SoftwareMicroWorldeScan_for_Windows
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004d5820
cmp dword [ebp - 0x32c], ebx
je 0x52f25f
cmp byte [0x7534d8], bl
jne 0x52f1f8
mov byte [ebp - 0x120], bl
push 0x103
push ebx
lea ecx, [ebp - 0x11f]
push ecx
call fcn.005dfd60
push 0x104
lea edx, [ebp - 0x120]
push edx
call fcn.004f0410
add esp, 0x14
lea ecx, [ebp - 0x120]
mov edx, 0x7534d8
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x52f191
push 0x7534d8
call fcn.004e24e0
add esp, 4
mov eax, 0x7534d8
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x52f1b0
mov ecx, dword [str.ESCAN.LAN]
mov dword [eax], ecx
mov edx, dword [0x615d64]
mov dword [eax + 4], edx
mov cx, word [0x615d68]
mov word [eax + 8], cx
push 0x7534d8
push 0x104
push 0x7533d0
push 0x6195b8
push 0x6195b4
push str.SCANINST
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 0x224], bl
push 0x103
push ebx
lea edx, [ebp - 0x223]
push edx
call fcn.005dfd60
push ebx
lea eax, [ebp - 0x224]
push eax
call fcn.004f00d0
lea ecx, [ebp - 0x224]
push ecx
push str.PC_SHUTDOWN___s_
lea edx, [ebp - 0x328]
push edx
call fcn.005dfb23
add esp, 0x20
push ebx
push str.eScan_Monitor
push 0x7533d0
lea eax, [ebp - 0x328]
push eax
push 0x60c810
push ebx
push str.eScan_Monitor
push 0x6b2
call fcn.00513910
push 0x752d88
call fcn.0052d800
add esp, 4
jmp 0x52f286
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005dfbbe
mov esp, ebp
pop ebp
ret 0x10