Function at 0x1000c290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006247d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x100ad040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], ecx
call fcn.1001cd60
mov ebx, dword [ebp + 8]
cmp byte [eax + 0x1c], 0
je 0x1000c409
call fcn.1001cd60
mov dword [ebp - 0x24], eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1000c592
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 - 0x14], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x14]
push 0x29
push str.MsiTableReader::ExtractBinaryColumn_to:__
call fcn.100117e0
cmp dword [ebx + 0x14], 7
mov edx, ebx
jbe 0x1000c31e
mov edx, dword [ebx]
test edx, edx
je 0x1000c340
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c327
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.100117e0
push 2
push 0x10093efc
lea ecx, [ebp - 0x14]
call fcn.100117e0
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1000c592
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 - 0x1c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
push 0
push 0x10093cf4
call fcn.100117e0
mov esi, dword [ebp - 0x24]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1000c3ae
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1000c3ae
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.1001cf80
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, ecx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000c3de
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], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1000c409
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 dword [ebp - 0x30], 0x10094084
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xa
cmp dword [ebx + 0x14], 7
jbe 0x1000c426
mov ebx, dword [ebx]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, dword [ebp - 0x2c]
je 0x1000c45c
mov ecx, dword [ebp - 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x1006e578]
lea ecx, [ebp - 0x30]
call esi
mov dword [ebp - 0x2c], edi
mov ebx, dword [ebp - 0x28]
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.msi.dll_MsiRecordGetStringW]
xor edi, edi
mov dword [ebp - 0x24], eax
push 0xc823
push 0x40
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, eax
test ecx, ecx
je 0x1000c58d
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
add eax, 0xc800
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x3c]
push 0xc800
push edi
push eax
lea esi, [eax + 0xc800]
call fcn.1004f160
add esp, 0xc
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xc800
push eax
push dword [ebp - 0x3c]
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.msi.dll_MsiRecordSetStringA]
test eax, eax
jne 0x1000c50a
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x3c]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x18]
add edi, eax
test eax, eax
jne 0x1000c4d1
cmp dword [ebp - 0x24], edi
sete bl
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x1000c556
mov eax, dword [ebp - 0x34]
mov edx, ecx
sub eax, ecx
cmp eax, 0x1000
jb 0x1000c536
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1000c58d
test ecx, ecx
je 0x1000c541
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x10094084
test ecx, ecx
je 0x1000c579
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10050f8f
push 0x80004005
call fcn.10005390
int3