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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
and byte [ebp - 1], 0
and byte [ebp - 4], 0
and byte [ebp - 2], 0
and byte [ebp - 3], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
xor edi, edi
push eax
push 0x10016c4
push ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call fcn.01002b73
test al, al
je 0x1003d7f
push dword [ebp - 8]
push ebx
call fcn.01002bbb
jmp 0x1003d82
mov dword [ebp - 0x24], edi
lea eax, [ebp - 8]
push eax
push edi
push 0x1001628
push ebx
call fcn.01002b73
test al, al
je 0x1003da3
push dword [ebp - 8]
push ebx
call fcn.01002bbb
mov byte [ebp - 4], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1001a3c
push ebx
call fcn.01002b73
test al, al
je 0x1003dfe
push dword [ebp - 8]
push ebx
call fcn.01002bbb
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0x40
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 0x1c], eax
jne 0x1003dee
mov esi, 0x8007000e
jmp 0x1004083
push dword [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov byte [ebp - 1], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1001a20
push ebx
call fcn.01002b73
test al, al
je 0x1003e87
push dword [ebp - 8]
push ebx
call fcn.01002bbb
mov esi, dword [ebp - 0xc]
and byte [ebp + 0xb], 0
mov dword [ebp - 0x10], edi
push 0x2c
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x1003e3f
mov byte [ebp + 0xb], 1
jmp 0x1003e45
and word [edi], 0
inc edi
inc edi
cmp word [esi], 0
je 0x1003e79
push esi
push 0x1001a10
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1003e63
or dword [ebp - 0x10], 1
jmp 0x1003e79
push esi
push 0x1001a00
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1003ef0
or dword [ebp - 0x10], 2
cmp byte [ebp + 0xb], 0
mov esi, edi
je 0x1003e28
mov byte [ebp - 2], 1
xor edi, edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10019d4
push ebx
call fcn.01002b73
test al, al
je 0x1003ebc
push dword [ebp - 8]
push ebx
call fcn.01002bbb
push edi
push edi
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
mov dword [ebp - 0x34], eax
mov byte [ebp - 3], 1
push ebx
call fcn.01002bf5
mov esi, eax
cmp esi, edi
jl 0x1004083
cmp byte [ebp - 1], 0
jne 0x1003f17
cmp byte [ebp - 2], 0
jne 0x1003f17
cmp byte [ebp - 4], 0
jne 0x1003f0d
cmp byte [ebp - 3], 0
jne 0x1003f17
push 0x640
call fcn.0100763f
jmp 0x1003f03
push esi
push 0x10019c4
push 0x5de
call fcn.010075e6
add esp, 0xc
mov esi, 0x80070057
jmp 0x1004083
cmp byte [ebp - 3], 0
je 0x100401a
lea eax, [ebp - 0x18]
push eax
push 0x80000002
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
jne 0x100400c
cmp byte [ebp - 1], al
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jne 0x1003f4b
cmp byte [ebp - 2], al
je 0x1003fdc
lea eax, [ebp - 0x14]
push eax
push 0x1001958
push dword [ebp - 0x18]
call ebx
test eax, eax
jne 0x100400c
cmp byte [ebp - 1], al
je 0x1003f81
push dword [ebp - 0x30]
push dword [ebp - 0x1c]
push 1
push eax
push 0x1001944
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x100400c
cmp byte [ebp - 2], 0
je 0x1003fdc
mov eax, dword [ebp - 0x10]
sub eax, 0
je 0x1003fb7
dec eax
je 0x1003fb0
dec eax
je 0x1003fa9
dec eax
je 0x1003fa2
mov esi, 0x80004001
jmp 0x1004083
mov esi, 0x1001934
jmp 0x1003fbc
mov esi, 0x1001928
jmp 0x1003fbc
mov esi, 0x1001920
jmp 0x1003fbc
mov esi, 0x1001910
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push 0x1001904
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x100400c
cmp byte [ebp - 3], 0
je 0x100401a
lea eax, [ebp - 0x20]
push eax
push 0x10018a0
push dword [ebp - 0x18]
call ebx
test eax, eax
jne 0x100400c
push 4
lea eax, [ebp - 0x34]
push eax
push 4
push 0
push 0x1001870
push dword [ebp - 0x20]
call edi
test eax, eax
je 0x100401a
jle 0x100406b
and eax, 0xffff
or eax, 0x80070000
jmp 0x100406b
cmp byte [ebp - 4], 0
je 0x1004081
push 1
push 0x1001850
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x100405d
push 0x40
push 0x1001840
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [ebp - 0x28], eax
je 0x100405d
lea ecx, [ebp - 0x50]
push ecx
push 6
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1004081
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100406f
call esi
mov esi, eax
jmp 0x1004083
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1004083
xor esi, esi
cmp dword [ebp - 0x1c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1004094
push dword [ebp - 0x1c]
call ebx
cmp dword [ebp - 0x20], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10040a5
push dword [ebp - 0x20]
call edi
cmp dword [ebp - 0x14], 0
je 0x10040b0
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0x18], 0
je 0x10040bb
push dword [ebp - 0x18]
call edi
cmp dword [ebp - 0x28], 0
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x10040cc
push dword [ebp - 0x28]
call edi
cmp dword [ebp - 0x2c], 0
je 0x10040d7
push dword [ebp - 0x2c]
call edi
test esi, esi
jge 0x100410f
cmp esi, 0x80070057
je 0x100410d
lea eax, [ebp + 8]
push eax
push esi
call fcn.01007d63
test eax, eax
jl 0x100411b
push dword [ebp + 8]
push 0x10015e4
push 0x579
call fcn.010075e6
add esp, 0xc
push dword [ebp + 8]
call ebx
jmp 0x100411b
test esi, esi
jne 0x100411b
push 0x578
call fcn.0100763f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4