Function at 0x10017608
Capabilities:
Encode data using xor

Disassembly:
push 0x94
mov eax, 0x1007478a
call fcn.1003d3a0
mov ebx, ecx
mov dword [ebp - 0x70], ebx
cmp dword [0x1009ec60], 0
je 0x10017ea7
lea eax, [ebp - 0x67]
mov word [ebp - 0x68], 0x12
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x67], 0
call fcn.10004179
and dword [ebp - 4], 0
xor edx, edx
movaps xmm0, xmmword [0x10090200]
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x18], 0x4b51
mov byte [ebp - 0x16], 0
mov cl, byte [ebp - 0x28]
xor byte [ebp + edx - 0x27], cl
inc edx
cmp edx, 0x11
jb 0x1001765a
sub esp, 0x18
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10004179
mov ecx, dword [ebx]
call fcn.1000d3c0
mov ebx, eax
add esp, 0x18
mov dword [ebp - 0xa0], ebx
test ebx, ebx
je 0x10017e9b
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push ebx
call esi
test eax, eax
jne 0x10017e9b
mov ecx, ebx
call fcn.1000ddfa
lea ecx, [ebp - 0x44]
cmp ecx, eax
je 0x100176be
push 0xffffffffffffffff
push 0
push eax
call fcn.10003dff
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.1005ccce
mov dword [ebp - 0x9c], eax
pop ecx
test eax, eax
jne 0x100176f0
mov edx, 0x1006
lea ecx, [ebp - 0x2c]
call fcn.10008edb
mov byte [ebp - 4], 1
jmp 0x10017b17
mov al, byte [ebp + 8]
sub al, 5
cmp al, 3
ja 0x1001780c
cmp byte [0x1009ec7b], 0
mov ebx, dword [0x1009ec60]
je 0x10017739
mov ecx, 0x10b8134
call fcn.1000df8f
mov edi, eax
test edi, edi
je 0x10017739
push 4
push edi
call esi
test eax, eax
jne 0x10017739
push 4
add edi, 0x6dc
push edi
call esi
test eax, eax
jne 0x10017739
mov al, byte [edi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x100177ac
sub eax, 1
jne 0x1001780c
mov ebx, dword [0x1009ec60]
cmp byte [0x1009ec7b], al
je 0x10017788
mov ecx, 0x10b8134
call fcn.1000df8f
mov edi, eax
test edi, edi
je 0x10017788
push 4
push edi
call esi
test eax, eax
jne 0x10017788
push 4
add edi, 0x6e4
push edi
call esi
test eax, eax
jne 0x10017788
mov ax, word [edi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
add eax, 0xffffff37
cmp eax, 3
ja 0x1001780c
mov edx, 0x1005
lea ecx, [ebp - 0x2c]
call fcn.10008edb
mov byte [ebp - 4], 3
jmp 0x10017b17
cmp byte [0x1009ec7b], 0
mov ebx, dword [0x1009ec60]
je 0x100177ea
mov ecx, 0x10b8134
call fcn.1000df8f
mov edi, eax
test edi, edi
je 0x100177ea
push 4
push edi
call esi
test eax, eax
jne 0x100177ea
push 4
add edi, 0x6e4
push edi
call esi
test eax, eax
jne 0x100177ea
mov ax, word [edi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
add eax, 0xffffff9b
cmp eax, 3
ja 0x1001780c
mov edx, 0x1005
lea ecx, [ebp - 0x2c]
call fcn.10008edb
mov byte [ebp - 4], 2
jmp 0x10017b17
mov cl, byte [ebp + 8]
cmp cl, 8
jne 0x10017941
cmp byte [0x1009ec7b], 0
mov ebx, dword [0x1009ec60]
je 0x10017854
mov ecx, 0x10b8134
call fcn.1000df8f
mov edi, eax
test edi, edi
je 0x10017854
push 4
push edi
call esi
test eax, eax
jne 0x10017854
push 4
add edi, 0x6dc
push edi
call esi
test eax, eax
jne 0x10017854
mov al, byte [edi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x100178d4
sub eax, 1
jne 0x10017b8d
mov ebx, dword [0x1009ec60]
cmp byte [0x1009ec7b], al
je 0x100178a3
mov ecx, 0x10b8134
call fcn.1000df8f
mov edi, eax
test edi, edi
je 0x100178a3
push 4
push edi
call esi
test eax, eax
jne 0x100178a3
push 4
add edi, 0x6e4
push edi
call esi
test eax, eax
jne 0x100178a3
mov ax, word [edi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0xcf
je 0x100178be
dec eax
sub eax, 1
je 0x100178be
dec eax
sub eax, 1
jne 0x10017b8d
mov edx, 0x1007
lea ecx, [ebp - 0x2c]
call fcn.10008edb
mov byte [ebp - 4], 5
jmp 0x10017b17
cmp byte [0x1009ec7b], 0
mov ebx, dword [0x1009ec60]
je 0x10017912
mov ecx, 0x10b8134
call fcn.1000df8f
mov edi, eax
test edi, edi
je 0x10017912
push 4
push edi
call esi
test eax, eax
jne 0x10017912
push 4
add edi, 0x6e4
push edi
call esi
test eax, eax
jne 0x10017912
mov ax, word [edi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0x6b
je 0x1001792b
dec eax
sub eax, 1
je 0x1001792b
dec eax
sub eax, 1
jne 0x10017b8d
mov edx, 0x1007
lea ecx, [ebp - 0x2c]
call fcn.10008edb
mov byte [ebp - 4], 4
jmp 0x10017b17
cmp cl, 7
jne 0x10017a5c
cmp byte [0x1009ec7b], 0
mov ebx, dword [0x1009ec60]
je 0x10017986
mov ecx, 0x10b8134
call fcn.1000df8f
mov edi, eax
test edi, edi
je 0x10017986
push 4
push edi
call esi
test eax, eax
jne 0x10017986
push 4
add edi, 0x6dc
push edi
call esi
test eax, eax
jne 0x10017986
mov al, byte [edi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x100179fd
sub eax, 1
jne 0x10017b8d
mov ebx, dword [0x1009ec60]
cmp byte [0x1009ec7b], al
je 0x100179d5
mov ecx, 0x10b8134
call fcn.1000df8f
mov edi, eax
test edi, edi
je 0x100179d5
push 4
push edi
call esi
test eax, eax
jne 0x100179d5
push 4
add edi, 0x6e4
push edi
call esi
test eax, eax
jne 0x100179d5
mov ax, word [edi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
mov ecx, 0xcd
cmp ax, cx
jne 0x10017b8d
mov edx, 0x1005
lea ecx, [ebp - 0x2c]
call fcn.10008edb
mov byte [ebp - 4], 7
jmp 0x10017b17
cmp byte [0x1009ec7b], 0
mov ebx, dword [0x1009ec60]
je 0x10017a3b
mov ecx, 0x10b8134
call fcn.1000df8f
mov edi, eax
test edi, edi
je 0x10017a3b
push 4
push edi
call esi
test eax, eax
jne 0x10017a3b
push 4
add edi, 0x6e4
push edi
call esi
test eax, eax
jne 0x10017a3b
mov ax, word [edi]
mov word [ebx + 0x3e], ax
cmp word [ebx + 0x3e], 0x69
jne 0x10017b8d
mov edx, 0x1005
lea ecx, [ebp - 0x2c]
call fcn.10008edb
mov byte [ebp - 4], 6
jmp 0x10017b17
cmp cl, 6
jne 0x10017b8d
cmp byte [0x1009ec7b], 0
mov ebx, dword [0x1009ec60]
je 0x10017aa1
mov ecx, 0x10b8134
call fcn.1000df8f
mov edi, eax
test edi, edi
je 0x10017aa1
push 4
push edi
call esi
test eax, eax
jne 0x10017aa1
push 4
add edi, 0x6dc
push edi
call esi
test eax, eax
jne 0x10017aa1
mov al, byte [edi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x10017b35
sub eax, 1
jne 0x10017b8d
mov ebx, dword [0x1009ec60]
cmp byte [0x1009ec7b], al
je 0x10017af4
mov ecx, 0x10b8134
call fcn.1000df8f
mov edi, eax
test edi, edi
je 0x10017af4
push 4
push edi
call esi
test eax, eax
jne 0x10017af4
push 4
add edi, 0x6e4
push edi
call esi
test eax, eax
jne 0x10017af4
mov ax, word [edi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
mov ecx, 0xcf
cmp ax, cx
jne 0x10017b8d
mov edx, 0x1005
lea ecx, [ebp - 0x2c]
call fcn.10008edb
mov byte [ebp - 4], 9
mov edx, 0xffff3b3b
lea ecx, [ebp - 0x2c]
call fcn.100086cd
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.1000402e
jmp 0x10017e9b
cmp byte [0x1009ec7b], 0
mov ebx, dword [0x1009ec60]
je 0x10017b73
mov ecx, 0x10b8134
call fcn.1000df8f
mov edi, eax
test edi, edi
je 0x10017b73
push 4
push edi
call esi
test eax, eax
jne 0x10017b73
push 4
add edi, 0x6e4
push edi
call esi
test eax, eax
jne 0x10017b73
mov ax, word [edi]
mov word [ebx + 0x3e], ax
cmp word [ebx + 0x3e], 0x6b
jne 0x10017b8d
mov edx, 0x1005
lea ecx, [ebp - 0x2c]
call fcn.10008edb
mov byte [ebp - 4], 8
jmp 0x10017b17
movzx eax, byte [ebp + 8]
mov dword [ebp - 0x98], eax
sub eax, 5
je 0x10017c9e
sub eax, 1
je 0x10017c4e
sub eax, 1
je 0x10017c08
sub eax, 1
jne 0x10017e9b
mov cl, 0x65
mov dword [ebp - 0x7c], 0x17111665
mov dword [ebp - 0x78], 0x3a020b0c
xor edx, edx
mov word [ebp - 0x74], 0x52
xor cl, byte [ebp + edx - 0x7b]
mov byte [ebp + edx - 0x7b], cl
inc edx
cmp edx, 8
jae 0x10017be2
mov cl, byte [ebp - 0x7c]
jmp 0x10017bcf
mov byte [ebp - 0x73], 0
lea eax, [ebp - 0x7b]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10004179
mov ecx, dword [ebp - 0x70]
mov ecx, dword [ecx]
call fcn.1000d3c0
mov ebx, eax
mov dword [ebp - 0x64], ebx
jmp 0x10017cea
mov cl, 0x4e
mov dword [ebp - 0x88], 0x3c3a3d4e
mov dword [ebp - 0x84], 0x11292027
xor edx, edx
mov word [ebp - 0x80], 0x78
xor cl, byte [ebp + edx - 0x87]
mov byte [ebp + edx - 0x87], cl
inc edx
cmp edx, 8
jae 0x10017c42
mov cl, byte [ebp - 0x88]
jmp 0x10017c26
mov byte [ebp - 0x7f], 0
lea eax, [ebp - 0x87]
jmp 0x10017be9
xor ebx, ebx
mov dword [ebp - 0x94], 0x1c1a1d6e
mov cl, 0x6e
mov dword [ebp - 0x90], 0x31090007
mov word [ebp - 0x8c], 0x5b
mov edx, ebx
xor cl, byte [ebp + edx - 0x93]
mov byte [ebp + edx - 0x93], cl
inc edx
cmp edx, 8
jae 0x10017c8d
mov cl, byte [ebp - 0x94]
jmp 0x10017c71
mov byte [ebp - 0x8b], bl
lea eax, [ebp - 0x93]
jmp 0x10017be9
mov cl, 0x5a
mov dword [ebp - 0x20], 0x282e295a
mov dword [ebp - 0x1c], 0x53d3433
xor edx, edx
mov word [ebp - 0x18], 0x6e
xor cl, byte [ebp + edx - 0x1f]
mov byte [ebp + edx - 0x1f], cl
inc edx
cmp edx, 8
jae 0x10017cc9
mov cl, byte [ebp - 0x20]
jmp 0x10017cb6
sub esp, 0x18
mov byte [ebp - 0x17], 0
lea eax, [ebp - 0x1f]
mov ecx, esp
push eax
call fcn.10004179
mov ecx, dword [ebp - 0x70]
mov ecx, dword [ecx]
call fcn.1000d3c0
mov ebx, eax
mov dword [ebp - 0x64], eax
add esp, 0x18
test ebx, ebx
je 0x10017e9b
push 4
push ebx
call esi
test eax, eax
jne 0x10017e9b
mov ecx, ebx
call fcn.1000ddfa
lea ecx, [ebp - 0x44]
cmp ecx, eax
je 0x10017d1a
push 0xffffffffffffffff
push 0
push eax
call fcn.10003dff
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.1005ccce
cmp byte [0x1009ec7b], 0
mov ebx, eax
mov eax, dword [0x1009ec60]
pop ecx
mov dword [ebp - 0x6c], eax
je 0x10017d76
mov ecx, 0x10b8134
call fcn.1000df8f
mov edi, eax
test edi, edi
je 0x10017d73
push 4
push edi
call esi
test eax, eax
jne 0x10017d73
push 4
add edi, 0x6e8
push edi
call esi
test eax, eax
jne 0x10017d73
mov ecx, dword [ebp - 0x6c]
mov al, byte [edi]
mov byte [ecx + 0x3c], al
mov eax, ecx
jmp 0x10017d76
mov eax, dword [ebp - 0x6c]
mov al, byte [eax + 0x3c]
movzx eax, al
cmp ebx, eax
jl 0x10017d96
mov edx, 0x1131
lea ecx, [ebp - 0x2c]
call fcn.10008edb
mov byte [ebp - 4], 0xa
jmp 0x10017b17
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x14], 0x32
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
push 0x1000
lea ecx, [ebp - 0x60]
call fcn.10008c46
push 1
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], vtable.Packet.0
call fcn.10008df0
mov al, byte [ebp + 8]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xc
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.10008df0
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
sub edx, ecx
call fcn.1000e069
mov edi, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xa0]
dec edi
mov edx, edi
call fcn.1000de73
mov esi, dword [ebp - 0x70]
mov eax, dword [esi]
mov dword [eax + 0x158], edi
mov eax, dword [esi]
cmp dword [eax + 0x158], 0
ja 0x10017e41
mov ecx, dword [esi + 0x18]
mov dl, 2
call fcn.1000d6c4
mov ecx, dword [esi + 0x1c]
mov dl, 2
call fcn.1000d6c4
mov ecx, dword [esi + 0x20]
mov dl, 2
call fcn.1000d6c4
mov ecx, dword [esi + 0x24]
mov dl, 2
call fcn.1000d6c4
mov ecx, dword [ebp - 0x64]
inc ebx
mov edx, ebx
call fcn.1000de73
mov eax, dword [ebp - 0x98]
sub eax, 5
je 0x10017e84
sub eax, 1
je 0x10017e7a
sub eax, 1
je 0x10017e70
sub eax, 1
jne 0x10017e8c
mov eax, dword [esi]
mov dword [eax + 0x178], ebx
jmp 0x10017e8c
mov eax, dword [esi]
mov dword [eax + 0x174], ebx
jmp 0x10017e8c
mov eax, dword [esi]
mov dword [eax + 0x170], ebx
jmp 0x10017e8c
mov eax, dword [esi]
mov dword [eax + 0x16c], ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x60], vtable.ByteBuffer.0
call fcn.10008d84
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.1000402e
call fcn.1003d34a
ret 4