Function at 0x10002920
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 0x100a150e
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0xccc8
call fcn.100793b0
mov eax, dword [0x100cae74]
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 - 0xc6d8], 0
mov byte [ebp - 0xc6cd], 1
nop dword [eax]
push 0xc350
lea eax, [ebp - 0xc418]
mov dword [ebp - 0xc6e8], 0
push 0
push eax
call fcn.1007af80
add esp, 0xc
or esi, 0xffffffff
mov dword [ebp - 0xc6dc], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x100029cb
cmp esi, 0xffffffff
je 0x100029cb
mov eax, dword [section..data]
test eax, eax
je 0x100029cb
cmp eax, 0xffffffff
jne 0x10003294
call edi
mov ecx, eax
lea edi, [ebp - 0x46]
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 0x100029d2
lea eax, [ebp - 0x46]
mov dword [ebp - 0xc6cc], edi
mov dword [ebp - 0xc420], edx
xorps xmm0, xmm0
mov dword [ebp - 0xc41c], edx
movups xmmword [ebp - 0xc430], xmm0
cmp edi, eax
jne 0x10002a33
xor eax, eax
mov dword [ebp - 0xc420], edx
mov dword [ebp - 0xc41c], 7
mov word [ebp - 0xc430], ax
jmp 0x10002af0
lea eax, [ebp - 0x46]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xc6e0], eax
cmp eax, 0x7ffffffe
ja 0x10003a9a
cmp eax, 8
jae 0x10002a85
lea edi, [eax + eax]
mov dword [ebp - 0xc420], eax
push edi
push dword [ebp - 0xc6cc]
lea eax, [ebp - 0xc430]
mov dword [ebp - 0xc41c], 7
push eax
call fcn.1007aa00
add esp, 0xc
xor eax, eax
mov word [ebp + edi - 0xc430], ax
jmp 0x10002af0
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x10002a96
mov eax, 0x7ffffffe
jmp 0x10002aa1
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0xc6d4], eax
lea ecx, [ebp - 0xc430]
inc eax
push eax
call fcn.10003c60
mov edi, dword [ebp - 0xc6e0]
mov ecx, dword [ebp - 0xc6d4]
mov dword [ebp - 0xc420], edi
add edi, edi
push edi
push dword [ebp - 0xc6cc]
mov dword [ebp - 0xc430], eax
push eax
mov dword [ebp - 0xc41c], ecx
call fcn.1007aa00
mov eax, dword [ebp - 0xc430]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax], cx
mov eax, dword [ebp - 0xc6d8]
or eax, 3
mov dword [ebp - 0xc6d8], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 3
push 0x18
lea ecx, [ebp - 0xc460]
movups xmmword [ebp - 0xc460], xmm0
call fcn.10003c60
movups xmm0, xmmword [str.LUNA_PIPE_AVAILABLE]
mov edx, eax
mov dword [ebp - 0xc450], 0x13
mov dword [ebp - 0xc460], edx
mov dword [ebp - 0xc44c], 0x17
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x100a856c]
movups xmmword [edx + 0x10], xmm0
mov ecx, dword [0x100a857c]
mov dword [edx + 0x20], ecx
mov ax, word [0x100a8580]
mov word [edx + 0x24], ax
xor eax, eax
mov word [edx + 0x26], ax
lea eax, [ebp - 0xc430]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xc460]
push eax
push dword [ebp - 0xc6e4]
lea ecx, [ebp - 0xc448]
call fcn.10001ef0
cmp dword [ebp - 0xc434], 8
lea eax, [ebp - 0xc448]
cmovae eax, dword [ebp - 0xc448]
push eax
push 0
push 0
push 0x100ceacc
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 0x10002bca
cmp edi, 0xffffffff
je 0x10002bca
push edi
call dword [0x100a847c]
mov ecx, dword [ebp - 0xc434]
mov byte [ebp - 4], 4
cmp ecx, 8
jb 0x10002c0e
mov edx, dword [ebp - 0xc448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002c04
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003a95
push ecx
push edx
call fcn.10079074
add esp, 8
mov ecx, dword [ebp - 0xc44c]
xor eax, eax
mov dword [ebp - 0xc438], 0
mov dword [ebp - 0xc434], 7
mov word [ebp - 0xc448], ax
mov byte [ebp - 4], 3
cmp ecx, 8
jb 0x10002c6f
mov edx, dword [ebp - 0xc460]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002c65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003a95
push ecx
push edx
call fcn.10079074
add esp, 8
mov ecx, dword [ebp - 0xc41c]
mov byte [ebp - 4], 2
cmp ecx, 8
jb 0x10002cb3
mov edx, dword [ebp - 0xc430]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002ca9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003a95
push ecx
push edx
call fcn.10079074
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea edi, [ebp - 0x72]
nop
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 0x10002cc0
lea eax, [ebp - 0x72]
mov dword [ebp - 0xc6d4], edi
mov dword [ebp - 0xc420], edx
xorps xmm0, xmm0
mov dword [ebp - 0xc41c], edx
movups xmmword [ebp - 0xc430], xmm0
cmp edi, eax
jne 0x10002d21
xor eax, eax
mov dword [ebp - 0xc420], edx
mov dword [ebp - 0xc41c], 7
mov word [ebp - 0xc430], ax
jmp 0x10002dde
lea eax, [ebp - 0x72]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xc6e0], eax
cmp eax, 0x7ffffffe
ja 0x10003a9a
cmp eax, 8
jae 0x10002d73
lea edi, [eax + eax]
mov dword [ebp - 0xc420], eax
push edi
push dword [ebp - 0xc6d4]
lea eax, [ebp - 0xc430]
mov dword [ebp - 0xc41c], 7
push eax
call fcn.1007aa00
add esp, 0xc
xor eax, eax
mov word [ebp + edi - 0xc430], ax
jmp 0x10002dde
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x10002d84
mov eax, 0x7ffffffe
jmp 0x10002d8f
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0xc6cc], eax
lea ecx, [ebp - 0xc430]
inc eax
push eax
call fcn.10003c60
mov edi, dword [ebp - 0xc6e0]
mov ecx, dword [ebp - 0xc6cc]
mov dword [ebp - 0xc420], edi
add edi, edi
push edi
push dword [ebp - 0xc6d4]
mov dword [ebp - 0xc430], eax
push eax
mov dword [ebp - 0xc41c], ecx
call fcn.1007aa00
mov eax, dword [ebp - 0xc430]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax], cx
xorps xmm0, xmm0
mov byte [ebp - 4], 6
push 0x18
lea ecx, [ebp - 0xc460]
movups xmmword [ebp - 0xc460], xmm0
call fcn.10003c60
movups xmm0, xmmword [str..pipeLUNA_HOST]
mov dword [ebp - 0xc460], eax
mov dword [ebp - 0xc450], 0x12
movups xmmword [eax], xmm0
mov dword [ebp - 0xc44c], 0x17
movups xmm0, xmmword [0x100a84b8]
movups xmmword [eax + 0x10], xmm0
mov ecx, dword [0x100a84c8]
mov dword [eax + 0x20], ecx
xor ecx, ecx
mov word [eax + 0x24], cx
lea eax, [ebp - 0xc430]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0xc460]
push eax
push dword [ebp - 0xc6e4]
lea ecx, [ebp - 0xc448]
call fcn.10001ef0
cmp dword [ebp - 0xc434], 8
lea eax, [ebp - 0xc448]
push 0
cmovae eax, dword [ebp - 0xc448]
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 - 0xc6dc], esi
test ecx, ecx
je 0x10002ea5
cmp ecx, 0xffffffff
je 0x10002ea5
push ecx
call dword [0x100a847c]
mov ecx, dword [ebp - 0xc434]
mov byte [ebp - 4], 7
cmp ecx, 8
jb 0x10002ee9
mov edx, dword [ebp - 0xc448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002edf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003a95
push ecx
push edx
call fcn.10079074
add esp, 8
mov ecx, dword [ebp - 0xc44c]
xor eax, eax
mov dword [ebp - 0xc438], 0
mov dword [ebp - 0xc434], 7
mov word [ebp - 0xc448], ax
mov byte [ebp - 4], 6
cmp ecx, 8
jb 0x10002f4a
mov edx, dword [ebp - 0xc460]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002f40
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003a95
push ecx
push edx
call fcn.10079074
add esp, 8
mov ecx, dword [ebp - 0xc41c]
mov byte [ebp - 4], 2
cmp ecx, 8
jb 0x10002f8e
mov edx, dword [ebp - 0xc430]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002f84
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003a95
push ecx
push edx
call fcn.10079074
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea edi, [ebp - 0x9e]
nop dword [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 0x10002fa0
lea eax, [ebp - 0x9e]
mov dword [ebp - 0xc6d4], edi
mov dword [ebp - 0xc420], edx
xorps xmm0, xmm0
mov dword [ebp - 0xc41c], edx
movups xmmword [ebp - 0xc430], xmm0
cmp edi, eax
jne 0x10003004
xor eax, eax
mov dword [ebp - 0xc420], edx
mov dword [ebp - 0xc41c], 7
mov word [ebp - 0xc430], ax
jmp 0x100030c4
lea eax, [ebp - 0x9e]
sub eax, edi
sar eax, 1
mov dword [ebp - 0xc6e0], eax
cmp eax, 0x7ffffffe
ja 0x10003a9a
cmp eax, 8
jae 0x10003059
lea edi, [eax + eax]
mov dword [ebp - 0xc420], eax
push edi
push dword [ebp - 0xc6d4]
lea eax, [ebp - 0xc430]
mov dword [ebp - 0xc41c], 7
push eax
call fcn.1007aa00
add esp, 0xc
xor eax, eax
mov word [ebp + edi - 0xc430], ax
jmp 0x100030c4
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x1000306a
mov eax, 0x7ffffffe
jmp 0x10003075
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0xc6cc], eax
lea ecx, [ebp - 0xc430]
inc eax
push eax
call fcn.10003c60
mov edi, dword [ebp - 0xc6e0]
mov ecx, dword [ebp - 0xc6cc]
mov dword [ebp - 0xc420], edi
add edi, edi
push edi
push dword [ebp - 0xc6d4]
mov dword [ebp - 0xc430], eax
push eax
mov dword [ebp - 0xc41c], ecx
call fcn.1007aa00
mov eax, dword [ebp - 0xc430]
add esp, 0xc
xor ecx, ecx
mov word [eax + edi], cx
xorps xmm0, xmm0
mov byte [ebp - 4], 0xa
push 0x18
lea ecx, [ebp - 0xc460]
movups xmmword [ebp - 0xc460], xmm0
call fcn.10003c60
movups xmm0, xmmword [str..pipeLUNA_HOOK]
mov dword [ebp - 0xc460], eax
mov dword [ebp - 0xc450], 0x12
movups xmmword [eax], xmm0
mov dword [ebp - 0xc44c], 0x17
movups xmm0, xmmword [0x100a8490]
movups xmmword [eax + 0x10], xmm0
mov ecx, dword [0x100a84a0]
mov dword [eax + 0x20], ecx
xor ecx, ecx
mov word [eax + 0x24], cx
lea eax, [ebp - 0xc430]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xc460]
push eax
push dword [ebp - 0xc6e4]
lea ecx, [ebp - 0xc448]
call fcn.10001ef0
or dword [ebp - 0xc6d8], 0x1fc
lea eax, [ebp - 0xc448]
cmp dword [ebp - 0xc434], 8
push 0
cmovae eax, dword [ebp - 0xc448]
push 0x80
push 3
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [section..data]
mov byte [ebp - 4], 0xc
mov dword [section..data], eax
test ecx, ecx
je 0x10003196
cmp ecx, 0xffffffff
je 0x10003196
push ecx
call dword [0x100a847c]
mov ecx, dword [ebp - 0xc434]
mov byte [ebp - 4], 0xb
cmp ecx, 8
jb 0x100031da
mov edx, dword [ebp - 0xc448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100031d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003a95
push ecx
push edx
call fcn.10079074
add esp, 8
mov ecx, dword [ebp - 0xc44c]
xor eax, eax
mov dword [ebp - 0xc438], 0
mov dword [ebp - 0xc434], 7
mov word [ebp - 0xc448], ax
mov byte [ebp - 4], 0xa
cmp ecx, 8
jb 0x1000323b
mov edx, dword [ebp - 0xc460]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10003231
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003a95
push ecx
push edx
call fcn.10079074
add esp, 8
mov ecx, dword [ebp - 0xc41c]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov byte [ebp - 4], 2
cmp ecx, 8
jb 0x100029b0
mov edx, dword [ebp - 0xc430]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000327f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003a95
push ecx
push edx
call fcn.10079074
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 8
jmp 0x100029b0
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 - 0xc418], eax
lea eax, [ebp - 0xc6e8]
push eax
push 4
lea eax, [ebp - 0xc418]
push eax
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [0x100caaf0]
call fcn.10002470
add esp, 4
call fcn.10062820
cmp byte [ebp - 0xc6cd], 0
mov byte [0x100cea4d], 1
je 0x100039d0
nop dword [eax]
push 0
lea eax, [ebp - 0xc6e8]
push eax
push 0xc350
lea eax, [ebp - 0xc418]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100039ca
mov eax, dword [ebp - 0xc418]
cmp eax, 6
ja case.0x1000332f.3
jmp dword [eax*4 + 0x10003aa4]
mov eax, dword [0x100cead8]
lea esi, [ebp - 0xc418]
mov ecx, 0x80
lea edi, [ebp - 0xc8e8]
add eax, 1
rep movsd dword es:[edi], dword [esi]
mov dword [0x100cead8], eax
jns 0x1000336e
neg eax
push eax
lea eax, [ebp - 0x17]
push eax
call fcn.10001de0
add esp, 8
mov byte [eax - 1], 0x2d
dec eax
jmp 0x1000337b
push eax
lea eax, [ebp - 0x17]
push eax
call fcn.10001de0
add esp, 8
lea ecx, [ebp - 0x17]
mov dword [ebp - 0xc6d4], eax
mov dword [ebp - 0xc420], 0
xorps xmm0, xmm0
mov dword [ebp - 0xc41c], 0
movups xmmword [ebp - 0xc430], xmm0
cmp eax, ecx
jne 0x100033c6
mov dword [ebp - 0xc420], 0
mov dword [ebp - 0xc41c], 0xf
mov byte [ebp - 0xc430], 0
jmp 0x10003463
lea edi, [ebp - 0x17]
sub edi, eax
cmp edi, 0x7fffffff
ja 0x10003a9a
mov dword [ebp - 0xc41c], 0xf
cmp edi, 0x10
jae 0x10003404
push edi
push eax
lea eax, [ebp - 0xc430]
mov dword [ebp - 0xc420], edi
push eax
call fcn.1007aa00
mov byte [ebp + edi - 0xc430], 0
jmp 0x10003460
mov eax, edi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x10003417
mov eax, 0x7fffffff
jmp 0x10003422
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0xc6cc], eax
lea ecx, [ebp - 0xc430]
inc eax
push eax
call fcn.10003c00
push edi
push dword [ebp - 0xc6d4]
mov esi, eax
mov dword [ebp - 0xc420], edi
mov eax, dword [ebp - 0xc6cc]
push esi
mov dword [ebp - 0xc430], esi
mov dword [ebp - 0xc41c], eax
call fcn.1007aa00
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0xc6d8]
or esi, 0x600
push 8
push str.UserHook
push 0
lea ecx, [ebp - 0xc430]
mov byte [ebp - 4], 0xe
call fcn.10003cc0
mov dword [ebp - 0xc438], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xc448], xmm0
mov dword [ebp - 0xc434], 0
or esi, 0x800
movups xmm0, xmmword [eax]
mov dword [ebp - 0xc6d8], esi
movups xmmword [ebp - 0xc448], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc438], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp dword [ebp - 0xc434], 0x10
lea eax, [ebp - 0xc448]
push 0
cmovae eax, dword [ebp - 0xc448]
lea esi, [ebp - 0xc8e0]
push eax
sub esp, 0x1f8
mov byte [ebp - 4], 0xf
mov ecx, 0x7e
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10002580
mov ecx, dword [ebp - 0xc434]
add esp, 0x200
mov byte [ebp - 4], 0xe
cmp ecx, 0x10
jb 0x10003552
mov edx, dword [ebp - 0xc448]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003548
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003a95
push ecx
push edx
call fcn.10079074
add esp, 8
mov ecx, dword [ebp - 0xc41c]
mov esi, dword [ebp - 0xc6dc]
mov dword [ebp - 0xc438], 0
mov dword [ebp - 0xc434], 0xf
mov byte [ebp - 0xc448], 0
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb case.0x1000332f.3
mov edx, dword [ebp - 0xc430]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100035ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003a95
push ecx
push edx
call fcn.10079074
mov esi, dword [ebp - 0xc6dc]
add esp, 8
jmp case.0x1000332f.3
mov ecx, 0xfb
lea esi, [ebp - 0xc418]
lea edi, [ebp - 0xccd8]
sub esp, 0x18
rep movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0xccd4]
xorps xmm0, xmm0
mov dword [ebp - 0xc6e0], edi
lea ecx, [esi + 2]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10003600
sub esi, ecx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x10003a9a
mov dword [edi + 0x14], 7
cmp esi, 8
jae 0x1000362c
mov dword [edi + 0x10], esi
jmp 0x1000366f
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x1000363f
mov eax, 0x7ffffffe
jmp 0x1000364a
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
mov dword [ebp - 0xc6cc], eax
mov ecx, edi
inc eax
push eax
call fcn.10003c60
mov ecx, dword [ebp - 0xc6e0]
mov edi, eax
mov eax, dword [ebp - 0xc6cc]
mov dword [ecx], edi
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], eax
add esi, esi
lea eax, [ebp - 0xccd4]
push esi
push eax
push edi
call fcn.1007aa00
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
lea eax, [ebp - 0xc8e8]
push eax
call fcn.10067360
add esp, 0x1c
cmp byte [ebp - 0xc6f0], 0
je 0x10003928
mov eax, dword [0x100ceadc]
add eax, 1
mov dword [0x100ceadc], eax
jns 0x100036c9
neg eax
push eax
lea eax, [ebp - 0x2f]
push eax
call fcn.10001de0
add esp, 8
mov byte [eax - 1], 0x2d
dec eax
jmp 0x100036d6
push eax
lea eax, [ebp - 0x2f]
push eax
call fcn.10001de0
add esp, 8
lea ecx, [ebp - 0x2f]
mov dword [ebp - 0xc6d4], eax
mov dword [ebp - 0xc420], 0
xorps xmm0, xmm0
mov dword [ebp - 0xc41c], 0
movups xmmword [ebp - 0xc430], xmm0
cmp eax, ecx
jne 0x10003721
mov dword [ebp - 0xc420], 0
mov dword [ebp - 0xc41c], 0xf
mov byte [ebp - 0xc430], 0
jmp 0x100037be
lea edi, [ebp - 0x2f]
sub edi, eax
cmp edi, 0x7fffffff
ja 0x10003a9a
mov dword [ebp - 0xc41c], 0xf
cmp edi, 0x10
jae 0x1000375f
push edi
push eax
lea eax, [ebp - 0xc430]
mov dword [ebp - 0xc420], edi
push eax
call fcn.1007aa00
mov byte [ebp + edi - 0xc430], 0
jmp 0x100037bb
mov eax, edi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x10003772
mov eax, 0x7fffffff
jmp 0x1000377d
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0xc6cc], eax
lea ecx, [ebp - 0xc430]
inc eax
push eax
call fcn.10003c00
push edi
push dword [ebp - 0xc6d4]
mov esi, eax
mov dword [ebp - 0xc420], edi
mov eax, dword [ebp - 0xc6cc]
push esi
mov dword [ebp - 0xc430], esi
mov dword [ebp - 0xc41c], eax
call fcn.1007aa00
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0xc6d8]
or esi, 0x3000
push 8
push str.UserHook
push 0
lea ecx, [ebp - 0xc430]
mov byte [ebp - 4], 0x10
call fcn.10003cc0
mov dword [ebp - 0xc438], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xc448], xmm0
mov dword [ebp - 0xc434], 0
or esi, 0x4000
movups xmm0, xmmword [eax]
mov dword [ebp - 0xc6d8], esi
movups xmmword [ebp - 0xc448], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc438], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp dword [ebp - 0xc434], 0x10
lea eax, [ebp - 0xc448]
mov byte [ebp - 4], 0x11
cmovae eax, dword [ebp - 0xc448]
cmp byte [ebp - 0xc6f0], 0
je 0x10003a9f
push 0
push eax
sub esp, 0x1f8
lea esi, [ebp - 0xc8e8]
mov ecx, 0x7e
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10002580
mov ecx, dword [ebp - 0xc434]
add esp, 0x200
mov byte [ebp - 4], 0x10
cmp ecx, 0x10
jb 0x100038ba
mov edx, dword [ebp - 0xc448]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100038b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003a95
push ecx
push edx
call fcn.10079074
add esp, 8
mov ecx, dword [ebp - 0xc41c]
mov esi, dword [ebp - 0xc6dc]
mov dword [ebp - 0xc438], 0
mov dword [ebp - 0xc434], 0xf
mov byte [ebp - 0xc448], 0
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb case.0x1000332f.3
mov edx, dword [ebp - 0xc430]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003913
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003a95
push ecx
push edx
call fcn.10079074
mov esi, dword [ebp - 0xc6dc]
add esp, 8
jmp case.0x1000332f.3
push 0x100a85a8
call fcn.10002470
mov esi, dword [ebp - 0xc6dc]
add esp, 4
jmp case.0x1000332f.3
push 0
push dword [ebp - 0xc40c]
push dword [ebp - 0xc410]
call fcn.10003ac0
add esp, 0xc
jmp case.0x1000332f.3
cmp word [ebp - 0xc1f4], 0
lea esi, [ebp - 0xc418]
mov ecx, 0x99
lea edi, [ebp - 0xc6c8]
rep movsd dword es:[edi], dword [esi]
je 0x10003998
push dword [ebp - 0xc3e4]
lea eax, [ebp - 0xc4a4]
push eax
call fcn.10006040
mov esi, dword [ebp - 0xc6dc]
add esp, 8
jmp case.0x1000332f.3
sub esp, 0x260
lea esi, [ebp - 0xc414]
mov ecx, 0x98
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10005f50
mov esi, dword [ebp - 0xc6dc]
add esp, 0x260
jmp case.0x1000332f.3
mov byte [ebp - 0xc6cd], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 4], 0x12
test esi, esi
je 0x100039e7
cmp esi, 0xffffffff
je 0x100039e7
push esi
call dword [0x100a847c]
mov eax, dword [section..data]
mov dword [ebp - 4], 0
mov dword [section..data], 0xffffffff
test eax, eax
je 0x10003a0d
cmp eax, 0xffffffff
je 0x10003a0d
push eax
call dword [0x100a847c]
cmp byte [ebp - 0xc6cd], 0
mov dword [ebp - 4], 0xffffffff
jne 0x10002980
cmp byte [0x100cea4c], 0
je 0x10003a58
push 0
mov byte [0x100cea4d], 0
call fcn.10002920
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.1007939c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.100710d0
mov esi, dword [0x100cea54]
lea edi, [esi + 0x15f900]
cmp esi, edi
je 0x10003a81
nop dword [eax]
mov ecx, esi
call fcn.100044a0
add esi, 0x240
cmp esi, edi
jne 0x10003a70
push 0
push str.LunaHook32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
call fcn.1008515f
call fcn.10003be0
call fcn.10003bb0
xor eax, dword ss:[eax]
adc byte [eax + 57], al
add byte [eax], dl
pop ebx
cmp dword [eax], eax
adc byte [eax], al
xor eax, dword [eax]
adc byte [eax], al
xor eax, dword [eax]
adc bl, al
cmp dword [eax], eax
adc al, al
xor eax, 0x8b551000
push ebp
mov ebp, esp