joyce8/EMBER2024-capa huggingface dataset:
Function at 0x99a6d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x14
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
call fcn.00963620
cmp eax, 2
jle 0x99a71d
mov ebx, str.ClusSVC
call fcn.009605b0
test eax, eax
je 0x99a71b
mov ecx, ebx
call fcn.00954680
cmp eax, 1
je 0x99a71b
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor ebx, ebx
mov eax, str.eScan_Monitor_Service
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x99a725
sub eax, edx
lea ebp, [eax + 1]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetServiceslanmanserver
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x99a845
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
lea ebx, [esp + 0x2c]
call fcn.0099a5e0
add esp, 0xc
test eax, eax
jne 0x99a7ce
mov eax, dword [esp + 0x10]
call fcn.0099a680
test eax, eax
jne 0x99a7c4
mov ebx, dword [esp + 0x1c]
lea edi, [ebx + ebp]
lea ecx, [edi + 0x10]
push 1
push ecx
call fcn.00a7b9f8
mov esi, eax
add esp, 8
test esi, esi
je 0x99a829
mov edx, dword [esp + 0x10]
push ebx
push edx
push esi
call fcn.00a828e0
add esp, 0xc
push ebp
push str.eScan_Monitor_Service
lea eax, [esi + ebx - 1]
push eax
jmp 0x99a7f1
mov dword [esp + 0x18], 1
jmp 0x99a829
cmp eax, 2
jne 0x99a829
lea edi, [ebp + 1]
lea ecx, [edi + 0x10]
push 1
push ecx
call fcn.00a7b9f8
mov esi, eax
add esp, 8
test esi, esi
je 0x99a829
push ebp
push str.eScan_Monitor_Service
push esi
call fcn.00a828e0
add esp, 0xc
push edi
push esi
push 7
push 0
mov byte [esi + edi - 1], 0
mov edx, dword [esp + 0x24]
push str.DependOnService
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x99a820
mov dword [esp + 0x18], 1
push esi
call fcn.00a78fec
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x99a83a
push eax
call fcn.00a78fec
add esp, 4
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x99a860
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x14
push ebx
push ebp
xor ebx, ebx
push esi
xor ebp, ebp
mov eax, str.eScan_Monitor_Service
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x99a880
sub eax, edx
mov edi, eax
lea eax, [esp + 0x14]
push eax
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetServiceslanmanserver
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x99a9bd
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
lea ebx, [esp + 0x2c]
call fcn.0099a5e0
mov esi, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x99a999
mov eax, esi
call fcn.0099a680
cmp eax, 1
jne 0x99a999
mov ebx, dword [esp + 0x1c]
sub ebx, edi
dec ebx
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00a7b9f8
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x99a999
mov edx, esi
cmp byte [edx], 0
mov edi, ebp
je 0x99a965
push str.eScan_Monitor_Service
push esi
call fcn.00a88f66
add esp, 8
test eax, eax
je 0x99a94d
mov edx, edi
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x99a930
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x99a940
sub eax, edx
lea edi, [edi + eax + 1]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x99a952
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x99a915
push ebx
push ebp
push 7
push 0
mov byte [ebx + ebp - 1], 0
mov eax, dword [esp + 0x24]
push str.DependOnService
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x99a98c
mov dword [esp + 0x18], 1
push ebp
call fcn.00a78fec
mov esi, dword [esp + 0x14]
add esp, 4
test esi, esi
je 0x99a9a6
push esi
call fcn.00a78fec
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x99b370
Capabilities:
Get common file path
Set file attributes

Disassembly:
sub esp, 0x220
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
push 0x103
lea eax, [esp + 0x119]
push 0
push eax
mov dword [esp + 0x14], 0
mov byte [esp + 0x120], 0
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x11]
push 0
push ecx
mov byte [esp + 0x18], 0
call fcn.00a7ffb0
add esp, 0xc
push 0x104
lea edx, [esp + 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea esi, [esp + 0x114]
call fcn.00960950
mov eax, esi
push eax
lea ecx, [esp + 0x10]
push str._sdriversetchosts
push ecx
call fcn.00a78f30
add esp, 0xc
push 0
push 0
xor edx, edx
lea ecx, [esp + 0x14]
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x99b431
lea eax, [esp + 0xc]
call fcn.0095a560
cmp eax, 0xffffffff
je 0x99b431
test al, 7
je 0x99b431
push 0x80
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 8]
push eax
push str.NoHostsChange
mov ecx, 0xaa21e4
mov edx, 0x80000002
call fcn.0094c0d0
test al, al
jne 0x99b457
call fcn.0098b510
test eax, eax
jne 0x99b45e
cmp dword [esp + 8], 0
je 0x99b479
mov eax, 1
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00a78f21
add esp, 0x220
ret
mov ecx, dword [esp + 0x220]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00a78f21
add esp, 0x220
ret
Function at 0x99be50
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1120
call fcn.00a91950
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x111c], eax
mov eax, dword [esp + 0x1124]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0xfff
lea ecx, [esp + 0x12d]
push ebx
push ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x134], bl
call fcn.00a7ffb0
add esp, 0xc
push 0xb55f40
push 0x1000
lea edx, [esp + 0x130]
push edx
push 0xaa1543
push str.Servers
push str.Config
mov dword [esp + 0x34], ebx
xor esi, esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x128], bl
je 0x99bfcb
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x12c]
mov dword [esp + 0x18], ebx
push ecx
mov bl, 0x2c
lea edi, [esp + 0x28]
call fcn.0095ae80
add esp, 8
cmp dword [esp + 0x14], 0xffffffff
je 0x99bfcb
lea esp, [esp]
lea edx, [esp + 0x20]
push 0
push edx
call fcn.00965e80
add esp, 8
test eax, eax
je 0x99bf27
push 1
push 0x2c
lea eax, [esp + 0x28]
push eax
lea edi, [esp + 0x28]
call fcn.0098d640
jmp 0x99bf2c
mov esi, 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x12c]
push edx
mov bl, 0x2c
lea edi, [esp + 0x28]
call fcn.0095ae80
add esp, 8
cmp dword [esp + 0x14], 0xffffffff
jne 0x99bf00
mov edi, dword [esp + 0x1c]
test esi, esi
je 0x99bfbe
test edi, edi
je 0x99bf9f
cmp byte [edi], 0
je 0x99bf9f
push str.Config
mov esi, 0xb55f40
mov eax, edi
mov ebx, str.Servers
call fcn.009584b0
mov ecx, dword [esp + 0x1c]
add esp, 4
push edi
lea eax, [esp + 0x12c]
push eax
push ecx
push str.__s__Servers_changed_from___s__to___s_
push 0xb54ce8
call fcn.0096a780
add esp, 0x14
mov ebp, 1
jmp 0x99bfbe
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x128]
push edx
push eax
push str.__s__Could_not_find_valid_IP_in_servers_value___s_
push 0xb54ce8
call fcn.0096a780
add esp, 0x10
test edi, edi
je 0x99bfcb
push edi
call fcn.00a78fec
add esp, 4
mov ecx, dword [esp + 0x112c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x1120
ret
Function at 0x99bff0
Capabilities:
Acquire debug privileges

Disassembly:
push 0xffffffffffffffff
push 0xa9a0f6
mov eax, dword fs:[0]
push eax
mov eax, 0x107c
call fcn.00a91950
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x1078], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0xb196ec]
xor eax, esp
push eax
lea eax, [esp + 0x1090]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10a4]
mov dword [esp + 0x2c], eax
mov eax, dword [0xc0172c]
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
cmp eax, ebx
jne 0x99c066
mov ecx, str.PSAPI.DLL
call fcn.0094c620
mov dword [0xc0172c], eax
cmp eax, ebx
je 0x99c209
cmp dword [0xc01728], ebx
jne 0x99c087
push str.EnumProcesses
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0xc01728], eax
cmp eax, ebx
je 0x99c209
mov ecx, str.SeDebugPrivilege
call fcn.0095fcc0
lea ecx, [esp + 0x1c]
push ecx
push 0x1000
lea edx, [esp + 0x74]
push edx
call dword [0xc01728]
mov eax, dword [esp + 0x1c]
shr eax, 2
cmp eax, ebx
mov dword [esp + 0x24], eax
jle 0x99c209
lea esp, [esp]
lea eax, [esp + 0x30]
push eax
call fcn.0099cb90
mov dword [esp + 0x1098], ebx
mov edx, dword [esp + edi*4 + 0x6c]
mov dword [esp + 0x28], edx
cmp edx, 4
jbe 0x99c17c
xor ecx, ecx
call fcn.0097ceb0
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x30]
mov ebp, eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x5c]
push eax
lea edi, [esp + 0x38]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x5c], ecx
call fcn.0099cb00
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x99c11a
cmp eax, ebx
je 0x99c11f
call fcn.00a7a8a1
mov ecx, dword [esp + 0x54]
cmp dword [esi + 4], ecx
jne 0x99c17c
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push eax
lea ebx, [esp + 0x68]
call fcn.0099c9d0
cmp ebp, dword [esp + 0x10a0]
je 0x99c14d
mov edx, ebp
cmp ebp, 4
ja 0x99c0e2
jmp 0x99c17c
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x1070]
push 0xaec054
push edx
call fcn.00a78f30
mov edi, dword [esp + 0x38]
add esp, 0xc
push 0
push 0x2c
lea eax, [esp + 0x1074]
push eax
call fcn.0098d640
mov eax, dword [esp + 0x48]
mov edi, dword [eax + 4]
cmp byte [edi + 0x11], 0
mov esi, edi
jne 0x99c1b4
jmp 0x99c190
mov ecx, dword [esi + 8]
push ecx
lea ecx, [esp + 0x34]
call fcn.0099cc10
mov esi, dword [esi]
push edi
call fcn.00a7a9b9
add esp, 4
cmp byte [esi + 0x11], 0
mov edi, esi
je 0x99c190
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x20]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x4c], ebx
mov dword [eax], eax
mov eax, dword [esp + 0x48]
inc edi
mov dword [eax + 8], eax
mov dword [esp + 0x20], edi
lea esi, [esp + 0x30]
mov dword [esp + 0x1098], 1
call fcn.0099ce40
mov dword [esp + 0x1098], 0xffffffff
mov edx, dword [esp + 0x30]
push edx
call fcn.00a7a9b9
add esp, 4
cmp edi, dword [esp + 0x24]
jl 0x99c0c0
mov ecx, dword [esp + 0x1090]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1078]
xor ecx, esp
call fcn.00a78f21
add esp, 0x1088
ret
Function at 0x99c630
Capabilities:
Check if file exists
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x124
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push 0x103
lea eax, [esp + 0x21]
push 0
mov ebx, 1
push eax
mov esi, ecx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x28], 0
call fcn.00a7ffb0
add esp, 0xc
push esi
lea ecx, [esp + 0x20]
push str.SoftwarePolicies_s
push ecx
call fcn.00a78f30
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push str.DisableQUIC
mov ecx, str.SOFTWAREMicroWorldeScan_for_Windows
mov edx, 0x80000002
call fcn.0094c0d0
cmp dword [esp + 0x14], 0
lea ecx, [esp + 0x1c]
mov edx, 0x80000002
je 0x99c78b
lea eax, [esp + 0xc]
push eax
push str.QuicAllowed
mov dword [esp + 0x14], ebx
call fcn.0094c0d0
test al, al
je 0x99c6c8
cmp dword [esp + 0xc], 0
je 0x99c6dd
xor eax, eax
mov esi, str.QuicAllowed
lea ebx, [esp + 0x1c]
mov ecx, 0x80000002
call fcn.0094be90
call fcn.00968110
test eax, eax
je 0x99c7cc
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xf013f
push 0
lea edx, [esp + 0x2c]
push edx
push 0x80000002
call fcn.0097ee40
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x99c7cc
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push esi
push str.QuicAllowed
push edx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x99c746
cmp dword [esp + 0xc], eax
je 0x99c769
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.QuicAllowed
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00a78f21
add esp, 0x124
ret
push str.QuicAllowed
call fcn.0094c180
cmp al, bl
je 0x99c7ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x99c7ba
push str.QuicAllowed
call fcn.00989f40
cmp eax, ebx
jne 0x99c7ba
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00968110
test eax, eax
je 0x99c7cc
lea eax, [esp + 0x1c]
call fcn.0095f950
mov ecx, dword [esp + 0x128]
pop esi
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x124
ret
Function at 0x99c7f0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x48
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
lea eax, [esp + 0x18]
mov ecx, 0xc
mov esi, 0xaa21e4
lea edi, [esp + 0x1c]
push eax
rep movsd dword es:[edi], dword [esi]
push str.RestrictedEnvironmentBk
lea ecx, [esp + 0x24]
mov edx, 0x80000002
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.0094c0d0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
je 0x99c895
mov eax, dword [esp + 0x18]
mov esi, str.RestrictedEnvironment
lea ebx, [esp + 0x1c]
mov ecx, 0x80000002
call fcn.0094be90
push str.RestrictedEnvironmentBk
mov ecx, ebx
mov edx, 0x80000002
call fcn.0094c180
cmp al, 1
je 0x99c895
call edi
cmp eax, 2
jne 0x99c895
push str.RestrictedEnvironmentBk
call fcn.00989f40
cmp eax, 1
jne 0x99c895
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x10]
push ecx
push str.BlockControlPanelBk
lea ecx, [esp + 0x24]
mov edx, 0x80000002
call fcn.0094c0d0
test al, al
je 0x99c8fb
mov eax, dword [esp + 0x10]
mov esi, str.BlockControlPanel
lea ebx, [esp + 0x1c]
mov ecx, 0x80000002
call fcn.0094be90
push str.BlockControlPanelBk
mov ecx, ebx
mov edx, 0x80000002
call fcn.0094c180
cmp al, 1
je 0x99c8fb
call edi
cmp eax, 2
jne 0x99c8fb
push str.BlockControlPanelBk
call fcn.00989f40
cmp eax, 1
jne 0x99c8fb
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [esp + 0x14]
push edx
push str.BlockSoftwareInstallationBk
lea ecx, [esp + 0x24]
mov edx, 0x80000002
call fcn.0094c0d0
test al, al
je 0x99c961
mov eax, dword [esp + 0x14]
mov esi, str.BlockSoftwareInstallation
lea ebx, [esp + 0x1c]
mov ecx, 0x80000002
call fcn.0094be90
push str.BlockSoftwareInstallationBk
mov ecx, ebx
mov edx, 0x80000002
call fcn.0094c180
cmp al, 1
je 0x99c961
call edi
cmp eax, 2
jne 0x99c961
push str.BlockSoftwareInstallationBk
call fcn.00989f40
cmp eax, 1
jne 0x99c961
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x48
ret
Function at 0x99dda0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x220
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push eax
mov esi, ecx
xor ebx, ebx
push str.AVExternalRegisterWSC
mov ecx, str.SOFTWAREMicroWorld
mov edx, 0x80000002
mov dword [esp + 0x14], ebx
call fcn.0094c0d0
mov dword [edi], ebx
mov dword [esi], ebx
call fcn.00a65470
test eax, eax
je 0x99dea0
push 0x103
lea ecx, [esp + 0x19]
push ebx
push ecx
mov byte [esp + 0x20], bl
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea edx, [esp + 0x121]
push ebx
push edx
mov byte [esp + 0x128], bl
call fcn.00a7ffb0
add esp, 0xc
mov dword [esi], 1
xor ebp, ebp
mov dword [esp + 0x10], ebx
call fcn.00968110
test eax, eax
je 0x99de41
lea eax, [esp + 0x10]
push eax
call fcn.009681c0
add esp, 4
mov ebp, eax
push 0x104
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea esi, [esp + 0x14]
call fcn.00960950
mov edx, esi
push edx
lea eax, [esp + 0x120]
push str._sdriverselamesn.sys
push eax
call fcn.00a78f30
add esp, 0xc
push ebx
push ebx
xor edx, edx
lea ecx, [esp + 0x124]
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x99de8f
mov dword [edi], 1
cmp ebp, ebx
je 0x99dea0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00968240
add esp, 4
mov ecx, dword [esp + 0x228]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x220
ret

Function at 0x99dec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push edi
xor edi, edi
cmp byte [0xc01748], 0
jne 0x99def7
push 0x104
push 0xc01748
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call fcn.00968110
test eax, eax
je 0x99df7e
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], edi
call fcn.009681c0
add esp, 4
test eax, eax
je 0x99dfe6
push 0xc01748
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
call fcn.00960910
push str.driverselamesn.sys
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
push 0
xor edx, edx
lea ecx, [esp + 0x18]
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x99df5b
lea edi, [eax + 1]
mov eax, dword [esp + 0xc]
push eax
call fcn.00968240
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
push 0xc01748
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esp + 0x10], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x99dfbf
lea eax, [esp + 0x10]
nop
inc eax
cmp byte [eax], 0
jne 0x99dfa0
lea edx, [esp + 0x10]
sub eax, edx
je 0x99dfbf
cmp byte [esp + eax + 0xf], 0x5c
je 0x99dfbf
push 0xaa1564
mov eax, edx
push eax
call esi
push str.driverselamesn.sys
lea ecx, [esp + 0x14]
push ecx
call esi
push 1
push 0
xor edx, edx
lea ecx, [esp + 0x18]
call fcn.0095a0f0
add esp, 8
test eax, eax
mov eax, 1
je 0x99dfe8
mov eax, edi
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
Function at 0x99ebe0
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
cmp dword [esp + 0x10], 0
push edi
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
jne 0x99ecca
cmp dword [0xbda960], 0
je 0x99ecca
cmp byte [0xb55508], 0
je 0x99ecca
call fcn.00a65470
test eax, eax
je 0x99ec48
push 0xb52b54
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0xc0184c], 0
jne 0x99ecbf
mov dword [0xc0184c], 1
push 0
jmp 0x99ecb0
push 1
call fcn.00a65750
add esp, 4
test eax, eax
je 0x99ecca
lea eax, [esp + 0x14]
push eax
push str.AVDoNotUseELAM
mov ecx, str.SOFTWAREMicroWorld
mov edx, 0x80000002
mov dword [esp + 0x1c], 0
call fcn.0094c0d0
cmp dword [esp + 0x14], 0
je 0x99ecca
xor edi, edi
mov ecx, str.eScanProtServ
call fcn.009620b0
test eax, eax
je 0x99ecca
push 0xb52b54
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0xc01850], edi
jne 0x99ecbf
lea ecx, [esp + 0x14]
mov dword [0xc01850], 1
push ecx
push 0
push 0x99e000
call fcn.00a791b2
add esp, 0xc
push 0xb52b54
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edi, [esp + 0xc]
lea ecx, [esp + 8]
call fcn.0099dda0
test eax, eax
jne 0x99ecef
cmp dword [esp + 8], eax
jne 0x99ece8
xor eax, eax
pop edi
add esp, 0xc
ret
cmp dword [esp + 0xc], 0
je 0x99ece1
mov eax, 1
pop edi
add esp, 0xc
ret
Function at 0x99f0e0
Capabilities:
Delete service
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0xb13030
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0xb196ec]
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 str.eScan_Monitor_Service
call fcn.00956740
add esp, 8
mov ebx, eax
cmp ebx, 1
jne 0x99f156
push eax
mov ecx, str.eScan_Monitor_Service
call fcn.00954c00
add esp, 4
test eax, eax
jne 0x99f156
xor edi, edi
mov ecx, str.eScan_Monitor_Service
call fcn.009620b0
test eax, eax
je 0x99f214
mov dword [ebp - 0x1c], 0x1e
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x99f214
push 0xf01ff
push str.eScan_Monitor_Service
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x99f1f3
cmp ebx, 1
jne 0x99f1e5
push 0xb52b6c
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x99f1e5
push 0x3e8
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea esp, [esp]
push 0xb52b6c
push esi
call ebx
test eax, eax
je 0x99f1e2
cmp dword [0xb52b70], 3
jne 0x99f1e2
push 0x3e8
call edi
sub dword [ebp - 0x1c], 1
jne 0x99f1c0
mov edi, dword [ebp - 0x20]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x99f214
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 0x99f410
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0xb13db8
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0xb196ec]
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, ecx
mov eax, dword [ebp + 8]
mov esi, edx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp eax, 5
je 0x99f489
cmp eax, 0xb
jne 0x99f614
cmp dword [0xbd0664], ebx
je 0x99f47c
push esi
push edi
push edi
push str._RDI__SERVICE_CONTROL_DEVICEEVENT__EventType___u__0x_x___EventData__0x_x_
push ebx
call fcn.0096a780
add esp, 0x14
push edi
mov ecx, esi
call fcn.0099d580
jmp 0x99f614
cmp dword [0xbda968], ebx
je 0x99f49f
push str._MONSERV__System_going_for_Shutdown
push ebx
call fcn.0096a780
add esp, 8
call fcn.0098b510
test eax, eax
je 0x99f5f0
mov dword [ebp - 0x32c], 0x3c
lea eax, [ebp - 0x32c]
push eax
push str.SendSessionEvents
mov ecx, str.SoftwareMicroWorldeScan_for_Windows
mov edx, 0x80000002
call fcn.0094c0d0
cmp dword [ebp - 0x32c], ebx
je 0x99f5f0
cmp byte [0xc01858], bl
jne 0x99f588
mov byte [ebp - 0x120], bl
push 0x103
push ebx
lea ecx, [ebp - 0x11f]
push ecx
call fcn.00a7ffb0
add esp, 0xc
lea eax, [ebp - 0x120]
call fcn.00954170
lea ecx, [ebp - 0x120]
mov edx, 0xc01858
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x99f520
mov ecx, 0xc01858
call fcn.00960910
mov eax, 0xc01858
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x99f540
mov edx, dword [str.ESCAN.LAN]
mov dword [eax], edx
mov ecx, dword [0xab33c8]
mov dword [eax + 4], ecx
mov dx, word [0xab33cc]
mov word [eax + 8], dx
push 0xc01858
push 0x104
push 0xc01960
push 0xab045c
push 0xab0464
push str.SCANINST
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 0x224], bl
push 0x103
push ebx
lea eax, [ebp - 0x223]
push eax
call fcn.00a7ffb0
xor ebx, ebx
lea esi, [ebp - 0x224]
call fcn.00985ed0
mov ecx, esi
push ecx
push str.PC_SHUTDOWN___s_
lea edx, [ebp - 0x328]
push edx
call fcn.00a78f30
add esp, 0x18
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.eScan_Monitor
push 0xc01960
lea eax, [ebp - 0x328]
push eax
push 0xaa154c
push ebx
push 0x6b2
mov ecx, str.eScan_Monitor
call fcn.00982e00
mov ecx, 0xbda964
call fcn.0099dc60
jmp 0x99f614
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.00a78f21
mov esp, ebp
pop ebp
ret 4