Function at 0x517f70
Capabilities:
Delete file
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x517f78
push ebx
mov byte [ebp - 0x15], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405bbc
xor eax, eax
push ebp
push 0x51821f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.005168c4
test al, al
je 0x5181f7
xor eax, eax
push ebp
push 0x5181ee
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x5608bc], 0
je 0x51819e
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x518197
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x42c3b0]
call fcn.0042c51c
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 8]
mov edx, dword [0x5608c0]
call fcn.004057d4
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.0040a760
mov eax, dword [ebp - 0x20]
mov edx, 0x518238
call fcn.00405b64
jne 0x51801c
mov byte [ebp - 0x15], 1
lea eax, [ebp - 8]
call fcn.0040573c
mov edx, dword [ebp - 4]
mov eax, 0x518248
call fcn.00405d18
test eax, eax
jne 0x51814d
cmp byte [ebp - 0x15], 0
je 0x51805b
mov edx, 0x80000001
mov eax, dword [ebp - 0x1c]
call fcn.0042c5f8
lea eax, [ebp - 0x10]
mov edx, 0x518254
call fcn.004057d4
lea eax, [ebp - 8]
call fcn.0040573c
jmp 0x5180a3
cmp byte [0x5608bd], 0
je 0x518089
call fcn.004fd964
sub al, 2
jb 0x518089
mov edx, 0x80000002
mov eax, dword [ebp - 0x1c]
call fcn.0042c5f8
lea eax, [ebp - 0x10]
mov edx, 0x518264
call fcn.004057d4
jmp 0x5180a3
mov edx, 0x80000001
mov eax, dword [ebp - 0x1c]
call fcn.0042c5f8
lea eax, [ebp - 0x10]
mov edx, 0x51827c
call fcn.004057d4
xor ecx, ecx
mov edx, 0x518290
mov eax, dword [ebp - 0x1c]
call fcn.0042c660
test al, al
je 0x518181
lea eax, [ebp - 0xc]
call fcn.0040573c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call fcn.0042cef8
test al, al
je 0x5180df
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call fcn.0042ccfc
cmp dword [ebp - 0xc], 0
je 0x518143
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.004fe830
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.004057d4
lea ecx, [ebp - 0x28]
mov edx, 0x5182dc
mov eax, dword [ebp - 4]
call fcn.0040b720
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004fe830
mov eax, dword [ebp - 0x14]
call fcn.00405bcc
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x518143
call fcn.00405140
call fcn.00405140
jmp 0x5181f7
mov eax, dword [ebp - 0x1c]
call fcn.0042c5c8
jmp 0x518181
lea ecx, [ebp - 0x14]
mov edx, 0x5182dc
mov eax, dword [ebp - 4]
call fcn.0040b720
mov eax, dword [ebp - 0x14]
call fcn.00405bcc
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x518181
call fcn.00405140
call fcn.00405140
jmp 0x5181f7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5181db
mov eax, dword [ebp - 0x1c]
call fcn.004047e0
ret
cmp byte [ebp - 0x15], 0
jne 0x5181d4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea edx, [ebp - 0x30]
xor ecx, ecx
mov eax, 0x5182ec
call fcn.0040c558
mov eax, dword [ebp - 0x14]
call fcn.005175a4
test al, al
jne 0x5181db
call fcn.00405140
jmp 0x5181f7
call fcn.00405140
jmp 0x5181f7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5181f5
call fcn.00516938
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518226
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00405760
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00405760
ret