joyce8/EMBER2024-capa huggingface dataset:
Function at 0x106221e
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
je 0x106223a
mov eax, 0x8000ffff
jmp 0x106231d
lea ecx, [esi + 0x24]
mov dword [ebp - 4], ecx
call fcn.0102c259
cmp eax, edi
jl 0x106231d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
call ebx
mov dword [esi + 0x40], eax
cmp eax, edi
jne 0x1062273
mov ecx, dword [ebp - 4]
call fcn.01061537
call fcn.0102c272
jmp 0x106231c
push edi
push edi
push edi
push edi
call ebx
mov dword [ebp - 8], eax
cmp eax, edi
je 0x10622e1
push edi
push edi
push eax
mov ecx, esi
call fcn.01062079
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x10622a8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.01061a7b
jmp 0x1062319
push edi
push edi
push edi
push edi
call ebx
mov ebx, eax
cmp ebx, edi
je 0x10622e1
push edi
push edi
push ebx
mov ecx, esi
call fcn.01062079
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x10622c8
push ebx
jmp 0x1062294
lea eax, [esi + 4]
push eax
push edi
push esi
push 0x106211b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
cmp eax, edi
jne 0x1062302
call fcn.0102c272
push 0x2710
mov ecx, esi
mov ebx, eax
call fcn.01061a7b
cmp eax, edi
jge 0x10622fe
cmp ebx, edi
jl 0x10622fe
mov ebx, eax
mov eax, ebx
jmp 0x106231c
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1062319
call fcn.0102c272
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x109a285
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push esi
mov esi, 0x80070057
mov dword [ebx], ecx
cmp dword [ebp + 8], ecx
je 0x109a37c
push edi
xor eax, eax
mov dword [ebp - 0x24], ecx
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp + 0xc]
push eax
push 0x800
lea eax, [ebp - 0x24]
push eax
push ecx
mov dword [ebp + 0xc], ecx
call sub.ADVAPI32.dll_LsaOpenPolicy
mov esi, eax
mov edi, 0x10000000
or esi, edi
jl 0x109a37b
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push 0x80000000
push dword [ebp + 0xc]
call sub.ADVAPI32.dll_LsaLookupNames2
mov esi, eax
or esi, edi
jl 0x109a373
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 7
je 0x109a35e
cmp ecx, 8
je 0x109a35e
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edi, eax
test edi, edi
je 0x109a357
mov eax, dword [ebp + 8]
push dword [eax + 4]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x109a346
mov dword [ebx], edi
xor edi, edi
xor esi, esi
jmp 0x109a34e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x109a363
mov esi, 0x8007000e
jmp 0x109a363
mov esi, 0x80004005
push dword [ebp - 4]
call sub.ADVAPI32.dll_LsaFreeMemory
push dword [ebp + 8]
call sub.ADVAPI32.dll_LsaFreeMemory
push dword [ebp + 0xc]
call sub.ADVAPI32.dll_LsaClose
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x109be44
Capabilities:
Get routing table

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109be79
test byte [eax + 0x1c], 1
je 0x109be79
cmp byte [eax + 0x19], 5
jb 0x109be79
push dword [ebp + 8]
push 0x1009b58
push 0x41
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
jne 0x109be9d
mov esi, 0x80004003
jmp 0x109bf61
push 0x3c
call fcn.010a094e
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x109beb5
mov esi, 0x8007000e
jmp 0x109bf61
push edi
lea eax, [ebp - 4]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x109beec
push ebx
call fcn.010a093d
push dword [ebp - 4]
call fcn.010a094e
mov ebx, eax
pop ecx
pop ecx
cmp ebx, edi
je 0x109beab
push edi
lea eax, [ebp - 4]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, edi
je 0x109bf00
jmp 0x109beee
cmp eax, edi
jle 0x109befa
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x109bf61
mov ecx, dword [ebx]
cmp ecx, edi
jbe 0x109bf2b
lea eax, [ebx + 8]
mov edx, ecx
cmp dword [eax - 4], edi
jne 0x109bf25
cmp dword [eax], edi
jne 0x109bf25
mov ecx, dword [eax + 0x20]
cmp ecx, dword [ebp - 0xc]
jae 0x109bf25
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ecx
add eax, 0x38
dec edx
jne 0x109bf0b
push edi
lea eax, [ebp - 8]
push eax
push 2
call fcn.010a457f
mov esi, eax
cmp esi, edi
jl 0x109bf61
mov eax, dword [ebp - 8]
jmp 0x109bf58
mov ecx, dword [ebp - 0x10]
cmp dword [eax + 4], ecx
je 0x109bfb4
cmp ecx, 0xffffffff
jne 0x109bf55
cmp dword [eax + 0x44], 1
je 0x109bfb4
mov eax, dword [eax + 8]
cmp eax, edi
jne 0x109bf42
mov esi, 0x80004005
push ebx
call fcn.010a093d
push dword [ebp - 8]
call fcn.010a093d
pop ecx
pop ecx
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109bfab
test byte [eax + 0x1c], 1
je 0x109bfab
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp esi, edi
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x109bfab
push esi
push 0x1009b58
push 0x42
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
mov eax, dword [eax + 0x10]
jmp 0x109bfd0
cmp dword [eax + 0xc], edi
je 0x109bfcd
mov ecx, dword [eax + 0x10]
cmp ecx, edi
jle 0x109bfcd
cmp ecx, 0x80
jbe 0x109bfd6
mov eax, dword [eax + 8]
cmp eax, edi
jne 0x109bfb9
jmp 0x109bf5c
push ecx
push dword [eax + 0xc]
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x109bf61
Function at 0x109ebfa
Capabilities:
Create thread

Disassembly:
push 0x10
mov eax, 0x10dfb17
call fcn.010a0b84
mov esi, ecx
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109ec35
test byte [eax + 0x1c], 1
je 0x109ec35
cmp byte [eax + 0x19], 5
jb 0x109ec35
push dword [ebp + 8]
push 0x1009ce0
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
push 1
push esi
lea ecx, [ebp - 0x1c]
call fcn.0102ed97
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ebx
cmp dword [esi + 0x4c], ebx
je 0x109ed17
lea edi, [esi + 0x1c]
mov ecx, edi
call fcn.0109f1d9
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x109ec7c
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0109e728
mov eax, dword [eax]
mov dword [eax], ebx
cmp dword [ebp - 0x14], ebx
jne 0x109ec68
mov eax, dword [esi + 0x4c]
cmp eax, ebx
jne 0x109ec88
mov eax, 0x100a750
push eax
lea ecx, [ebp - 0x14]
call fcn.0109e61d
push 1
push 0x10000
push dword [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.010ad1dc
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x109ecf6
push eax
call fcn.010ada4d
test eax, eax
je 0x109ecf6
push dword [ebp + 8]
mov ecx, esi
call fcn.0109e2b5
mov esi, eax
cmp esi, ebx
jl 0x109ed0c
push ebx
push ebx
push ebx
push 0x109ea6b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x109ed0c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x109ed0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x109ed0a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x109ed1c
mov esi, 0x80004005
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109ed56
test byte [eax + 0x1c], 1
je 0x109ed56
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp esi, ebx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x109ed56
push esi
push 0x1009ce0
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
cmp byte [ebp - 0x18], bl
je 0x109ed64
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
call fcn.010a0c38
ret 4
Function at 0x109ed73
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x10dfb42
call fcn.010a0bfa
mov ebx, ecx
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109eda8
test byte [eax + 0x1c], 1
je 0x109eda8
push 0x1009ce0
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
push 0x10f1178
lea ecx, [ebp - 0x220]
call fcn.0104bdc3
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebx + 0x18], edi
je 0x109ee9d
lea eax, [ebp - 0x21c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x109ede1
cmp eax, esi
jb 0x109edff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x109edf5
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x109ee9d
push 0x1009db0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push 0x1009da0
push eax
mov byte [ebp - 4], 1
call fcn.0102aca6
add esp, 0x10
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109ee53
test byte [eax + 0x1c], 2
je 0x109ee53
cmp byte [eax + 0x19], 4
jb 0x109ee53
push dword [ebp - 0x220]
push 0x1009ce0
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e3b
push 2
push 0xa
push dword [ebp - 0x220]
push dword [ebx + 0x18]
call fcn.010ad66a
test eax, eax
jne 0x109ee81
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x109ee7d
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x109ee9d
and dword [ebx + 0x18], 0
jmp 0x109ee9d
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109eed7
test byte [eax + 0x1c], 1
je 0x109eed7
movzx ecx, byte [eax + 0x19]
xor edx, edx
test edi, edi
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x109eed7
push edi
push 0x1009ce0
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.010280a5
mov eax, edi
call fcn.010a0c65
ret
Function at 0x109f8b6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x10dfc27
call fcn.010a0b4c
xor esi, esi
push 4
pop eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
mov edi, 0x20019
cmp dword [ebp + 8], esi
jne 0x109f9a7
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
push edi
push 0x1009ef8
push 0x80000002
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.010292c5
mov dword [ebp + 8], eax
mov eax, dword [0x10ed030]
mov ebx, 0x10ed030
cmp eax, ebx
je 0x109f954
test byte [eax + 0x1c], 2
je 0x109f954
mov edx, dword [ebp + 8]
movzx ecx, byte [eax + 0x19]
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x109f954
push dword [ebp + 8]
push 0x1009dd4
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
cmp dword [ebp + 8], esi
jne 0x109f99d
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.010a410a
mov ecx, dword [0x10ed030]
cmp ecx, ebx
je 0x109f99d
test byte [ecx + 0x1c], 2
je 0x109f99d
movzx edx, byte [ecx + 0x19]
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffd
add ebx, 5
cmp edx, ebx
jl 0x109f99d
push eax
push 0x1009dd4
push 0x2a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01027ecb
lea ecx, [ebp - 0x3c]
call fcn.010292a7
jmp 0x109f9cd
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.01028b65
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.010334d5
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.010280a5
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0x1009ef8
push 0x80000002
call ebx
test eax, eax
jne 0x109fa61
mov dword [ebp + 8], esi
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x2c]
jge 0x109fa55
push eax
lea ecx, [ebp - 0x30]
call fcn.010503fb
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push edi
push esi
push eax
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x109fa4d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push 0x1009edc
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x109fa41
cmp dword [ebp - 0x20], esi
je 0x109fa41
mov dword [ebp - 0x18], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], esi
inc dword [ebp + 8]
cmp dword [ebp - 0x18], esi
je 0x109f9ec
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x30]
call fcn.01031fb3
mov eax, dword [ebp - 0x18]
call fcn.010a0c38
ret 4
Function at 0x10a03db
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10ed860]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.010a031c
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x10a044e
cmp dword [ebp - 0x94], 5
jb 0x10a046f
jmp 0x10a046b
cmp dword [ebp - 0x88], 1
jne 0x10a046f
cmp dword [ebp - 0x94], 4
ja 0x10a046b
jne 0x10a046f
cmp dword [ebp - 0x90], 0
jbe 0x10a046f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1009f6c
call fcn.01027bb1
test eax, eax
jge 0x10a0490
mov byte [0x10efb68], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.010a0b37
leave
ret
Function at 0x10a180c
Capabilities:
Modify service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], ecx
mov eax, dword [0x10ed030]
mov esi, 0x10ed030
cmp eax, esi
je 0x10a1843
test byte [eax + 0x1c], 1
je 0x10a1843
push 0x100a05c
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
mov eax, dword [0x10ed030]
cmp dword [ebp + 8], 2
je 0x10a1853
cmp dword [ebp + 8], 3
je 0x10a1853
xor ebx, ebx
jmp 0x10a1856
xor ebx, ebx
inc ebx
cmp eax, esi
je 0x10a1879
test byte [eax + 0x1c], 2
je 0x10a1879
cmp byte [eax + 0x19], 4
jb 0x10a1879
push ebx
push 0x100a05c
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
cmp ebx, 1
jne 0x10a1966
mov ecx, dword [ebp - 4]
push ebx
call fcn.010a1701
mov ebx, eax
mov eax, dword [0x10ed030]
cmp eax, esi
je 0x10a18b5
test byte [eax + 0x1c], 2
je 0x10a18b5
cmp byte [eax + 0x19], 4
jb 0x10a18b5
push ebx
push 0x100a05c
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
cmp ebx, 1
jne 0x10a1966
cmp dword [ebp + 8], 2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x10a1912
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push 3
push dword [eax + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ebx, eax
cmp ebx, 1
je 0x10a1917
call edi
mov ecx, dword [0x10ed030]
cmp ecx, esi
je 0x10a1912
test byte [ecx + 0x1c], 2
je 0x10a1912
cmp byte [ecx + 0x19], 2
jb 0x10a1912
push eax
push 0x100a05c
push 0x1d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01027ecb
cmp ebx, 1
jne 0x10a1965
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov eax, dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 8]
push 0xffffffffffffffff
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ebx, eax
cmp ebx, 1
je 0x10a1965
call edi
mov ecx, dword [0x10ed030]
cmp ecx, esi
je 0x10a1965
test byte [ecx + 0x1c], 2
je 0x10a1965
cmp byte [ecx + 0x19], 4
jb 0x10a1965
push eax
push 0x100a05c
push 0x1e
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01027ecb
pop edi
mov ecx, dword [ebp - 4]
call fcn.010a1671
mov eax, dword [0x10ed030]
cmp eax, esi
je 0x10a1996
test byte [eax + 0x1c], 1
je 0x10a1996
cmp byte [eax + 0x19], 5
jb 0x10a1996
push ebx
push 0x100a05c
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x10a19a3
Capabilities:
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [0x10ed030]
mov esi, 0x10ed030
mov edi, 0x100a05c
cmp eax, esi
je 0x10a19d6
test byte [eax + 0x1c], 1
je 0x10a19d6
push edi
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
mov ecx, dword [ebp - 8]
push 0
call fcn.010a1701
mov dword [ebp - 4], eax
mov eax, dword [0x10ed030]
cmp eax, esi
je 0x10a1a09
test byte [eax + 0x1c], 2
je 0x10a1a09
cmp byte [eax + 0x19], 4
jb 0x10a1a09
push dword [ebp - 4]
push edi
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
cmp dword [ebp - 4], 1
jne 0x10a1a52
mov eax, dword [ebp - 8]
push 0
push 0
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 4], eax
cmp eax, 1
je 0x10a1a52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x10ed030]
cmp ecx, esi
je 0x10a1a52
test byte [ecx + 0x1c], 2
je 0x10a1a52
cmp byte [ecx + 0x19], 4
jb 0x10a1a52
push eax
push edi
push 0x22
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01027ecb
mov ecx, dword [ebp - 8]
call fcn.010a1671
mov eax, dword [0x10ed030]
cmp eax, esi
je 0x10a1a80
test byte [eax + 0x1c], 1
je 0x10a1a80
cmp byte [eax + 0x19], 5
jb 0x10a1a80
push dword [ebp - 4]
push edi
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x10a2087
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], 4
mov dword [ebp - 4], edi
call fcn.010a1f4b
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
neg esi
push 0x100a150
sbb esi, esi
push 0x80000002
neg esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10a210f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x10
push 0x100a130
push 0x100a124
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x10a2101
cmp dword [ebp - 8], 4
jne 0x10a2101
cmp dword [ebp - 0xc], edi
sete al
mov esi, eax
cmp dword [ebp - 4], edi
je 0x10a210f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x10a21c9
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10ed860]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.010292c5
mov edi, eax
cmp edi, esi
je 0x10a223b
lea ecx, [ebp - 0x214]
call fcn.010292a7
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010a0b37
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10a2259
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.010a21c9
cmp eax, esi
jne 0x10a22a4
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x10a2243
lea ecx, [ebp - 0x214]
call fcn.010292a7
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.010a1cc7
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.010292a7
mov eax, esi
jmp 0x10a222b
Function at 0x10a22bd
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x230
mov eax, 0x10dfc8c
call fcn.010a0bbf
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x230], ebx
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10a2305
test byte [eax + 0x1c], 1
je 0x10a2305
cmp byte [eax + 0x19], 5
jb 0x10a2305
push ebx
push dword [esi]
push 0x100a080
push 0x59
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102c716
lea eax, [ebp - 0x21c]
xor edi, edi
push eax
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x21c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x21c], edi
je 0x10a247b
push 0x100a0a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x234], eax
cmp eax, edi
je 0x10a2489
push 0x100a0bc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x22c], eax
cmp eax, edi
je 0x10a246d
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], edi
mov eax, dword [esi]
push 0x2011f
push ebx
push eax
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], edi
call fcn.010292c5
mov dword [ebp - 0x214], eax
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10a23de
test byte [eax + 0x1c], 2
je 0x10a23de
mov edx, dword [ebp - 0x214]
movzx ecx, byte [eax + 0x19]
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x10a23de
push ebx
push dword [esi]
push dword [ebp - 0x214]
push 0x100a080
push 0x5a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106ff32
cmp dword [ebp - 0x214], edi
jne 0x10a2462
mov ebx, 0x100
jmp 0x10a240a
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.010a22bd
mov dword [ebp - 0x214], eax
cmp eax, edi
jne 0x10a2439
lea eax, [ebp - 0x23c]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x228]
mov dword [ebp - 0x218], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10a23ed
lea ecx, [ebp - 0x228]
call fcn.010292a7
cmp dword [ebp - 0x214], edi
jne 0x10a2462
push edi
push ebx
push dword [ebp - 0x230]
push dword [esi]
call dword [ebp - 0x22c]
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x228]
call fcn.010292a7
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10a2489
push ebx
mov ecx, esi
call fcn.010a21c9
mov dword [ebp - 0x214], eax
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10a24cb
test byte [eax + 0x1c], 1
je 0x10a24cb
mov edx, dword [ebp - 0x214]
movzx ecx, byte [eax + 0x19]
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x10a24cb
push dword [ebp - 0x214]
push 0x100a080
push 0x5b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
mov eax, dword [ebp - 0x214]
call fcn.010a0c51
ret 8