Function at 0x10ca0ff
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, reloc.KERNEL32.dll_BackupSeek
mov eax, dword [0x10de03c]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x140], eax
mov eax, dword [eax + 4]
mov di, word [eax + reloc.ADVAPI32.dll_RegDeleteValueW]
or dword [ebp - 0x150], 0xffffffff
or dword [ebp - 0x158], 0xffffffff
or dword [ebp - 0x154], 0xffffffff
xor eax, eax
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
mov dword [ebx + 0x23e0], eax
mov dword [ebx + 0x23e4], eax
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
push dword [esi + 0x44]
mov dword [ebp - 0x15c], esi
push dword [esi + 0x38]
mov dword [ebp - 0x134], eax
push edi
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x148], reloc.ADVAPI32.dll_ReadEncryptedFileRaw
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], ax
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], ax
call fcn.01097324
test ax, ax
je 0x10ca1b3
mov ax, 0xfdff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 0xc
call fcn.01075adf
lea eax, [ebp - 0x12c]
push eax
push edi
call fcn.010977fd
cmp ax, 1
je 0x10ca1ae
mov cx, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
test cx, cx
je 0x10ca1de
cmp cx, 5
je 0x10ca1de
mov ax, 0xfdf8
jmp 0x10ca19f
mov eax, dword [esi + 0x40]
mov edx, dword [ebp - reloc.KERNEL32.dll_GetTapeStatus]
cmp edx, eax
jb 0x10ca1f0
mov dword [esi + 0x48], eax
jmp 0x10ca1f3
mov dword [esi + 0x48], edx
and dword [esi + 0x50], 0
lea eax, [ebx + 4]
push eax
push 0x1012ec0
push 0x1012ea0
push ebx
mov word [esi + 0x58], cx
call fcn.010c8ed3
test eax, eax
mov dword [ebx], eax
je 0x10ca51c
cmp dword [esi + 0x48], 0xb
push 0xb
push esi
jae 0x10ca244
push dword [ebp - 0x140]
call fcn.010c95b5
test ax, ax
mov dword [ebp - 0x134], eax
jne 0x10ca526
mov edi, dword [ebx + 0x2044]
jmp 0x10ca24f
mov edi, dword [esi + 0x50]
add edi, dword [esi + 0x38]
call fcn.010ac48d
movzx ecx, byte [edi]
mov dl, byte [edi + 1]
mov byte [ebp - 0x12d], dl
sub ecx, 0xa
and byte [ebp - 0x12d], 0x20
mov byte [ebp - 0x135], dl
je 0x10ca2a7
or dword [ebp - reloc.KERNEL32.dll_BackupSeek], 0xffffffff
or dword [ebp - 0x170], 0xffffffff
mov al, dl
shl al, 1
not al
and al, 4
and dl, 0x18
or al, dl
mov edx, dword [edi + 2]
or al, 0x40
cmp dword [edi + 6], 0
mov byte [ebp - 0x164], al
mov dword [ebp - 0x16c], edx
je 0x10ca2a7
or al, 1
mov byte [ebp - 0x164], al
cmp dword [esi + 0x48], ecx
push ecx
push esi
jae 0x10ca2ca
push dword [ebp - 0x140]
call fcn.010c95b5
test ax, ax
mov dword [ebp - 0x134], eax
jne 0x10ca526
jmp 0x10ca2cf
call fcn.010ac48d
cmp dword [esi + 0x48], 1
push 1
push esi
jae 0x10ca2fd
push dword [ebp - 0x140]
call fcn.010c95b5
test ax, ax
mov dword [ebp - 0x134], eax
jne 0x10ca526
mov eax, dword [ebx + 0x2044]
movzx edi, byte [eax]
jmp 0x10ca30c
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x38]
movzx edi, byte [eax + ecx]
call fcn.010ac48d
cmp dword [esi + 0x48], edi
push edi
push esi
jae 0x10ca33b
push dword [ebp - 0x140]
call fcn.010c95b5
test ax, ax
mov dword [ebp - 0x134], eax
jne 0x10ca526
mov eax, dword [ebx + 0x2044]
mov dword [ebp - 0x144], eax
jmp 0x10ca34c
mov eax, dword [esi + 0x50]
add eax, dword [esi + 0x38]
mov dword [ebp - 0x144], eax
call fcn.010ac48d
cmp byte [ebp - 0x12d], 0
je 0x10ca380
push dword [ebp - 0x144]
lea eax, reloc.KERNEL32.dll_BackupSeek
push eax
push ebx
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], di
call fcn.010c9006
test ax, ax
mov dword [ebp - 0x134], eax
jne 0x10ca526
jmp 0x10ca390
inc dword [ebx + 0x23e4]
mov dword [ebp - 0x13c], 1
test byte [ebp - 0x135], 0x40
je 0x10ca49c
mov eax, dword [ebx + 0x102c]
add eax, dword [ebx + 0x203c]
cmp eax, 0xfffffffe
je 0x10ca49c
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
jne 0x10ca3c5
or byte [ebp - 0x148], 0x80
jmp 0x10ca3cc
and dword [ebp - 0x13c], 0
push dword [ebx]
mov esi, dword [sym.imp.msvcrt.dll_fwrite]
push 1
lea eax, [ebp - 0x158]
push 0x11
push eax
call esi
add esp, 0x10
cmp eax, 1
jne 0x10ca51c
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
je 0x10ca41e
push dword [ebx]
movzx eax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
push eax
lea eax, [ebp - 0x104]
push 1
push eax
call esi
movzx ecx, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
add esp, 0x10
cmp ecx, eax
jne 0x10ca51c
inc dword [ebx + 0x23e0]
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x160]
push eax
push ebx
call fcn.010c90b7
test ax, ax
mov dword [ebp - 0x134], eax
jne 0x10ca526
mov eax, dword [ebp - 0x160]
mov esi, eax
lea edi, [ebp - 0x158]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
movzx ecx, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
mov esi, dword [ebp - 0x144]
mov edx, ecx
shr ecx, 2
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test byte [eax + 0x10], 1
je 0x10ca496
mov eax, dword [ebx + 0x102c]
add eax, dword [ebx + 0x203c]
cmp eax, 0xfffffffe
jne 0x10ca3b2
mov esi, dword [ebp - 0x15c]
test byte [ebp - 0x135], 0x80
je 0x10ca219
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
jne 0x10ca4ba
or byte [ebp - 0x148], 0x80
push dword [ebx]
mov esi, dword [sym.imp.msvcrt.dll_fwrite]
push 1
lea eax, [ebp - 0x158]
push 0x11
push eax
call esi
add esp, 0x10
cmp eax, 1
jne 0x10ca51c
xor edi, edi
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], di
je 0x10ca505
push dword [ebx]
movzx eax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
push eax
lea eax, [ebp - 0x104]
push 1
push eax
call esi
movzx ecx, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
add esp, 0x10
cmp ecx, eax
jne 0x10ca51c
inc dword [ebx + 0x23e0]
push edi
push edi
push dword [ebx]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
je 0x10ca531
mov dword [ebp - 0x134], 0xfffffdf3
lea eax, [ebx + 4]
push eax
push ebx
push ebx
call fcn.010c8e79
mov ax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
jmp 0x10ca19f