Function at 0x10015180
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, 0x100037a8
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
lea eax, [ebp - 0x1b0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xd
mov esi, 0x100037e8
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x48]
push ecx
movsb byte es:[edi], byte [esi]
call fcn.10014e80
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 0x1000379c
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x1b0]
lea ecx, [ebp - 0xac]
push eax
push ecx
call fcn.10014ee0
add esp, 0x1c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ebp - 4]
lea eax, [ebp - 0xac]
push edx
push 0xf003f
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10015451
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 - 4]
push edx
push eax
push 0
push 0x100037e0
push ecx
mov dword [ebp - 0x10], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100153b0
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 - 8], eax
test si, si
je 0x10015355
cmp si, 1
je 0x10015355
push 0x100032a8
push ebx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x1001538a
mov edx, dword [ebp - 8]
mov eax, esi
and eax, 0xffff
test si, si
lea ebx, [ebx + eax + 1]
lea eax, [edx + eax + 1]
mov dword [ebp - 8], eax
je 0x10015355
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 0x1001530f
mov edi, 0x100032a8
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp - 8]
repne scasb al, byte es:[edi]
mov al, byte [ebx - 1]
push 0x100032a8
not ecx
dec ecx
push 0x100037dc
add edx, ecx
test al, al
mov dword [ebp - 8], edx
je 0x1001537e
inc ebx
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x100153eb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x100032a8
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 - 8], ecx
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x980]
push ecx
push edx
push 7
push 0
push 0x100037e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
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.10014e80
lea edx, [ebp - 0x1b0]
lea eax, [ebp - 0x48]
push edx
push eax
call fcn.10014ee0
add esp, 0x10
lea ecx, [ebp - 0x1b0]
push ecx
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret