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

Disassembly:
push 0x1c
mov eax, 0x10301b9
call fcn.0102ad35
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.0101c571
cmp eax, edi
je 0x101d40a
jle 0x101d3e2
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push 0x1003288
push edi
push 0x10
push 0x1035128
call fcn.0102c6ab
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.0101c4fe
mov eax, esi
call fcn.0102ae21
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 0x101d460
jle 0x101d43a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push 0x10031a0
push edi
push 0x10
push 0x1035128
call fcn.0102c6ab
mov edi, esi
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.0101c4fe
mov eax, edi
jmp 0x101d404
cmp dword [ebp - 0x18], edi
jne 0x101d47a
push edi
push 0x1003108
push edi
push 2
push 0x1035128
call fcn.0102c6ab
jmp 0x101d451
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.0102a176
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x101d4b7
push 0x1003088
push edi
push 0x10
push 0x1035128
call fcn.0102c6ab
add esp, 0x10
mov edi, 0x8007000e
jmp 0x101d454
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 0x101d567
push ebx
push 0x1003008
push 5
push 2
push esi
call fcn.0102c6ab
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 0x101d51a
jle 0x101d50c
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x1002f38
push edi
mov dword [ebp - 0x10], eax
push 0x10
jmp 0x101d555
push ebx
lea ecx, [ebp - 0x28]
call fcn.0101c478
cmp eax, edi
je 0x101d54b
jle 0x101d533
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.0102c6ab
add esp, 0x18
jmp 0x101d55e
push ebx
push 0x1002d90
push 5
push 2
push esi
call fcn.0102c6ab
add esp, 0x14
dec dword [ebp - 0x1c]
jne 0x101d4d7
push ebx
call fcn.0102a0f6
mov dword [esp], 0x1002d18
push 5
push 2
push esi
call fcn.0102c6ab
mov edi, dword [ebp - 0x10]
add esp, 0x10
jmp 0x101d454
Function at 0x101d58e
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x23c
mov eax, 0x10301e4
call fcn.0102ada8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push ecx
push eax
push 0x1003548
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.0102c6ab
xor ebx, ebx
add esp, 0x18
cmp edi, ebx
jne 0x101d5f2
push 0x10034e0
push ebx
push 0x10
push esi
call fcn.0102c6ab
add esp, 0x10
mov eax, 0x80070057
jmp 0x101d73c
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.0101c571
cmp eax, ebx
je 0x101d65c
jle 0x101d63e
and eax, 0xffff
or eax, 0x80070000
push eax
push edi
push 0x1003460
push ebx
push 0x10
push esi
mov dword [ebp - 0x21c], eax
call fcn.0102c6ab
add esp, 0x18
jmp 0x101d72b
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 0x101d744
cmp dword [ebp - 0x224], ebx
jbe 0x101d769
push dword [ebp - 0x228]
lea eax, [ebp - 0x218]
push dword [ebp - 0x22c]
push eax
push 0x10033b8
push 3
push 2
push esi
call fcn.0102c6ab
push dword [ebp - 0x22c]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
add esp, 0x24
test eax, eax
je 0x101d769
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 0x101d72b
mov eax, dword [ebp - 0x23c]
mov dword [eax], ebx
lea ecx, [ebp - 0x238]
call fcn.0101c4fe
mov eax, dword [ebp - 0x21c]
call fcn.0102ae3a
ret 0xc
jle 0x101d750
and eax, 0xffff
or eax, 0x80070000
push eax
push edi
push 0x1003318
push ebx
push 0x10
push esi
mov dword [ebp - 0x21c], eax
call fcn.0102c6ab
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 0x101d784
cmp dword [ebp - 0x240], ebx
je 0x101d68a
jmp 0x101d72b
Function at 0x101fd80
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 0x101f409
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
jne 0x101fdc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x101fdc1
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x101fdd5
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 0x1021641
Capabilities:
Create thread

Disassembly:
push 0x24
mov eax, 0x103078a
call fcn.0102ad35
mov ebx, ecx
xor esi, esi
push 0x1007c88
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call fcn.0101c983
push 0x1007ce8
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.0101c983
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
mov edi, 0x1035128
cmp eax, esi
je 0x102168e
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
jne 0x10216a8
push 0x10095c0
push esi
push 0x12
push edi
call fcn.0102c6ab
add esp, 0x10
mov dword [ebp - 0x10], 0x8007000e
jmp 0x102170a
push esi
push esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push 0x10215d6
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 0x10216eb
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push 0x10215d6
push esi
push esi
call ebx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x10216eb
cmp eax, esi
jne 0x102170a
mov dword [ebp - 0x10], 0x80004005
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1009548
push esi
push 0x12
push edi
call fcn.0102c6ab
add esp, 0x14
cmp dword [ebp - 0x20], esi
je 0x1021751
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 0x1021751
cmp eax, 1
je 0x1021751
cmp eax, 2
je 0x1021751
push eax
push 0x10094b8
push esi
push 0x12
push edi
call fcn.0102c6ab
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.0102ae21
ret
Function at 0x102312d
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 0x1023323
mov eax, dword [ebx + 0x130]
push edi
cmp eax, esi
je 0x10231ed
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 0x10231e9
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x10231ed
movzx ecx, byte [eax]
xor edi, edi
cmp ecx, 9
jg 0x1023194
je 0x102318f
sub ecx, edi
je 0x102318f
dec ecx
je 0x10231ac
sub ecx, 4
jmp 0x102319a
mov esi, dword [eax + 4]
jmp 0x10231af
sub ecx, 0xa
je 0x10231ac
dec ecx
je 0x10231a4
dec ecx
jne 0x10231cd
mov edi, dword [eax + 4]
jmp 0x10231a7
mov esi, dword [eax + 4]
add eax, 0x2c
jmp 0x10231b2
mov edi, dword [eax + 4]
add eax, 8
test eax, eax
je 0x10231cd
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10231cd
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 0x1023170
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 0x1023216
or dword [ebp + 0x10], 0x20000000
mov edx, dword [ebp + 0x10]
mov eax, 0x120089
and edx, eax
cmp edx, eax
jne 0x102322b
or dword [ebp + 0x10], 0x80000000
mov edx, dword [ebp + 0x10]
mov eax, 0x120116
and edx, eax
cmp edx, eax
jne 0x1023240
or dword [ebp + 0x10], 0x40000000
cmp dword [ebp + 0xc], 2
mov edi, 0x1035128
jne 0x1023252
mov esi, ecx
xor esi, dword [ebp + 0x10]
jmp 0x102327f
cmp dword [ebp + 0xc], 1
jne 0x1023261
mov esi, ecx
not esi
and esi, dword [ebp + 0x10]
jmp 0x102327f
push dword [ebp + 0xc]
push 0x100a8e8
push esi
push 0x10
push edi
call fcn.0102c6ab
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 0x100a880
push 5
push 2
push edi
call fcn.0102c6ab
add esp, 0x20
test esi, esi
je 0x1023322
mov eax, dword [ebx + 0x13c]
cmp eax, 8
jae 0x1023306
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 0x1023322
push 0x100a848
push 1
push 0x10
push edi
call fcn.0102c6ab
add esp, 0x10
mov dword [ebx + 0x124], 0x54f
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1023c73
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 0x1023cb4
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebx
je 0x1023cb4
cmp eax, 0xb7
je 0x1023cb4
push eax
push dword [esi]
push 0x100afa0
push ebx
push 0x10
push 0x1035128
call fcn.0102c6ab
add esp, 0x18
push esi
push 1
mov ecx, edi
call fcn.01023905
cmp dword [edi + 0x1c], ebx
jbe 0x1023cdf
lea esi, [edi + 0x38]
push dword [esi + 4]
lea eax, [esi - 0x18]
push dword [esi]
mov ecx, edi
push eax
call fcn.0102312d
inc ebx
add esi, 0x20
cmp ebx, dword [edi + 0x1c]
jb 0x1023cc6
mov ecx, edi
call fcn.01023b4f
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1025caa
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0102b150
mov eax, dword [0x10350f8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x1025e42
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.01025be3
test eax, eax
jl 0x1025e41
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 0x100c568
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.01025c20
add esp, 0x34
test eax, eax
jl 0x1025e41
lea eax, [ebp - 0x1008]
push eax
push esi
lea eax, [ebp - 0x804]
push eax
mov dword [ebp - 0x1008], edi
call fcn.01025c5c
test eax, eax
jl 0x1025e41
mov esi, 0x10353c8
cmp word [0x10353c8], di
jne 0x1025df5
push esi
push 0x100c53c
push edi
push edi
push 0x23
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
test eax, eax
jl 0x1025e41
push 0x100c520
push 0x208
push esi
call fcn.01025b86
test eax, eax
jl 0x1025e41
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 0x1025e41
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.0102ad14
leave
ret
Function at 0x10262e7
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push edi
push 0x100d250
call fcn.01025caa
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 0x1026349
call fcn.01025b2c
mov dword [ebp - 4], eax
cmp eax, 0x80070420
jne 0x102633c
push 0x100d1c8
call fcn.01025caa
mov dword [ebp - 4], ebx
jmp 0x1026348
push eax
push 0x100d180
call fcn.01025caa
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
jl 0x102642c
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 0x1026385
call fcn.01025b2c
push eax
push 0x100d128
mov dword [ebp - 4], eax
call fcn.01025caa
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jl 0x102642b
jmp 0x10263de
call edi
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
cmp edx, ebx
ja 0x10263e6
jb 0x10263a5
cmp eax, 0x186a0
ja 0x10263e6
mov eax, dword [ebp - 0x1c]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x10263c1
mov ecx, 0x2710
cmp eax, ecx
jbe 0x10263c3
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 0x10263f3
cmp dword [ebp - 0x30], 2
je 0x1026390
jmp 0x1026408
mov eax, 0x80004004
push eax
push 0x100d0c8
jmp 0x1026421
call fcn.01025b2c
push eax
push 0x100d070
mov dword [ebp - 4], eax
call fcn.01025caa
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jl 0x102642b
cmp dword [ebp - 0x30], 4
je 0x102642b
push dword [ebp - 0x28]
call fcn.01025b46
push eax
push 0x100d018
mov dword [ebp - 4], eax
call fcn.01025caa
pop ecx
pop ecx
pop esi
push 0x100cfe0
call fcn.01025caa
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop ebx
leave
ret 4
Function at 0x1026445
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 0x100d3c0
call fcn.01025caa
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 0x10264a9
call fcn.01025b2c
push eax
push 0x100d128
mov dword [ebp - 4], eax
call fcn.01025caa
cmp dword [ebp - 4], ebx
pop ecx
pop ecx
jl 0x1026587
cmp dword [ebp - 0x30], 1
je 0x10264fe
cmp dword [ebp - 0x30], 3
je 0x10264fe
lea eax, [ebp - 0x34]
push eax
push 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10264e9
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 0x10264fe
call fcn.01025b2c
push eax
push 0x100d070
jmp 0x10264f4
call fcn.01025b2c
push eax
push 0x100d378
mov dword [ebp - 4], eax
call fcn.01025caa
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jl 0x1026587
jmp 0x102655d
mov eax, dword [ebp - 0x1c]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x1026525
mov ecx, 0x2710
cmp eax, ecx
jbe 0x1026527
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 0x1026565
cmp dword [ebp - 0x30], 1
je 0x102655d
call edi
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
cmp edx, ebx
ja 0x1026572
jb 0x102655d
cmp eax, 0x186a0
ja 0x1026572
cmp dword [ebp - 0x30], 3
je 0x1026509
jmp 0x1026587
call fcn.01025b2c
push eax
push 0x100d320
jmp 0x102657d
mov eax, 0x80004004
push eax
push 0x100d2c0
mov dword [ebp - 4], eax
call fcn.01025caa
pop ecx
pop ecx
push 0x100d288
call fcn.01025caa
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1026d8d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x100e720
call fcn.01025caa
pop ecx
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test esi, esi
jl 0x1026e73
call fcn.01026000
mov esi, eax
test esi, esi
jl 0x1026e6b
call fcn.010265a1
mov esi, eax
test esi, esi
jl 0x1026e63
push 1
call fcn.01026b6b
mov esi, eax
test esi, esi
jl 0x1026e5b
call fcn.01025f22
mov esi, eax
test esi, esi
jl 0x1026e53
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
push 0x100e698
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jl 0x1026e4b
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x100e674
push dword [ebp - 8]
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jl 0x1026e43
call fcn.0102772d
mov esi, eax
test esi, esi
jge 0x1026e80
push esi
push 0x100dd70
jmp 0x1026e79
push esi
push 0x100e630
jmp 0x1026e79
push esi
push 0x100e5e8
jmp 0x1026e79
push esi
push 0x100e598
jmp 0x1026e79
push esi
push 0x100e510
jmp 0x1026e79
push esi
push 0x100e4c0
jmp 0x1026e79
push esi
push 0x100e470
jmp 0x1026e79
push esi
push 0x100dbe0
call fcn.01025caa
pop ecx
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x100e43c
call fcn.01025caa
pop ecx
mov eax, esi
pop esi
leave
ret

Function at 0x1026e9b
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x100e86c
call fcn.01025caa
pop ecx
push 2
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
cmp esi, edi
jl 0x1026f4f
lea eax, [ebp - 8]
push eax
push 0x20006
push edi
push 0x100e698
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jl 0x1026f08
push 4
lea eax, [ebp - 4]
push eax
push 4
push edi
push 0x100e674
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
jge 0x1026f15
push eax
push 0x100e630
jmp 0x1026f0e
push eax
push 0x100e5e8
call fcn.01025caa
pop ecx
pop ecx
push edi
call fcn.01026b6b
mov esi, eax
cmp esi, edi
jl 0x1026f47
call fcn.01025f91
mov esi, eax
cmp esi, edi
jl 0x1026f3f
call fcn.010265a1
mov esi, eax
cmp esi, edi
jge 0x1026f5c
push esi
push 0x100e4c0
jmp 0x1026f55
push esi
push 0x100e818
jmp 0x1026f55
push esi
push 0x100e790
jmp 0x1026f55
push esi
push 0x100dbe0
call fcn.01025caa
pop ecx
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x100e754
call fcn.01025caa
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x1026f78
Capabilities:
Modify service

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x100e988
call fcn.01025caa
pop ecx
push 2
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
cmp edi, esi
jl 0x1027024
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
je 0x1027015
push 0xf01ff
push 0x100d558
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, esi
je 0x1026ff8
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x1026ff0
call fcn.01026d8d
mov edi, eax
cmp edi, esi
jge 0x102700c
push edi
push 0x100e938
jmp 0x1027005
push edi
push 0x100e8e8
jmp 0x1027005
call fcn.01025b2c
mov edi, eax
push edi
push 0x100d478
call fcn.01025caa
pop ecx
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1027031
call fcn.01025b2c
mov edi, eax
push edi
push 0x100d430
jmp 0x102702a
push edi
push 0x100dbe0
call fcn.01025caa
pop ecx
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x100e8a8
call fcn.01025caa
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x1027600
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x10350f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x100f078
call fcn.01025caa
pop ecx
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1027710
lea eax, [ebp - 0x20c]
push eax
push 0x100f04c
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0102531f
add esp, 0x10
test eax, eax
jl 0x1027705
lea eax, [ebp - 0x20c]
push eax
push 0x100f038
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0102531f
add esp, 0x10
test eax, eax
jl 0x1027705
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x670]
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x62c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x61c]
push eax
push esi
push 0x20
push esi
push esi
push esi
push 0x100f00c
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x670], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x10276fe
push dword [ebp - 0x62c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x628]
call esi
push 0x100ef78
jmp 0x102770a
push 0x100ee90
jmp 0x102770a
push 0x100edd8
call fcn.01025caa
pop ecx
push 0x100ed98
call fcn.01025caa
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0102ad14
leave
ret