Function at 0x449100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48cb10
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x4b701c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x284], edx
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x288], eax
test esi, esi
je 0x449650
cmp word [esi], 0
je 0x449650
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00455ce0
add esp, 0xc
lea eax, [ebp - 0x21c]
push esi
push str..pipe_s
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x27c]
call fcn.00448630
push 0
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push eax
push 1
push str.S:_ML__NW___LW_
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x22c], 0
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x449378
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
mov edx, dword [ebp - 0x220]
mov ebx, dword [ebp - 0x250]
mov dword [ebp - 0x280], edx
mov edx, dword [ebp - 0x24c]
cmp ebx, edx
jb 0x44935d
lea esi, [ebx + 1]
cmp esi, edx
jbe 0x44935d
cmp dword [ebp - 0x254], 0
jne 0x4492c5
cmp dword [ebp - 0x248], esi
push 4
cmova esi, dword [ebp - 0x248]
push esi
call fcn.00463059
mov edi, eax
add esp, 8
mov dword [ebp - 0x254], edi
test edi, edi
je 0x44966e
mov dword [ebp - 0x24c], esi
jmp 0x449363
mov ecx, dword [ebp - 0x248]
test ecx, ecx
jne 0x4492dc
mov ecx, edx
mov eax, esi
shr ecx, 1
sub eax, edx
cmp eax, ecx
cmova ecx, eax
lea eax, [edx + ecx]
cmp esi, eax
push 4
cmovb esi, eax
push esi
call fcn.00463059
mov edi, eax
add esp, 8
test edi, edi
je 0x44966e
mov eax, dword [ebp - 0x250]
lea ecx, [eax*4]
test ecx, ecx
je 0x449336
mov eax, dword [ebp - 0x254]
test eax, eax
jne 0x44932b
call fcn.00458675
mov dword [eax], 0x16
call fcn.0045849f
mov eax, 0x16
jmp 0x449338
push ecx
push eax
push edi
call fcn.00455760
add esp, 0xc
xor eax, eax
push eax
call fcn.00406a50
add esp, 4
push dword [ebp - 0x254]
call fcn.004585e1
add esp, 4
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x24c], esi
jmp 0x449363
mov edi, dword [ebp - 0x254]
mov eax, dword [ebp - 0x280]
mov dword [edi + ebx*4], eax
inc dword [ebp - 0x250]
mov edi, dword [ebp - 0x224]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x10]
push 1
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov eax, dword [ebp - 0x27c]
test eax, eax
je 0x4493ac
push 0
push eax
push 1
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x4493c8
push 0
push eax
push 1
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorSacl]
push 0
push 0x80
lea eax, [ebp - 0x274]
mov dword [ebp - 0x260], 0xc
push 3
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x260]
push eax
push 0
push 0xc0000000
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x258], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x228], eax
cmp eax, 0xffffffff
jne 0x449520
call ebx
cmp eax, 0xe7
jne 0x449454
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x449381
test esi, esi
je 0x449472
mov edx, 0xe7
mov ecx, str.WaitRetry
dec esi
call fcn.004487d0
jmp 0x449381
test esi, esi
je 0x44947e
mov edx, eax
mov ecx, str.CreateRetry
dec esi
call fcn.004487d0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x449381
mov ecx, str.WaitEnd
mov eax, 0xe7
jmp 0x449483
mov ecx, str.CreateEnd
mov edx, eax
call fcn.004487d0
xor ebx, ebx
mov dword [ebp - 4], 5
xor esi, esi
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x4494c3
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, eax
jae 0x449678
mov eax, dword [ebp - 0x254]
push dword [eax + esi*4]
call edi
mov eax, dword [ebp - 0x250]
inc esi
cmp esi, eax
jb 0x4494ad
mov eax, dword [ebp - 0x240]
xor esi, esi
test eax, eax
je 0x4494f3
mov edi, dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp esi, eax
jae 0x449678
mov eax, dword [ebp - 0x244]
push dword [eax + esi*4]
call edi
mov eax, dword [ebp - 0x240]
inc esi
cmp esi, eax
jb 0x4494dd
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x449506
push eax
call fcn.004585e1
add esp, 4
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x449519
push eax
call fcn.004585e1
add esp, 4
mov eax, ebx
jmp 0x449652
lea eax, [edi + 8]
mov dword [ebp - 0x230], 0
push eax
call fcn.00454481
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x44948a
mov eax, dword [ebp - 0x284]
mov dword [ebx], eax
mov eax, dword [ebp - 0x288]
test eax, eax
jne 0x449571
mov dword [ebp - 0x224], eax
mov dword [ebx + 4], eax
mov dword [ebp - 0x22c], 8
mov dword [ebp - 0x220], 8
jmp 0x4495a3
push edi
push eax
lea eax, [ebx + 8]
mov dword [ebx + 4], edi
push eax
call fcn.00455760
lea ecx, [edi + 8]
add esp, 0xc
mov eax, ecx
mov dword [ebp - 0x22c], ecx
xor esi, esi
mov dword [ebp - 0x220], eax
test eax, eax
je 0x449625
mov eax, dword [ebp - 0x224]
xor edi, edi
xor esi, esi
nop word [eax + eax]
push 0
sub eax, esi
lea ecx, [ebp - 0x230]
push ecx
add eax, 8
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x230]
test eax, eax
jne 0x449601
mov eax, edi
inc edi
cmp eax, 3
jg 0x449613
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, str.WriteFileRetry
call fcn.004487d0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x230]
add esi, eax
cmp esi, dword [ebp - 0x220]
jae 0x449625
mov eax, dword [ebp - 0x224]
jmp 0x4495b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, str.WriteFileEnd
call fcn.004487d0
push ebx
call fcn.004541b4
add esp, 4
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x22c], esi
jne 0x44948a
mov ebx, 1
jmp 0x44948c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00453c11
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.00408660
push 0x80070057
call fcn.00408660
int3