joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101d712
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x1c
mov eax, 0x103062d
call fcn.0102b20f
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
push 0x2001f
push 0x1002c48
push 0x80000002
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.0101c831
cmp eax, edi
je 0x101d77e
jle 0x101d756
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push 0x1003288
push edi
push 0x10
push 0x1035128
call fcn.0102ca9a
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.0101c7be
mov eax, esi
call fcn.0102b2fb
ret
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push edi
push dword [ebp - 0x28]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
je 0x101d7d4
jle 0x101d7ae
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push 0x10031a0
push edi
push 0x10
push 0x1035128
call fcn.0102ca9a
mov edi, esi
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.0101c7be
mov eax, edi
jmp 0x101d778
cmp dword [ebp - 0x18], edi
jne 0x101d7ee
push edi
push 0x1003108
push edi
push 2
push 0x1035128
call fcn.0102ca9a
jmp 0x101d7c5
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0102a64e
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x101d82b
push 0x1003088
push edi
push 0x10
push 0x1035128
call fcn.0102ca9a
add esp, 0x10
mov edi, 0x8007000e
jmp 0x101d7c8
push dword [ebp - 0x14]
push edi
push ebx
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov esi, 0x1035128
cmp eax, edi
jbe 0x101d8db
push ebx
push 0x1003008
push 5
push 2
push esi
call fcn.0102ca9a
mov eax, dword [ebp - 0x1c]
add esp, 0x14
push dword [ebp - 0x14]
dec eax
push ebx
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, edi
je 0x101d88e
jle 0x101d880
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x1002f38
push edi
mov dword [ebp - 0x10], eax
push 0x10
jmp 0x101d8c9
push ebx
lea ecx, [ebp - 0x28]
call fcn.0101c738
cmp eax, edi
je 0x101d8bf
jle 0x101d8a7
and eax, 0xffff
or eax, 0x80070000
push eax
push ebx
push 0x1002e20
push edi
push 0x10
push esi
mov dword [ebp - 0x10], eax
call fcn.0102ca9a
add esp, 0x18
jmp 0x101d8d2
push ebx
push 0x1002d90
push 5
push 2
push esi
call fcn.0102ca9a
add esp, 0x14
dec dword [ebp - 0x1c]
jne 0x101d84b
push ebx
call fcn.0102a5ce
mov dword [esp], 0x1002d18
push 5
push 2
push esi
call fcn.0102ca9a
mov edi, dword [ebp - 0x10]
add esp, 0x10
jmp 0x101d7c8
Function at 0x101d902
Capabilities:
Create directory
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10350f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x214]
push eax
push 1
push 0x1003388
xor ebx, ebx
mov dword [ebp - 0x218], 0xc
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x101d967
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x101d960
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x101d9e8
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1003370
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x101d94c
push 0x100334c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0101cdf6
mov esi, eax
cmp esi, edi
jl 0x101d9e8
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x101d94c
push 0x1003318
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
cmp ebx, edi
je 0x101d94c
push ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp - 0x214], edi
je 0x101d9fc
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebx, edi
je 0x101da07
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102b1ee
leave
ret
Function at 0x101da1d
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x23c
mov eax, 0x1030658
call fcn.0102b282
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push ecx
push eax
push 0x1003790
push 5
push 2
mov esi, 0x1035128
push esi
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x23c], edi
call fcn.0102ca9a
xor ebx, ebx
add esp, 0x18
cmp edi, ebx
jne 0x101da81
push 0x1003728
push ebx
push 0x10
push esi
call fcn.0102ca9a
add esp, 0x10
mov eax, 0x80070057
jmp 0x101dbcb
mov dword [edi], 1
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
push 0x20019
mov edi, 0x1002430
push edi
push 0x80000002
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], ebx
call fcn.0101c831
cmp eax, ebx
je 0x101daeb
jle 0x101dacd
and eax, 0xffff
or eax, 0x80070000
push eax
push edi
push 0x10036a8
push ebx
push 0x10
push esi
mov dword [ebp - 0x21c], eax
call fcn.0102ca9a
add esp, 0x18
jmp 0x101dbba
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], 0x104
lea eax, [ebp - 0x248]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x240], eax
cmp eax, ebx
jne 0x101dbd3
cmp dword [ebp - 0x224], ebx
jbe 0x101dbf8
push dword [ebp - 0x228]
lea eax, [ebp - 0x218]
push dword [ebp - 0x22c]
push eax
push 0x1003600
push 3
push 2
push esi
call fcn.0102ca9a
push dword [ebp - 0x22c]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
add esp, 0x24
test eax, eax
je 0x101dbf8
push dword [ebp - 0x228]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x101dbba
mov eax, dword [ebp - 0x23c]
mov dword [eax], ebx
lea ecx, [ebp - 0x238]
call fcn.0101c7be
mov eax, dword [ebp - 0x21c]
call fcn.0102b314
ret 0xc
jle 0x101dbdf
and eax, 0xffff
or eax, 0x80070000
push eax
push edi
push 0x1003560
push ebx
push 0x10
push esi
mov dword [ebp - 0x21c], eax
call fcn.0102ca9a
add esp, 0x18
inc dword [ebp - 0x220]
mov dword [ebp - 0x224], 0x104
mov ecx, 0x208
lea eax, [ebp - 0x218]
mov byte [eax], bl
inc eax
dec ecx
jne 0x101dc13
cmp dword [ebp - 0x240], ebx
je 0x101db19
jmp 0x101dbba
Function at 0x1020272
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push esi
push ecx
push 0x101f8fb
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
jne 0x10202b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x10202b3
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x10202c7
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x1021b33
Capabilities:
Create thread

Disassembly:
push 0x24
mov eax, 0x1030bfe
call fcn.0102b20f
mov ebx, ecx
xor esi, esi
push 0x1007f48
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call fcn.0101cc80
push 0x1007fa8
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.0101cc80
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
mov edi, 0x1035128
cmp eax, esi
je 0x1021b80
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
jne 0x1021b9a
push 0x1009880
push esi
push 0x12
push edi
call fcn.0102ca9a
add esp, 0x10
mov dword [ebp - 0x10], 0x8007000e
jmp 0x1021bfc
push esi
push esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push 0x1021ac8
push esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
mov dword [ebp - 0x2c], ecx
call ebx
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x1021bdd
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push 0x1021ac8
push esi
push esi
call ebx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x1021bdd
cmp eax, esi
jne 0x1021bfc
mov dword [ebp - 0x10], 0x80004005
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1009808
push esi
push 0x12
push edi
call fcn.0102ca9a
add esp, 0x14
cmp dword [ebp - 0x20], esi
je 0x1021c43
xor eax, eax
cmp dword [ebp - 0x1c], esi
push 0x493e0
setne al
push 1
lea ecx, [ebp - 0x20]
push ecx
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
je 0x1021c43
cmp eax, 1
je 0x1021c43
cmp eax, 2
je 0x1021c43
push eax
push 0x1009778
push esi
push 0x12
push edi
call fcn.0102ca9a
add esp, 0x14
mov dword [ebp - 0x10], 0x80004005
push dword [ebp - 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
call fcn.0102b2fb
ret
Function at 0x1023498
Capabilities:
Compare security identifiers
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
cmp dword [ebx + 0x124], esi
jne 0x102368e
mov eax, dword [ebx + 0x130]
push edi
cmp eax, esi
je 0x1023558
lea ecx, [ebp - 8]
push ecx
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_GetAce]
jmp 0x1023554
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x1023558
movzx ecx, byte [eax]
xor edi, edi
cmp ecx, 9
jg 0x10234ff
je 0x10234fa
sub ecx, edi
je 0x10234fa
dec ecx
je 0x1023517
sub ecx, 4
jmp 0x1023505
mov esi, dword [eax + 4]
jmp 0x102351a
sub ecx, 0xa
je 0x1023517
dec ecx
je 0x102350f
dec ecx
jne 0x1023538
mov edi, dword [eax + 4]
jmp 0x1023512
mov esi, dword [eax + 4]
add eax, 0x2c
jmp 0x102351d
mov edi, dword [eax + 4]
add eax, 8
test eax, eax
je 0x1023538
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1023538
or dword [ebp - 0xc], edi
or dword [ebp - 4], esi
inc dword [ebp - 0x10]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push dword [ebx + 0x130]
call dword [sym.imp.ADVAPI32.dll_GetAce]
xor esi, esi
test eax, eax
jne 0x10234db
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
and ecx, dword [ebx + 0x120]
not eax
and dword [ebp + 0x10], eax
mov edx, dword [ebp + 0x10]
mov eax, 0x120080
and edx, eax
mov dword [ebp - 4], ecx
cmp edx, eax
jne 0x1023581
or dword [ebp + 0x10], 0x20000000
mov edx, dword [ebp + 0x10]
mov eax, 0x120089
and edx, eax
cmp edx, eax
jne 0x1023596
or dword [ebp + 0x10], 0x80000000
mov edx, dword [ebp + 0x10]
mov eax, 0x120116
and edx, eax
cmp edx, eax
jne 0x10235ab
or dword [ebp + 0x10], 0x40000000
cmp dword [ebp + 0xc], 2
mov edi, 0x1035128
jne 0x10235bd
mov esi, ecx
xor esi, dword [ebp + 0x10]
jmp 0x10235ea
cmp dword [ebp + 0xc], 1
jne 0x10235cc
mov esi, ecx
not esi
and esi, dword [ebp + 0x10]
jmp 0x10235ea
push dword [ebp + 0xc]
push 0x100aba8
push esi
push 0x10
push edi
call fcn.0102ca9a
add esp, 0x14
mov dword [ebx + 0x124], 0x54f
and esi, dword [ebx + 0x120]
push esi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push dword [ebp - 4]
push 0x100ab40
push 5
push 2
push edi
call fcn.0102ca9a
add esp, 0x20
test esi, esi
je 0x102368d
mov eax, dword [ebx + 0x13c]
cmp eax, 8
jae 0x1023671
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
shl eax, 5
mov dword [eax + ebx + 0x144], ecx
mov eax, dword [ebx + 0x13c]
mov ecx, dword [ebp + 0x10]
add eax, 0xa
shl eax, 5
mov dword [eax + ebx], ecx
mov eax, dword [ebx + 0x13c]
shl eax, 5
mov dword [eax + ebx + 0x148], 3
mov eax, dword [ebx + 0x13c]
shl eax, 5
push 5
add esi, 4
lea edi, [eax + ebx + 0x14c]
pop ecx
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x13c]
jmp 0x102368d
push 0x100ab08
push 1
push 0x10
push edi
call fcn.0102ca9a
add esp, 0x10
mov dword [ebx + 0x124], 0x54f
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1023fde
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [ebp + 0xc], ebx
je 0x102401f
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebx
je 0x102401f
cmp eax, 0xb7
je 0x102401f
push eax
push dword [esi]
push 0x100b260
push ebx
push 0x10
push 0x1035128
call fcn.0102ca9a
add esp, 0x18
push esi
push 1
mov ecx, edi
call fcn.01023c70
cmp dword [edi + 0x1c], ebx
jbe 0x102404a
lea esi, [edi + 0x38]
push dword [esi + 4]
lea eax, [esi - 0x18]
push dword [esi]
mov ecx, edi
push eax
call fcn.01023498
inc ebx
add esi, 0x20
cmp ebx, dword [edi + 0x1c]
jb 0x1024031
mov ecx, edi
call fcn.01023eba
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10260df
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0102b630
mov eax, dword [0x10350f8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x1026277
push esi
xor eax, eax
mov esi, 0x7fe
push esi
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push edi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
add esi, 2
push esi
lea eax, [ebp - 0x1004]
push eax
call fcn.01026018
test eax, eax
jl 0x1026276
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
movzx eax, word [ebp - 0x100a]
push eax
movzx eax, word [ebp - 0x100c]
push eax
movzx eax, word [ebp - 0x100e]
push eax
movzx eax, word [ebp - 0x1010]
push eax
movzx eax, word [ebp - 0x1012]
push eax
movzx eax, word [ebp - 0x1016]
push eax
movzx eax, word [ebp - 0x1018]
push eax
push 0x100c828
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.01026055
add esp, 0x34
test eax, eax
jl 0x1026276
lea eax, [ebp - 0x1008]
push eax
push esi
lea eax, [ebp - 0x804]
push eax
mov dword [ebp - 0x1008], edi
call fcn.01026091
test eax, eax
jl 0x1026276
mov esi, 0x10353c8
cmp word [0x10353c8], di
jne 0x102622a
push esi
push 0x100c7fc
push edi
push edi
push 0x23
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
test eax, eax
jl 0x1026276
push 0x100c7e0
push 0x208
push esi
call fcn.01025fbb
test eax, eax
jl 0x1026276
push edi
push 0x80
push 4
push edi
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1026276
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x101c]
push eax
push dword [ebp - 0x1008]
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0102b1ee
leave
ret
Function at 0x102671c
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push edi
push 0x100d510
call fcn.010260df
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
xor ebx, ebx
pop ecx
mov dword [ebp - 4], ebx
call edi
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x102677e
call fcn.01025f61
mov dword [ebp - 4], eax
cmp eax, 0x80070420
jne 0x1026771
push 0x100d488
call fcn.010260df
mov dword [ebp - 4], ebx
jmp 0x102677d
push eax
push 0x100d440
call fcn.010260df
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
jl 0x1026861
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x10267ba
call fcn.01025f61
push eax
push 0x100d3e8
mov dword [ebp - 4], eax
call fcn.010260df
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jl 0x1026860
jmp 0x1026813
call edi
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
cmp edx, ebx
ja 0x102681b
jb 0x10267da
cmp eax, 0x186a0
ja 0x102681b
mov eax, dword [ebp - 0x1c]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x10267f6
mov ecx, 0x2710
cmp eax, ecx
jbe 0x10267f8
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x1026828
cmp dword [ebp - 0x30], 2
je 0x10267c5
jmp 0x102683d
mov eax, 0x80004004
push eax
push 0x100d388
jmp 0x1026856
call fcn.01025f61
push eax
push 0x100d330
mov dword [ebp - 4], eax
call fcn.010260df
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jl 0x1026860
cmp dword [ebp - 0x30], 4
je 0x1026860
push dword [ebp - 0x28]
call fcn.01025f7b
push eax
push 0x100d2d8
mov dword [ebp - 4], eax
call fcn.010260df
pop ecx
pop ecx
pop esi
push 0x100d2a0
call fcn.010260df
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop ebx
leave
ret 4
Function at 0x102687a
Capabilities:
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push 0x100d680
call fcn.010260df
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
pop ecx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x34]
xor ebx, ebx
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x10268de
call fcn.01025f61
push eax
push 0x100d3e8
mov dword [ebp - 4], eax
call fcn.010260df
cmp dword [ebp - 4], ebx
pop ecx
pop ecx
jl 0x10269bc
cmp dword [ebp - 0x30], 1
je 0x1026933
cmp dword [ebp - 0x30], 3
je 0x1026933
lea eax, [ebp - 0x34]
push eax
push 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x102691e
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1026933
call fcn.01025f61
push eax
push 0x100d330
jmp 0x1026929
call fcn.01025f61
push eax
push 0x100d638
mov dword [ebp - 4], eax
call fcn.010260df
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jl 0x10269bc
jmp 0x1026992
mov eax, dword [ebp - 0x1c]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x102695a
mov ecx, 0x2710
cmp eax, ecx
jbe 0x102695c
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x102699a
cmp dword [ebp - 0x30], 1
je 0x1026992
call edi
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
cmp edx, ebx
ja 0x10269a7
jb 0x1026992
cmp eax, 0x186a0
ja 0x10269a7
cmp dword [ebp - 0x30], 3
je 0x102693e
jmp 0x10269bc
call fcn.01025f61
push eax
push 0x100d5e0
jmp 0x10269b2
mov eax, 0x80004004
push eax
push 0x100d580
mov dword [ebp - 4], eax
call fcn.010260df
pop ecx
pop ecx
Function at 0x10271c3
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x100e9e0
call fcn.010260df
pop ecx
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test esi, esi
jl 0x10272a9
call fcn.01026435
mov esi, eax
test esi, esi
jl 0x10272a1
call fcn.010269d6
mov esi, eax
test esi, esi
jl 0x1027299
push 1
call fcn.01026fa1
mov esi, eax
test esi, esi
jl 0x1027291
call fcn.01026357
mov esi, eax
test esi, esi
jl 0x1027289
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
push 0x100e958
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jl 0x1027281
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x100e934
push dword [ebp - 8]
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jl 0x1027279
call fcn.01027b63
mov esi, eax
test esi, esi
jge 0x10272b6
push esi
push 0x100e030
jmp 0x10272af
push esi
push 0x100e8f0
jmp 0x10272af
push esi
push 0x100e8a8
jmp 0x10272af
push esi
push 0x100e858
jmp 0x10272af
push esi
push 0x100e7d0
jmp 0x10272af
push esi
push 0x100e780
jmp 0x10272af
push esi
push 0x100e730
jmp 0x10272af
push esi
push 0x100dea0
call fcn.010260df
pop ecx
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x100e6fc
call fcn.010260df
pop ecx
mov eax, esi
pop esi
leave
ret

Function at 0x10272d1
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x100eb2c
call fcn.010260df
pop ecx
push 2
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
cmp esi, edi
jl 0x1027385
lea eax, [ebp - 8]
push eax
push 0x20006
push edi
push 0x100e958
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jl 0x102733e
push 4
lea eax, [ebp - 4]
push eax
push 4
push edi
push 0x100e934
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
jge 0x102734b
push eax
push 0x100e8f0
jmp 0x1027344
push eax
push 0x100e8a8
call fcn.010260df
pop ecx
pop ecx
push edi
call fcn.01026fa1
mov esi, eax
cmp esi, edi
jl 0x102737d
call fcn.010263c6
mov esi, eax
cmp esi, edi
jl 0x1027375
call fcn.010269d6
mov esi, eax
cmp esi, edi
jge 0x1027392
push esi
push 0x100e780
jmp 0x102738b
push esi
push 0x100ead8
jmp 0x102738b
push esi
push 0x100ea50
jmp 0x102738b
push esi
push 0x100dea0
call fcn.010260df
pop ecx
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x100ea14
call fcn.010260df
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret