Function at 0x10003f90
Capabilities:
Read file on windows
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 0x100aa36e
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0xd310
call fcn.1009a3b0
mov eax, dword [0x100d0cc0]
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, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0xccf8], 0
mov byte [ebp - 0xcced], 1
nop dword [eax]
push 0xc350
lea eax, [ebp - 0xc400]
mov dword [ebp - 0xcd08], 0
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
or esi, 0xffffffff
mov dword [ebp - 0xccfc], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x1000403b
cmp esi, 0xffffffff
je 0x1000403b
mov eax, dword [0x100d0300]
test eax, eax
je 0x1000403b
cmp eax, 0xffffffff
jne 0x10004960
call edi
mov ecx, eax
lea edi, [ebp - 0x2e]
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 0x10004042
lea eax, [ebp - 0x2e]
mov dword [ebp - 0xccec], edi
mov dword [ebp - 0xc408], edx
xorps xmm0, xmm0
mov dword [ebp - 0xc404], edx
movups xmmword [ebp - 0xc418], xmm0
cmp edi, eax
jne 0x100040a3
xor eax, eax
mov dword [ebp - 0xc408], edx
mov dword [ebp - 0xc404], 7
mov word [ebp - 0xc418], ax
jmp 0x10004166
lea eax, [ebp - 0x2e]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xcd00], eax
cmp eax, 0x7ffffffe
ja 0x10004faa
cmp eax, 7
ja 0x100040f5
lea edi, [eax + eax]
mov dword [ebp - 0xc408], eax
push edi
push dword [ebp - 0xccec]
lea eax, [ebp - 0xc418]
mov dword [ebp - 0xc404], 7
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [ebp + edi - 0xc418], ax
jmp 0x10004166
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x10004106
mov eax, 0x7ffffffe
jmp 0x10004111
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0xccf4], eax
lea eax, [ebp - 0xccf4]
push eax
lea eax, [ebp - 0xc418]
push eax
call fcn.10003280
mov edi, dword [ebp - 0xcd00]
mov ecx, dword [ebp - 0xccf4]
mov dword [ebp - 0xc408], edi
add edi, edi
push edi
push dword [ebp - 0xccec]
mov dword [ebp - 0xc418], eax
push eax
mov dword [ebp - 0xc404], ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0xc418]
add esp, 0x14
xor ecx, ecx
mov word [edi + eax], cx
mov eax, dword [ebp - 0xccf8]
or eax, 3
mov dword [ebp - 0xccf8], eax
lea eax, [ebp - 0xccec]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xc448]
mov dword [ebp - 0xccec], 0x17
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0xc448], xmm0
call fcn.10003280
movups xmm0, xmmword [str.LUNA_PIPE_AVAILABLE]
mov ecx, dword [ebp - 0xccec]
mov edx, eax
add esp, 8
mov dword [ebp - 0xc448], edx
mov dword [ebp - 0xc438], 0x13
mov dword [ebp - 0xc434], ecx
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x100b57fc]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [0x100b580c]
mov dword [edx + 0x20], eax
mov ax, word [0x100b5810]
mov word [edx + 0x24], ax
xor eax, eax
mov word [edx + 0x26], ax
lea eax, [ebp - 0xc418]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xc448]
push eax
push dword [ebp - 0xcd04]
lea ecx, [ebp - 0xc430]
call fcn.100034c0
cmp dword [ebp - 0xc41c], 7
lea eax, [ebp - 0xc430]
cmova eax, dword [ebp - 0xc430]
push eax
push 0
push 0
push 0x100d4b94
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 0x10004254
cmp edi, 0xffffffff
je 0x10004254
push edi
call dword [0x100b5714]
mov ecx, dword [ebp - 0xc41c]
mov byte [ebp - 4], 4
cmp ecx, 7
jbe 0x10004298
mov edx, dword [ebp - 0xc430]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000428e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004fa5
push ecx
push edx
call fcn.1009a42f
add esp, 8
mov ecx, dword [ebp - 0xc434]
xor eax, eax
mov dword [ebp - 0xc420], 0
mov dword [ebp - 0xc41c], 7
mov word [ebp - 0xc430], ax
mov byte [ebp - 4], 3
cmp ecx, 7
jbe 0x100042f9
mov edx, dword [ebp - 0xc448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100042ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004fa5
push ecx
push edx
call fcn.1009a42f
add esp, 8
mov ecx, dword [ebp - 0xc404]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x1000433d
mov edx, dword [ebp - 0xc418]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004333
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004fa5
push ecx
push edx
call fcn.1009a42f
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea edi, [ebp - 0x5a]
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 0x10004350
lea eax, [ebp - 0x5a]
mov dword [ebp - 0xccf4], edi
mov dword [ebp - 0xc408], edx
xorps xmm0, xmm0
mov dword [ebp - 0xc404], edx
movups xmmword [ebp - 0xc418], xmm0
cmp edi, eax
jne 0x100043b1
xor eax, eax
mov dword [ebp - 0xc408], edx
mov dword [ebp - 0xc404], 7
mov word [ebp - 0xc418], ax
jmp 0x10004474
lea eax, [ebp - 0x5a]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xcd00], eax
cmp eax, 0x7ffffffe
ja 0x10004faa
cmp eax, 7
ja 0x10004403
lea edi, [eax + eax]
mov dword [ebp - 0xc408], eax
push edi
push dword [ebp - 0xccf4]
lea eax, [ebp - 0xc418]
mov dword [ebp - 0xc404], 7
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [ebp + edi - 0xc418], ax
jmp 0x10004474
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x10004414
mov eax, 0x7ffffffe
jmp 0x1000441f
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0xccec], eax
lea eax, [ebp - 0xccec]
push eax
lea eax, [ebp - 0xc418]
push eax
call fcn.10003280
mov edi, dword [ebp - 0xcd00]
mov ecx, dword [ebp - 0xccec]
mov dword [ebp - 0xc408], edi
add edi, edi
push edi
push dword [ebp - 0xccf4]
mov dword [ebp - 0xc418], eax
push eax
mov dword [ebp - 0xc404], ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0xc418]
add esp, 0x14
xor ecx, ecx
mov word [edi + eax], cx
lea eax, [ebp - 0xccec]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xc448]
mov dword [ebp - 0xccec], 0x17
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0xc448], xmm0
call fcn.10003280
movups xmm0, xmmword [str..pipeLUNA_HOST]
mov ecx, dword [ebp - 0xccec]
mov edx, eax
add esp, 8
mov dword [ebp - 0xc448], edx
mov dword [ebp - 0xc438], 0x12
mov dword [ebp - 0xc434], ecx
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x100b5768]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [0x100b5778]
mov dword [edx + 0x20], eax
xor eax, eax
mov word [edx + 0x24], ax
lea eax, [ebp - 0xc418]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0xc448]
push eax
push dword [ebp - 0xcd04]
lea ecx, [ebp - 0xc430]
call fcn.100034c0
cmp dword [ebp - 0xc41c], 7
lea eax, [ebp - 0xc430]
push 0
cmova eax, dword [ebp - 0xc430]
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 - 0xccfc], esi
test ecx, ecx
je 0x10004551
cmp ecx, 0xffffffff
je 0x10004551
push ecx
call dword [0x100b5714]
mov ecx, dword [ebp - 0xc41c]
mov byte [ebp - 4], 7
cmp ecx, 7
jbe 0x10004595
mov edx, dword [ebp - 0xc430]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000458b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004fa5
push ecx
push edx
call fcn.1009a42f
add esp, 8
mov ecx, dword [ebp - 0xc434]
xor eax, eax
mov dword [ebp - 0xc420], 0
mov dword [ebp - 0xc41c], 7
mov word [ebp - 0xc430], ax
mov byte [ebp - 4], 6
cmp ecx, 7
jbe 0x100045f6
mov edx, dword [ebp - 0xc448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100045ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004fa5
push ecx
push edx
call fcn.1009a42f
add esp, 8
mov ecx, dword [ebp - 0xc404]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x1000463a
mov edx, dword [ebp - 0xc418]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004630
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004fa5
push ecx
push edx
call fcn.1009a42f
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea edi, [ebp - 0x86]
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 0x10004650
lea eax, [ebp - 0x86]
mov dword [ebp - 0xccf4], edi
mov dword [ebp - 0xc408], edx
xorps xmm0, xmm0
mov dword [ebp - 0xc404], edx
movups xmmword [ebp - 0xc418], xmm0
cmp edi, eax
jne 0x100046b4
xor eax, eax
mov dword [ebp - 0xc408], edx
mov dword [ebp - 0xc404], 7
mov word [ebp - 0xc418], ax
jmp 0x1000477a
lea eax, [ebp - 0x86]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xcd00], eax
cmp eax, 0x7ffffffe
ja 0x10004faa
cmp eax, 7
ja 0x10004709
lea edi, [eax + eax]
mov dword [ebp - 0xc408], eax
push edi
push dword [ebp - 0xccf4]
lea eax, [ebp - 0xc418]
mov dword [ebp - 0xc404], 7
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [ebp + edi - 0xc418], ax
jmp 0x1000477a
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x1000471a
mov eax, 0x7ffffffe
jmp 0x10004725
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0xccec], eax
lea eax, [ebp - 0xccec]
push eax
lea eax, [ebp - 0xc418]
push eax
call fcn.10003280
mov edi, dword [ebp - 0xcd00]
mov ecx, dword [ebp - 0xccec]
mov dword [ebp - 0xc408], edi
add edi, edi
push edi
push dword [ebp - 0xccf4]
mov dword [ebp - 0xc418], eax
push eax
mov dword [ebp - 0xc404], ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0xc418]
add esp, 0x14
xor ecx, ecx
mov word [eax + edi], cx
lea eax, [ebp - 0xccec]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xc448]
mov dword [ebp - 0xccec], 0x17
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0xc448], xmm0
call fcn.10003280
movups xmm0, xmmword [str..pipeLUNA_HOOK]
mov ecx, dword [ebp - 0xccec]
mov edx, eax
add esp, 8
mov dword [ebp - 0xc448], edx
mov dword [ebp - 0xc438], 0x12
mov dword [ebp - 0xc434], ecx
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x100b5740]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [0x100b5750]
mov dword [edx + 0x20], eax
xor eax, eax
mov word [edx + 0x24], ax
lea eax, [ebp - 0xc418]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xc448]
push eax
push dword [ebp - 0xcd04]
lea ecx, [ebp - 0xc430]
call fcn.100034c0
or dword [ebp - 0xccf8], 0x1fc
lea eax, [ebp - 0xc430]
cmp dword [ebp - 0xc41c], 7
push 0
cmova eax, dword [ebp - 0xc430]
push 0x80
push 3
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [0x100d0300]
mov byte [ebp - 4], 0xc
mov dword [0x100d0300], eax
test ecx, ecx
je 0x10004862
cmp ecx, 0xffffffff
je 0x10004862
push ecx
call dword [0x100b5714]
mov ecx, dword [ebp - 0xc41c]
mov byte [ebp - 4], 0xb
cmp ecx, 7
jbe 0x100048a6
mov edx, dword [ebp - 0xc430]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000489c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004fa5
push ecx
push edx
call fcn.1009a42f
add esp, 8
mov ecx, dword [ebp - 0xc434]
xor eax, eax
mov dword [ebp - 0xc420], 0
mov dword [ebp - 0xc41c], 7
mov word [ebp - 0xc430], ax
mov byte [ebp - 4], 0xa
cmp ecx, 7
jbe 0x10004907
mov edx, dword [ebp - 0xc448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100048fd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004fa5
push ecx
push edx
call fcn.1009a42f
add esp, 8
mov ecx, dword [ebp - 0xc404]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x10004020
mov edx, dword [ebp - 0xc418]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000494b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004fa5
push ecx
push edx
call fcn.1009a42f
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 8
jmp 0x10004020
push 0
push 0
lea eax, [ebp - 0xcd04]
mov dword [ebp - 0xcd04], 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
call edi
push 0
mov dword [ebp - 0xc400], eax
lea eax, [ebp - 0xcd08]
push eax
push 4
lea eax, [ebp - 0xc400]
push eax
push dword [0x100d0300]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push str.pipe_connected
call fcn.100039b0
add esp, 4
call fcn.1006f980
cmp byte [ebp - 0xcced], 0
mov byte [0x100d4b19], 1
je 0x10004edf
nop dword [eax + eax]
push 0
lea eax, [ebp - 0xcd08]
push eax
push 0xc350
lea eax, [ebp - 0xc400]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004ed9
mov eax, dword [ebp - 0xc400]
cmp eax, 5
ja case.0x100049ff.3
jmp dword [eax*4 + 0x10004fb0]
mov eax, dword [0x100d4ba0]
lea esi, [ebp - 0xc400]
mov ecx, 0x182
lea edi, [ebp - 0xd320]
add eax, 1
rep movsd dword es:[edi], dword [esi]
mov dword [0x100d4ba0], eax
jns 0x10004a3e
neg eax
push eax
lea eax, [ebp - 0x17]
push eax
call fcn.100033b0
add esp, 8
mov byte [eax - 1], 0x2d
dec eax
jmp 0x10004a4b
push eax
lea eax, [ebp - 0x17]
push eax
call fcn.100033b0
add esp, 8
lea ecx, [ebp - 0x17]
mov dword [ebp - 0xccf4], eax
mov dword [ebp - 0xc408], 0
xorps xmm0, xmm0
mov dword [ebp - 0xc404], 0
movups xmmword [ebp - 0xc418], xmm0
cmp eax, ecx
jne 0x10004a96
mov dword [ebp - 0xc408], 0
mov dword [ebp - 0xc404], 0xf
mov byte [ebp - 0xc418], 0
jmp 0x10004b3c
lea edi, [ebp - 0x17]
sub edi, eax
cmp edi, 0x7fffffff
ja 0x10004faa
mov dword [ebp - 0xc404], 0xf
cmp edi, 0xf
ja 0x10004ad7
push edi
push eax
lea eax, [ebp - 0xc418]
mov dword [ebp - 0xc408], edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [ebp + edi - 0xc418], 0
jmp 0x10004b3c
mov eax, edi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x10004aea
mov eax, 0x7fffffff
jmp 0x10004af5
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0xccec], eax
lea eax, [ebp - 0xccec]
push eax
lea eax, [ebp - 0xc418]
push eax
call fcn.10003220
mov ecx, dword [ebp - 0xccec]
mov esi, eax
push edi
push dword [ebp - 0xccf4]
mov dword [ebp - 0xc418], esi
push esi
mov dword [ebp - 0xc408], edi
mov dword [ebp - 0xc404], ecx
call sub.msvcrt.dll_memcpy
add esp, 0x14
mov byte [esi + edi], 0
mov esi, dword [ebp - 0xccf8]
or esi, 0x600
push 8
push str.UserHook
push 0
lea ecx, [ebp - 0xc418]
mov byte [ebp - 4], 0xe
call fcn.100050e0
mov dword [ebp - 0xc420], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xc430], xmm0
mov dword [ebp - 0xc41c], 0
or esi, 0x800
movups xmm0, xmmword [eax]
mov dword [ebp - 0xccf8], esi
movups xmmword [ebp - 0xc430], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc420], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp dword [ebp - 0xc41c], 0xf
lea edx, [ebp - 0xc430]
mov eax, dword [0x100d4b24]
lea esi, [ebp - 0xd318]
cmova edx, dword [ebp - 0xc430]
lea edi, [ebp - 0xca60]
inc eax
mov byte [ebp - 4], 0xf
mov dword [0x100d4b24], eax
mov ecx, 0x180
rep movsd dword es:[edi], dword [esi]
cmp eax, 0x9c4
jl 0x10004c01
push str.too_many_hooks:_cant_insert
call fcn.100039b0
add esp, 4
jmp 0x10004da3
test edx, edx
je 0x10004c1e
cmp byte [edx], 0
je 0x10004c1e
push 0x3b
push edx
lea eax, [ebp - 0xc888]
push 0x3c
push eax
call fcn.1009bc40
add esp, 0x10
lea eax, [ebp - 0xc888]
push eax
push str.inserting_hook:__s
call fcn.100039b0
push 0
push dword [ebp - 0xca5c]
push dword [ebp - 0xca60]
call fcn.10004fd0
mov eax, dword [ebp - 0xc8dc]
add esp, 0x14
test dword [ebp - 0xc8e0], 0x100
mov ecx, 0xfde9
cmovne eax, ecx
mov dword [ebp - 0xc8dc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
sub esp, 0x600
lea eax, [ebp - 0xc448]
mov edi, esp
lea esi, [ebp - 0xca60]
mov ecx, 0x180
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.100767a0
add esp, 0x608
cmp dword [eax + 0x14], 7
jbe 0x10004c99
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc84c]
push 0x1f4
push eax
call fcn.1009bab0
add esp, 0xc
lea ecx, [ebp - 0xc448]
call fcn.10003860
imul eax, dword [0x100d4b24], 0x6b8
lea esi, [ebp - 0xca60]
sub esp, 0x600
mov ecx, 0x180
mov edi, esp
rep movsd dword es:[edi], dword [esi]
add eax, dword [0x100d4b20]
mov ecx, eax
call fcn.10005b40
test al, al
jne 0x10004d65
lea eax, [ebp - 0xc84c]
push eax
lea ecx, [ebp - 0xc448]
call fcn.100033f0
push 0xfde9
lea eax, [ebp - 0xc448]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0xc460]
push eax
call fcn.10075880
add esp, 0xc
cmp dword [eax + 0x14], 0xf
mov byte [ebp - 4], 0x11
jbe 0x10004d26
mov eax, dword [eax]
push eax
push str.failed_to_insert_hook__s
call fcn.100039b0
add esp, 8
lea ecx, [ebp - 0xc460]
call fcn.10003810
lea ecx, [ebp - 0xc448]
mov byte [ebp - 4], 0xf
call fcn.10003860
imul ecx, dword [0x100d4b24], 0x6b8
add ecx, dword [0x100d4b20]
call fcn.10005850
jmp 0x10004da3
mov eax, dword [ebp - 0xca60]
mov ecx, dword [ebp - 0xca5c]
push 0
push 0x100d4b30
mov dword [ebp - 0xcd10], eax
lea eax, [ebp - 0xcd18]
push 0x10
push eax
push dword [0x100d0300]
mov dword [ebp - 0xcd18], 4
mov dword [ebp - 0xcd0c], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0xc41c]
mov byte [ebp - 4], 0xe
cmp ecx, 0xf
jbe 0x10004de1
mov edx, dword [ebp - 0xc430]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004dd7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004fa5
push ecx
push edx
call fcn.1009a42f
add esp, 8
mov ecx, dword [ebp - 0xc404]
mov esi, dword [ebp - 0xccfc]
mov dword [ebp - 0xc420], 0
mov dword [ebp - 0xc41c], 0xf
mov byte [ebp - 0xc430], 0
mov byte [ebp - 4], 2
cmp ecx, 0xf
jbe case.0x100049ff.3
mov edx, dword [ebp - 0xc418]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004e3a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004fa5
push ecx
push edx
call fcn.1009a42f
mov esi, dword [ebp - 0xccfc]
add esp, 8
jmp case.0x100049ff.3
push 0
push dword [ebp - 0xc3f4]
push dword [ebp - 0xc3f8]
call fcn.10004fd0
add esp, 0xc
jmp case.0x100049ff.3
cmp word [ebp - 0xc1c0], 0
lea esi, [ebp - 0xc400]
mov ecx, 0xa2
lea edi, [ebp - 0xcce8]
rep movsd dword es:[edi], dword [esi]
je 0x10004ea7
push dword [ebp - 0xc3c0]
lea eax, [ebp - 0xcaa8]
push eax
call fcn.10007a00
mov esi, dword [ebp - 0xccfc]
add esp, 8
jmp case.0x100049ff.3
sub esp, 0x280
lea esi, [ebp - 0xc3f8]
mov ecx, 0xa0
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10007910
mov esi, dword [ebp - 0xccfc]
add esp, 0x280
jmp case.0x100049ff.3
mov byte [ebp - 0xcced], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 4], 0x12
test esi, esi
je 0x10004ef6
cmp esi, 0xffffffff
je 0x10004ef6
push esi
call dword [0x100b5714]
mov eax, dword [0x100d0300]
mov dword [ebp - 4], 0
mov dword [0x100d0300], 0xffffffff
test eax, eax
je 0x10004f1c
cmp eax, 0xffffffff
je 0x10004f1c
push eax
call dword [0x100b5714]
cmp byte [ebp - 0xcced], 0
mov dword [ebp - 4], 0xffffffff
jne 0x10003ff0
cmp byte [0x100d4b18], 0
je 0x10004f67
push 0
mov byte [0x100d4b19], 0
call fcn.10003f90
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.1009a43d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.10078470
mov esi, dword [0x100d4b20]
lea edi, [esi + 0x419ce0]
cmp esi, edi
je 0x10004f91
nop dword [eax]
mov ecx, esi
call fcn.10005850
add esi, 0x6b8
cmp esi, edi
jne 0x10004f80
push 0
push str.LunaHook32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
call fcn.1009b920
call fcn.100050c0
nop
push es
dec edx
add byte [eax], dl
dec edi
dec esi
add byte [eax], dl
push 0x4e
add byte [eax], dl
ror byte [ecx], 1
adc al, dl
dec ecx
add byte [eax], dl
ror byte [esi], cl
adc ah, cl
int3