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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bcae8
mov eax, dword fs:[0]
push eax
mov eax, 0xd0ec
call fcn.100aca00
mov eax, dword [0x100eaf80]
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 - 0xc6dc], 0
mov byte [ebp - 0xc6c5], 1
nop dword [eax + eax]
push 0xc350
lea eax, [ebp - 0xc3fc]
mov dword [ebp - 0xc6e8], 0
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
or esi, 0xffffffff
mov dword [ebp - 0xc6e0], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x100064bb
cmp esi, 0xffffffff
je 0x100064bb
mov eax, dword [0x100ea338]
test eax, eax
je 0x100064bb
cmp eax, 0xffffffff
jne 0x10006de0
call edi
mov ecx, eax
lea edi, [ebp - 0x2a]
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 0x100064c2
lea eax, [ebp - 0x2a]
mov dword [ebp - 0xc6d0], edi
mov dword [ebp - 0xc404], edx
xorps xmm0, xmm0
mov dword [ebp - 0xc400], edx
movups xmmword [ebp - 0xc414], xmm0
cmp edi, eax
jne 0x10006523
xor eax, eax
mov dword [ebp - 0xc404], edx
mov dword [ebp - 0xc400], 7
mov word [ebp - 0xc414], ax
jmp 0x100065e6
lea eax, [ebp - 0x2a]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xc6d8], eax
cmp eax, 0x7ffffffe
ja 0x100072ba
cmp eax, 7
ja 0x10006575
lea edi, [eax + eax]
mov dword [ebp - 0xc404], eax
push edi
push dword [ebp - 0xc6d0]
lea eax, [ebp - 0xc414]
mov dword [ebp - 0xc400], 7
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [ebp + edi - 0xc414], ax
jmp 0x100065e6
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x10006586
mov eax, 0x7ffffffe
jmp 0x10006591
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0xc6cc], eax
lea eax, [ebp - 0xc6cc]
push eax
lea eax, [ebp - 0xc414]
push eax
call fcn.10004b70
mov edi, dword [ebp - 0xc6d8]
mov ecx, dword [ebp - 0xc6cc]
mov dword [ebp - 0xc404], edi
add edi, edi
push edi
push dword [ebp - 0xc6d0]
mov dword [ebp - 0xc414], eax
push eax
mov dword [ebp - 0xc400], ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0xc414]
add esp, 0x14
xor ecx, ecx
mov word [edi + eax], cx
mov eax, dword [ebp - 0xc6dc]
or eax, 3
mov dword [ebp - 0xc6dc], eax
lea eax, [ebp - 0xc6d0]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xc444]
mov dword [ebp - 0xc6d0], 0x17
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0xc444], xmm0
call fcn.10004b70
movups xmm0, xmmword [str.LUNA_PIPE_AVAILABLE]
mov ecx, dword [ebp - 0xc6d0]
mov edx, eax
add esp, 8
mov dword [ebp - 0xc444], edx
mov dword [ebp - 0xc434], 0x13
mov dword [ebp - 0xc430], ecx
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x100caeac]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [0x100caebc]
mov dword [edx + 0x20], eax
mov ax, word [0x100caec0]
mov word [edx + 0x24], ax
xor eax, eax
mov word [edx + 0x26], ax
lea eax, [ebp - 0xc414]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xc444]
push eax
push dword [ebp - 0xc6e4]
lea ecx, [ebp - 0xc42c]
call fcn.10005190
cmp dword [ebp - 0xc418], 7
lea eax, [ebp - 0xc42c]
cmova eax, dword [ebp - 0xc42c]
push eax
push 0
push 0
push 0x100ef380
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 0x100066d4
cmp edi, 0xffffffff
je 0x100066d4
push edi
call dword [0x100cae00]
mov ecx, dword [ebp - 0xc418]
mov byte [ebp - 4], 4
cmp ecx, 7
jbe 0x10006718
mov edx, dword [ebp - 0xc42c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000670e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100072b5
push ecx
push edx
call fcn.100acaa2
add esp, 8
mov ecx, dword [ebp - 0xc430]
xor eax, eax
mov dword [ebp - 0xc41c], 0
mov dword [ebp - 0xc418], 7
mov word [ebp - 0xc42c], ax
mov byte [ebp - 4], 3
cmp ecx, 7
jbe 0x10006779
mov edx, dword [ebp - 0xc444]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000676f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100072b5
push ecx
push edx
call fcn.100acaa2
add esp, 8
mov ecx, dword [ebp - 0xc400]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x100067bd
mov edx, dword [ebp - 0xc414]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100067b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100072b5
push ecx
push edx
call fcn.100acaa2
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea edi, [ebp - 0x56]
nop dword [eax + 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 0x100067d0
lea eax, [ebp - 0x56]
mov dword [ebp - 0xc6cc], edi
mov dword [ebp - 0xc404], edx
xorps xmm0, xmm0
mov dword [ebp - 0xc400], edx
movups xmmword [ebp - 0xc414], xmm0
cmp edi, eax
jne 0x10006831
xor eax, eax
mov dword [ebp - 0xc404], edx
mov dword [ebp - 0xc400], 7
mov word [ebp - 0xc414], ax
jmp 0x100068f4
lea eax, [ebp - 0x56]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xc6d8], eax
cmp eax, 0x7ffffffe
ja 0x100072ba
cmp eax, 7
ja 0x10006883
lea edi, [eax + eax]
mov dword [ebp - 0xc404], eax
push edi
push dword [ebp - 0xc6cc]
lea eax, [ebp - 0xc414]
mov dword [ebp - 0xc400], 7
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [ebp + edi - 0xc414], ax
jmp 0x100068f4
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x10006894
mov eax, 0x7ffffffe
jmp 0x1000689f
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0xc6d0], eax
lea eax, [ebp - 0xc6d0]
push eax
lea eax, [ebp - 0xc414]
push eax
call fcn.10004b70
mov edi, dword [ebp - 0xc6d8]
mov ecx, dword [ebp - 0xc6d0]
mov dword [ebp - 0xc404], edi
add edi, edi
push edi
push dword [ebp - 0xc6cc]
mov dword [ebp - 0xc414], eax
push eax
mov dword [ebp - 0xc400], ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0xc414]
add esp, 0x14
xor ecx, ecx
mov word [edi + eax], cx
lea eax, [ebp - 0xc6d0]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xc444]
mov dword [ebp - 0xc6d0], 0x17
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0xc444], xmm0
call fcn.10004b70
movups xmm0, xmmword [str..pipeLUNA_HOST]
mov ecx, dword [ebp - 0xc6d0]
mov edx, eax
add esp, 8
mov dword [ebp - 0xc444], edx
mov dword [ebp - 0xc434], 0x12
mov dword [ebp - 0xc430], ecx
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x100cae3c]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [0x100cae4c]
mov dword [edx + 0x20], eax
xor eax, eax
mov word [edx + 0x24], ax
lea eax, [ebp - 0xc414]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0xc444]
push eax
push dword [ebp - 0xc6e4]
lea ecx, [ebp - 0xc42c]
call fcn.10005190
cmp dword [ebp - 0xc418], 7
lea eax, [ebp - 0xc42c]
push 0
cmova eax, dword [ebp - 0xc42c]
push 0x80
push 3
push 0
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 - 0xc6e0], esi
test ecx, ecx
je 0x100069d1
cmp ecx, 0xffffffff
je 0x100069d1
push ecx
call dword [0x100cae00]
mov ecx, dword [ebp - 0xc418]
mov byte [ebp - 4], 7
cmp ecx, 7
jbe 0x10006a15
mov edx, dword [ebp - 0xc42c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10006a0b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100072b5
push ecx
push edx
call fcn.100acaa2
add esp, 8
mov ecx, dword [ebp - 0xc430]
xor eax, eax
mov dword [ebp - 0xc41c], 0
mov dword [ebp - 0xc418], 7
mov word [ebp - 0xc42c], ax
mov byte [ebp - 4], 6
cmp ecx, 7
jbe 0x10006a76
mov edx, dword [ebp - 0xc444]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10006a6c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100072b5
push ecx
push edx
call fcn.100acaa2
add esp, 8
mov ecx, dword [ebp - 0xc400]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x10006aba
mov edx, dword [ebp - 0xc414]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10006ab0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100072b5
push ecx
push edx
call fcn.100acaa2
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea edi, [ebp - 0x82]
nop dword [eax + 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 0x10006ad0
lea eax, [ebp - 0x82]
mov dword [ebp - 0xc6cc], edi
mov dword [ebp - 0xc404], edx
xorps xmm0, xmm0
mov dword [ebp - 0xc400], edx
movups xmmword [ebp - 0xc414], xmm0
cmp edi, eax
jne 0x10006b34
xor eax, eax
mov dword [ebp - 0xc404], edx
mov dword [ebp - 0xc400], 7
mov word [ebp - 0xc414], ax
jmp 0x10006bfa
lea eax, [ebp - 0x82]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xc6d8], eax
cmp eax, 0x7ffffffe
ja 0x100072ba
cmp eax, 7
ja 0x10006b89
lea edi, [eax + eax]
mov dword [ebp - 0xc404], eax
push edi
push dword [ebp - 0xc6cc]
lea eax, [ebp - 0xc414]
mov dword [ebp - 0xc400], 7
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [ebp + edi - 0xc414], ax
jmp 0x10006bfa
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x10006b9a
mov eax, 0x7ffffffe
jmp 0x10006ba5
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0xc6d0], eax
lea eax, [ebp - 0xc6d0]
push eax
lea eax, [ebp - 0xc414]
push eax
call fcn.10004b70
mov edi, dword [ebp - 0xc6d8]
mov ecx, dword [ebp - 0xc6d0]
mov dword [ebp - 0xc404], edi
add edi, edi
push edi
push dword [ebp - 0xc6cc]
mov dword [ebp - 0xc414], eax
push eax
mov dword [ebp - 0xc400], ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0xc414]
add esp, 0x14
xor ecx, ecx
mov word [edi + eax], cx
lea eax, [ebp - 0xc6d0]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xc444]
mov dword [ebp - 0xc6d0], 0x17
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0xc444], xmm0
call fcn.10004b70
movups xmm0, xmmword [str..pipeLUNA_HOOK]
mov ecx, dword [ebp - 0xc6d0]
mov edx, eax
add esp, 8
mov dword [ebp - 0xc444], edx
mov dword [ebp - 0xc434], 0x12
mov dword [ebp - 0xc430], ecx
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x100cae14]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [0x100cae24]
mov dword [edx + 0x20], eax
xor eax, eax
mov word [edx + 0x24], ax
lea eax, [ebp - 0xc414]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xc444]
push eax
push dword [ebp - 0xc6e4]
lea ecx, [ebp - 0xc42c]
call fcn.10005190
or dword [ebp - 0xc6dc], 0x1fc
lea eax, [ebp - 0xc42c]
cmp dword [ebp - 0xc418], 7
push 0
cmova eax, dword [ebp - 0xc42c]
push 0x80
push 3
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [0x100ea338]
mov byte [ebp - 4], 0xc
mov dword [0x100ea338], eax
test ecx, ecx
je 0x10006ce2
cmp ecx, 0xffffffff
je 0x10006ce2
push ecx
call dword [0x100cae00]
mov ecx, dword [ebp - 0xc418]
mov byte [ebp - 4], 0xb
cmp ecx, 7
jbe 0x10006d26
mov edx, dword [ebp - 0xc42c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10006d1c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100072b5
push ecx
push edx
call fcn.100acaa2
add esp, 8
mov ecx, dword [ebp - 0xc430]
xor eax, eax
mov dword [ebp - 0xc41c], 0
mov dword [ebp - 0xc418], 7
mov word [ebp - 0xc42c], ax
mov byte [ebp - 4], 0xa
cmp ecx, 7
jbe 0x10006d87
mov edx, dword [ebp - 0xc444]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10006d7d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100072b5
push ecx
push edx
call fcn.100acaa2
add esp, 8
mov ecx, dword [ebp - 0xc400]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x100064a0
mov edx, dword [ebp - 0xc414]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10006dcb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100072b5
push ecx
push edx
call fcn.100acaa2
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 8
jmp 0x100064a0
push 0
push 0
lea eax, [ebp - 0xc6e4]
mov dword [ebp - 0xc6e4], 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
call edi
push 0
mov dword [ebp - 0xc3fc], eax
lea eax, [ebp - 0xc6e8]
push eax
push 4
lea eax, [ebp - 0xc3fc]
push eax
push dword [0x100ea338]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push str.pipe_connected
call fcn.100057c0
add esp, 4
call fcn.1006e010
cmp byte [ebp - 0xc6c5], 0
mov byte [0x100ef4b5], 1
je 0x100071f2
nop dword [eax + eax]
push 0
lea eax, [ebp - 0xc6e8]
push eax
push 0xc350
lea eax, [ebp - 0xc3fc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100071ec
mov eax, dword [ebp - 0xc3fc]
cmp eax, 5
ja case.0x10006e7f.3
jmp dword [eax*4 + 0x100072c0]
mov eax, dword [0x100ef4b8]
lea esi, [ebp - 0xc3fc]
mov ecx, 0x284
lea edi, [ebp - 0xd0f8]
add eax, 1
rep movsd dword es:[edi], dword [esi]
mov dword [0x100ef4b8], eax
jns 0x10006ebe
neg eax
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.10004f90
add esp, 8
mov byte [eax - 1], 0x2d
dec eax
jmp 0x10006ecb
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.10004f90
add esp, 8
lea ecx, [ebp - 0x13]
mov dword [ebp - 0xc6cc], eax
mov dword [ebp - 0xc404], 0
xorps xmm0, xmm0
mov dword [ebp - 0xc400], 0
movups xmmword [ebp - 0xc414], xmm0
cmp eax, ecx
jne 0x10006f16
mov dword [ebp - 0xc404], 0
mov dword [ebp - 0xc400], 0xf
mov byte [ebp - 0xc414], 0
jmp 0x10006fbc
lea edi, [ebp - 0x13]
sub edi, eax
cmp edi, 0x7fffffff
ja 0x100072ba
mov dword [ebp - 0xc400], 0xf
cmp edi, 0xf
ja 0x10006f57
push edi
push eax
lea eax, [ebp - 0xc414]
mov dword [ebp - 0xc404], edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [ebp + edi - 0xc414], 0
jmp 0x10006fbc
mov eax, edi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x10006f6a
mov eax, 0x7fffffff
jmp 0x10006f75
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0xc6d0], eax
lea eax, [ebp - 0xc6d0]
push eax
lea eax, [ebp - 0xc414]
push eax
call fcn.10004b10
mov ecx, dword [ebp - 0xc6d0]
mov esi, eax
push edi
push dword [ebp - 0xc6cc]
mov dword [ebp - 0xc414], esi
push esi
mov dword [ebp - 0xc404], edi
mov dword [ebp - 0xc400], ecx
call sub.msvcrt.dll_memcpy
add esp, 0x14
mov byte [esi + edi], 0
mov esi, dword [ebp - 0xc6dc]
or esi, 0x600
push 8
push str.UserHook
push 0
lea ecx, [ebp - 0xc414]
mov byte [ebp - 4], 0xe
call fcn.10007ea0
mov dword [ebp - 0xc41c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xc42c], xmm0
mov dword [ebp - 0xc418], 0
or esi, 0x800
movups xmm0, xmmword [eax]
mov dword [ebp - 0xc6dc], esi
movups xmmword [ebp - 0xc42c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc41c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp dword [ebp - 0xc418], 0xf
lea eax, [ebp - 0xc42c]
mov ecx, 0x282
mov byte [ebp - 4], 0xf
cmova eax, dword [ebp - 0xc42c]
lea esi, [ebp - 0xd0f0]
push eax
sub esp, 0xa08
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10005a60
mov ecx, dword [ebp - 0xc418]
add esp, 0xa0c
mov byte [ebp - 4], 0xe
cmp ecx, 0xf
jbe 0x100070a9
mov edx, dword [ebp - 0xc42c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000709f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100072b5
push ecx
push edx
call fcn.100acaa2
add esp, 8
mov ecx, dword [ebp - 0xc400]
mov esi, dword [ebp - 0xc6e0]
mov dword [ebp - 0xc41c], 0
mov dword [ebp - 0xc418], 0xf
mov byte [ebp - 0xc42c], 0
mov byte [ebp - 4], 2
cmp ecx, 0xf
jbe case.0x10006e7f.3
mov edx, dword [ebp - 0xc414]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10007102
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100072b5
push ecx
push edx
call fcn.100acaa2
mov esi, dword [ebp - 0xc6e0]
add esp, 8
jmp case.0x10006e7f.3
mov ecx, dword [0x100ef440]
lea eax, [ecx + 0x694920]
mov dword [ebp - 0xc6d8], eax
cmp ecx, eax
je case.0x10006e7f.3
mov edi, dword [ecx + 0xa08]
sub edi, dword [ebp - 0xc3f4]
mov eax, dword [ecx + 0xa0c]
sbb eax, dword [ebp - 0xc3f0]
cdq
xor eax, edx
xor edi, edx
sub edi, edx
sbb eax, edx
mov dword [ebp - 0xc6d0], eax
js 0x10007173
jg 0x10007160
test edi, edi
je 0x10007173
add ecx, 0xac8
cmp ecx, dword [ebp - 0xc6d8]
jne 0x10007131
jmp case.0x10006e7f.3
call fcn.10008a70
jmp case.0x10006e7f.3
cmp word [ebp - 0xc1bc], 0
lea esi, [ebp - 0xc3fc]
mov ecx, 0xa0
lea edi, [ebp - 0xc6c4]
rep movsd dword es:[edi], dword [esi]
je 0x100071ba
push dword [ebp - 0xc3bc]
lea eax, [ebp - 0xc484]
push eax
call fcn.1000bae0
mov esi, dword [ebp - 0xc6e0]
add esp, 8
jmp case.0x10006e7f.3
sub esp, 0x278
lea esi, [ebp - 0xc3f4]
mov ecx, 0x9e
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.1000b830
mov esi, dword [ebp - 0xc6e0]
add esp, 0x278
jmp case.0x10006e7f.3
mov byte [ebp - 0xc6c5], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 4], 0x10
test esi, esi
je 0x10007209
cmp esi, 0xffffffff
je 0x10007209
push esi
call dword [0x100cae00]
mov eax, dword [0x100ea338]
mov dword [ebp - 4], 0
mov dword [0x100ea338], 0xffffffff
test eax, eax
je 0x1000722f
cmp eax, 0xffffffff
je 0x1000722f
push eax
call dword [0x100cae00]
cmp byte [ebp - 0xc6c5], 0
mov dword [ebp - 4], 0xffffffff
jne 0x10006470
cmp byte [0x100ef4b4], 0
je 0x10007277
push 0
mov byte [0x100ef4b5], 0
call fcn.10006420
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.100acab0
mov esp, ebp
pop ebp
ret 4
call fcn.10078400
mov esi, dword [0x100ef440]
lea edi, [esi + 0x694920]
cmp esi, edi
je 0x100072a1
nop dword [eax]
mov ecx, esi
call fcn.10008a70
add esi, 0xac8
cmp esi, edi
jne 0x10007290
push 0
push str.LunaHook32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
call fcn.100adf80
call fcn.10007ac0
nop
xchg byte [esi], ch
adc byte [edi], dl
jno 0x100072c7
adc byte [ebp + 0x71], bh
add byte [eax], dl
push eax
outsb dx, byte [esi]
add byte [eax], dl
push eax
outsb dx, byte [esi]
add byte [eax], dl
in eax, 0x71
add byte [eax], dl
int3