Function at 0x10c9f71
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.01097196
test ax, ax
je 0x10ca025
mov ax, 0xfdff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 0xc
call fcn.01075a13
lea eax, [ebp - 0x12c]
push eax
push edi
call fcn.0109766f
cmp ax, 1
je 0x10ca020
mov cx, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
test cx, cx
je 0x10ca050
cmp cx, 5
je 0x10ca050
mov ax, 0xfdf8
jmp 0x10ca011
mov eax, dword [esi + 0x40]
mov edx, dword [ebp - reloc.KERNEL32.dll_GetTapeStatus]
cmp edx, eax
jb 0x10ca062
mov dword [esi + 0x48], eax
jmp 0x10ca065
mov dword [esi + 0x48], edx
and dword [esi + 0x50], 0
lea eax, [ebx + 4]
push eax
push 0x1012ea8
push 0x1012e88
push ebx
mov word [esi + 0x58], cx
call fcn.010c8d45
test eax, eax
mov dword [ebx], eax
je 0x10ca38e
cmp dword [esi + 0x48], 0xb
push 0xb
push esi
jae 0x10ca0b6
push dword [ebp - 0x140]
call fcn.010c9427
test ax, ax
mov dword [ebp - 0x134], eax
jne 0x10ca398
mov edi, dword [ebx + 0x2044]
jmp 0x10ca0c1
mov edi, dword [esi + 0x50]
add edi, dword [esi + 0x38]
call fcn.010ac2d2
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 0x10ca119
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 0x10ca119
or al, 1
mov byte [ebp - 0x164], al
cmp dword [esi + 0x48], ecx
push ecx
push esi
jae 0x10ca13c
push dword [ebp - 0x140]
call fcn.010c9427
test ax, ax
mov dword [ebp - 0x134], eax
jne 0x10ca398
jmp 0x10ca141
call fcn.010ac2d2
cmp dword [esi + 0x48], 1
push 1
push esi
jae 0x10ca16f
push dword [ebp - 0x140]
call fcn.010c9427
test ax, ax
mov dword [ebp - 0x134], eax
jne 0x10ca398
mov eax, dword [ebx + 0x2044]
movzx edi, byte [eax]
jmp 0x10ca17e
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x38]
movzx edi, byte [eax + ecx]
call fcn.010ac2d2
cmp dword [esi + 0x48], edi
push edi
push esi
jae 0x10ca1ad
push dword [ebp - 0x140]
call fcn.010c9427
test ax, ax
mov dword [ebp - 0x134], eax
jne 0x10ca398
mov eax, dword [ebx + 0x2044]
mov dword [ebp - 0x144], eax
jmp 0x10ca1be
mov eax, dword [esi + 0x50]
add eax, dword [esi + 0x38]
mov dword [ebp - 0x144], eax
call fcn.010ac2d2
cmp byte [ebp - 0x12d], 0
je 0x10ca1f2
push dword [ebp - 0x144]
lea eax, reloc.KERNEL32.dll_BackupSeek
push eax
push ebx
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], di
call fcn.010c8e78
test ax, ax
mov dword [ebp - 0x134], eax
jne 0x10ca398
jmp 0x10ca202
inc dword [ebx + 0x23e4]
mov dword [ebp - 0x13c], 1
test byte [ebp - 0x135], 0x40
je 0x10ca30e
mov eax, dword [ebx + 0x102c]
add eax, dword [ebx + 0x203c]
cmp eax, 0xfffffffe
je 0x10ca30e
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
jne 0x10ca237
or byte [ebp - 0x148], 0x80
jmp 0x10ca23e
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 0x10ca38e
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
je 0x10ca290
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 0x10ca38e
inc dword [ebx + 0x23e0]
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x160]
push eax
push ebx
call fcn.010c8f29
test ax, ax
mov dword [ebp - 0x134], eax
jne 0x10ca398
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 0x10ca308
mov eax, dword [ebx + 0x102c]
add eax, dword [ebx + 0x203c]
cmp eax, 0xfffffffe
jne 0x10ca224
mov esi, dword [ebp - 0x15c]
test byte [ebp - 0x135], 0x80
je 0x10ca08b
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
jne 0x10ca32c
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 0x10ca38e
xor edi, edi
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], di
je 0x10ca377
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 0x10ca38e
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 0x10ca3a3
mov dword [ebp - 0x134], 0xfffffdf3
lea eax, [ebx + 4]
push eax
push ebx
push ebx
call fcn.010c8ceb
mov ax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
jmp 0x10ca011