Function at 0x1001b7e0
Capabilities:
Check if file exists
Create process on windows
Delete file
Delete registry key
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a84bf
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x100c66d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0xbc], edi
push edi
xor eax, eax
push 0x100b61ec
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
call fcn.10005fb0
lea esi, [ebp - 0x9c]
mov dword [ebp - 4], edi
call fcn.10025c80
lea ecx, [ebp - 0x48]
mov edx, eax
mov byte [ebp - 4], 1
call fcn.1003aee0
mov ebx, 8
mov byte [ebp - 0xbd], al
cmp dword [ebp - 0x88], ebx
jb 0x1001b872
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], edi
mov word [ebp - 0x9c], dx
cmp dword [ebp - 0x34], ebx
jb 0x1001b8a3
mov eax, dword [ebp - 0x48]
push eax
call fcn.1003d468
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.1001c060
lea edi, [ebp - 0x64]
mov dword [ebp - 4], 2
call fcn.10025ce0
mov esi, eax
lea eax, [ebp - 0xb8]
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.10006890
push 1
mov esi, eax
mov byte [ebp - 4], 4
call fcn.100386d0
add esp, 4
cmp dword [ebp - 0x34], ebx
jb 0x1001b8f2
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x50], ebx
jb 0x1001b91b
mov eax, dword [ebp - 0x64]
push eax
call fcn.1003d468
add esp, 4
lea ebx, [ebp - 0x64]
call fcn.10025e70
mov esi, eax
lea eax, [ebp - 0xb8]
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.10006890
push 1
mov esi, eax
mov byte [ebp - 4], 6
call fcn.100386d0
add esp, 4
cmp dword [ebp - 0x34], 8
jb 0x1001b959
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov ebx, 8
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x50], ebx
jb 0x1001b987
mov eax, dword [ebp - 0x64]
push eax
call fcn.1003d468
add esp, 4
lea ecx, [ebp - 0x90]
push ecx
call fcn.1001c590
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xbc], eax
cmp eax, dword [ebp - 0x8c]
je 0x1001bb17
nop
lea esi, [ebp - 0x80]
call fcn.10026190
mov byte [ebp - 4], 8
mov esi, eax
mov eax, dword [ebp - 0xbc]
lea edi, [ebp - 0x64]
call fcn.10006890
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x6c], ebx
jb 0x1001b9e1
mov edx, dword [ebp - 0x80]
push edx
call fcn.1003d468
add esp, 4
xor eax, eax
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
call fcn.100261f0
mov esi, eax
lea eax, [ebp - 0x64]
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call fcn.10006890
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x18], ebx
jb 0x1001ba23
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov edi, 7
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x38], edx
je 0x1001bac6
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x1001ba4c
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
test al, al
je 0x1001bac6
lea ecx, [ebp - 0x48]
call fcn.10037bc0
test al, al
jne 0x1001bac6
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x1001ba73
lea eax, [ebp - 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
test eax, eax
jne 0x1001bac6
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x1001ba8b
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1001baac
mov ecx, dword [ebp - 0x48]
and eax, 0xfffffffe
cmp dword [ebp - 0x34], ebx
jae 0x1001baa4
lea ecx, [ebp - 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x1001bab7
lea eax, [ebp - 0x48]
push eax
call esi
test eax, eax
jne 0x1001bac6
lea ecx, [ebp - 0x48]
call fcn.10039340
cmp dword [ebp - 0x34], ebx
jb 0x1001bad7
mov eax, dword [ebp - 0x48]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 7
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x50], ebx
jb 0x1001bafc
mov edx, dword [ebp - 0x64]
push edx
call fcn.1003d468
add esp, 4
mov eax, dword [ebp - 0xbc]
add eax, 0x1c
mov dword [ebp - 0xbc], eax
cmp eax, dword [ebp - 0x8c]
jne 0x1001b9b0
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0xbc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1001bb56
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x1001bcd1
cmp dword [ebp - 0xbc], 0
je 0x1001bcd1
lea esi, [ebp - 0x64]
call fcn.10026930
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
call fcn.10026900
cmp dword [eax + 0x14], ebx
jb 0x1001bb80
mov eax, dword [eax]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0xbc]
push ecx
push 0x202
push 0
push eax
push 0x80000002
call ebx
mov esi, 8
test eax, eax
jne 0x1001bbcb
cmp dword [edi + 0x14], esi
jb 0x1001bbae
mov eax, dword [edi]
jmp 0x1001bbb0
mov eax, edi
mov edx, dword [ebp - 0xbc]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0xbc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], esi
jb 0x1001bbdc
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x50], esi
jb 0x1001bc05
mov eax, dword [ebp - 0x64]
push eax
call fcn.1003d468
add esp, 4
lea esi, [ebp - 0x64]
call fcn.10026930
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
call fcn.10026900
cmp dword [eax + 0x14], 8
jb 0x1001bc23
mov eax, dword [eax]
lea ecx, [ebp - 0xbc]
push ecx
push 0x102
push 0
push eax
push 0x80000002
call ebx
mov esi, 8
test eax, eax
jne 0x1001bc68
cmp dword [edi + 0x14], esi
jb 0x1001bc4b
mov eax, dword [edi]
jmp 0x1001bc4d
mov eax, edi
mov edx, dword [ebp - 0xbc]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0xbc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], esi
jb 0x1001bc79
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x50], esi
jb 0x1001bca2
mov eax, dword [ebp - 0x64]
push eax
call fcn.1003d468
add esp, 4
lea esi, [ebp - 0x64]
call fcn.10026930
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
call fcn.10026900
cmp dword [eax + 0x14], 8
jb 0x1001bcc0
mov eax, dword [eax]
lea ecx, [ebp - 0xbc]
push ecx
push 0x102
jmp 0x1001bd97
lea esi, [ebp - 0x64]
call fcn.10026930
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0x11
call fcn.10026900
cmp dword [eax + 0x14], ebx
jb 0x1001bcee
mov eax, dword [eax]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0xbc]
push ecx
push 2
push 0
push eax
push 0x80000002
call ebx
mov esi, 8
test eax, eax
jne 0x1001bd36
cmp dword [edi + 0x14], esi
jb 0x1001bd19
mov eax, dword [edi]
jmp 0x1001bd1b
mov eax, edi
mov edx, dword [ebp - 0xbc]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0xbc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], esi
jb 0x1001bd47
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1003d468
add esp, 4
xor edx, edx
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x50], esi
jb 0x1001bd70
mov eax, dword [ebp - 0x64]
push eax
call fcn.1003d468
add esp, 4
lea esi, [ebp - 0x64]
call fcn.10026930
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0x12
call fcn.10026900
cmp dword [eax + 0x14], 8
jb 0x1001bd8e
mov eax, dword [eax]
lea ecx, [ebp - 0xbc]
push ecx
push 2
push 0
push eax
push 0x80000001
call ebx
mov esi, 8
test eax, eax
jne 0x1001bdd0
cmp dword [edi + 0x14], esi
jb 0x1001bdb3
mov eax, dword [edi]
jmp 0x1001bdb5
mov eax, edi
mov edx, dword [ebp - 0xbc]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [ebp - 0xbc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], esi
jb 0x1001bde1
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1003d468
add esp, 4
mov byte [ebp - 4], 7
xor edx, edx
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 7
cmp dword [ebp - 0x50], esi
jb 0x1001be06
mov eax, dword [ebp - 0x64]
push eax
call fcn.1003d468
add esp, 4
lea esi, [ebp - 0x64]
call fcn.10025c80
mov esi, eax
push 0x100b6220
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0x80]
mov byte [ebp - 4], 0x13
push edx
mov dword [ebp - 0xbc], 1
call fcn.100069b0
add esp, 0xc
mov ecx, eax
mov dword [ebp - 4], 0x14
mov eax, esi
lea edi, [ebp - 0x2c]
mov dword [ebp - 0xbc], 3
call fcn.10006920
cmp dword [eax + 0x10], 0
je 0x1001be7e
cmp dword [eax + 0x14], 8
jb 0x1001be61
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
test al, al
je 0x1001be7e
cmp byte [ebp - 0xbd], 0
je 0x1001be7e
mov bl, 1
jmp 0x1001be80
xor bl, bl
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x1001be96
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x6c], esi
jb 0x1001bebc
mov edx, dword [ebp - 0x80]
push edx
call fcn.1003d468
add esp, 4
xor eax, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
cmp dword [ebp - 0x50], esi
jb 0x1001bee0
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.1003d468
add esp, 4
test bl, bl
je 0x1001bfcd
push 0x38
xor ebx, ebx
lea edx, [ebp - 0xf8]
push ebx
push edx
call fcn.10044ad0
add esp, 0xc
lea esi, [ebp - 0x64]
mov dword [ebp - 0xfc], 0x3c
mov dword [ebp - 0xf0], str.open
call fcn.10025c80
mov esi, eax
push 0x100b6220
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x80]
push ecx
mov byte [ebp - 4], 0x15
call fcn.100069b0
add esp, 0xc
mov ecx, eax
mov eax, esi
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 0x16
call fcn.10006920
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x1001bf5a
mov edx, dword [eax]
mov dword [ebp - 0xec], edx
jmp 0x1001bf60
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0x18], esi
jb 0x1001bf71
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x6c], esi
jb 0x1001bf93
mov edx, dword [ebp - 0x80]
push edx
call fcn.1003d468
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
cmp dword [ebp - 0x50], esi
jb 0x1001bfb0
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.1003d468
add esp, 4
lea edx, [ebp - 0xfc]
push edx
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], 3
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 0x90], 0
je 0x1001c021
mov esi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x8c]
cmp esi, ebx
je 0x1001c00d
cmp dword [esi + 0x14], 8
jb 0x1001bff7
mov eax, dword [esi]
push eax
call fcn.1003d468
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x1c
cmp esi, ebx
jne 0x1001bfe6
mov edx, dword [ebp - 0x90]
push edx
call fcn.1003d468
add esp, 4
mov esi, 8
cmp dword [ebp - 0xa4], esi
jb 0x1001c038
mov eax, dword [ebp - 0xb8]
push eax
call fcn.1003d468
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003c5b5
mov esp, ebp
pop ebp
ret