Function at 0x1002ff52
Capabilities:
Encode data using xor

Disassembly:
push 0xe4
mov eax, 0x10074c61
call fcn.1003bfa0
mov esi, ecx
mov eax, dword [esi]
mov dword [0x10099ea8], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x10030542
cmp dword [ebp + 0xc], 1
jne 0x10030542
cmp eax, dword [esi + 0xc]
jne 0x1003054c
mov ecx, dword [esi + 8]
call fcn.1000d8d8
push eax
lea ecx, [ebp - 0x48]
call fcn.10003ba2
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x38]
test ecx, ecx
jne 0x10030021
mov cl, 0x28
mov dword [ebp - 0x6c], 0x4f497c28
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 0x1002ffc6
mov cl, byte [ebp - 0x6c]
jmp 0x1002ffb3
lea eax, [ebp - 0x6b]
mov byte [ebp - 0x68], bl
push eax
lea ecx, [ebp - 0x2c]
call fcn.10004179
mov byte [ebp - 4], 1
mov edx, ebx
movaps xmm0, xmmword [0x1008a960]
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x7c], 0x6c632a
mov cl, byte [ebp - 0x8c]
xor byte [ebp + edx - 0x8b], cl
inc edx
cmp edx, 0x12
jb 0x1002fff0
lea eax, [ebp - 0x8b]
mov byte [ebp - 0x79], bl
push eax
lea ecx, [ebp - 0xb0]
call fcn.10004179
mov byte [ebp - 4], 2
jmp 0x10030503
cmp ecx, 0x20
jbe 0x100300ac
mov cl, 0x5d
mov dword [ebp - 0x6c], 0x3a3c095d
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 0x1003004b
mov cl, byte [ebp - 0x6c]
jmp 0x10030038
lea eax, [ebp - 0x6b]
mov byte [ebp - 0x68], bl
push eax
lea ecx, [ebp - 0x2c]
call fcn.10004179
mov byte [ebp - 4], 3
mov edx, ebx
movaps xmm0, xmmword [0x1008a4c0]
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x7c], 0x450c0504
mov word [ebp - 0x78], 0x4a
mov cl, byte [ebp - 0x8c]
xor byte [ebp + edx - 0x8b], cl
inc edx
cmp edx, 0x14
jb 0x1003007b
lea eax, [ebp - 0x8b]
mov byte [ebp - 0x77], bl
push eax
lea ecx, [ebp - 0xb0]
call fcn.10004179
mov byte [ebp - 4], 4
jmp 0x10030503
mov edi, ebx
test ecx, ecx
je 0x100300ef
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 0x100300e8
cmp edx, 0x10
lea eax, [ebp - 0x48]
cmovae eax, ebx
movsx eax, byte [eax + edi]
push eax
call fcn.1005adee
pop ecx
test eax, eax
je 0x10030114
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x48]
inc edi
cmp edi, ecx
jb 0x100300b8
xor ebx, ebx
mov dl, 0x30
mov dword [ebp - 0x6c], 0x5d517730
mov dword [ebp - 0x68], 0x7d1055
mov ecx, ebx
xor byte [ebp + ecx - 0x6b], dl
inc ecx
cmp ecx, 6
jae 0x100301d4
mov dl, byte [ebp - 0x6c]
jmp 0x10030101
xor ebx, ebx
mov dword [ebp - 0x6c], 0x52546135
mov dl, 0x35
mov byte [ebp - 0x68], bl
mov ecx, ebx
xor byte [ebp + ecx - 0x6b], dl
inc ecx
cmp ecx, 3
jae 0x10030133
mov dl, byte [ebp - 0x6c]
jmp 0x10030124
lea eax, [ebp - 0x6b]
mov byte [ebp - 0x68], bl
push eax
lea ecx, [ebp - 0x2c]
call fcn.10004179
mov byte [ebp - 4], 5
mov ecx, ebx
movaps xmm0, xmmword [0x1008a510]
movups xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xc0], 0x1b160a5e
movaps xmm0, xmmword [0x1008a520]
movups xmmword [ebp - 0xe0], xmm0
mov dword [ebp - 0xbc], 0x191f0a5e
movaps xmm0, xmmword [0x1008a5b0]
movups xmmword [ebp - 0xd0], xmm0
mov dword [ebp - 0xb8], 0x501a175e
mov word [ebp - 0xb4], 0x5f
mov al, byte [ebp + ecx - 0xef]
xor al, byte [ebp - 0xf0]
mov byte [ebp + ecx - 0xef], al
inc ecx
cmp ecx, 0x3c
jb 0x10030199
lea eax, [ebp - 0xef]
mov byte [ebp - 0xb3], bl
push eax
lea ecx, [ebp - 0xb0]
call fcn.10004179
mov byte [ebp - 4], 6
jmp 0x10030503
sub esp, 0x18
mov byte [ebp - 0x65], bl
lea eax, [ebp - 0x6b]
mov dword [ebp - 0x74], esp
mov ecx, esp
push eax
call fcn.10004179
sub esp, 0x18
mov byte [ebp - 4], 7
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.10003ba2
mov byte [ebp - 4], bl
call fcn.1000bc23
add esp, 0x30
test al, al
jne 0x10030475
mov cl, 9
mov dword [ebp - 0x6c], 0x64684e09
mov word [ebp - 0x68], 0x446c
mov edx, ebx
mov byte [ebp - 0x66], bl
xor cl, byte [ebp + edx - 0x6b]
mov byte [ebp + edx - 0x6b], cl
inc edx
cmp edx, 5
jae 0x10030234
mov cl, byte [ebp - 0x6c]
jmp 0x10030221
sub esp, 0x18
mov byte [ebp - 0x66], bl
lea eax, [ebp - 0x6b]
mov dword [ebp - 0x98], esp
mov ecx, esp
push eax
call fcn.10004179
sub esp, 0x18
mov byte [ebp - 4], 8
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.10003ba2
mov byte [ebp - 4], bl
call fcn.1000bc23
add esp, 0x30
test al, al
jne 0x10030475
mov cl, 0x58
mov dword [ebp - 0x74], 0x151f58
mov edx, ebx
xor cl, byte [ebp + edx - 0x73]
mov byte [ebp + edx - 0x73], cl
inc edx
cmp edx, 2
jae 0x1003028e
mov cl, byte [ebp - 0x74]
jmp 0x1003027b
sub esp, 0x18
mov byte [ebp - 0x71], bl
lea eax, [ebp - 0x73]
mov dword [ebp - 0x98], esp
mov ecx, esp
push eax
call fcn.10004179
sub esp, 0x18
mov byte [ebp - 4], 9
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.10003ba2
mov byte [ebp - 4], bl
call fcn.1000bc23
add esp, 0x30
test al, al
jne 0x10030475
mov cl, 0xe
mov dword [ebp - 0x74], 0x636a4f0e
mov word [ebp - 0x70], 0x67
mov edx, ebx
xor cl, byte [ebp + edx - 0x73]
mov byte [ebp + edx - 0x73], cl
inc edx
cmp edx, 4
jae 0x100302ee
mov cl, byte [ebp - 0x74]
jmp 0x100302db
sub esp, 0x18
mov byte [ebp - 0x6f], bl
lea eax, [ebp - 0x73]
mov dword [ebp - 0x68], esp
mov ecx, esp
push eax
call fcn.10004179
sub esp, 0x18
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.10003ba2
mov byte [ebp - 4], bl
call fcn.1000bc23
add esp, 0x30
test al, al
jne 0x10030475
mov cl, 0x3a
mov dword [ebp - 0x74], 0x4c5f7e3a
mov word [ebp - 0x70], 0x5f
mov edx, ebx
xor cl, byte [ebp + edx - 0x73]
mov byte [ebp + edx - 0x73], cl
inc edx
cmp edx, 4
jae 0x1003034b
mov cl, byte [ebp - 0x74]
jmp 0x10030338
sub esp, 0x18
mov byte [ebp - 0x6f], bl
lea eax, [ebp - 0x73]
mov dword [ebp - 0x68], esp
mov ecx, esp
push eax
call fcn.10004179
sub esp, 0x18
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.10003ba2
mov byte [ebp - 4], bl
call fcn.1000bc23
add esp, 0x30
test al, al
jne 0x10030475
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.10008c37
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.10008de1
push 1
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 0x14], 0xa4
call fcn.10008de1
push 1
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x10
push eax
lea ecx, [ebp - 0x64]
call fcn.10008de1
push 1
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 3
push eax
lea ecx, [ebp - 0x64]
call fcn.10008de1
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x64]
cmovae eax, dword [ebp - 0x48]
push eax
call fcn.10008bde
mov al, byte [esi + 0x18]
lea ecx, [ebp - 0x64]
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.10008de1
mov al, byte [esi + 0x19]
lea ecx, [ebp - 0x64]
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.10008de1
mov al, byte [esi + 0x1a]
lea ecx, [ebp - 0x64]
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.10008de1
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
sub edx, ecx
call fcn.1000e088
mov ecx, esi
call fcn.10030746
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x64], vtable.ByteBuffer.0
call fcn.10008d75
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.1000402e
jmp 0x100305f8
mov cl, 3
mov dword [ebp - 0x6c], 0x64625703
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 0x10030496
mov cl, byte [ebp - 0x6c]
jmp 0x10030483
lea eax, [ebp - 0x6b]
mov byte [ebp - 0x68], bl
push eax
lea ecx, [ebp - 0x2c]
call fcn.10004179
mov byte [ebp - 4], 0xc
mov edx, ebx
movaps xmm0, xmmword [0x1008ae70]
movups xmmword [ebp - 0x94], xmm0
mov dword [ebp - 0x84], 0x4f1b0001
mov dword [ebp - 0x80], 0x3030e
mov dword [ebp - 0x7c], 0x410b0a18
mov word [ebp - 0x78], 0x4e
mov cl, byte [ebp - 0x94]
xor byte [ebp + edx - 0x93], cl
inc edx
cmp edx, 0x1c
jb 0x100304d7
lea eax, [ebp - 0x93]
mov byte [ebp - 0x77], bl
push eax
lea ecx, [ebp - 0xb0]
call fcn.10004179
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 [0x10088fc4]
push ebx
push 1
lea ecx, [ebp - 0xb0]
call fcn.1000402e
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.1000402e
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.1000402e
xor al, al
call fcn.1003bf4a
ret 8
cmp eax, dword [esi + 0x10]
jne 0x100305ee
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.10008c37
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.10008de1
push 1
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x14], 0xa4
call fcn.10008de1
push 1
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x10
push eax
lea ecx, [ebp - 0x30]
call fcn.10008de1
push 1
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 4
push eax
lea ecx, [ebp - 0x30]
call fcn.10008de1
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub edx, ecx
call fcn.1000e088
mov ecx, esi
call fcn.10030746
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x30], vtable.ByteBuffer.0
call fcn.10008d75
jmp 0x100305f8
cmp eax, dword [esi + 4]
jne 0x100305f8
call fcn.10030746
mov al, 1
jmp 0x10030544