Function at 0x1090d3e
Capabilities:
Set file attributes
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov dword [ebp - 0x18], 0x8008000d
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
cmp eax, ecx
je 0x10913e3
cmp word [eax], cx
je 0x10913e3
mov eax, dword [ebp - 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [ebx + 0x14]
push esi
push edi
push 7
add eax, 0x78
pop ecx
lea esi, [ebx + 0x3e4]
lea edi, [ebp - 0x48]
push eax
mov dword [ebp - 4], eax
rep movsd dword es:[edi], dword [esi]
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1090dd7
mov dword [ebp - 0x18], 0x8008000e
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10913db
test byte [eax + 0x1c], 1
je 0x10913db
push dword [ebp - 4]
push 0x1012c98
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010160ad
jmp 0x10913db
mov edi, dword [ebp - 4]
push edi
mov esi, eax
push 0
push esi
call sub.msvcrt.dll_memset
lea eax, [edi + esi]
lea ecx, [esi + 0x78]
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp ecx, eax
ja 0x1090dfa
cmp edi, 0x78
jae 0x1090e1e
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x1090e1e
test byte [eax + 0x1c], 1
je 0x1090e1e
push 0x1012c98
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
mov edx, dword [ebp - 0x10]
push 0x1e
pop ecx
mov esi, ebx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 0x78]
mov dword [ebp - 0xc], 0x78
test esi, esi
je 0x10913ae
cmp esi, edx
jl 0x10913ae
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x3e4]
lea edi, [eax + esi]
cmp edi, dword [ebp - 0x14]
ja 0x10913ae
cmp eax, dword [ebp - 4]
ja 0x10913ae
cmp dword [ebp - 0x48], 0
jbe 0x1090e87
and dword [esi], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x3e4]
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x24], esi
add esi, eax
mov dword [ebp - 0xc], 0x80
test esi, esi
je 0x1091393
cmp esi, edx
jl 0x1091393
mov eax, dword [ecx]
mov eax, dword [eax + 0x3fc]
lea edi, [eax + esi]
cmp edi, dword [ebp - 0x14]
ja 0x1091393
cmp eax, dword [ebp - 4]
ja 0x1091393
cmp dword [ebp - 0x30], 0
jbe 0x1090ed7
mov dword [esi], 6
mov eax, dword [ecx]
mov eax, dword [eax + 0x3fc]
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x1c], esi
add esi, eax
add dword [ebp - 0xc], 8
test esi, esi
je 0x1091378
cmp esi, edx
jl 0x1091378
mov eax, dword [ecx]
mov eax, dword [eax + 0x3f0]
lea edx, [eax + esi]
cmp edx, dword [ebp - 0x14]
ja 0x1091378
cmp eax, dword [ebp - 4]
ja 0x1091378
cmp dword [ebp - 0x3c], 0
jbe 0x1090f27
mov dword [esi], 3
mov eax, dword [ecx]
mov eax, dword [eax + 0x3f0]
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x20], esi
add esi, eax
add dword [ebp - 0xc], 8
mov dword [ebp - 0x28], 0x98
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x28]
push dword [eax + ecx]
mov ecx, ebx
call fcn.010906aa
mov ecx, ebx
jmp 0x10910bb
mov ecx, dword [edi]
lea eax, [ebp + ecx*4 - 0x48]
mov ebx, dword [eax]
mov dword [ebp - 0x2c], eax
test ebx, ebx
jne 0x1090f8a
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10910ad
test byte [eax + 0x1c], 2
je 0x10910ad
push dword [edi + 4]
push 0x1012c98
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010160ad
jmp 0x10910ad
mov eax, ecx
sub eax, 0
je 0x109105f
sub eax, 3
je 0x1091022
dec eax
dec eax
je 0x1090fea
dec eax
jne 0x109112f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1091156
cmp eax, dword [ebp - 0x10]
jl 0x1091156
mov ecx, dword [ebp - 0x30]
add eax, ecx
cmp eax, dword [ebp - 0x14]
ja 0x1091156
cmp ecx, dword [ebp - 4]
ja 0x1091156
push ecx
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
push edi
call fcn.010907cb
add dword [ebp - 0x1c], 0x10
jmp 0x109109b
test esi, esi
je 0x109117c
cmp esi, dword [ebp - 0x10]
jl 0x109117c
mov eax, dword [ebp - 0x34]
lea ecx, [eax + esi]
cmp ecx, dword [ebp - 0x14]
ja 0x109117c
cmp eax, dword [ebp - 4]
ja 0x109117c
mov ecx, dword [ebp - 8]
push eax
push esi
push edi
call fcn.01090998
add esi, eax
jmp 0x109109b
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10911a2
cmp eax, dword [ebp - 0x10]
jl 0x10911a2
mov ecx, dword [ebp - 0x3c]
add eax, ecx
cmp eax, dword [ebp - 0x14]
ja 0x10911a2
cmp ecx, dword [ebp - 4]
ja 0x10911a2
push ecx
push dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
push edi
call fcn.0109086e
add dword [ebp - 0x20], eax
jmp 0x109109b
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10911fc
cmp eax, dword [ebp - 0x10]
jl 0x10911fc
mov ecx, dword [ebp - 0x48]
add eax, ecx
cmp eax, dword [ebp - 0x14]
ja 0x10911fc
cmp ecx, dword [ebp - 4]
ja 0x10911fc
push ecx
push dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
push edi
call fcn.010906f3
add dword [ebp - 0x24], 0xc
test eax, eax
je 0x10911c8
mov ecx, dword [ebp - 0x2c]
sub ebx, eax
add dword [ebp - 0xc], eax
mov dword [ecx], ebx
push dword [edi + 8]
mov ecx, dword [ebp - 8]
call fcn.010906aa
mov ecx, dword [ebp - 8]
push 0x10
mov edi, eax
push edi
call fcn.01090677
test eax, eax
jne 0x1090f47
add dword [ebp - 0x28], 4
cmp dword [ebp - 0x28], 0x3e4
jl 0x1090f2e
mov edi, dword [ebp - 4]
cmp dword [ebp - 0xc], edi
jne 0x109134e
mov esi, dword [ebp - 0x10]
push edi
push esi
call fcn.0108713f
mov dword [esi + 0xc], eax
mov eax, dword [0x10a60d8]
mov ebx, 0x10a60d8
cmp eax, ebx
je 0x1091222
test byte [eax + 0x1c], 4
je 0x1091222
push edi
push dword [ebp + 8]
mov edi, 0x1012c98
push edi
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103a48a
jmp 0x1091227
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10913d2
test byte [eax + 0x1c], 1
je 0x10913d2
push ecx
push 0x1012c98
push 0x16
jmp 0x10911ec
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10913d2
test byte [eax + 0x1c], 1
je 0x10913d2
push 0x1012c98
push 0x13
jmp 0x10913c7
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10913d2
test byte [eax + 0x1c], 1
je 0x10913d2
push 0x1012c98
push 0x15
jmp 0x10913c7
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10913d2
test byte [eax + 0x1c], 1
je 0x10913d2
push 0x1012c98
push 0x14
jmp 0x10913c7
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10913d2
test byte [eax + 0x1c], 1
je 0x10913d2
push dword [edi + 4]
push 0x1012c98
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010160ad
jmp 0x10913d2
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10913d2
test byte [eax + 0x1c], 1
je 0x10913d2
push 0x1012c98
push 0x12
jmp 0x10913c7
mov edi, 0x1012c98
xor esi, esi
push esi
push 0x80
push 2
push 1
call fcn.0108d71f
push eax
push esi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x1091310
push 0x2080
push dword [ebp + 8]
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1091286
mov eax, dword [0x10a60d8]
cmp eax, ebx
je 0x1091286
test byte [eax + 0x1c], 2
je 0x1091286
push edi
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
push esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10912c9
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 4]
je 0x10912ff
mov eax, dword [0x10a60d8]
cmp eax, ebx
je 0x1091302
test byte [eax + 0x1c], 1
je 0x1091302
push ecx
push dword [ebp - 4]
push edi
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010163bb
jmp 0x1091302
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x10a60d8]
cmp eax, ebx
je 0x10912ef
test byte [eax + 0x1c], 1
je 0x10912ef
push esi
push edi
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010160ad
test esi, esi
jle 0x10912ff
and esi, 0x1000ffff
or esi, 0x80080000
mov dword [ebp - 0x18], esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10913d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x10a60d8]
cmp eax, ebx
je 0x1091336
test byte [eax + 0x1c], 1
je 0x1091336
push esi
push edi
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010160ad
test esi, esi
jle 0x1091346
and esi, 0x1000ffff
or esi, 0x80080000
mov dword [ebp - 0x18], esi
jmp 0x10913d2
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10913d2
test byte [eax + 0x1c], 1
je 0x10913d2
push dword [ebp - 0xc]
push edi
push 0x1012c98
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010163bb
jmp 0x10913d2
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10913d2
test byte [eax + 0x1c], 1
je 0x10913d2
push 0x1012c98
push 0x10
jmp 0x10913c7
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10913d2
test byte [eax + 0x1c], 1
je 0x10913d2
push 0x1012c98
push 0xf
jmp 0x10913c7
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10913d2
test byte [eax + 0x1c], 1
je 0x10913d2
push 0x1012c98
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
push dword [ebp - 0x10]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
jmp 0x109140c
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x1091407
test byte [eax + 0x1c], 1
je 0x1091407
push 0x1012c98
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
mov eax, 0x80080057
leave
ret 4