Function at 0x10008ce0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10101353
mov eax, dword fs:[0]
push eax
mov eax, 0xd070
call fcn.100d9250
mov eax, dword [0x10143118]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0xc65c], 0
mov byte [ebp - 0xc655], 1
nop dword [eax + eax]
push 0xc350
lea eax, [ebp - 0xc38c]
mov dword [ebp - 0xc664], 0
push 0
push eax
call fcn.100dbff0
add esp, 0xc
or esi, 0xffffffff
mov dword [ebp - 0xc660], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x10008d7b
cmp esi, 0xffffffff
je 0x10008d7b
mov eax, dword [0x101422c8]
test eax, eax
je 0x10008d7b
cmp eax, 0xffffffff
jne 0x10009533
call edi
mov ecx, eax
lea edi, [ebp - 0x12]
mov eax, 0xcccccccd
sub edi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [edi], cx
mov ecx, edx
test ecx, ecx
jne 0x10008d82
xor eax, eax
mov dword [ebp - 0xc3c4], edx
mov word [ebp - 0xc3d4], ax
lea eax, [ebp - 0x12]
mov dword [ebp - 0xc3c0], 7
cmp edi, eax
je 0x10008dd3
sub eax, edi
lea ecx, [ebp - 0xc3d4]
sar eax, 1
push eax
push edi
call fcn.1000a5d0
mov eax, dword [ebp - 0xc65c]
or eax, 3
mov dword [ebp - 0xc65c], eax
push 0x13
xor eax, eax
mov byte [ebp - 4], 3
push str.LUNA_PIPE_AVAILABLE
lea ecx, [ebp - 0xc3a4]
mov dword [ebp - 0xc394], 0
mov dword [ebp - 0xc390], 7
mov word [ebp - 0xc3a4], ax
call fcn.1000a5d0
mov eax, dword [ebp - 0xc390]
mov ecx, dword [ebp - 0xc394]
sub eax, ecx
mov edx, dword [ebp - 0xc3c4]
mov edi, dword [ebp - 0xc3c0]
mov byte [ebp - 4], 4
cmp edx, eax
jbe 0x10008e64
mov eax, edi
sub eax, edx
cmp eax, ecx
jb 0x10008e64
cmp dword [ebp - 0xc390], 8
lea eax, [ebp - 0xc3a4]
push ecx
cmovae eax, dword [ebp - 0xc3a4]
lea ecx, [ebp - 0xc3d4]
push eax
push 0
call fcn.1000ae10
jmp 0x10008e81
cmp edi, 8
lea eax, [ebp - 0xc3d4]
push edx
cmovae eax, dword [ebp - 0xc3d4]
lea ecx, [ebp - 0xc3a4]
push eax
call fcn.1000a360
mov dword [ebp - 0xc3ac], 0
xor ecx, ecx
mov dword [ebp - 0xc3a8], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xc3bc], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc3ac], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0xc3bc]
cmp dword [ebp - 0xc3a8], 8
cmovae eax, dword [ebp - 0xc3bc]
push eax
push ecx
push ecx
push 0x10149fa8
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 4], 5
test edi, edi
je 0x10008f00
cmp edi, 0xffffffff
je 0x10008f00
push edi
call dword [0x1010fbe8]
mov edx, dword [ebp - 0xc3a8]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x10008f44
mov ecx, dword [ebp - 0xc3bc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10008f3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009985
push edx
push ecx
call fcn.100d92cf
add esp, 8
mov edx, dword [ebp - 0xc390]
xor eax, eax
mov dword [ebp - 0xc3ac], 0
mov dword [ebp - 0xc3a8], 7
mov word [ebp - 0xc3bc], ax
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x10008fa5
mov ecx, dword [ebp - 0xc3a4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10008f9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009985
push edx
push ecx
call fcn.100d92cf
add esp, 8
mov edx, dword [ebp - 0xc3c0]
xor eax, eax
mov dword [ebp - 0xc394], 0
mov dword [ebp - 0xc390], 7
mov word [ebp - 0xc3a4], ax
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x10009006
mov ecx, dword [ebp - 0xc3d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10008ffc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009985
push edx
push ecx
call fcn.100d92cf
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea edi, [ebp - 0x12]
mov eax, 0xcccccccd
sub edi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [edi], cx
mov ecx, edx
test ecx, ecx
jne 0x10009011
xor eax, eax
mov dword [ebp - 0xc3c4], edx
mov word [ebp - 0xc3d4], ax
lea eax, [ebp - 0x12]
mov dword [ebp - 0xc3c0], 7
cmp edi, eax
je 0x10009062
sub eax, edi
lea ecx, [ebp - 0xc3d4]
sar eax, 1
push eax
push edi
call fcn.1000a5d0
push 0x12
xor eax, eax
mov byte [ebp - 4], 6
push str..pipeLUNA_HOST
lea ecx, [ebp - 0xc3a4]
mov dword [ebp - 0xc394], 0
mov dword [ebp - 0xc390], 7
mov word [ebp - 0xc3a4], ax
call fcn.1000a5d0
mov eax, dword [ebp - 0xc390]
mov ecx, dword [ebp - 0xc394]
sub eax, ecx
mov edx, dword [ebp - 0xc3c4]
mov edi, dword [ebp - 0xc3c0]
mov byte [ebp - 4], 7
cmp edx, eax
jbe 0x100090e4
mov eax, edi
sub eax, edx
cmp eax, ecx
jb 0x100090e4
cmp dword [ebp - 0xc390], 8
lea eax, [ebp - 0xc3a4]
push ecx
cmovae eax, dword [ebp - 0xc3a4]
lea ecx, [ebp - 0xc3d4]
push eax
push 0
call fcn.1000ae10
jmp 0x10009101
cmp edi, 8
lea eax, [ebp - 0xc3d4]
push edx
cmovae eax, dword [ebp - 0xc3d4]
lea ecx, [ebp - 0xc3a4]
push eax
call fcn.1000a360
mov dword [ebp - 0xc3ac], 0
xor ecx, ecx
mov dword [ebp - 0xc3a8], 0
movups xmm0, xmmword [eax]
push ecx
push 0x80
movups xmmword [ebp - 0xc3bc], xmm0
push 3
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc3ac], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0xc3bc]
cmp dword [ebp - 0xc3a8], 8
push ecx
cmovae eax, dword [ebp - 0xc3bc]
push 1
push 0x80000100
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, esi
mov byte [ebp - 4], 8
mov esi, eax
mov dword [ebp - 0xc660], esi
test ecx, ecx
je 0x10009188
cmp ecx, 0xffffffff
je 0x10009188
push ecx
call dword [0x1010fbe8]
mov edx, dword [ebp - 0xc3a8]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x100091cc
mov ecx, dword [ebp - 0xc3bc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100091c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009985
push edx
push ecx
call fcn.100d92cf
add esp, 8
mov edx, dword [ebp - 0xc390]
xor eax, eax
mov dword [ebp - 0xc3ac], 0
mov dword [ebp - 0xc3a8], 7
mov word [ebp - 0xc3bc], ax
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x1000922d
mov ecx, dword [ebp - 0xc3a4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10009223
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009985
push edx
push ecx
call fcn.100d92cf
add esp, 8
mov edx, dword [ebp - 0xc3c0]
xor eax, eax
mov dword [ebp - 0xc394], 0
mov dword [ebp - 0xc390], 7
mov word [ebp - 0xc3a4], ax
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x1000928e
mov ecx, dword [ebp - 0xc3d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10009284
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009985
push edx
push ecx
call fcn.100d92cf
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea edi, [ebp - 0x12]
nop dword [eax]
mov eax, 0xcccccccd
sub edi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [edi], cx
mov ecx, edx
test ecx, ecx
jne 0x100092a0
xor eax, eax
mov dword [ebp - 0xc3c4], edx
mov word [ebp - 0xc3d4], ax
lea eax, [ebp - 0x12]
mov dword [ebp - 0xc3c0], 7
cmp edi, eax
je 0x100092f1
sub eax, edi
lea ecx, [ebp - 0xc3d4]
sar eax, 1
push eax
push edi
call fcn.1000a5d0
push 0x12
xor eax, eax
mov byte [ebp - 4], 0xa
push str..pipeLUNA_HOOK
lea ecx, [ebp - 0xc3a4]
mov dword [ebp - 0xc394], 0
mov dword [ebp - 0xc390], 7
mov word [ebp - 0xc3a4], ax
call fcn.1000a5d0
mov eax, dword [ebp - 0xc390]
mov ecx, dword [ebp - 0xc394]
sub eax, ecx
mov edx, dword [ebp - 0xc3c4]
mov edi, dword [ebp - 0xc3c0]
mov byte [ebp - 4], 0xb
cmp edx, eax
jbe 0x10009373
mov eax, edi
sub eax, edx
cmp eax, ecx
jb 0x10009373
cmp dword [ebp - 0xc390], 8
lea eax, [ebp - 0xc3a4]
push ecx
cmovae eax, dword [ebp - 0xc3a4]
lea ecx, [ebp - 0xc3d4]
push eax
push 0
call fcn.1000ae10
jmp 0x10009390
cmp edi, 8
lea eax, [ebp - 0xc3d4]
push edx
cmovae eax, dword [ebp - 0xc3d4]
lea ecx, [ebp - 0xc3a4]
push eax
call fcn.1000a360
or dword [ebp - 0xc65c], 0x1fc
xor ecx, ecx
mov dword [ebp - 0xc3ac], 0
mov dword [ebp - 0xc3a8], 0
movups xmm0, xmmword [eax]
push ecx
push 0x80
movups xmmword [ebp - 0xc3bc], xmm0
push 3
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc3ac], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0xc3bc]
cmp dword [ebp - 0xc3a8], 8
push ecx
cmovae eax, dword [ebp - 0xc3bc]
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [0x101422c8]
mov byte [ebp - 4], 0xc
mov dword [0x101422c8], eax
test ecx, ecx
je 0x10009422
cmp ecx, 0xffffffff
je 0x10009422
push ecx
call dword [0x1010fbe8]
mov edx, dword [ebp - 0xc3a8]
mov byte [ebp - 4], 0xb
cmp edx, 8
jb 0x10009466
mov ecx, dword [ebp - 0xc3bc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000945c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009985
push edx
push ecx
call fcn.100d92cf
add esp, 8
mov edx, dword [ebp - 0xc390]
xor eax, eax
mov dword [ebp - 0xc3ac], 0
mov dword [ebp - 0xc3a8], 7
mov word [ebp - 0xc3bc], ax
mov byte [ebp - 4], 0xa
cmp edx, 8
jb 0x100094c7
mov ecx, dword [ebp - 0xc3a4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100094bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009985
push edx
push ecx
call fcn.100d92cf
add esp, 8
mov edx, dword [ebp - 0xc3c0]
xor eax, eax
mov dword [ebp - 0xc394], 0
mov dword [ebp - 0xc390], 7
mov word [ebp - 0xc3a4], ax
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x10009528
mov ecx, dword [ebp - 0xc3d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000951e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009985
push edx
push ecx
call fcn.100d92cf
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
jmp 0x10008d60
push 0
push 0
lea eax, [ebp - 0xc668]
mov dword [ebp - 0xc668], 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
call edi
push 0
mov dword [ebp - 0xc38c], eax
lea eax, [ebp - 0xc664]
push eax
push 4
lea eax, [ebp - 0xc38c]
push eax
push dword [0x101422c8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc664]
push eax
push 8
push 0x10142b44
push dword [0x101422c8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xffffffffffffffff
push str.pipe_connected
push 0
call fcn.10007d90
add esp, 0xc
call fcn.1007d7c0
cmp byte [ebp - 0xc655], 0
mov byte [0x1014a13d], 1
je 0x100098cb
nop dword [eax + eax]
push 0
lea eax, [ebp - 0xc664]
push eax
push 0xc350
lea eax, [ebp - 0xc38c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100098c5
mov eax, dword [ebp - 0xc38c]
cmp eax, 6
ja case.0x100095ef.3
jmp dword [eax*4 + 0x1000998c]
mov eax, dword [0x1014a140]
lea esi, [ebp - 0xc38c]
mov ecx, 0x282
lea edi, [ebp - 0xd07c]
add eax, 1
rep movsd dword es:[edi], dword [esi]
mov dword [0x1014a140], eax
jns 0x10009630
neg eax
push eax
lea eax, [ebp - 0xc3a7]
push eax
call fcn.100070c0
mov byte [eax - 1], 0x2d
lea ecx, [eax - 1]
jmp 0x1000963f
push eax
lea eax, [ebp - 0xc3a7]
push eax
call fcn.100070c0
mov ecx, eax
lea eax, [ebp - 0xc3a7]
mov dword [ebp - 0xc3c4], 0
add esp, 8
mov dword [ebp - 0xc3c0], 0xf
mov byte [ebp - 0xc3d4], 0
cmp ecx, eax
je 0x10009676
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0xc3d4]
call fcn.1000a4e0
mov esi, dword [ebp - 0xc65c]
or esi, 0x600
push 8
push str.UserHook
push 0
lea ecx, [ebp - 0xc3d4]
mov byte [ebp - 4], 0xe
call fcn.1000ac30
mov dword [ebp - 0xc394], 0
or esi, 0x800
mov dword [ebp - 0xc390], 0
mov dword [ebp - 0xc65c], esi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xc3a4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc394], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp dword [ebp - 0xc390], 0x10
lea eax, [ebp - 0xc3a4]
mov ecx, 0x280
mov byte [ebp - 4], 0xf
cmovae eax, dword [ebp - 0xc3a4]
lea esi, [ebp - 0xd074]
push eax
sub esp, 0xa00
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10007ff0
mov edx, dword [ebp - 0xc390]
add esp, 0xa04
mov byte [ebp - 4], 0xe
cmp edx, 0x10
jb 0x10009759
mov ecx, dword [ebp - 0xc3a4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000974f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009985
push edx
push ecx
call fcn.100d92cf
add esp, 8
mov edx, dword [ebp - 0xc3c0]
mov esi, dword [ebp - 0xc660]
mov dword [ebp - 0xc394], 0
mov dword [ebp - 0xc390], 0xf
mov byte [ebp - 0xc3a4], 0
mov byte [ebp - 4], 2
cmp edx, 0x10
jb case.0x100095ef.3
mov ecx, dword [ebp - 0xc3d4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100097b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009985
push edx
push ecx
call fcn.100d92cf
mov esi, dword [ebp - 0xc660]
add esp, 8
jmp case.0x100095ef.3
mov eax, dword [ebp - 0xc388]
test eax, eax
jne 0x100097db
call fcn.1008c0f0
jmp case.0x100095ef.3
cmp eax, 1
jne case.0x100095ef.3
push 0
call fcn.1008c520
add esp, 4
jmp case.0x100095ef.3
mov ecx, dword [0x10149fc0]
lea eax, [ecx + 0x68fb00]
mov dword [ebp - 0xc66c], eax
cmp ecx, eax
je case.0x100095ef.3
nop dword [eax]
mov edi, dword [ecx + 0xa00]
sub edi, dword [ebp - 0xc384]
mov eax, dword [ecx + 0xa04]
sbb eax, dword [ebp - 0xc380]
cdq
xor eax, edx
xor edi, edx
sub edi, edx
sbb eax, edx
js 0x1000984c
jg 0x10009839
test edi, edi
je 0x1000984c
add ecx, 0xac0
cmp ecx, dword [ebp - 0xc66c]
jne 0x10009810
jmp case.0x100095ef.3
call fcn.1000ba20
jmp case.0x100095ef.3
cmp word [ebp - 0xc14c], 0
lea esi, [ebp - 0xc38c]
mov ecx, 0xa0
lea edi, [ebp - 0xc654]
rep movsd dword es:[edi], dword [esi]
je 0x10009893
push dword [ebp - 0xc34c]
lea eax, [ebp - 0xc414]
push eax
call fcn.1000ec40
mov esi, dword [ebp - 0xc660]
add esp, 8
jmp case.0x100095ef.3
sub esp, 0x278
lea esi, [ebp - 0xc384]
mov ecx, 0x9e
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.1000e830
mov esi, dword [ebp - 0xc660]
add esp, 0x278
jmp case.0x100095ef.3
mov byte [ebp - 0xc655], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
mov dword [ebp - 4], 0x10
call dword [0x1010fbe8]
mov eax, dword [0x101422c8]
mov dword [ebp - 4], 0
mov dword [0x101422c8], 0xffffffff
test eax, eax
je 0x100098ff
cmp eax, 0xffffffff
je 0x100098ff
push eax
call dword [0x1010fbe8]
cmp byte [ebp - 0xc655], 0
mov dword [ebp - 4], 0xffffffff
jne 0x10008d30
cmp byte [0x1014a13c], 0
je 0x10009947
push 0
mov byte [0x1014a13d], 0
call fcn.10008ce0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d92f9
mov esp, ebp
pop ebp
ret 4
call fcn.100870c0
mov esi, dword [0x10149fc0]
lea edi, [esi + 0x68fb00]
cmp esi, edi
je 0x10009971
nop dword [eax]
mov ecx, esi
call fcn.1000ba20
add esi, 0xac0
cmp esi, edi
jne 0x10009960
push 0
push str.LunaHook32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
call fcn.100e45a9
nop
not byte [ebp - 0x680cf000]
add byte [eax], dl
push esi
cwde
add byte [eax], dl
rcl byte [ebp - 0x6a3ff000], 0
adc byte [esi - 955252584], bh
xchg edi, eax
add byte [eax], dl
int3