Function at 0x1001de80
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10037e2d
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x10], 0
je 0x1001e00d
push 0x208
lea eax, [ebp - 0x250]
mov dword [ebp + 8], 0
push 0
push eax
mov dword [ebp + 0xc], 0
mov dword [ebp - 0x28], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x1001dee4
mov edi, dword [edi]
push edi
push 0x1003d18c
lea eax, [ebp - 0x250]
push 0x104
push eax
call fcn.10014a70
add esp, 0x10
lea eax, [ebp + 8]
push eax
push str.systemCurrentControlSetServices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1001df53
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jle 0x1001df26
push eax
call esi
mov eax, dword [ebp + 8]
test eax, eax
jle 0x1001dfee
push eax
call esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xbf4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1001df5d
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1001df16
lea ecx, [ebp - 0x250]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001df80
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x250]
push eax
push 1
push 0
push str.ImagePath
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x1001df16
push 4
lea eax, [ebp - 0x28]
push eax
push 4
push 0
push str.Type
push dword [ebp + 0xc]
call edi
mov ecx, dword [ebp + 0xc]
mov ebx, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ecx, ecx
jle 0x1001dfe0
push ecx
call edi
mov eax, dword [ebp + 8]
test eax, eax
jle 0x1001dfea
push eax
call edi
test ebx, ebx
je 0x1001e00d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xbf4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x34
jb 0x1001e1e2
cmp dword [esi + 0x14], 8
jb 0x1001e028
mov esi, dword [esi]
push ecx
push esi
push 0x34
push 0x1003d050
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x48]
call fcn.10013260
mov dword [ebp - 4], 0
call fcn.100093b0
cmp dword [ebp - 0x34], 8
lea ebx, [ebp - 0x48]
push 0x14
cmovae ebx, dword [ebp - 0x48]
lea ecx, [ebp - 0x24]
push 0x1003d0bc
mov esi, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.10001520
mov byte [ebp - 4], 1
call fcn.1001faf0
lea edi, [esi + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.10009cd0
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp eax, dword [esi + 4]
je 0x1001e0ba
mov esi, dword [eax + 0x20]
call edi
test esi, esi
je 0x1001e0bc
push ebx
lea eax, [ebp - 0x30]
push eax
call esi
jmp 0x1001e0bc
call edi
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x1001e0f4
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001e0ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e1bd
push edx
push ecx
call fcn.10035360
add esp, 8
call fcn.100093b0
push 0xc
push 0x1003d0d4
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0
mov esi, eax
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.10001520
mov byte [ebp - 4], 2
call fcn.1001faf0
lea ebx, [esi + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.10009cd0
mov eax, dword [ebp + 0xc]
push ebx
cmp eax, dword [esi + 4]
je 0x1001e15a
mov esi, dword [eax + 0x20]
call edi
test esi, esi
je 0x1001e15c
lea eax, [ebp - 0x30]
push eax
call esi
mov esi, eax
jmp 0x1001e161
call edi
mov esi, 0xc0000138
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x1001e191
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001e187
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e1bd
push edx
push ecx
call fcn.10035360
add esp, 8
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x1001e1cd
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001e1c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001e1c3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10035360
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.10001180
int3