Function at 0x1002e797
Capabilities:
Encode data using xor

Disassembly:
push 0xe4
mov eax, 0x100726ba
call fcn.10039b20
mov esi, ecx
mov eax, dword [esi]
mov dword [0x10095ea8], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x1002ed92
cmp dword [ebp + 0xc], 1
jne 0x1002ed92
cmp eax, dword [esi + 0xc]
jne 0x1002ed9c
mov ecx, dword [esi + 8]
call fcn.1000c0d0
push eax
lea ecx, [ebp - 0x48]
call fcn.100023e9
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x38]
test ecx, ecx
jne 0x1002e866
mov cl, 0x72
mov dword [ebp - 0x6c], 0x15132672
mov byte [ebp - 0x68], bl
mov edx, ebx
xor cl, byte [ebp + edx - 0x6b]
mov byte [ebp + edx - 0x6b], cl
inc edx
cmp edx, 3
jae 0x1002e80b
mov cl, byte [ebp - 0x6c]
jmp 0x1002e7f8
lea eax, [ebp - 0x6b]
mov byte [ebp - 0x68], bl
push eax
lea ecx, [ebp - 0x2c]
call fcn.10002907
mov byte [ebp - 4], 1
mov edx, ebx
movaps xmm0, xmmword [0x10087660]
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x7c], 0x59561f
mov cl, byte [ebp - 0x8c]
xor byte [ebp + edx - 0x8b], cl
inc edx
cmp edx, 0x12
jb 0x1002e835
lea eax, [ebp - 0x8b]
mov byte [ebp - 0x79], bl
push eax
lea ecx, [ebp - 0xb0]
call fcn.10002907
mov byte [ebp - 4], 2
jmp 0x1002ed53
cmp ecx, 0x20
jbe 0x1002e8f1
mov cl, 0x32
mov dword [ebp - 0x6c], 0x55536632
mov byte [ebp - 0x68], bl
mov edx, ebx
xor cl, byte [ebp + edx - 0x6b]
mov byte [ebp + edx - 0x6b], cl
inc edx
cmp edx, 3
jae 0x1002e890
mov cl, byte [ebp - 0x6c]
jmp 0x1002e87d
lea eax, [ebp - 0x6b]
mov byte [ebp - 0x68], bl
push eax
lea ecx, [ebp - 0x2c]
call fcn.10002907
mov byte [ebp - 4], 3
mov edx, ebx
movaps xmm0, xmmword [0x10087470]
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x7c], 0x4f060f0e
mov word [ebp - 0x78], 0x40
mov cl, byte [ebp - 0x8c]
xor byte [ebp + edx - 0x8b], cl
inc edx
cmp edx, 0x14
jb 0x1002e8c0
lea eax, [ebp - 0x8b]
mov byte [ebp - 0x77], bl
push eax
lea ecx, [ebp - 0xb0]
call fcn.10002907
mov byte [ebp - 4], 4
jmp 0x1002ed53
mov edi, ebx
test ecx, ecx
je 0x1002e934
mov edx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x48]
cmp edx, 0x10
lea eax, [ebp - 0x48]
cmovae eax, ebx
cmp byte [eax + edi], 0x20
je 0x1002e92d
cmp edx, 0x10
lea eax, [ebp - 0x48]
cmovae eax, ebx
movsx eax, byte [eax + edi]
push eax
call fcn.1005893e
pop ecx
test eax, eax
je 0x1002e959
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x48]
inc edi
cmp edi, ecx
jb 0x1002e8fd
xor ebx, ebx
mov dl, 0x62
mov dword [ebp - 0x6c], 0xf032562
mov dword [ebp - 0x68], 0x2f4207
mov ecx, ebx
xor byte [ebp + ecx - 0x6b], dl
inc ecx
cmp ecx, 6
jae 0x1002ea19
mov dl, byte [ebp - 0x6c]
jmp 0x1002e946
xor ebx, ebx
mov dword [ebp - 0x6c], 0x1c1a2f7b
mov dl, 0x7b
mov byte [ebp - 0x68], bl
mov ecx, ebx
xor byte [ebp + ecx - 0x6b], dl
inc ecx
cmp ecx, 3
jae 0x1002e978
mov dl, byte [ebp - 0x6c]
jmp 0x1002e969
lea eax, [ebp - 0x6b]
mov byte [ebp - 0x68], bl
push eax
lea ecx, [ebp - 0x2c]
call fcn.10002907
mov byte [ebp - 4], 5
mov ecx, ebx
movaps xmm0, xmmword [0x10087a20]
movups xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xc0], 0x525f4317
movaps xmm0, xmmword [0x10087a30]
movups xmmword [ebp - 0xe0], xmm0
mov dword [ebp - 0xbc], 0x50564317
movaps xmm0, xmmword [0x10087bd0]
movups xmmword [ebp - 0xd0], xmm0
mov dword [ebp - 0xb8], 0x19535e17
mov word [ebp - 0xb4], 0x16
mov al, byte [ebp + ecx - 0xef]
xor al, byte [ebp - 0xf0]
mov byte [ebp + ecx - 0xef], al
inc ecx
cmp ecx, 0x3c
jb 0x1002e9de
lea eax, [ebp - 0xef]
mov byte [ebp - 0xb3], bl
push eax
lea ecx, [ebp - 0xb0]
call fcn.10002907
mov byte [ebp - 4], 6
jmp 0x1002ed53
sub esp, 0x18
mov byte [ebp - 0x65], bl
lea eax, [ebp - 0x6b]
mov dword [ebp - 0x74], esp
mov ecx, esp
push eax
call fcn.10002907
sub esp, 0x18
mov byte [ebp - 4], 7
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.100023e9
mov byte [ebp - 4], bl
call fcn.1000a467
add esp, 0x30
test al, al
jne 0x1002ecc5
push 0x7e
pop ebx
mov cl, 0x1b
mov dword [ebp - 0x6c], 0x767a5c1b
mov byte [ebp - 0x68], bl
xor edx, edx
mov word [ebp - 0x67], 0x56
xor cl, byte [ebp + edx - 0x6b]
mov byte [ebp + edx - 0x6b], cl
inc edx
cmp edx, 5
jae 0x1002ea7c
mov cl, byte [ebp - 0x6c]
jmp 0x1002ea69
sub esp, 0x18
mov byte [ebp - 0x66], 0
lea eax, [ebp - 0x6b]
mov dword [ebp - 0x98], esp
mov ecx, esp
push eax
call fcn.10002907
sub esp, 0x18
mov byte [ebp - 4], 8
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.100023e9
mov byte [ebp - 4], 0
call fcn.1000a467
add esp, 0x30
test al, al
jne 0x1002ecc3
mov cl, 0x66
mov dword [ebp - 0x74], 0x2b2166
xor edx, edx
xor cl, byte [ebp + edx - 0x73]
mov byte [ebp + edx - 0x73], cl
inc edx
cmp edx, 2
jae 0x1002ead8
mov cl, byte [ebp - 0x74]
jmp 0x1002eac5
sub esp, 0x18
mov byte [ebp - 0x71], 0
lea eax, [ebp - 0x73]
mov dword [ebp - 0x98], esp
mov ecx, esp
push eax
call fcn.10002907
sub esp, 0x18
mov byte [ebp - 4], 9
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.100023e9
mov byte [ebp - 4], 0
call fcn.1000a467
add esp, 0x30
test al, al
jne 0x1002ecc3
mov cl, 0x4e
mov dword [ebp - 0x74], 0x232a0f4e
mov word [ebp - 0x70], 0x27
xor edx, edx
xor cl, byte [ebp + edx - 0x73]
mov byte [ebp + edx - 0x73], cl
inc edx
cmp edx, 4
jae 0x1002eb3a
mov cl, byte [ebp - 0x74]
jmp 0x1002eb27
sub esp, 0x18
mov byte [ebp - 0x6f], 0
lea eax, [ebp - 0x73]
mov dword [ebp - 0x68], esp
mov ecx, esp
push eax
call fcn.10002907
sub esp, 0x18
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.100023e9
mov byte [ebp - 4], 0
call fcn.1000a467
add esp, 0x30
test al, al
jne 0x1002ecc3
mov byte [ebp - 0x74], bl
xor ecx, ecx
mov dword [ebp - 0x73], 0x1b081b3a
mov byte [ebp - 0x6f], al
xor bl, byte [ebp + ecx - 0x73]
mov byte [ebp + ecx - 0x73], bl
inc ecx
cmp ecx, 4
jae 0x1002eb97
mov bl, byte [ebp - 0x74]
jmp 0x1002eb84
sub esp, 0x18
lea eax, [ebp - 0x73]
mov ecx, esp
mov dword [ebp - 0x68], esp
xor ebx, ebx
mov byte [ebp - 0x6f], bl
push eax
call fcn.10002907
sub esp, 0x18
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.100023e9
mov byte [ebp - 4], bl
call fcn.1000a467
add esp, 0x30
test al, al
jne 0x1002ecc5
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x14], 0xa1
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
push 0x1000
lea ecx, [ebp - 0x64]
call fcn.1000747e
push 1
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], vtable.Packet.0
call fcn.10007628
push 1
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 0x14], 0xa4
call fcn.10007628
push 1
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x10
push eax
lea ecx, [ebp - 0x64]
call fcn.10007628
push 1
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 3
push eax
lea ecx, [ebp - 0x64]
call fcn.10007628
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x64]
cmovae eax, dword [ebp - 0x48]
push eax
call fcn.10007425
mov al, byte [esi + 0x18]
lea ecx, [ebp - 0x64]
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.10007628
mov al, byte [esi + 0x19]
lea ecx, [ebp - 0x64]
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.10007628
mov al, byte [esi + 0x1a]
lea ecx, [ebp - 0x64]
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.10007628
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
sub edx, ecx
call fcn.1000c880
mov ecx, esi
call fcn.1002ef96
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x64], vtable.ByteBuffer.0
call fcn.100075bc
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.100027bc
jmp 0x1002ee48
xor ebx, ebx
mov cl, 0x3e
mov dword [ebp - 0x6c], 0x595f6a3e
mov byte [ebp - 0x68], bl
mov edx, ebx
xor cl, byte [ebp + edx - 0x6b]
mov byte [ebp + edx - 0x6b], cl
inc edx
cmp edx, 3
jae 0x1002ece6
mov cl, byte [ebp - 0x6c]
jmp 0x1002ecd3
lea eax, [ebp - 0x6b]
mov byte [ebp - 0x68], bl
push eax
lea ecx, [ebp - 0x2c]
call fcn.10002907
mov byte [ebp - 4], 0xc
mov edx, ebx
movaps xmm0, xmmword [0x10087b90]
movups xmmword [ebp - 0x94], xmm0
mov dword [ebp - 0x84], 0x590d1617
mov dword [ebp - 0x80], 0x16151518
mov dword [ebp - 0x7c], 0x571d1c0e
mov word [ebp - 0x78], 0x58
mov cl, byte [ebp - 0x94]
xor byte [ebp + edx - 0x93], cl
inc edx
cmp edx, 0x1c
jb 0x1002ed27
lea eax, [ebp - 0x93]
mov byte [ebp - 0x77], bl
push eax
lea ecx, [ebp - 0xb0]
call fcn.10002907
mov byte [ebp - 4], 0xd
push ebx
push ecx
and dword [esp], 0
lea eax, [ebp - 0x2c]
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0xb0]
push eax
push eax
call dword [0x10085fc4]
push ebx
push 1
lea ecx, [ebp - 0xb0]
call fcn.100027bc
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.100027bc
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.100027bc
xor al, al
call fcn.10039aca
ret 8
cmp eax, dword [esi + 0x10]
jne 0x1002ee3e
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x14], 0xa1
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
push 0x1000
lea ecx, [ebp - 0x30]
call fcn.1000747e
push 1
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], vtable.Packet.0
call fcn.10007628
push 1
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x14], 0xa4
call fcn.10007628
push 1
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x10
push eax
lea ecx, [ebp - 0x30]
call fcn.10007628
push 1
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 4
push eax
lea ecx, [ebp - 0x30]
call fcn.10007628
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub edx, ecx
call fcn.1000c880
mov ecx, esi
call fcn.1002ef96
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x30], vtable.ByteBuffer.0
call fcn.100075bc
jmp 0x1002ee48
cmp eax, dword [esi + 4]
jne 0x1002ee48
call fcn.1002ef96
mov al, 1
jmp 0x1002ed94