Function at 0x1001ce40
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10184288
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0xc
test eax, eax
push ebp
mov ebp, ecx
je 0x1001d23a
push ebx
push esi
mov esi, dword [esp + 0x2c]
xor ecx, ecx
push edi
mov dword [esp + 0x10], 1
lea eax, [esi + 0x148]
mov edx, eax
push eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov eax, dword [ebp + 0x628]
xor ebx, ebx
test eax, eax
jle 0x1001cf75
xor edi, edi
lea eax, [esi + 0xa0]
push 0x50
push eax
mov eax, dword [ebp + 0x624]
lea ecx, [eax + edi + 0xa0]
push ecx
call fcn.100ca39a
add esp, 0xc
test eax, eax
jne 0x1001cedf
mov edx, dword [ebp + 0x624]
push 0x50
add edx, edi
push esi
push edx
call fcn.100ca39a
add esp, 0xc
test eax, eax
je 0x1001cef5
mov eax, dword [ebp + 0x628]
inc ebx
add edi, 0x160
cmp ebx, eax
jl 0x1001cea4
jmp 0x1001cf75
mov ecx, dword [ebp + 0x624]
lea eax, [ebx + ebx*4]
mov dword [esp + 0x10], 0
lea eax, [ebx + eax*2]
shl eax, 5
lea edx, [ecx + eax + 0x148]
lea ecx, [esi + 0x148]
mov edi, dword [edx]
mov dword [ecx], edi
mov edi, dword [edx + 4]
mov dword [ecx + 4], edi
mov edi, dword [edx + 8]
mov dword [ecx + 8], edi
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
mov ecx, dword [ebp + 0x624]
mov edx, dword [esi + 0x144]
mov dword [ecx + eax + 0x144], edx
mov ecx, dword [ebp + 0x624]
mov edx, dword [esi + 0x140]
mov dword [ecx + eax + 0x140], edx
mov ecx, dword [ebp + 0x624]
mov edx, dword [esi + 0x158]
mov dword [ecx + eax + 0x158], edx
mov edx, dword [esi + 0x15c]
mov dword [ecx + eax + 0x15c], edx
lea eax, [esi + 0x148]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.10124d90
add esp, 8
lea ecx, [ebp + 0x410]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x30], 0
call fcn.10173580
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 2
call fcn.10173267
mov eax, dword [esp + 0x14]
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov eax, dword [0x10274670]
test eax, eax
je 0x1001d02f
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.100e29f0
mov edx, dword [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [esi + 0x144]
push edx
mov edx, dword [esi + 0x140]
push ebx
push eax
push ecx
lea eax, [esi + 0xa0]
push edx
push eax
push esi
push str.CIMMessageFile::AddInfo___s____s____d____d____s____x____d_
push str.CIMMessageFile
push 0xffffffffffffffff
push 0x10273ddc
mov byte [esp + 0x50], 3
call fcn.10119f10
add esp, 0x2c
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 2
call fcn.100e3260
cmp ebx, 0xffffffff
je 0x1001d05a
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push 0
push ecx
push edi
call fcn.100c9da4
add esp, 4
shl eax, 1
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1001d226
mov eax, dword [ebp + 0x628]
mov edi, eax
mov dword [esp + 0x10], edi
lea ebx, [edi + 1]
test ebx, ebx
jne 0x1001d0a5
mov eax, dword [ebp + 0x624]
test eax, eax
je 0x1001d092
push eax
call fcn.10173959
add esp, 4
mov dword [ebp + 0x624], ebx
xor eax, eax
mov dword [ebp + 0x62c], eax
mov dword [ebp + 0x628], eax
jmp 0x1001d20e
mov edx, dword [ebp + 0x624]
test edx, edx
jne 0x1001d0ee
lea edx, [ebx + ebx*4]
lea edi, [ebx + edx*2]
shl edi, 5
push edi
call fcn.10173930
mov edx, eax
mov ecx, edi
mov dword [ebp + 0x624], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0x62c], ebx
mov dword [ebp + 0x628], ebx
jmp 0x1001d20a
cmp ebx, dword [ebp + 0x62c]
jg 0x1001d131
cmp ebx, eax
jle 0x1001d126
mov ecx, ebx
lea edi, [eax + eax*4]
sub ecx, eax
lea edi, [eax + edi*2]
lea eax, [ecx + ecx*4]
shl edi, 5
lea ecx, [ecx + eax*2]
add edi, edx
shl ecx, 5
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x10]
mov dword [ebp + 0x628], ebx
jmp 0x1001d20e
mov ecx, dword [ebp + 0x630]
test ecx, ecx
jne 0x1001d15f
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x1001d152
mov ecx, 4
jmp 0x1001d15f
cmp ecx, 0x400
jle 0x1001d15f
mov ecx, 0x400
mov eax, dword [ebp + 0x62c]
add eax, ecx
cmp ebx, eax
jge 0x1001d171
mov dword [esp + 0x2c], eax
jmp 0x1001d177
mov dword [esp + 0x2c], ebx
mov eax, ebx
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
shl edx, 5
push edx
call fcn.10173930
mov ecx, dword [ebp + 0x628]
mov esi, dword [ebp + 0x624]
mov edi, eax
mov dword [esp + 0x1c], eax
lea edx, [ecx + ecx*4]
lea ecx, [ecx + edx*2]
shl ecx, 5
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x628]
mov ecx, ebx
sub ecx, edx
lea esi, [edx + edx*4]
lea edi, [edx + esi*2]
shl edi, 5
add edi, eax
lea eax, [ecx + ecx*4]
lea ecx, [ecx + eax*2]
xor eax, eax
shl ecx, 5
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0x624]
push eax
call fcn.10173959
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
add esp, 8
mov dword [ebp + 0x624], eax
mov dword [ebp + 0x628], ebx
mov dword [ebp + 0x62c], ecx
mov edi, dword [esp + 0x10]
mov eax, dword [ebp + 0x624]
lea edx, [edi + edi*4]
mov ecx, 0x58
lea edi, [edi + edx*2]
shl edi, 5
add edi, eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.10173267
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 8