Function at 0x1001c170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064bee
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x100ad040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0
cmp esi, 0xffffffff
jne 0x1001c2fe
call fcn.1001cd60
cmp byte [eax + 0x1c], 0
je 0x1001c2b7
call fcn.1001cd60
mov dword [ebp - 0x1c], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1001c4b9
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x10]
push str.CreateFile_failed_for_Named_Pipe_client
call fcn.10012f10
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1001c4b9
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
push 0
push 0x10093cf4
call fcn.100117e0
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1001c25c
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1001c25c
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.1001cf80
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, ecx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001c28c
mov edi, dword [edx]
push edx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
or ecx, 0xffffffff
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1001c2b7
mov edi, dword [edx]
push edx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
add ecx, ecx
cmp dword [eax + 0x14], 7
jbe 0x1001c30e
mov eax, dword [eax]
push 0
lea edx, [ebp - 0x24]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1001c488
call fcn.1001cd60
cmp byte [eax + 0x1c], 0
je 0x1001c441
call fcn.1001cd60
mov dword [ebp - 0x1c], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1001c4b9
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x10]
push str.WriteFile_failed_for_Named_Pipe_client_:
call fcn.10012f10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x10]
call fcn.1001d2a0
mov dword [ebp - 0x20], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1001c4b9
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x18]
push 0
push 0x10093cf4
call fcn.100117e0
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1001c3e6
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1001c3e6
push dword [ebp - 0x20]
mov ecx, esi
call fcn.1001cf80
mov byte [ebp - 4], 0xd
or ecx, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, ecx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001c416
mov edi, dword [edx]
push edx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
or ecx, 0xffffffff
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1001c441
mov edi, dword [edx]
push edx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 1
push esi
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.1001bf30
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.10005390
int3