Function at 0x1001617f
Capabilities:
Encode data using xor

Disassembly:
push 0x68
mov eax, 0x1003ec8c
call fcn.1003d3d1
mov ebx, ecx
mov dword [ebp - 0x68], ebx
cmp dword [0x10056840], 0
je 0x100169d5
lea eax, [ebp - 0x63]
mov word [ebp - 0x64], 0x56
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x63], 0
call fcn.10003da0
xor edx, edx
mov dword [ebp - 4], edx
mov ecx, edx
movaps xmm0, xmmword [0x1004bef0]
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x3c26
mov byte [ebp - 0x12], dl
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x11
jb 0x100161ce
sub esp, 0x18
mov byte [ebp - 0x12], dl
lea eax, [ebp - 0x23]
mov ecx, esp
push eax
call fcn.10003da0
mov ecx, dword [ebx]
call fcn.1000c655
mov ebx, eax
add esp, 0x18
mov dword [ebp - 0x74], ebx
test ebx, ebx
je 0x100169cd
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push ebx
call edi
test eax, eax
jne 0x100169cd
mov ecx, ebx
call fcn.1000d083
push eax
lea ecx, [ebp - 0x44]
call fcn.10007454
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 0x10016258
mov edx, 0x1006
lea ecx, [ebp - 0x28]
call fcn.10008481
mov byte [ebp - 4], 1
jmp 0x100169b8
movzx eax, byte [ebp + 8]
mov dword [ebp - 0x70], eax
sub eax, 5
je 0x10016277
sub eax, 1
je 0x10016277
sub eax, 1
je 0x10016277
sub eax, 1
jne 0x10016398
cmp byte [0x100568bc], 0
mov ebx, dword [0x10056840]
je 0x100162b3
mov ecx, 0x10b8134
call fcn.1000d217
mov esi, eax
test esi, esi
je 0x100162b3
push 4
push esi
call edi
test eax, eax
jne 0x100162b3
push 4
add esi, 0x6dc
push esi
call edi
test eax, eax
jne 0x100162b3
mov al, byte [esi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x10016332
sub eax, 1
jne 0x10016398
mov ebx, dword [0x10056840]
cmp byte [0x100568bc], al
je 0x10016302
mov ecx, 0x10b8134
call fcn.1000d217
mov esi, eax
test esi, esi
je 0x10016302
push 4
push esi
call edi
test eax, eax
jne 0x10016302
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10016302
mov ax, word [esi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0xc9
je 0x1001631c
sub eax, 1
je 0x1001631c
sub eax, 1
je 0x1001631c
sub eax, 1
jne 0x10016398
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.10008481
mov byte [ebp - 4], 3
jmp 0x100169b8
cmp byte [0x100568bc], 0
mov ebx, dword [0x10056840]
je 0x10016370
mov ecx, 0x10b8134
call fcn.1000d217
mov esi, eax
test esi, esi
je 0x10016370
push 4
push esi
call edi
test eax, eax
jne 0x10016370
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10016370
mov ax, word [esi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0x65
je 0x100169a7
sub eax, 1
je 0x100169a7
sub eax, 1
je 0x100169a7
sub eax, 1
je 0x100169a7
mov cl, byte [ebp + 8]
cmp cl, 8
jne 0x100164cf
cmp byte [0x100568bc], 0
mov ebx, dword [0x10056840]
je 0x100163e0
mov ecx, 0x10b8134
call fcn.1000d217
mov esi, eax
test esi, esi
je 0x100163e0
push 4
push esi
call edi
test eax, eax
jne 0x100163e0
push 4
add esi, 0x6dc
push esi
call edi
test eax, eax
jne 0x100163e0
mov al, byte [esi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x10016460
sub eax, 1
jne 0x100165e7
mov ebx, dword [0x10056840]
cmp byte [0x100568bc], al
je 0x1001642f
mov ecx, 0x10b8134
call fcn.1000d217
mov esi, eax
test esi, esi
je 0x1001642f
push 4
push esi
call edi
test eax, eax
jne 0x1001642f
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x1001642f
mov ax, word [esi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0xcf
je 0x1001644a
dec eax
sub eax, 1
je 0x1001644a
dec eax
sub eax, 1
jne 0x100165e7
mov edx, 0x1007
lea ecx, [ebp - 0x28]
call fcn.10008481
mov byte [ebp - 4], 5
jmp 0x100169b8
cmp byte [0x100568bc], 0
mov ebx, dword [0x10056840]
je 0x1001649e
mov ecx, 0x10b8134
call fcn.1000d217
mov esi, eax
test esi, esi
je 0x1001649e
push 4
push esi
call edi
test eax, eax
jne 0x1001649e
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x1001649e
mov ax, word [esi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
push 0x6b
pop edx
sub eax, edx
je 0x100164b9
dec eax
sub eax, 1
je 0x100164b9
dec eax
sub eax, 1
jne 0x100166fd
mov edx, 0x1007
lea ecx, [ebp - 0x28]
call fcn.10008481
mov byte [ebp - 4], 4
jmp 0x100169b8
cmp cl, 7
jne 0x100165e7
cmp byte [0x100568bc], 0
mov ebx, dword [0x10056840]
je 0x10016514
mov ecx, 0x10b8134
call fcn.1000d217
mov esi, eax
test esi, esi
je 0x10016514
push 4
push esi
call edi
test eax, eax
jne 0x10016514
push 4
add esi, 0x6dc
push esi
call edi
test eax, eax
jne 0x10016514
mov al, byte [esi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x10016588
sub eax, 1
jne 0x100166fa
mov ebx, dword [0x10056840]
cmp byte [0x100568bc], al
je 0x10016563
mov ecx, 0x10b8134
call fcn.1000d217
mov esi, eax
test esi, esi
je 0x10016563
push 4
push esi
call edi
test eax, eax
jne 0x10016563
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10016563
mov ax, word [esi]
mov word [ebx + 0x3e], ax
mov eax, 0xcd
cmp word [ebx + 0x3e], ax
jne 0x100166fa
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.10008481
mov byte [ebp - 4], 7
jmp 0x100169b8
cmp byte [0x100568bc], 0
mov ebx, dword [0x10056840]
je 0x100165c6
mov ecx, 0x10b8134
call fcn.1000d217
mov esi, eax
test esi, esi
je 0x100165c6
push 4
push esi
call edi
test eax, eax
jne 0x100165c6
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x100165c6
mov ax, word [esi]
mov word [ebx + 0x3e], ax
cmp word [ebx + 0x3e], 0x69
jne 0x100166fa
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.10008481
mov byte [ebp - 4], 6
jmp 0x100169b8
cmp byte [ebp + 8], 6
jne 0x100166fa
cmp byte [0x100568bc], 0
mov ebx, dword [0x10056840]
je 0x1001662d
mov ecx, 0x10b8134
call fcn.1000d217
mov esi, eax
test esi, esi
je 0x1001662d
push 4
push esi
call edi
test eax, eax
jne 0x1001662d
push 4
add esi, 0x6dc
push esi
call edi
test eax, eax
jne 0x1001662d
mov al, byte [esi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x1001669d
sub eax, 1
jne 0x100166fa
mov ebx, dword [0x10056840]
cmp byte [0x100568bc], al
je 0x1001667c
mov ecx, 0x10b8134
call fcn.1000d217
mov esi, eax
test esi, esi
je 0x1001667c
push 4
push esi
call edi
test eax, eax
jne 0x1001667c
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x1001667c
mov ax, word [esi]
mov word [ebx + 0x3e], ax
mov eax, 0xcf
cmp word [ebx + 0x3e], ax
jne 0x100166fa
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.10008481
mov byte [ebp - 4], 9
jmp 0x100169b8
cmp byte [0x100568bc], 0
mov ebx, dword [0x10056840]
je 0x100166db
mov ecx, 0x10b8134
call fcn.1000d217
mov esi, eax
test esi, esi
je 0x100166db
push 4
push esi
call edi
test eax, eax
jne 0x100166db
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x100166db
mov ax, word [esi]
mov word [ebx + 0x3e], ax
push 0x6b
pop edx
cmp word [ebx + 0x3e], dx
jne 0x100166fd
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.10008481
mov byte [ebp - 4], 8
jmp 0x100169b8
push 0x6b
pop edx
mov eax, dword [ebp - 0x70]
sub eax, 5
je 0x10016794
sub eax, 1
je 0x1001676d
sub eax, 1
je 0x10016746
sub eax, 1
jne 0x100169cd
mov cl, 0x1f
mov word [ebp - 0x1c], 0x6c1f
mov byte [ebp - 0x1a], dl
mov dword [ebp - 0x19], 0x7871766d
mov word [ebp - 0x15], 0x2840
mov byte [ebp - 0x13], al
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x100167bb
mov cl, byte [ebp - 0x1c]
jmp 0x10016737
mov cl, 0x76
mov dword [ebp - 0x1c], 0x4020576
mov dword [ebp - 0x18], 0x2911181f
xor eax, eax
mov word [ebp - 0x14], 0x40
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x100167bb
mov cl, byte [ebp - 0x1c]
jmp 0x1001675e
mov cl, 0x2b
mov dword [ebp - 0x1c], 0x595f582b
mov dword [ebp - 0x18], 0x744c4542
xor eax, eax
mov word [ebp - 0x14], 0x1e
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x100167bb
mov cl, byte [ebp - 0x1c]
jmp 0x10016785
mov cl, 0x58
mov dword [ebp - 0x1c], 0x2a2c2b58
mov dword [ebp - 0x18], 0x73f3631
xor eax, eax
mov word [ebp - 0x14], 0x6c
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x100167bb
mov cl, byte [ebp - 0x1c]
jmp 0x100167ac
sub esp, 0x18
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.10003da0
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx]
call fcn.1000c655
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x100169cd
push 4
push ebx
call edi
test eax, eax
jne 0x100169cd
mov ecx, ebx
call fcn.1000d083
push eax
lea ecx, [ebp - 0x44]
call fcn.10007454
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 [0x100568bc], 0
mov esi, eax
mov eax, dword [0x10056840]
pop ecx
mov dword [ebp - 0x64], eax
je 0x10016867
mov ecx, 0x10b8134
call fcn.1000d217
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10016864
push 4
push eax
call edi
test eax, eax
jne 0x10016864
mov eax, dword [ebp - 0x2c]
add eax, 0x6e8
push 4
push eax
mov dword [ebp - 0x2c], eax
call edi
test eax, eax
jne 0x10016864
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x64]
mov al, byte [eax]
mov byte [ecx + 0x3c], al
mov eax, ecx
jmp 0x10016867
mov eax, dword [ebp - 0x64]
movzx eax, byte [eax + 0x3c]
cmp esi, eax
jl 0x10016885
mov edx, 0x1131
lea ecx, [ebp - 0x28]
call fcn.10008481
mov byte [ebp - 4], 0xa
jmp 0x100169b8
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x64], 0x32
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
push 0x1000
lea ecx, [ebp - 0x60]
call fcn.10008211
push 1
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], vtable.Packet.0
call fcn.10008365
mov al, byte [ebp + 8]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xc
mov byte [ebp - 0x64], al
lea eax, [ebp - 0x64]
push 1
push eax
call fcn.10008365
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
sub edx, eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x64], eax
cmp edx, 0x4000
ja 0x100168fd
mov ecx, dword ds:[0x1004188c]
mov ecx, dword ds:[ecx]
push dword [ebp - 0x2c]
push dword [ebp - 0x64]
call dword [0x10041888]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x74]
dec eax
mov edx, eax
mov dword [ebp - 0x6c], eax
call fcn.1000d103
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 0x1001694f
mov ecx, dword [edi + 0x18]
mov dl, 2
call fcn.1000c953
mov ecx, dword [edi + 0x1c]
mov dl, 2
call fcn.1000c953
mov ecx, dword [edi + 0x20]
mov dl, 2
call fcn.1000c953
mov ecx, dword [edi + 0x24]
mov dl, 2
call fcn.1000c953
inc esi
mov ecx, ebx
mov edx, esi
call fcn.1000d103
mov eax, dword [ebp - 0x70]
sub eax, 5
je 0x1001698e
sub eax, 1
je 0x10016984
sub eax, 1
je 0x1001697a
sub eax, 1
jne 0x10016996
mov eax, dword [edi]
mov dword [eax + 0x178], esi
jmp 0x10016996
mov eax, dword [edi]
mov dword [eax + 0x174], esi
jmp 0x10016996
mov eax, dword [edi]
mov dword [eax + 0x170], esi
jmp 0x10016996
mov eax, dword [edi]
mov dword [eax + 0x16c], esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x60], vtable.ByteBuffer.0
call fcn.10008288
jmp 0x100169cd
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.10008481
mov byte [ebp - 4], 2
mov edx, 0xffff3b3b
lea ecx, [ebp - 0x28]
call fcn.10007c2d
lea ecx, [ebp - 0x28]
call fcn.10003b9e
lea ecx, [ebp - 0x44]
call fcn.10003b9e
call fcn.1003d38f
ret 4