Function at 0x10016211
Capabilities:
Encode data using xor

Disassembly:
push 0x6c
mov eax, 0x1003f039
call fcn.1003d7b1
mov ebx, ecx
mov dword [ebp - 0x64], ebx
cmp dword [0x10057860], 0
je 0x10016a8b
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x6a
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x2b], 0
call fcn.10003d99
xor edx, edx
mov dword [ebp - 4], edx
mov ecx, edx
movaps xmm0, xmmword [0x1004d2e0]
mov esi, dword [ebx]
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x504a
mov byte [ebp - 0x12], dl
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x11
jb 0x10016262
sub esp, 0x18
mov byte [ebp - 0x12], dl
lea eax, [ebp - 0x23]
mov ecx, esp
push eax
call fcn.10003d99
mov ecx, esi
call fcn.1000c67f
mov ebx, eax
add esp, 0x18
mov dword [ebp - 0x74], ebx
test ebx, ebx
je 0x10016a83
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push ebx
call esi
test eax, eax
jne 0x10016a83
mov ecx, ebx
call fcn.1000d0b7
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]
mov dword [ebp - 0x78], eax
pop ecx
test eax, eax
jne 0x100162ea
mov edx, 0x1006
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 1
jmp 0x10016a6e
movzx eax, byte [ebp + 8]
mov dword [ebp - 0x70], eax
sub eax, 5
je 0x10016309
sub eax, 1
je 0x10016309
sub eax, 1
je 0x10016309
sub eax, 1
jne 0x1001642a
cmp byte [0x100578dc], 0
mov ebx, dword [0x10057860]
je 0x10016345
mov ecx, 0x10b8134
call fcn.1000d24b
mov edi, eax
test edi, edi
je 0x10016345
push 4
push edi
call esi
test eax, eax
jne 0x10016345
push 4
add edi, 0x6dc
push edi
call esi
test eax, eax
jne 0x10016345
mov al, byte [edi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x100163c4
sub eax, 1
jne 0x1001642a
mov ebx, dword [0x10057860]
cmp byte [0x100578dc], al
je 0x10016394
mov ecx, 0x10b8134
call fcn.1000d24b
mov edi, eax
test edi, edi
je 0x10016394
push 4
push edi
call esi
test eax, eax
jne 0x10016394
push 4
add edi, 0x6e4
push edi
call esi
test eax, eax
jne 0x10016394
mov ax, word [edi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0xc9
je 0x100163ae
sub eax, 1
je 0x100163ae
sub eax, 1
je 0x100163ae
sub eax, 1
jne 0x1001642a
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 3
jmp 0x10016a6e
cmp byte [0x100578dc], 0
mov ebx, dword [0x10057860]
je 0x10016402
mov ecx, 0x10b8134
call fcn.1000d24b
mov edi, eax
test edi, edi
je 0x10016402
push 4
push edi
call esi
test eax, eax
jne 0x10016402
push 4
add edi, 0x6e4
push edi
call esi
test eax, eax
jne 0x10016402
mov ax, word [edi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0x65
je 0x10016a5d
sub eax, 1
je 0x10016a5d
sub eax, 1
je 0x10016a5d
sub eax, 1
je 0x10016a5d
mov cl, byte [ebp + 8]
cmp cl, 8
jne 0x1001655f
cmp byte [0x100578dc], 0
mov ebx, dword [0x10057860]
je 0x10016472
mov ecx, 0x10b8134
call fcn.1000d24b
mov edi, eax
test edi, edi
je 0x10016472
push 4
push edi
call esi
test eax, eax
jne 0x10016472
push 4
add edi, 0x6dc
push edi
call esi
test eax, eax
jne 0x10016472
mov al, byte [edi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x100164f2
sub eax, 1
jne 0x10016677
mov ebx, dword [0x10057860]
cmp byte [0x100578dc], al
je 0x100164c1
mov ecx, 0x10b8134
call fcn.1000d24b
mov edi, eax
test edi, edi
je 0x100164c1
push 4
push edi
call esi
test eax, eax
jne 0x100164c1
push 4
add edi, 0x6e4
push edi
call esi
test eax, eax
jne 0x100164c1
mov ax, word [edi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0xcf
je 0x100164dc
dec eax
sub eax, 1
je 0x100164dc
dec eax
sub eax, 1
jne 0x10016677
mov edx, 0x1007
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 5
jmp 0x10016a6e
cmp byte [0x100578dc], 0
mov ebx, dword [0x10057860]
je 0x10016530
mov ecx, 0x10b8134
call fcn.1000d24b
mov edi, eax
test edi, edi
je 0x10016530
push 4
push edi
call esi
test eax, eax
jne 0x10016530
push 4
add edi, 0x6e4
push edi
call esi
test eax, eax
jne 0x10016530
mov ax, word [edi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0x6b
je 0x10016549
dec eax
sub eax, 1
je 0x10016549
dec eax
sub eax, 1
jne 0x10016788
mov edx, 0x1007
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 4
jmp 0x10016a6e
cmp cl, 7
jne 0x10016677
cmp byte [0x100578dc], 0
mov ebx, dword [0x10057860]
je 0x100165a4
mov ecx, 0x10b8134
call fcn.1000d24b
mov edi, eax
test edi, edi
je 0x100165a4
push 4
push edi
call esi
test eax, eax
jne 0x100165a4
push 4
add edi, 0x6dc
push edi
call esi
test eax, eax
jne 0x100165a4
mov al, byte [edi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x10016618
sub eax, 1
jne 0x10016788
mov ebx, dword [0x10057860]
cmp byte [0x100578dc], al
je 0x100165f3
mov ecx, 0x10b8134
call fcn.1000d24b
mov edi, eax
test edi, edi
je 0x100165f3
push 4
push edi
call esi
test eax, eax
jne 0x100165f3
push 4
add edi, 0x6e4
push edi
call esi
test eax, eax
jne 0x100165f3
mov ax, word [edi]
mov word [ebx + 0x3e], ax
mov eax, 0xcd
cmp word [ebx + 0x3e], ax
jne 0x10016788
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 7
jmp 0x10016a6e
cmp byte [0x100578dc], 0
mov ebx, dword [0x10057860]
je 0x10016656
mov ecx, 0x10b8134
call fcn.1000d24b
mov edi, eax
test edi, edi
je 0x10016656
push 4
push edi
call esi
test eax, eax
jne 0x10016656
push 4
add edi, 0x6e4
push edi
call esi
test eax, eax
jne 0x10016656
mov ax, word [edi]
mov word [ebx + 0x3e], ax
cmp word [ebx + 0x3e], 0x69
jne 0x10016788
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 6
jmp 0x10016a6e
cmp byte [ebp + 8], 6
jne 0x10016788
cmp byte [0x100578dc], 0
mov ebx, dword [0x10057860]
je 0x100166bd
mov ecx, 0x10b8134
call fcn.1000d24b
mov edi, eax
test edi, edi
je 0x100166bd
push 4
push edi
call esi
test eax, eax
jne 0x100166bd
push 4
add edi, 0x6dc
push edi
call esi
test eax, eax
jne 0x100166bd
mov al, byte [edi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x1001672d
sub eax, 1
jne 0x10016788
mov ebx, dword [0x10057860]
cmp byte [0x100578dc], al
je 0x1001670c
mov ecx, 0x10b8134
call fcn.1000d24b
mov edi, eax
test edi, edi
je 0x1001670c
push 4
push edi
call esi
test eax, eax
jne 0x1001670c
push 4
add edi, 0x6e4
push edi
call esi
test eax, eax
jne 0x1001670c
mov ax, word [edi]
mov word [ebx + 0x3e], ax
mov eax, 0xcf
cmp word [ebx + 0x3e], ax
jne 0x10016788
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 9
jmp 0x10016a6e
cmp byte [0x100578dc], 0
mov ebx, dword [0x10057860]
je 0x1001676b
mov ecx, 0x10b8134
call fcn.1000d24b
mov edi, eax
test edi, edi
je 0x1001676b
push 4
push edi
call esi
test eax, eax
jne 0x1001676b
push 4
add edi, 0x6e4
push edi
call esi
test eax, eax
jne 0x1001676b
mov ax, word [edi]
mov word [ebx + 0x3e], ax
cmp word [ebx + 0x3e], 0x6b
jne 0x10016788
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 8
jmp 0x10016a6e
mov eax, dword [ebp - 0x70]
sub eax, 5
je 0x10016852
sub eax, 1
je 0x10016826
sub eax, 1
je 0x100167fa
sub eax, 1
jne 0x10016a83
mov eax, dword [ebp - 0x64]
mov cl, 0x63
mov dword [ebp - 0x1c], 0x11171063
mov dword [ebp - 0x18], 0x3c040d0a
mov word [ebp - 0x14], 0x54
mov edi, dword [eax]
xor eax, eax
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x100167d7
mov cl, byte [ebp - 0x1c]
jmp 0x100167c8
sub esp, 0x18
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.10003d99
mov ecx, edi
call fcn.1000c67f
mov ebx, eax
mov dword [ebp - 0x6c], ebx
jmp 0x1001689d
mov eax, dword [ebp - 0x64]
mov cl, 0x79
mov dword [ebp - 0x1c], 0xb0d0a79
mov dword [ebp - 0x18], 0x261e1710
mov word [ebp - 0x14], 0x4f
mov edi, dword [eax]
xor eax, eax
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x100167d7
mov cl, byte [ebp - 0x1c]
jmp 0x10016817
mov eax, dword [ebp - 0x64]
mov cl, 0x14
mov dword [ebp - 0x1c], 0x66606714
mov dword [ebp - 0x18], 0x4b737a7d
mov word [ebp - 0x14], 0x21
mov edi, dword [eax]
xor eax, eax
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x100167d7
mov cl, byte [ebp - 0x1c]
jmp 0x10016843
mov eax, dword [ebp - 0x64]
xor edx, edx
mov cl, 0x72
mov dword [ebp - 0x1c], 0x60172
mov dword [ebp - 0x18], 0x2d151c1b
mov word [ebp - 0x14], 0x46
mov edi, dword [eax]
mov eax, edx
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x10016880
mov cl, byte [ebp - 0x1c]
jmp 0x10016871
sub esp, 0x18
mov byte [ebp - 0x13], dl
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.10003d99
mov ecx, edi
call fcn.1000c67f
mov ebx, eax
mov dword [ebp - 0x6c], eax
add esp, 0x18
test ebx, ebx
je 0x10016a83
push 4
push ebx
call esi
test eax, eax
jne 0x10016a83
mov ecx, ebx
call fcn.1000d0b7
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 ebx, eax
mov eax, dword [0x10057860]
pop ecx
mov dword [ebp - 0x2c], eax
je 0x10016922
mov ecx, 0x10b8134
call fcn.1000d24b
mov edi, eax
test edi, edi
je 0x1001691f
push 4
push edi
call esi
test eax, eax
jne 0x1001691f
push 4
add edi, 0x6e8
push edi
call esi
test eax, eax
jne 0x1001691f
mov ecx, dword [ebp - 0x2c]
mov al, byte [edi]
mov byte [ecx + 0x3c], al
mov eax, ecx
jmp 0x10016922
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + 0x3c]
cmp ebx, eax
jl 0x10016940
mov edx, 0x1131
lea ecx, [ebp - 0x28]
call fcn.100084a1
mov byte [ebp - 4], 0xa
jmp 0x10016a6e
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 - 0x2c], edx
mov dword [ebp - 0x68], eax
cmp edx, 0x4000
ja 0x100169b8
mov ecx, dword ds:[0x10042be4]
mov ecx, dword ds:[ecx]
push dword [ebp - 0x2c]
push dword [ebp - 0x68]
call dword [0x10042be0]
mov edi, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
dec edi
mov edx, edi
call fcn.1000d137
mov esi, dword [ebp - 0x64]
mov eax, dword [esi]
mov dword [eax + 0x158], edi
mov eax, dword [esi]
cmp dword [eax + 0x158], 0
ja 0x10016a04
mov ecx, dword [esi + 0x18]
mov dl, 2
call fcn.1000c97f
mov ecx, dword [esi + 0x1c]
mov dl, 2
call fcn.1000c97f
mov ecx, dword [esi + 0x20]
mov dl, 2
call fcn.1000c97f
mov ecx, dword [esi + 0x24]
mov dl, 2
call fcn.1000c97f
mov ecx, dword [ebp - 0x6c]
inc ebx
mov edx, ebx
call fcn.1000d137
mov eax, dword [ebp - 0x70]
sub eax, 5
je 0x10016a44
sub eax, 1
je 0x10016a3a
sub eax, 1
je 0x10016a30
sub eax, 1
jne 0x10016a4c
mov eax, dword [esi]
mov dword [eax + 0x178], ebx
jmp 0x10016a4c
mov eax, dword [esi]
mov dword [eax + 0x174], ebx
jmp 0x10016a4c
mov eax, dword [esi]
mov dword [eax + 0x170], ebx
jmp 0x10016a4c
mov eax, dword [esi]
mov dword [eax + 0x16c], ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x60], vtable.ByteBuffer.0
call fcn.10008299
jmp 0x10016a83
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.10003b97
lea ecx, [ebp - 0x44]
call fcn.10003b97
call fcn.1003d76f
ret 4