Function at 0x10003fe0
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 0x100a9cfe
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0xd310
call fcn.10099d30
mov eax, dword [0x100d0d40]
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 0x1000408b
cmp esi, 0xffffffff
je 0x1000408b
mov eax, dword [0x100d0300]
test eax, eax
je 0x1000408b
cmp eax, 0xffffffff
jne 0x100049b0
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 0x10004092
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 0x100040f3
xor eax, eax
mov dword [ebp - 0xc408], edx
mov dword [ebp - 0xc404], 7
mov word [ebp - 0xc418], ax
jmp 0x100041b6
lea eax, [ebp - 0x2e]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xcd00], eax
cmp eax, 0x7ffffffe
ja 0x10004ffa
cmp eax, 7
ja 0x10004145
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 0x100041b6
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x10004156
mov eax, 0x7ffffffe
jmp 0x10004161
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 [0x100b5840]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [0x100b5850]
mov dword [edx + 0x20], eax
mov ax, word [0x100b5854]
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 0x100d4c18
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 0x100042a4
cmp edi, 0xffffffff
je 0x100042a4
push edi
call dword [0x100b5748]
mov ecx, dword [ebp - 0xc41c]
mov byte [ebp - 4], 4
cmp ecx, 7
jbe 0x100042e8
mov edx, dword [ebp - 0xc430]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100042de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ff5
push ecx
push edx
call fcn.10099daf
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 0x10004349
mov edx, dword [ebp - 0xc448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000433f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ff5
push ecx
push edx
call fcn.10099daf
add esp, 8
mov ecx, dword [ebp - 0xc404]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x1000438d
mov edx, dword [ebp - 0xc418]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004383
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ff5
push ecx
push edx
call fcn.10099daf
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 0x100043a0
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 0x10004401
xor eax, eax
mov dword [ebp - 0xc408], edx
mov dword [ebp - 0xc404], 7
mov word [ebp - 0xc418], ax
jmp 0x100044c4
lea eax, [ebp - 0x5a]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xcd00], eax
cmp eax, 0x7ffffffe
ja 0x10004ffa
cmp eax, 7
ja 0x10004453
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 0x100044c4
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x10004464
mov eax, 0x7ffffffe
jmp 0x1000446f
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 [0x100b57ac]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [0x100b57bc]
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 0x100045a1
cmp ecx, 0xffffffff
je 0x100045a1
push ecx
call dword [0x100b5748]
mov ecx, dword [ebp - 0xc41c]
mov byte [ebp - 4], 7
cmp ecx, 7
jbe 0x100045e5
mov edx, dword [ebp - 0xc430]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100045db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ff5
push ecx
push edx
call fcn.10099daf
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 0x10004646
mov edx, dword [ebp - 0xc448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000463c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ff5
push ecx
push edx
call fcn.10099daf
add esp, 8
mov ecx, dword [ebp - 0xc404]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x1000468a
mov edx, dword [ebp - 0xc418]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004680
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ff5
push ecx
push edx
call fcn.10099daf
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 0x100046a0
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 0x10004704
xor eax, eax
mov dword [ebp - 0xc408], edx
mov dword [ebp - 0xc404], 7
mov word [ebp - 0xc418], ax
jmp 0x100047ca
lea eax, [ebp - 0x86]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xcd00], eax
cmp eax, 0x7ffffffe
ja 0x10004ffa
cmp eax, 7
ja 0x10004759
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 0x100047ca
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x1000476a
mov eax, 0x7ffffffe
jmp 0x10004775
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 [0x100b5784]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [0x100b5794]
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 0x100048b2
cmp ecx, 0xffffffff
je 0x100048b2
push ecx
call dword [0x100b5748]
mov ecx, dword [ebp - 0xc41c]
mov byte [ebp - 4], 0xb
cmp ecx, 7
jbe 0x100048f6
mov edx, dword [ebp - 0xc430]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100048ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ff5
push ecx
push edx
call fcn.10099daf
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 0x10004957
mov edx, dword [ebp - 0xc448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000494d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ff5
push ecx
push edx
call fcn.10099daf
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 0x10004070
mov edx, dword [ebp - 0xc418]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000499b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ff5
push ecx
push edx
call fcn.10099daf
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 8
jmp 0x10004070
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 dword [0x100d0970]
call fcn.10003a00
add esp, 4
call fcn.10070120
cmp byte [ebp - 0xcced], 0
mov byte [0x100d4b99], 1
je 0x10004f31
nop dword [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 0x10004f2b
mov eax, dword [ebp - 0xc400]
cmp eax, 5
ja case.0x10004a4f.3
jmp dword [eax*4 + 0x10005000]
mov eax, dword [0x100d4c24]
lea esi, [ebp - 0xc400]
mov ecx, 0x182
lea edi, [ebp - 0xd320]
add eax, 1
rep movsd dword es:[edi], dword [esi]
mov dword [0x100d4c24], eax
jns 0x10004a8e
neg eax
push eax
lea eax, [ebp - 0x17]
push eax
call fcn.100033b0
add esp, 8
mov byte [eax - 1], 0x2d
dec eax
jmp 0x10004a9b
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 0x10004ae6
mov dword [ebp - 0xc408], 0
mov dword [ebp - 0xc404], 0xf
mov byte [ebp - 0xc418], 0
jmp 0x10004b8c
lea edi, [ebp - 0x17]
sub edi, eax
cmp edi, 0x7fffffff
ja 0x10004ffa
mov dword [ebp - 0xc404], 0xf
cmp edi, 0xf
ja 0x10004b27
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 0x10004b8c
mov eax, edi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x10004b3a
mov eax, 0x7fffffff
jmp 0x10004b45
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.100053f0
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 [0x100d4ba4]
lea esi, [ebp - 0xd318]
cmova edx, dword [ebp - 0xc430]
lea edi, [ebp - 0xca60]
inc eax
mov byte [ebp - 4], 0xf
mov dword [0x100d4ba4], eax
mov ecx, 0x180
rep movsd dword es:[edi], dword [esi]
cmp eax, 0x9c4
jl 0x10004c52
push dword [0x100d097c]
call fcn.10003a00
add esp, 4
jmp 0x10004df5
test edx, edx
je 0x10004c6f
cmp byte [edx], 0
je 0x10004c6f
push 0x3b
push edx
lea eax, [ebp - 0xc888]
push 0x3c
push eax
call fcn.1009b5c0
add esp, 0x10
lea eax, [ebp - 0xc888]
push eax
push dword [0x100d0974]
call fcn.10003a00
push 0
push dword [ebp - 0xca5c]
push dword [ebp - 0xca60]
call fcn.10005020
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.100756f0
add esp, 0x608
cmp dword [eax + 0x14], 7
jbe 0x10004ceb
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc84c]
push 0x1f4
push eax
call fcn.1009b430
add esp, 0xc
lea ecx, [ebp - 0xc448]
call fcn.10003860
imul eax, dword [0x100d4ba4], 0x6b8
lea esi, [ebp - 0xca60]
sub esp, 0x600
mov ecx, 0x180
mov edi, esp
rep movsd dword es:[edi], dword [esi]
add eax, dword [0x100d4ba0]
mov ecx, eax
call fcn.10005df0
test al, al
jne 0x10004db7
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.100050f0
add esp, 0xc
cmp dword [eax + 0x14], 0xf
mov byte [ebp - 4], 0x11
jbe 0x10004d78
mov eax, dword [eax]
push eax
push str.failed_to_insert_hook__s
call fcn.10003a00
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 [0x100d4ba4], 0x6b8
add ecx, dword [0x100d4ba0]
call fcn.10005b60
jmp 0x10004df5
mov eax, dword [ebp - 0xca60]
mov ecx, dword [ebp - 0xca5c]
push 0
push 0x100d4bb0
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 0x10004e33
mov edx, dword [ebp - 0xc430]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004e29
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ff5
push ecx
push edx
call fcn.10099daf
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.0x10004a4f.3
mov edx, dword [ebp - 0xc418]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004e8c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ff5
push ecx
push edx
call fcn.10099daf
mov esi, dword [ebp - 0xccfc]
add esp, 8
jmp case.0x10004a4f.3
push 0
push dword [ebp - 0xc3f4]
push dword [ebp - 0xc3f8]
call fcn.10005020
add esp, 0xc
jmp case.0x10004a4f.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 0x10004ef9
push dword [ebp - 0xc3c0]
lea eax, [ebp - 0xcaa8]
push eax
call fcn.10007cc0
mov esi, dword [ebp - 0xccfc]
add esp, 8
jmp case.0x10004a4f.3
sub esp, 0x280
lea esi, [ebp - 0xc3f8]
mov ecx, 0xa0
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10007bd0
mov esi, dword [ebp - 0xccfc]
add esp, 0x280
jmp case.0x10004a4f.3
mov byte [ebp - 0xcced], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 4], 0x12
test esi, esi
je 0x10004f48
cmp esi, 0xffffffff
je 0x10004f48
push esi
call dword [0x100b5748]
mov eax, dword [0x100d0300]
mov dword [ebp - 4], 0
mov dword [0x100d0300], 0xffffffff
test eax, eax
je 0x10004f6e
cmp eax, 0xffffffff
je 0x10004f6e
push eax
call dword [0x100b5748]
cmp byte [ebp - 0xcced], 0
mov dword [ebp - 4], 0xffffffff
jne 0x10004040
cmp byte [0x100d4b98], 0
je 0x10004fb9
push 0
mov byte [0x100d4b99], 0
call fcn.10003fe0
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.10099dbd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.10077470
mov esi, dword [0x100d4ba0]
lea edi, [esi + 0x419ce0]
cmp esi, edi
je 0x10004fe1
nop
mov ecx, esi
call fcn.10005b60
add esi, 0x6b8
cmp esi, edi
jne 0x10004fd0
push 0
push str.LunaHook32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
call fcn.1009b2a0
call fcn.100053c0
nop
push esi
dec edx
add byte [eax], dl
mov eax, dword [0xbc10004e]
dec esi
add byte [eax], dl
and byte [edx], cl
adc byte [eax], ah
dec edx
add byte [eax], dl
and al, 0x4f
add byte [eax], dl
int3