Function at 0x10003f70
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 0x100acece
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0xd300
call fcn.1009cf10
mov eax, dword [0x100d4cc0]
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 - 0xccf0], 0
mov byte [ebp - 0xcce5], 1
nop dword [eax]
push 0xc350
lea eax, [ebp - 0xc400]
mov dword [ebp - 0xcd00], 0
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
or esi, 0xffffffff
mov dword [ebp - 0xccf4], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x1000401b
cmp esi, 0xffffffff
je 0x1000401b
mov eax, dword [0x100d4300]
test eax, eax
je 0x1000401b
cmp eax, 0xffffffff
jne 0x10004940
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 0x10004022
lea eax, [ebp - 0x2e]
mov dword [ebp - 0xcce4], edi
mov dword [ebp - 0xc408], edx
xorps xmm0, xmm0
mov dword [ebp - 0xc404], edx
movups xmmword [ebp - 0xc418], xmm0
cmp edi, eax
jne 0x10004083
xor eax, eax
mov dword [ebp - 0xc408], edx
mov dword [ebp - 0xc404], 7
mov word [ebp - 0xc418], ax
jmp 0x10004146
lea eax, [ebp - 0x2e]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xccf8], eax
cmp eax, 0x7ffffffe
ja 0x10004f6a
cmp eax, 7
ja 0x100040d5
lea edi, [eax + eax]
mov dword [ebp - 0xc408], eax
push edi
push dword [ebp - 0xcce4]
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 0x10004146
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x100040e6
mov eax, 0x7ffffffe
jmp 0x100040f1
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 - 0xccf8]
mov ecx, dword [ebp - 0xccec]
mov dword [ebp - 0xc408], edi
add edi, edi
push edi
push dword [ebp - 0xcce4]
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 - 0xccf0]
or eax, 3
mov dword [ebp - 0xccf0], eax
lea eax, [ebp - 0xcce4]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xc448]
mov dword [ebp - 0xcce4], 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 - 0xcce4]
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 [0x100b87fc]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [0x100b880c]
mov dword [edx + 0x20], eax
mov ax, word [0x100b8810]
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 - 0xccfc]
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 0x100d8c64
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 0x10004234
cmp edi, 0xffffffff
je 0x10004234
push edi
call dword [0x100b8714]
mov ecx, dword [ebp - 0xc41c]
mov byte [ebp - 4], 4
cmp ecx, 7
jbe 0x10004278
mov edx, dword [ebp - 0xc430]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000426e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004f65
push ecx
push edx
call fcn.1009cf8f
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 0x100042d9
mov edx, dword [ebp - 0xc448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100042cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004f65
push ecx
push edx
call fcn.1009cf8f
add esp, 8
mov ecx, dword [ebp - 0xc404]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x1000431d
mov edx, dword [ebp - 0xc418]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004313
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004f65
push ecx
push edx
call fcn.1009cf8f
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 0x10004330
lea eax, [ebp - 0x5a]
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 0x10004391
xor eax, eax
mov dword [ebp - 0xc408], edx
mov dword [ebp - 0xc404], 7
mov word [ebp - 0xc418], ax
jmp 0x10004454
lea eax, [ebp - 0x5a]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xccf8], eax
cmp eax, 0x7ffffffe
ja 0x10004f6a
cmp eax, 7
ja 0x100043e3
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 0x10004454
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x100043f4
mov eax, 0x7ffffffe
jmp 0x100043ff
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0xcce4], eax
lea eax, [ebp - 0xcce4]
push eax
lea eax, [ebp - 0xc418]
push eax
call fcn.10003280
mov edi, dword [ebp - 0xccf8]
mov ecx, dword [ebp - 0xcce4]
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
lea eax, [ebp - 0xcce4]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xc448]
mov dword [ebp - 0xcce4], 0x17
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0xc448], xmm0
call fcn.10003280
movups xmm0, xmmword [str..pipeLUNA_HOST]
mov ecx, dword [ebp - 0xcce4]
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 [0x100b8768]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [0x100b8778]
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 - 0xccfc]
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 - 0xccf4], esi
test ecx, ecx
je 0x10004531
cmp ecx, 0xffffffff
je 0x10004531
push ecx
call dword [0x100b8714]
mov ecx, dword [ebp - 0xc41c]
mov byte [ebp - 4], 7
cmp ecx, 7
jbe 0x10004575
mov edx, dword [ebp - 0xc430]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000456b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004f65
push ecx
push edx
call fcn.1009cf8f
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 0x100045d6
mov edx, dword [ebp - 0xc448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100045cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004f65
push ecx
push edx
call fcn.1009cf8f
add esp, 8
mov ecx, dword [ebp - 0xc404]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x1000461a
mov edx, dword [ebp - 0xc418]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004610
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004f65
push ecx
push edx
call fcn.1009cf8f
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 0x10004630
lea eax, [ebp - 0x86]
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 0x10004694
xor eax, eax
mov dword [ebp - 0xc408], edx
mov dword [ebp - 0xc404], 7
mov word [ebp - 0xc418], ax
jmp 0x1000475a
lea eax, [ebp - 0x86]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xccf8], eax
cmp eax, 0x7ffffffe
ja 0x10004f6a
cmp eax, 7
ja 0x100046e9
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 0x1000475a
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x100046fa
mov eax, 0x7ffffffe
jmp 0x10004705
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0xcce4], eax
lea eax, [ebp - 0xcce4]
push eax
lea eax, [ebp - 0xc418]
push eax
call fcn.10003280
mov edi, dword [ebp - 0xccf8]
mov ecx, dword [ebp - 0xcce4]
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
lea eax, [ebp - 0xcce4]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xc448]
mov dword [ebp - 0xcce4], 0x17
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0xc448], xmm0
call fcn.10003280
movups xmm0, xmmword [str..pipeLUNA_HOOK]
mov ecx, dword [ebp - 0xcce4]
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 [0x100b8740]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [0x100b8750]
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 - 0xccfc]
lea ecx, [ebp - 0xc430]
call fcn.100034c0
or dword [ebp - 0xccf0], 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 [0x100d4300]
mov byte [ebp - 4], 0xc
mov dword [0x100d4300], eax
test ecx, ecx
je 0x10004842
cmp ecx, 0xffffffff
je 0x10004842
push ecx
call dword [0x100b8714]
mov ecx, dword [ebp - 0xc41c]
mov byte [ebp - 4], 0xb
cmp ecx, 7
jbe 0x10004886
mov edx, dword [ebp - 0xc430]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000487c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004f65
push ecx
push edx
call fcn.1009cf8f
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 0x100048e7
mov edx, dword [ebp - 0xc448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100048dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004f65
push ecx
push edx
call fcn.1009cf8f
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 0x10004000
mov edx, dword [ebp - 0xc418]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000492b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004f65
push ecx
push edx
call fcn.1009cf8f
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 8
jmp 0x10004000
push 0
push 0
lea eax, [ebp - 0xccfc]
mov dword [ebp - 0xccfc], 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
call edi
push 0
mov dword [ebp - 0xc400], eax
lea eax, [ebp - 0xcd00]
push eax
push 4
lea eax, [ebp - 0xc400]
push eax
push dword [0x100d4300]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push str.pipe_connected
call fcn.100039b0
add esp, 4
call fcn.10072080
cmp byte [ebp - 0xcce5], 0
mov byte [0x100d8be9], 1
je 0x10004ea1
nop dword [eax + eax]
push 0
lea eax, [ebp - 0xcd00]
push eax
push 0xc350
lea eax, [ebp - 0xc400]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004e9b
mov eax, dword [ebp - 0xc400]
cmp eax, 5
ja case.0x100049df.3
jmp dword [eax*4 + 0x10004f70]
mov eax, dword [0x100d8c70]
lea esi, [ebp - 0xc400]
mov ecx, 0x180
lea edi, [ebp - 0xd310]
add eax, 1
rep movsd dword es:[edi], dword [esi]
mov dword [0x100d8c70], eax
jns 0x10004a1e
neg eax
push eax
lea eax, [ebp - 0x17]
push eax
call fcn.100033b0
add esp, 8
mov byte [eax - 1], 0x2d
dec eax
jmp 0x10004a2b
push eax
lea eax, [ebp - 0x17]
push eax
call fcn.100033b0
add esp, 8
lea ecx, [ebp - 0x17]
mov dword [ebp - 0xccec], eax
mov dword [ebp - 0xc408], 0
xorps xmm0, xmm0
mov dword [ebp - 0xc404], 0
movups xmmword [ebp - 0xc418], xmm0
cmp eax, ecx
jne 0x10004a76
mov dword [ebp - 0xc408], 0
mov dword [ebp - 0xc404], 0xf
mov byte [ebp - 0xc418], 0
jmp 0x10004b1c
lea edi, [ebp - 0x17]
sub edi, eax
cmp edi, 0x7fffffff
ja 0x10004f6a
cmp edi, 0xf
ja 0x10004ab7
push edi
push eax
lea eax, [ebp - 0xc418]
mov dword [ebp - 0xc408], edi
push eax
mov dword [ebp - 0xc404], 0xf
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [ebp + edi - 0xc418], 0
jmp 0x10004b1c
mov eax, edi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x10004aca
mov eax, 0x7fffffff
jmp 0x10004ad5
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0xcce4], eax
lea eax, [ebp - 0xcce4]
push eax
lea eax, [ebp - 0xc418]
push eax
call fcn.10003220
mov ecx, dword [ebp - 0xcce4]
mov esi, eax
push edi
push dword [ebp - 0xccec]
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 - 0xccf0]
or esi, 0x600
push 8
push str.UserHook
push 0
lea ecx, [ebp - 0xc418]
mov byte [ebp - 4], 0xe
call fcn.10005080
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 - 0xccf0], 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 [0x100d8bf4]
lea esi, [ebp - 0xd308]
cmova edx, dword [ebp - 0xc430]
lea edi, [ebp - 0xca58]
inc eax
mov byte [ebp - 4], 0xf
mov dword [0x100d8bf4], eax
mov ecx, 0x17e
rep movsd dword es:[edi], dword [esi]
cmp eax, 0x9c4
jl 0x10004be1
push str.too_many_hooks:_cant_insert
call fcn.100039b0
add esp, 4
jmp 0x10004d65
test edx, edx
je 0x10004bfe
cmp byte [edx], 0
je 0x10004bfe
push 0x3b
push edx
lea eax, [ebp - 0xc888]
push 0x3c
push eax
call fcn.1009e7a0
add esp, 0x10
lea eax, [ebp - 0xc888]
push eax
push str.inserting_hook:__s
call fcn.100039b0
push 0
push dword [ebp - 0xca54]
push dword [ebp - 0xca58]
call fcn.10004f90
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
sub esp, 0x5f8
lea eax, [ebp - 0xc448]
mov edi, esp
lea esi, [ebp - 0xca58]
mov ecx, 0x17e
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.10078f70
add esp, 0x600
cmp dword [eax + 0x14], 7
jbe 0x10004c5b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc84c]
push 0x1f4
push eax
call fcn.1009e610
add esp, 0xc
lea ecx, [ebp - 0xc448]
call fcn.10003860
imul eax, dword [0x100d8bf4], 0x6b0
lea esi, [ebp - 0xca58]
sub esp, 0x5f8
mov ecx, 0x17e
mov edi, esp
rep movsd dword es:[edi], dword [esi]
add eax, dword [0x100d8bf0]
mov ecx, eax
call fcn.10005af0
test al, al
jne 0x10004d27
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.10077d80
add esp, 0xc
cmp dword [eax + 0x14], 0xf
mov byte [ebp - 4], 0x11
jbe 0x10004ce8
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 [0x100d8bf4], 0x6b0
add ecx, dword [0x100d8bf0]
call fcn.100057f0
jmp 0x10004d65
mov eax, dword [ebp - 0xca58]
mov ecx, dword [ebp - 0xca54]
push 0
push 0x100d8c00
mov dword [ebp - 0xcd08], eax
lea eax, [ebp - 0xcd10]
push 0x10
push eax
push dword [0x100d4300]
mov dword [ebp - 0xcd10], 4
mov dword [ebp - 0xcd04], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0xc41c]
mov byte [ebp - 4], 0xe
cmp ecx, 0xf
jbe 0x10004da3
mov edx, dword [ebp - 0xc430]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004d99
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004f65
push ecx
push edx
call fcn.1009cf8f
add esp, 8
mov ecx, dword [ebp - 0xc404]
mov esi, dword [ebp - 0xccf4]
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.0x100049df.3
mov edx, dword [ebp - 0xc418]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004dfc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004f65
push ecx
push edx
call fcn.1009cf8f
mov esi, dword [ebp - 0xccf4]
add esp, 8
jmp case.0x100049df.3
push 0
push dword [ebp - 0xc3f4]
push dword [ebp - 0xc3f8]
call fcn.10004f90
add esp, 0xc
jmp case.0x100049df.3
cmp word [ebp - 0xc1c0], 0
lea esi, [ebp - 0xc400]
mov ecx, 0xa2
lea edi, [ebp - 0xcce0]
rep movsd dword es:[edi], dword [esi]
je 0x10004e69
push dword [ebp - 0xc3c0]
lea eax, [ebp - 0xcaa0]
push eax
call fcn.100078d0
mov esi, dword [ebp - 0xccf4]
add esp, 8
jmp case.0x100049df.3
sub esp, 0x280
lea esi, [ebp - 0xc3f8]
mov ecx, 0xa0
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.100077e0
mov esi, dword [ebp - 0xccf4]
add esp, 0x280
jmp case.0x100049df.3
mov byte [ebp - 0xcce5], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 4], 0x12
test esi, esi
je 0x10004eb8
cmp esi, 0xffffffff
je 0x10004eb8
push esi
call dword [0x100b8714]
mov eax, dword [0x100d4300]
mov dword [ebp - 4], 0
mov dword [0x100d4300], 0xffffffff
test eax, eax
je 0x10004ede
cmp eax, 0xffffffff
je 0x10004ede
push eax
call dword [0x100b8714]
cmp byte [ebp - 0xcce5], 0
mov dword [ebp - 4], 0xffffffff
jne 0x10003fd0
cmp byte [0x100d8be8], 0
je 0x10004f29
push 0
mov byte [0x100d8be9], 0
call fcn.10003f70
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.1009cf9d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.1007acc0
mov esi, dword [0x100d8bf0]
lea edi, [esi + 0x414ec0]
cmp esi, edi
je 0x10004f51
nop
mov ecx, esi
call fcn.100057f0
add esi, 0x6b0
cmp esi, edi
jne 0x10004f40
push 0
push str.LunaHook32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
call fcn.1009e480
call fcn.10005060
nop
out 0x49, al
add byte [eax], dl
adc dword [esi], ecx
adc byte [esi + ecx*2], ch
add byte [eax], dl
mov al, 0x49
add byte [eax], dl
mov al, 0x49
add byte [eax], dl
xchg esp, eax
dec esi
add byte [eax], dl
int3