Function at 0x42d420
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8dd5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xe60
mov eax, dword [0x506054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x1c], ecx
call fcn.0040bd30
mov ecx, eax
test ecx, ecx
je 0x42d7bd
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push dword [0x50f2b8]
push str..pipe_sessionid_ld
push eax
call fcn.0040b570
add esp, 0xc
lea ecx, [ebp - 0x18]
push str.Keyboard
call fcn.0042e620
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x34], xmm0
push 6
movq qword [ebp - 0x24], xmm0
movq qword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
call fcn.004364e1
mov dword [ebp - 0x20], eax
push ecx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00405af0
test eax, eax
jne 0x42d515
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x42d503
movq xmm0, qword [eax]
movq qword [ebp - 0x40], xmm0
mov eax, dword [eax + 8]
mov dword [ebp - 0x38], eax
jmp 0x42d515
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x40]
push 0
push 0
push 3
push eax
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xe6c], eax
cmp eax, 0xffffffff
je 0x42d6a3
push 0xe10
lea eax, [ebp - 0xe54]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [0x4ed6a0]
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebp - 0xe58], eax
movups xmmword [ebp - 0xe68], xmm0
cmp eax, 2
jne 0x42d590
test edi, edi
je 0x42d589
mov esi, edi
mov ecx, 0x84
lea edi, [ebp - 0xe54]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x18]
jmp 0x42d5d7
push 0x210
jmp 0x42d5b2
cmp eax, 8
jne 0x42d5d7
test edi, edi
je 0x42d5ad
mov esi, edi
mov ecx, 0x108
lea edi, [ebp - 0xe54]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x18]
jmp 0x42d5d7
push 0x420
lea eax, [ebp - 0xe54]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
add esp, 0xc
call eax
mov dword [eax], 0x16
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
call eax
mov edi, dword [ebp - 0xe6c]
lea eax, [ebp - 0x1c]
push 0
push eax
push 0xe24
lea eax, [ebp - 0xe68]
mov dword [ebp - 0x1c], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x42d61c
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0xe6c]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42d71a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [ecx]
mov ecx, dword [0x50e588]
cmp ecx, dword [edx + 4]
jle 0x42d684
push 0x50e588
call fcn.00436657
add esp, 4
cmp dword [0x50e588], 0xffffffff
jne 0x42d684
push 0x210
push 0
push 0x50e378
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call fcn.0040a390
push 0x4be580
call fcn.00436969
add esp, 4
push 0x50e588
call fcn.0043660d
add esp, 4
push 0x1e3
push ecx
push edi
mov ecx, 0x50e378
call fcn.0040aab0
push dword [ebp - 0xe6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42d71a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x50e588]
cmp eax, dword [ecx + 4]
jle 0x42d709
push 0x50e588
call fcn.00436657
add esp, 4
cmp dword [0x50e588], 0xffffffff
jne 0x42d709
push 0x210
push 0
push 0x50e378
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call fcn.0040a390
push 0x4be580
call fcn.00436969
add esp, 4
push 0x50e588
call fcn.0043660d
add esp, 4
push 0x1eb
push ecx
push edi
mov ecx, 0x50e378
call fcn.0040aab0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x42d728
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x30]
mov ecx, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x42d73e
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x42d748
push eax
call ecx
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42d75a
push 0x20
push eax
call fcn.00436511
add esp, 8
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x42d76c
push 0xc
push eax
call fcn.00436511
add esp, 8
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x42d77e
push 6
push eax
call fcn.00436511
add esp, 8
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42d79d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004364d3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.0040bb00
int3