joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1053199
Capabilities:
Delete file

Disassembly:
push 0x1c
mov eax, 0x10dc16e
call fcn.010a0c60
mov eax, dword [0x10ed030]
mov edi, dword [ebp + 8]
cmp eax, 0x10ed030
je 0x10531d8
test byte [eax + 0x1c], 1
je 0x10531d8
cmp byte [eax + 0x19], 5
jb 0x10531d8
push dword [edi + 4]
push 0x1005120
push 0xcb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
push 0x10f1178
lea ecx, [ebp + 8]
call fcn.0102847f
mov esi, 0x104
xor ebx, ebx
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.010286c1
push esi
push eax
call fcn.0104de1c
test eax, eax
jne 0x1053387
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.0102f2bd
push 0x1001900
lea ecx, [ebp + 8]
call fcn.01028aa3
push 0x10055f4
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0103f1ed
cmp dword [edi + 4], ebx
mov byte [ebp - 4], 1
jle 0x105337c
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
mov ecx, edi
call fcn.0106144a
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.010520a1
push 0x10055e8
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.0103f1ed
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.01028079
push dword [ebp - 0x18]
call esi
xor edx, edx
test eax, eax
jne 0x105328e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, dword [0x10ed030]
cmp ecx, 0x10ed030
je 0x10532c1
test byte [ecx + 0x1c], 2
je 0x10532c1
cmp byte [ecx + 0x19], 5
jb 0x10532c1
push edx
push dword [ebp - 0x18]
push 0x1005120
push 0xcc
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01059d60
mov dword [ebp - 0x14], 0x10051f0
mov dword [ebp - 0x1c], 6
push ebx
mov ecx, edi
call fcn.0106144a
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.010520a1
push dword [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0103f1ed
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.01028079
push dword [ebp - 0x10]
call esi
xor edx, edx
test eax, eax
jne 0x1053318
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, dword [0x10ed030]
cmp ecx, 0x10ed030
je 0x105334b
test byte [ecx + 0x1c], 2
je 0x105334b
cmp byte [ecx + 0x19], 5
jb 0x105334b
push edx
push dword [ebp - 0x10]
push 0x1005120
push 0xcd
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01059d60
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.01028079
add dword [ebp - 0x14], 0xa
dec dword [ebp - 0x1c]
jne 0x10532cf
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.01028079
inc ebx
cmp ebx, dword [edi + 4]
jl 0x1053243
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.01028079
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10533ae
test byte [eax + 0x1c], 1
je 0x10533ae
push 0x1005120
push 0xce
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.01028079
call fcn.010a0d4c
ret 4
Function at 0x1062000
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 0x106201c
mov eax, 0x8000ffff
jmp 0x10620ff
lea ecx, [esi + 0x24]
mov dword [ebp - 4], ecx
call fcn.0102c2e8
cmp eax, edi
jl 0x10620ff
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 0x1062055
mov ecx, dword [ebp - 4]
call fcn.01061117
call fcn.0102c301
jmp 0x10620fe
push edi
push edi
push edi
push edi
call ebx
mov dword [ebp - 8], eax
cmp eax, edi
je 0x10620c3
push edi
push edi
push eax
mov ecx, esi
call fcn.01061da7
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x106208a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.010617a9
jmp 0x10620fb
push edi
push edi
push edi
push edi
call ebx
mov ebx, eax
cmp ebx, edi
je 0x10620c3
push edi
push edi
push ebx
mov ecx, esi
call fcn.01061da7
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x10620aa
push ebx
jmp 0x1062076
lea eax, [esi + 4]
push eax
push edi
push esi
push 0x1061e49
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
cmp eax, edi
jne 0x10620e4
call fcn.0102c301
push 0x2710
mov ecx, esi
mov ebx, eax
call fcn.010617a9
cmp eax, edi
jge 0x10620e0
cmp ebx, edi
jl 0x10620e0
mov ebx, eax
mov eax, ebx
jmp 0x10620fe
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10620fb
call fcn.0102c301
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x109a3e1
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 0x109a4d8
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 0x109a4d7
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 0x109a4cf
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 7
je 0x109a4ba
cmp ecx, 8
je 0x109a4ba
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 0x109a4b3
mov eax, dword [ebp + 8]
push dword [eax + 4]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x109a4a2
mov dword [ebx], edi
xor edi, edi
xor esi, esi
jmp 0x109a4aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x109a4bf
mov esi, 0x8007000e
jmp 0x109a4bf
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 0x109c0f5
Capabilities:
Get routing table

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109c12a
test byte [eax + 0x1c], 1
je 0x109c12a
cmp byte [eax + 0x19], 5
jb 0x109c12a
push dword [ebp + 8]
push 0x1009c48
push 0x41
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
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 0x109c14e
mov esi, 0x80004003
jmp 0x109c212
push 0x3c
call fcn.010a0a62
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x109c166
mov esi, 0x8007000e
jmp 0x109c212
push edi
lea eax, [ebp - 4]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x109c19d
push ebx
call fcn.010a0a51
push dword [ebp - 4]
call fcn.010a0a62
mov ebx, eax
pop ecx
pop ecx
cmp ebx, edi
je 0x109c15c
push edi
lea eax, [ebp - 4]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, edi
je 0x109c1b1
jmp 0x109c19f
cmp eax, edi
jle 0x109c1ab
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x109c212
mov ecx, dword [ebx]
cmp ecx, edi
jbe 0x109c1dc
lea eax, [ebx + 8]
mov edx, ecx
cmp dword [eax - 4], edi
jne 0x109c1d6
cmp dword [eax], edi
jne 0x109c1d6
mov ecx, dword [eax + 0x20]
cmp ecx, dword [ebp - 0xc]
jae 0x109c1d6
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ecx
add eax, 0x38
dec edx
jne 0x109c1bc
push edi
lea eax, [ebp - 8]
push eax
push 2
call fcn.010a45a3
mov esi, eax
cmp esi, edi
jl 0x109c212
mov eax, dword [ebp - 8]
jmp 0x109c209
mov ecx, dword [ebp - 0x10]
cmp dword [eax + 4], ecx
je 0x109c265
cmp ecx, 0xffffffff
jne 0x109c206
cmp dword [eax + 0x44], 1
je 0x109c265
mov eax, dword [eax + 8]
cmp eax, edi
jne 0x109c1f3
mov esi, 0x80004005
push ebx
call fcn.010a0a51
push dword [ebp - 8]
call fcn.010a0a51
pop ecx
pop ecx
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109c25c
test byte [eax + 0x1c], 1
je 0x109c25c
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 0x109c25c
push esi
push 0x1009c48
push 0x42
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
mov eax, dword [eax + 0x10]
jmp 0x109c281
cmp dword [eax + 0xc], edi
je 0x109c27e
mov ecx, dword [eax + 0x10]
cmp ecx, edi
jle 0x109c27e
cmp ecx, 0x80
jbe 0x109c287
mov eax, dword [eax + 8]
cmp eax, edi
jne 0x109c26a
jmp 0x109c20d
push ecx
push dword [eax + 0xc]
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x109c212
Function at 0x109ee37
Capabilities:
Create thread

Disassembly:
push 0x10
mov eax, 0x10dfd86
call fcn.010a0c98
mov esi, ecx
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109ee72
test byte [eax + 0x1c], 1
je 0x109ee72
cmp byte [eax + 0x19], 5
jb 0x109ee72
push dword [ebp + 8]
push 0x1009dd0
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
push 1
push esi
lea ecx, [ebp - 0x1c]
call fcn.0102eef8
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 0x109ef54
lea edi, [esi + 0x1c]
mov ecx, edi
call fcn.0102ef2a
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x109eeb9
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.010306fd
mov eax, dword [eax]
mov dword [eax], ebx
cmp dword [ebp - 0x14], ebx
jne 0x109eea5
mov eax, dword [esi + 0x4c]
cmp eax, ebx
jne 0x109eec5
mov eax, 0x100a748
push eax
lea ecx, [ebp - 0x14]
call fcn.0109e88a
push 1
push 0x10000
push dword [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.010ad447
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x109ef33
push eax
call fcn.010adcb8
test eax, eax
je 0x109ef33
push dword [ebp + 8]
mov ecx, esi
call fcn.0109e55a
mov esi, eax
cmp esi, ebx
jl 0x109ef49
push ebx
push ebx
push ebx
push 0x109eca8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x109ef49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x109ef49
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x109ef47
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x109ef59
mov esi, 0x80004005
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109ef93
test byte [eax + 0x1c], 1
je 0x109ef93
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 0x109ef93
push esi
push 0x1009dd0
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
cmp byte [ebp - 0x18], bl
je 0x109efa1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
call fcn.010a0d4c
ret 4
Function at 0x109efb0
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x10dfdb1
call fcn.010a0d0e
mov ebx, ecx
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109efe5
test byte [eax + 0x1c], 1
je 0x109efe5
push 0x1009dd0
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
push 0x10f1178
lea ecx, [ebp - 0x220]
call fcn.0102847f
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebx + 0x18], edi
je 0x109f0da
lea eax, [ebp - 0x21c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x109f01e
cmp eax, esi
jb 0x109f03c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x109f032
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x109f0da
push 0x1009ea0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push 0x1009e90
push eax
mov byte [ebp - 4], 1
call fcn.0102ad35
add esp, 0x10
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109f090
test byte [eax + 0x1c], 2
je 0x109f090
cmp byte [eax + 0x19], 4
jb 0x109f090
push dword [ebp - 0x220]
push 0x1009dd0
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.010ad8d5
test eax, eax
jne 0x109f0be
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x109f0ba
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x109f0da
and dword [ebx + 0x18], 0
jmp 0x109f0da
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x109f114
test byte [eax + 0x1c], 1
je 0x109f114
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 0x109f114
push edi
push 0x1009dd0
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.01028079
mov eax, edi
call fcn.010a0d79
ret
Function at 0x109f9cb
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x10dfe96
call fcn.010a0c60
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 0x109fabc
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
push edi
push 0x1009ef0
push 0x80000002
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.010292e8
mov dword [ebp + 8], eax
mov eax, dword [0x10ed030]
mov ebx, 0x10ed030
cmp eax, ebx
je 0x109fa69
test byte [eax + 0x1c], 2
je 0x109fa69
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 0x109fa69
push dword [ebp + 8]
push 0x1009ec4
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
cmp dword [ebp + 8], esi
jne 0x109fab2
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.010a4160
mov ecx, dword [0x10ed030]
cmp ecx, ebx
je 0x109fab2
test byte [ecx + 0x1c], 2
je 0x109fab2
movzx edx, byte [ecx + 0x19]
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffd
add ebx, 5
cmp edx, ebx
jl 0x109fab2
push eax
push 0x1009ec4
push 0x2a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010294b2
lea ecx, [ebp - 0x3c]
call fcn.010292ca
jmp 0x109fae2
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.01028b87
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.01033792
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.01028079
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0x1009ef0
push 0x80000002
call ebx
test eax, eax
jne 0x109fb76
mov dword [ebp + 8], esi
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x2c]
jge 0x109fb6a
push eax
lea ecx, [ebp - 0x30]
call fcn.0106144a
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 0x109fb62
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push 0x1009ed4
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x109fb56
cmp dword [ebp - 0x20], esi
je 0x109fb56
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 0x109fb01
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x30]
call fcn.010322ee
mov eax, dword [ebp - 0x18]
call fcn.010a0d4c
ret 4
Function at 0x10a04ef
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.010a0430
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 0x10a0562
cmp dword [ebp - 0x94], 5
jb 0x10a0583
jmp 0x10a057f
cmp dword [ebp - 0x88], 1
jne 0x10a0583
cmp dword [ebp - 0x94], 4
ja 0x10a057f
jne 0x10a0583
cmp dword [ebp - 0x90], 0
jbe 0x10a0583
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1009f64
call fcn.01027bb1
test eax, eax
jge 0x10a05a4
mov byte [0x10efb68], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.010a0c4b
leave
ret
Function at 0x10a191c
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 0x10a1953
test byte [eax + 0x1c], 1
je 0x10a1953
push 0x100a054
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
mov eax, dword [0x10ed030]
cmp dword [ebp + 8], 2
je 0x10a1963
cmp dword [ebp + 8], 3
je 0x10a1963
xor ebx, ebx
jmp 0x10a1966
xor ebx, ebx
inc ebx
cmp eax, esi
je 0x10a1989
test byte [eax + 0x1c], 2
je 0x10a1989
cmp byte [eax + 0x19], 4
jb 0x10a1989
push ebx
push 0x100a054
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
cmp ebx, 1
jne 0x10a1a76
mov ecx, dword [ebp - 4]
push ebx
call fcn.010a1811
mov ebx, eax
mov eax, dword [0x10ed030]
cmp eax, esi
je 0x10a19c5
test byte [eax + 0x1c], 2
je 0x10a19c5
cmp byte [eax + 0x19], 4
jb 0x10a19c5
push ebx
push 0x100a054
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
cmp ebx, 1
jne 0x10a1a76
cmp dword [ebp + 8], 2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x10a1a22
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 0x10a1a27
call edi
mov ecx, dword [0x10ed030]
cmp ecx, esi
je 0x10a1a22
test byte [ecx + 0x1c], 2
je 0x10a1a22
cmp byte [ecx + 0x19], 2
jb 0x10a1a22
push eax
push 0x100a054
push 0x1d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010294b2
cmp ebx, 1
jne 0x10a1a75
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 0x10a1a75
call edi
mov ecx, dword [0x10ed030]
cmp ecx, esi
je 0x10a1a75
test byte [ecx + 0x1c], 2
je 0x10a1a75
cmp byte [ecx + 0x19], 4
jb 0x10a1a75
push eax
push 0x100a054
push 0x1e
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010294b2
pop edi
mov ecx, dword [ebp - 4]
call fcn.010a1781
mov eax, dword [0x10ed030]
cmp eax, esi
je 0x10a1aa6
test byte [eax + 0x1c], 1
je 0x10a1aa6
cmp byte [eax + 0x19], 5
jb 0x10a1aa6
push ebx
push 0x100a054
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x10a1ab3
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, 0x100a054
cmp eax, esi
je 0x10a1ae6
test byte [eax + 0x1c], 1
je 0x10a1ae6
push edi
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
mov ecx, dword [ebp - 8]
push 0
call fcn.010a1811
mov dword [ebp - 4], eax
mov eax, dword [0x10ed030]
cmp eax, esi
je 0x10a1b19
test byte [eax + 0x1c], 2
je 0x10a1b19
cmp byte [eax + 0x19], 4
jb 0x10a1b19
push dword [ebp - 4]
push edi
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
cmp dword [ebp - 4], 1
jne 0x10a1b62
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 0x10a1b62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x10ed030]
cmp ecx, esi
je 0x10a1b62
test byte [ecx + 0x1c], 2
je 0x10a1b62
cmp byte [ecx + 0x19], 4
jb 0x10a1b62
push eax
push edi
push 0x22
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010294b2
mov ecx, dword [ebp - 8]
call fcn.010a1781
mov eax, dword [0x10ed030]
cmp eax, esi
je 0x10a1b90
test byte [eax + 0x1c], 1
je 0x10a1b90
cmp byte [eax + 0x19], 5
jb 0x10a1b90
push dword [ebp - 4]
push edi
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x10a20dd
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.010a1fa1
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
neg esi
push 0x100a148
sbb esi, esi
push 0x80000002
neg esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10a2165
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x10
push 0x100a128
push 0x100a11c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x10a2157
cmp dword [ebp - 8], 4
jne 0x10a2157
cmp dword [ebp - 0xc], edi
sete al
mov esi, eax
cmp dword [ebp - 4], edi
je 0x10a2165
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x10a221f
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.010292e8
mov edi, eax
cmp edi, esi
je 0x10a2291
lea ecx, [ebp - 0x214]
call fcn.010292ca
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010a0c4b
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10a22af
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.010a221f
cmp eax, esi
jne 0x10a22fa
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 0x10a2299
lea ecx, [ebp - 0x214]
call fcn.010292ca
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.010a1dd7
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.010292ca
mov eax, esi
jmp 0x10a2281