Function at 0x10004640
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 0x100b1fee
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0xd300
call fcn.100a2030
mov eax, dword [0x100dad00]
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 0x100046eb
cmp esi, 0xffffffff
je 0x100046eb
mov eax, dword [0x100da340]
test eax, eax
je 0x100046eb
cmp eax, 0xffffffff
jne 0x10005010
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 0x100046f2
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 0x10004753
xor eax, eax
mov dword [ebp - 0xc408], edx
mov dword [ebp - 0xc404], 7
mov word [ebp - 0xc418], ax
jmp 0x10004816
lea eax, [ebp - 0x2e]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xccf8], eax
cmp eax, 0x7ffffffe
ja 0x1000563a
cmp eax, 7
ja 0x100047a5
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 0x10004816
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x100047b6
mov eax, 0x7ffffffe
jmp 0x100047c1
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.10003950
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.10003950
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 [0x100bedd8]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [0x100bede8]
mov dword [edx + 0x20], eax
mov ax, word [0x100bedec]
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.10003b90
cmp dword [ebp - 0xc41c], 7
lea eax, [ebp - 0xc430]
cmova eax, dword [ebp - 0xc430]
push eax
push 0
push 0
push 0x100ded84
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 0x10004904
cmp edi, 0xffffffff
je 0x10004904
push edi
call dword [0x100becf0]
mov ecx, dword [ebp - 0xc41c]
mov byte [ebp - 4], 4
cmp ecx, 7
jbe 0x10004948
mov edx, dword [ebp - 0xc430]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000493e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005635
push ecx
push edx
call fcn.100a20af
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 0x100049a9
mov edx, dword [ebp - 0xc448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000499f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005635
push ecx
push edx
call fcn.100a20af
add esp, 8
mov ecx, dword [ebp - 0xc404]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x100049ed
mov edx, dword [ebp - 0xc418]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100049e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005635
push ecx
push edx
call fcn.100a20af
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 0x10004a00
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 0x10004a61
xor eax, eax
mov dword [ebp - 0xc408], edx
mov dword [ebp - 0xc404], 7
mov word [ebp - 0xc418], ax
jmp 0x10004b24
lea eax, [ebp - 0x5a]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xccf8], eax
cmp eax, 0x7ffffffe
ja 0x1000563a
cmp eax, 7
ja 0x10004ab3
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 0x10004b24
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x10004ac4
mov eax, 0x7ffffffe
jmp 0x10004acf
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.10003950
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.10003950
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 [0x100bed44]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [0x100bed54]
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.10003b90
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 0x10004c01
cmp ecx, 0xffffffff
je 0x10004c01
push ecx
call dword [0x100becf0]
mov ecx, dword [ebp - 0xc41c]
mov byte [ebp - 4], 7
cmp ecx, 7
jbe 0x10004c45
mov edx, dword [ebp - 0xc430]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004c3b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005635
push ecx
push edx
call fcn.100a20af
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 0x10004ca6
mov edx, dword [ebp - 0xc448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004c9c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005635
push ecx
push edx
call fcn.100a20af
add esp, 8
mov ecx, dword [ebp - 0xc404]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x10004cea
mov edx, dword [ebp - 0xc418]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004ce0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005635
push ecx
push edx
call fcn.100a20af
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 0x10004d00
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 0x10004d64
xor eax, eax
mov dword [ebp - 0xc408], edx
mov dword [ebp - 0xc404], 7
mov word [ebp - 0xc418], ax
jmp 0x10004e2a
lea eax, [ebp - 0x86]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xccf8], eax
cmp eax, 0x7ffffffe
ja 0x1000563a
cmp eax, 7
ja 0x10004db9
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 0x10004e2a
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x10004dca
mov eax, 0x7ffffffe
jmp 0x10004dd5
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.10003950
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.10003950
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 [0x100bed1c]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [0x100bed2c]
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.10003b90
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 [0x100da340]
mov byte [ebp - 4], 0xc
mov dword [0x100da340], eax
test ecx, ecx
je 0x10004f12
cmp ecx, 0xffffffff
je 0x10004f12
push ecx
call dword [0x100becf0]
mov ecx, dword [ebp - 0xc41c]
mov byte [ebp - 4], 0xb
cmp ecx, 7
jbe 0x10004f56
mov edx, dword [ebp - 0xc430]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004f4c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005635
push ecx
push edx
call fcn.100a20af
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 0x10004fb7
mov edx, dword [ebp - 0xc448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004fad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005635
push ecx
push edx
call fcn.100a20af
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 0x100046d0
mov edx, dword [ebp - 0xc418]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10004ffb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005635
push ecx
push edx
call fcn.100a20af
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 8
jmp 0x100046d0
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 [0x100da340]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push str.pipe_connected
call fcn.10004080
add esp, 4
call fcn.10073720
cmp byte [ebp - 0xcce5], 0
mov byte [0x100ded09], 1
je 0x10005571
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 0x1000556b
mov eax, dword [ebp - 0xc400]
cmp eax, 5
ja case.0x100050af.3
jmp dword [eax*4 + 0x10005640]
mov eax, dword [0x100ded90]
lea esi, [ebp - 0xc400]
mov ecx, 0x180
lea edi, [ebp - 0xd310]
add eax, 1
rep movsd dword es:[edi], dword [esi]
mov dword [0x100ded90], eax
jns 0x100050ee
neg eax
push eax
lea eax, [ebp - 0x17]
push eax
call fcn.10003a80
add esp, 8
mov byte [eax - 1], 0x2d
dec eax
jmp 0x100050fb
push eax
lea eax, [ebp - 0x17]
push eax
call fcn.10003a80
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 0x10005146
mov dword [ebp - 0xc408], 0
mov dword [ebp - 0xc404], 0xf
mov byte [ebp - 0xc418], 0
jmp 0x100051ec
lea edi, [ebp - 0x17]
sub edi, eax
cmp edi, 0x7fffffff
ja 0x1000563a
cmp edi, 0xf
ja 0x10005187
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 0x100051ec
mov eax, edi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x1000519a
mov eax, 0x7fffffff
jmp 0x100051a5
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.100038f0
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.10005750
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 [0x100ded14]
lea esi, [ebp - 0xd308]
cmova edx, dword [ebp - 0xc430]
lea edi, [ebp - 0xca58]
inc eax
mov byte [ebp - 4], 0xf
mov dword [0x100ded14], eax
mov ecx, 0x17e
rep movsd dword es:[edi], dword [esi]
cmp eax, 0x9c4
jl 0x100052b1
push str.too_many_hooks:_cant_insert
call fcn.10004080
add esp, 4
jmp 0x10005435
test edx, edx
je 0x100052ce
cmp byte [edx], 0
je 0x100052ce
push 0x3b
push edx
lea eax, [ebp - 0xc888]
push 0x3c
push eax
call fcn.100a38c0
add esp, 0x10
lea eax, [ebp - 0xc888]
push eax
push str.inserting_hook:__s
call fcn.10004080
push 0
push dword [ebp - 0xca54]
push dword [ebp - 0xca58]
call fcn.10005660
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.1007a600
add esp, 0x600
cmp dword [eax + 0x14], 7
jbe 0x1000532b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc84c]
push 0x1f4
push eax
call fcn.100a3730
add esp, 0xc
lea ecx, [ebp - 0xc448]
call fcn.10003f30
imul eax, dword [0x100ded14], 0x6b0
lea esi, [ebp - 0xca58]
sub esp, 0x5f8
mov ecx, 0x17e
mov edi, esp
rep movsd dword es:[edi], dword [esi]
add eax, dword [0x100ded10]
mov ecx, eax
call fcn.10006600
test al, al
jne 0x100053f7
lea eax, [ebp - 0xc84c]
push eax
lea ecx, [ebp - 0xc448]
call fcn.10003ac0
push 0xfde9
lea eax, [ebp - 0xc448]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0xc460]
push eax
call fcn.10079410
add esp, 0xc
cmp dword [eax + 0x14], 0xf
mov byte [ebp - 4], 0x11
jbe 0x100053b8
mov eax, dword [eax]
push eax
push str.failed_to_insert_hook__s
call fcn.10004080
add esp, 8
lea ecx, [ebp - 0xc460]
call fcn.10003ee0
lea ecx, [ebp - 0xc448]
mov byte [ebp - 4], 0xf
call fcn.10003f30
imul ecx, dword [0x100ded14], 0x6b0
add ecx, dword [0x100ded10]
call fcn.10006300
jmp 0x10005435
mov eax, dword [ebp - 0xca58]
mov ecx, dword [ebp - 0xca54]
push 0
push 0x100ded20
mov dword [ebp - 0xcd08], eax
lea eax, [ebp - 0xcd10]
push 0x10
push eax
push dword [0x100da340]
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 0x10005473
mov edx, dword [ebp - 0xc430]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005469
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005635
push ecx
push edx
call fcn.100a20af
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.0x100050af.3
mov edx, dword [ebp - 0xc418]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100054cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005635
push ecx
push edx
call fcn.100a20af
mov esi, dword [ebp - 0xccf4]
add esp, 8
jmp case.0x100050af.3
push 0
push dword [ebp - 0xc3f4]
push dword [ebp - 0xc3f8]
call fcn.10005660
add esp, 0xc
jmp case.0x100050af.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 0x10005539
push dword [ebp - 0xc3c0]
lea eax, [ebp - 0xcaa0]
push eax
call fcn.100088d0
mov esi, dword [ebp - 0xccf4]
add esp, 8
jmp case.0x100050af.3
sub esp, 0x280
lea esi, [ebp - 0xc3f8]
mov ecx, 0xa0
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.100087e0
mov esi, dword [ebp - 0xccf4]
add esp, 0x280
jmp case.0x100050af.3
mov byte [ebp - 0xcce5], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 4], 0x12
test esi, esi
je 0x10005588
cmp esi, 0xffffffff
je 0x10005588
push esi
call dword [0x100becf0]
mov eax, dword [0x100da340]
mov dword [ebp - 4], 0
mov dword [0x100da340], 0xffffffff
test eax, eax
je 0x100055ae
cmp eax, 0xffffffff
je 0x100055ae
push eax
call dword [0x100becf0]
cmp byte [ebp - 0xcce5], 0
mov dword [ebp - 4], 0xffffffff
jne 0x100046a0
cmp byte [0x100ded08], 0
je 0x100055f9
push 0
mov byte [0x100ded09], 0
call fcn.10004640
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.100a20bd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.1007c350
mov esi, dword [0x100ded10]
lea edi, [esi + 0x414ec0]
cmp esi, edi
je 0x10005621
nop
mov ecx, esi
call fcn.10006300
add esi, 0x6b0
cmp esi, edi
jne 0x10005610
push 0
push str.LunaHook32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
call fcn.100a35a0
call fcn.10005730
nop
mov dh, 0x50
add byte [eax], dl
loope 0x1000569a
add byte [eax], dl
cld
push esp
add byte [eax], dl
adc byte [eax], 0x10
adc byte [eax], 16
push ebp
add byte [eax], dl
int3
ret 0x453b