Function at 0x1001627b
Capabilities:
Encode data using xor

Disassembly:
push 0x68
mov eax, 0x1003f059
call fcn.1003d7e1
mov ebx, ecx
mov dword [ebp - 0x68], ebx
cmp dword [0x10057860], 0
je 0x10016ae9
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x3f
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x2b], 0
call fcn.10003d9a
xor edx, edx
mov dword [ebp - 4], edx
mov ecx, edx
movaps xmm0, xmmword [0x1004d730]
mov esi, dword [ebx]
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x6c76
mov byte [ebp - 0x12], dl
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x11
jb 0x100162cc
sub esp, 0x18
mov byte [ebp - 0x12], dl
lea eax, [ebp - 0x23]
mov ecx, esp
push eax
call fcn.10003d9a
mov ecx, esi
call fcn.1000c6f1
mov ebx, eax
add esp, 0x18
mov dword [ebp - 0x74], ebx
test ebx, ebx
je 0x10016ae1
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push ebx
call edi
test eax, eax
jne 0x10016ae1
mov ecx, ebx
call fcn.1000d129
push eax
lea ecx, [ebp - 0x44]
call fcn.1000743d
cmp dword [ebp - 0x30], 0xf
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
pop ecx
mov ecx, eax
mov dword [ebp - 0x6c], ecx
test ecx, ecx
jne 0x10016356
mov edx, 0x1006
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 1
jmp 0x10016acc
movzx eax, byte [ebp + 8]
mov dword [ebp - 0x70], eax
sub eax, 5
je 0x10016375
sub eax, 1
je 0x10016375
sub eax, 1
je 0x10016375
sub eax, 1
jne 0x10016496
cmp byte [0x100578dc], 0
mov ebx, dword [0x10057860]
je 0x100163b1
mov ecx, 0x10b8134
call fcn.1000d2bd
mov esi, eax
test esi, esi
je 0x100163b1
push 4
push esi
call edi
test eax, eax
jne 0x100163b1
push 4
add esi, 0x6dc
push esi
call edi
test eax, eax
jne 0x100163b1
mov al, byte [esi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x10016430
sub eax, 1
jne 0x10016496
mov ebx, dword [0x10057860]
cmp byte [0x100578dc], al
je 0x10016400
mov ecx, 0x10b8134
call fcn.1000d2bd
mov esi, eax
test esi, esi
je 0x10016400
push 4
push esi
call edi
test eax, eax
jne 0x10016400
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10016400
mov ax, word [esi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0xc9
je 0x1001641a
sub eax, 1
je 0x1001641a
sub eax, 1
je 0x1001641a
sub eax, 1
jne 0x10016496
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 3
jmp 0x10016acc
cmp byte [0x100578dc], 0
mov ebx, dword [0x10057860]
je 0x1001646e
mov ecx, 0x10b8134
call fcn.1000d2bd
mov esi, eax
test esi, esi
je 0x1001646e
push 4
push esi
call edi
test eax, eax
jne 0x1001646e
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x1001646e
mov ax, word [esi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0x65
je 0x10016abb
sub eax, 1
je 0x10016abb
sub eax, 1
je 0x10016abb
sub eax, 1
je 0x10016abb
mov cl, byte [ebp + 8]
cmp cl, 8
jne 0x100165cb
cmp byte [0x100578dc], 0
mov ebx, dword [0x10057860]
je 0x100164de
mov ecx, 0x10b8134
call fcn.1000d2bd
mov esi, eax
test esi, esi
je 0x100164de
push 4
push esi
call edi
test eax, eax
jne 0x100164de
push 4
add esi, 0x6dc
push esi
call edi
test eax, eax
jne 0x100164de
mov al, byte [esi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x1001655e
sub eax, 1
jne 0x100166e3
mov ebx, dword [0x10057860]
cmp byte [0x100578dc], al
je 0x1001652d
mov ecx, 0x10b8134
call fcn.1000d2bd
mov esi, eax
test esi, esi
je 0x1001652d
push 4
push esi
call edi
test eax, eax
jne 0x1001652d
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x1001652d
mov ax, word [esi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0xcf
je 0x10016548
dec eax
sub eax, 1
je 0x10016548
dec eax
sub eax, 1
jne 0x100166e3
mov edx, 0x1007
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 5
jmp 0x10016acc
cmp byte [0x100578dc], 0
mov ebx, dword [0x10057860]
je 0x1001659c
mov ecx, 0x10b8134
call fcn.1000d2bd
mov esi, eax
test esi, esi
je 0x1001659c
push 4
push esi
call edi
test eax, eax
jne 0x1001659c
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x1001659c
mov ax, word [esi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0x6b
je 0x100165b5
dec eax
sub eax, 1
je 0x100165b5
dec eax
sub eax, 1
jne 0x100167f4
mov edx, 0x1007
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 4
jmp 0x10016acc
cmp cl, 7
jne 0x100166e3
cmp byte [0x100578dc], 0
mov ebx, dword [0x10057860]
je 0x10016610
mov ecx, 0x10b8134
call fcn.1000d2bd
mov esi, eax
test esi, esi
je 0x10016610
push 4
push esi
call edi
test eax, eax
jne 0x10016610
push 4
add esi, 0x6dc
push esi
call edi
test eax, eax
jne 0x10016610
mov al, byte [esi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x10016684
sub eax, 1
jne 0x100167f4
mov ebx, dword [0x10057860]
cmp byte [0x100578dc], al
je 0x1001665f
mov ecx, 0x10b8134
call fcn.1000d2bd
mov esi, eax
test esi, esi
je 0x1001665f
push 4
push esi
call edi
test eax, eax
jne 0x1001665f
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x1001665f
mov ax, word [esi]
mov word [ebx + 0x3e], ax
mov eax, 0xcd
cmp word [ebx + 0x3e], ax
jne 0x100167f4
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 7
jmp 0x10016acc
cmp byte [0x100578dc], 0
mov ebx, dword [0x10057860]
je 0x100166c2
mov ecx, 0x10b8134
call fcn.1000d2bd
mov esi, eax
test esi, esi
je 0x100166c2
push 4
push esi
call edi
test eax, eax
jne 0x100166c2
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x100166c2
mov ax, word [esi]
mov word [ebx + 0x3e], ax
cmp word [ebx + 0x3e], 0x69
jne 0x100167f4
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 6
jmp 0x10016acc
cmp byte [ebp + 8], 6
jne 0x100167f4
cmp byte [0x100578dc], 0
mov ebx, dword [0x10057860]
je 0x10016729
mov ecx, 0x10b8134
call fcn.1000d2bd
mov esi, eax
test esi, esi
je 0x10016729
push 4
push esi
call edi
test eax, eax
jne 0x10016729
push 4
add esi, 0x6dc
push esi
call edi
test eax, eax
jne 0x10016729
mov al, byte [esi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x10016799
sub eax, 1
jne 0x100167f4
mov ebx, dword [0x10057860]
cmp byte [0x100578dc], al
je 0x10016778
mov ecx, 0x10b8134
call fcn.1000d2bd
mov esi, eax
test esi, esi
je 0x10016778
push 4
push esi
call edi
test eax, eax
jne 0x10016778
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10016778
mov ax, word [esi]
mov word [ebx + 0x3e], ax
mov eax, 0xcf
cmp word [ebx + 0x3e], ax
jne 0x100167f4
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 9
jmp 0x10016acc
cmp byte [0x100578dc], 0
mov ebx, dword [0x10057860]
je 0x100167d7
mov ecx, 0x10b8134
call fcn.1000d2bd
mov esi, eax
test esi, esi
je 0x100167d7
push 4
push esi
call edi
test eax, eax
jne 0x100167d7
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x100167d7
mov ax, word [esi]
mov word [ebx + 0x3e], ax
cmp word [ebx + 0x3e], 0x6b
jne 0x100167f4
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 8
jmp 0x10016acc
mov eax, dword [ebp - 0x70]
sub eax, 5
je 0x100168a4
sub eax, 1
je 0x1001686f
sub eax, 1
je 0x10016843
sub eax, 1
jne 0x10016ae1
mov eax, dword [ebp - 0x68]
mov cl, 0x2a
mov dword [ebp - 0x1c], 0x585e592a
mov dword [ebp - 0x18], 0x754d4443
mov word [ebp - 0x14], 0x1d
mov esi, dword [eax]
xor eax, eax
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x100168d2
mov cl, byte [ebp - 0x1c]
jmp 0x10016830
mov eax, dword [ebp - 0x68]
mov cl, 0x20
mov dword [ebp - 0x1c], 0x52545320
mov dword [ebp - 0x18], 0x7f474e49
mov word [ebp - 0x14], 0x16
mov esi, dword [eax]
xor eax, eax
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x100168d2
mov cl, byte [ebp - 0x1c]
jmp 0x10016860
mov eax, dword [ebp - 0x68]
mov cl, 0x60
push 0x3f
pop edx
mov dword [ebp - 0x1c], 0x12141360
mov esi, dword [eax]
xor eax, eax
mov word [ebp - 0x18], 0xe09
mov byte [ebp - 0x16], 7
mov byte [ebp - 0x15], dl
mov word [ebp - 0x14], 0x55
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x100168d2
mov cl, byte [ebp - 0x1c]
jmp 0x10016895
mov eax, dword [ebp - 0x68]
push 0x3f
pop edx
mov byte [ebp - 0x1c], dl
mov esi, dword [eax]
xor eax, eax
mov dword [ebp - 0x1b], 0x564d4b4c
mov dword [ebp - 0x17], 0xb605851
mov byte [ebp - 0x13], 0
xor byte [ebp + eax - 0x1b], dl
inc eax
cmp eax, 8
jae 0x100168d2
mov dl, byte [ebp - 0x1c]
jmp 0x100168c3
sub esp, 0x18
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.10003d9a
mov ecx, esi
call fcn.1000c6f1
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x10016ae1
push 4
push ebx
call edi
test eax, eax
jne 0x10016ae1
mov ecx, ebx
call fcn.1000d129
push eax
lea ecx, [ebp - 0x44]
call fcn.1000743d
cmp dword [ebp - 0x30], 0xf
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp byte [0x100578dc], 0
mov esi, eax
mov eax, dword [0x10057860]
pop ecx
mov dword [ebp - 0x2c], eax
je 0x1001697b
mov ecx, 0x10b8134
call fcn.1000d2bd
mov dword [ebp - 0x64], eax
test eax, eax
je 0x10016978
push 4
push eax
call edi
test eax, eax
jne 0x10016978
mov eax, dword [ebp - 0x64]
add eax, 0x6e8
push 4
push eax
mov dword [ebp - 0x64], eax
call edi
test eax, eax
jne 0x10016978
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x2c]
mov al, byte [eax]
mov byte [ecx + 0x3c], al
mov eax, ecx
jmp 0x1001697b
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + 0x3c]
cmp esi, eax
jl 0x10016999
mov edx, 0x1131
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 0xa
jmp 0x10016acc
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x2c], 0x32
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
push 0x1000
lea ecx, [ebp - 0x60]
call fcn.10008222
push 1
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], vtable.Packet.0
call fcn.10008376
mov al, byte [ebp + 8]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xc
mov byte [ebp - 0x2c], al
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.10008376
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
sub edx, eax
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x2c], eax
cmp edx, 0x4000
ja 0x10016a11
mov ecx, dword ds:[0x10042be4]
mov ecx, dword ds:[ecx]
push dword [ebp - 0x64]
push dword [ebp - 0x2c]
call dword [0x10042be0]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x74]
dec eax
mov edx, eax
mov dword [ebp - 0x6c], eax
call fcn.1000d1a9
mov edi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
mov eax, dword [edi]
mov dword [eax + 0x158], ecx
mov eax, dword [edi]
cmp dword [eax + 0x158], 0
ja 0x10016a63
mov ecx, dword [edi + 0x18]
mov dl, 2
call fcn.1000c9f1
mov ecx, dword [edi + 0x1c]
mov dl, 2
call fcn.1000c9f1
mov ecx, dword [edi + 0x20]
mov dl, 2
call fcn.1000c9f1
mov ecx, dword [edi + 0x24]
mov dl, 2
call fcn.1000c9f1
inc esi
mov ecx, ebx
mov edx, esi
call fcn.1000d1a9
mov eax, dword [ebp - 0x70]
sub eax, 5
je 0x10016aa2
sub eax, 1
je 0x10016a98
sub eax, 1
je 0x10016a8e
sub eax, 1
jne 0x10016aaa
mov eax, dword [edi]
mov dword [eax + 0x178], esi
jmp 0x10016aaa
mov eax, dword [edi]
mov dword [eax + 0x174], esi
jmp 0x10016aaa
mov eax, dword [edi]
mov dword [eax + 0x170], esi
jmp 0x10016aaa
mov eax, dword [edi]
mov dword [eax + 0x16c], esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x60], vtable.ByteBuffer.0
call fcn.10008299
jmp 0x10016ae1
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 2
mov edx, 0xffff3b3b
lea ecx, [ebp - 0x28]
call fcn.10007c15
lea ecx, [ebp - 0x28]
call fcn.10003b98
lea ecx, [ebp - 0x44]
call fcn.10003b98
call fcn.1003d79f
ret 4