Function at 0x100160e8
Capabilities:
Delete file
Query or enumerate registry key

Disassembly:
mov eax, 0x1006586a
call fcn.100651e0
sub esp, 0x50
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x100164ba
push ebx
push edi
push dword [esi]
xor ebx, ebx
push ebx
push dword [esi + 4]
call fcn.10044c5f
add esp, 0xc
lea ecx, [ebp - 0x50]
xor edi, edi
inc edi
push edi
call fcn.1001d532
push 3
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], ebx
call fcn.1001d532
mov dword [ebp - 0x2c], 0xfffffffb
mov dword [ebp - 0x2c], 9
mov dword [ebp - 0x2c], 0x96f8f9ed
mov dword [ebp - 0x2c], 0x9ec0021f
mov dword [ebp - 0x1c], ebx
jmp 0x10016159
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x50]
mov dword [eax + ecx*4], ebx
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], edi
jl 0x1001614d
mov dword [ebp - 0x1c], ebx
jmp 0x10016173
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x5c]
mov dword [eax + ecx*4], 0x65b49d58
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 3
jl 0x10016163
mov eax, dword [ebp - 0x50]
mov dword [eax], ebx
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], 0
je 0x1001618e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x5c]
call fcn.1001d5b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.1001d5b4
push dword [esi + 4]
call fcn.10050408
pop ecx
push edi
lea ecx, [ebp - 0x38]
call fcn.1001d532
push 2
pop edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0xceef
mov dword [ebp - 0x1c], ebx
jmp 0x100161d0
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x44], ebx
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 3
jl 0x100161c6
mov dword [ebp - 0x1c], ebx
jmp 0x100161eb
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x38]
mov dword [eax + ecx*4], 0x3f4f46db
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], edi
jl 0x100161db
mov eax, dword [ebp - 0x38]
mov dword [eax], edx
mov eax, dword [eax]
mov dword [ebp - 0x28], 0xcbfcf419
mov dword [ebp - 0x1c], 0xffffffff
cmp dword [ebp + eax*4 - 0x44], ebx
jne 0x10016268
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x38]
imul eax, dword [ecx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
xor ecx, ecx
mov edx, dword [ebp + eax*4 - 0x44]
mov eax, dword [ebp - 0x1c]
imul edx, eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x44]
cmp edx, eax
setl cl
cmp ecx, dword [ebp - 0x18]
jne 0x10016241
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x44]
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x44]
mov edx, dword [ebp - 0x38]
cmp dword [edx], eax
sete cl
sub ecx, 0x508d4a8e
je 0x10016262
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
mov eax, dword [ebp + eax*4 - 0x44]
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x44]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x44]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x44]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x44]
mov eax, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov eax, dword [ebp + eax*4 - 0x44]
cmp eax, 0x5d872073
mov eax, dword [ebp - 0x38]
sete cl
mov dword [ebp - 0x28], ecx
dec dword [eax]
jns 0x100161f5
mov dword [ebp - 0x1c], ebx
jmp 0x100162f1
mov dword [ebp - 0x18], ebx
jmp 0x100162ca
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x38]
mov dword [eax + ecx*4], 8
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], ebx
jle 0x100162ba
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], 0
je 0x100162ee
push 0x150e
push 0xe30
push ebx
push 0x413
call dword [sym.imp.USER32.dll_CreateCaret]
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], ebx
jle 0x100162b5
lea ecx, [ebp - 0x38]
call fcn.1001d5b4
mov dword [esi + 4], ebx
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x18], 0xffbefa5f
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], ebx
jmp 0x1001632c
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x20], 0x574b
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], edi
jl 0x1001631e
mov eax, dword [ebp - 0x14]
xor edx, edx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp ecx, eax
mov ecx, 0xaa53f0d3
setge dl
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp ecx, eax
mov eax, dword [ebp - 0x18]
sbb ecx, ecx
xor edx, edx
inc ecx
cmp ecx, eax
mov eax, dword [ebp - 0x18]
setle dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0x18]
mov edx, 0xffff1f04
setl cl
sub edx, ecx
xor ecx, ecx
cmp edx, eax
setle cl
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
sub edx, eax
mov eax, dword [ebp - 0x28]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
setne cl
xor eax, eax
sub ecx, 7
cmp ecx, 0xa71a
setle al
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], ebx
je 0x10016460
mov dword [ebp - 0x2c], 0x27420ea1
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x1c], ebx
jl 0x100164b6
mov dword [ebp - 0x24], 0x630971cf
mov dword [ebp - 0x18], ebx
jmp 0x100163ef
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + eax*4 - 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x20], ecx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], ebx
jle 0x100163de
mov dword [ebp - 0x14], ebx
jmp 0x10016450
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov ecx, dword [ebp + eax*4 - 0x20]
mov eax, dword [ebp - 0x24]
cmp eax, ecx
setle dl
imul ecx, edx, 5
dec ecx
neg ecx
sbb ecx, ecx
neg ecx
add ecx, dword [ebp - 0x24]
imul eax, dword [ebp - 0x2c], 0xfffffff9
cmp eax, ecx
jle 0x10016426
mov edx, edi
cmp dword [ebp - 0x24], ebx
jne 0x10016428
mov edx, ebx
mov eax, dword [ebp - 0x24]
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0x20]
setg cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0x1c]
setge dl
xor ecx, ecx
mov eax, dword [ebp + eax*4 - 0x20]
cmp eax, edx
setge cl
mov dword [ebp - 0x28], ecx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], ebx
jle 0x100163f9
dec dword [ebp - 0x1c]
jns 0x100163d2
jmp 0x100164b6
mov dword [ebp - 0x14], ebx
jmp 0x100164b1
mov dword [ebp - 0x18], ebx
jmp 0x100164a9
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x1c], ebx
jl 0x100164a6
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], 0
je 0x10016486
push 0x1ed0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], 0
je 0x100164a1
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x1e16
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
dec dword [ebp - 0x1c]
jns 0x10016472
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], ebx
jle 0x1001646a
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], ebx
jle 0x10016465
pop edi
mov dword [esi], ebx
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret