Function at 0x100167c1
Capabilities:
Encode data using xor

Disassembly:
push 0x68
mov eax, 0x1003f625
call fcn.1003dd61
mov ebx, ecx
mov dword [ebp - 0x68], ebx
cmp dword [0x10057860], 0
je 0x10017022
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 7
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 [0x1004ce20]
mov esi, dword [ebx]
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x61c
mov byte [ebp - 0x12], dl
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x11
jb 0x10016812
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.1000cc8b
mov ebx, eax
add esp, 0x18
mov dword [ebp - 0x74], ebx
test ebx, ebx
je 0x1001701a
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push ebx
call edi
test eax, eax
jne 0x1001701a
mov ecx, ebx
call fcn.1000d6c3
push eax
lea ecx, [ebp - 0x44]
call fcn.10007448
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 0x1001689c
mov edx, 0x1006
lea ecx, [ebp - 0x28]
call fcn.100084ac
mov byte [ebp - 4], 1
jmp 0x10017005
movzx eax, byte [ebp + 8]
mov dword [ebp - 0x70], eax
sub eax, 5
je 0x100168bb
sub eax, 1
je 0x100168bb
sub eax, 1
je 0x100168bb
sub eax, 1
jne 0x100169dc
cmp byte [0x100578e0], 0
mov ebx, dword [0x10057860]
je 0x100168f7
mov ecx, 0x10b8134
call fcn.1000d857
mov esi, eax
test esi, esi
je 0x100168f7
push 4
push esi
call edi
test eax, eax
jne 0x100168f7
push 4
add esi, 0x6dc
push esi
call edi
test eax, eax
jne 0x100168f7
mov al, byte [esi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x10016976
sub eax, 1
jne 0x100169dc
mov ebx, dword [0x10057860]
cmp byte [0x100578e0], al
je 0x10016946
mov ecx, 0x10b8134
call fcn.1000d857
mov esi, eax
test esi, esi
je 0x10016946
push 4
push esi
call edi
test eax, eax
jne 0x10016946
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10016946
mov ax, word [esi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0xc9
je 0x10016960
sub eax, 1
je 0x10016960
sub eax, 1
je 0x10016960
sub eax, 1
jne 0x100169dc
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.100084ac
mov byte [ebp - 4], 3
jmp 0x10017005
cmp byte [0x100578e0], 0
mov ebx, dword [0x10057860]
je 0x100169b4
mov ecx, 0x10b8134
call fcn.1000d857
mov esi, eax
test esi, esi
je 0x100169b4
push 4
push esi
call edi
test eax, eax
jne 0x100169b4
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x100169b4
mov ax, word [esi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0x65
je 0x10016ff4
sub eax, 1
je 0x10016ff4
sub eax, 1
je 0x10016ff4
sub eax, 1
je 0x10016ff4
mov cl, byte [ebp + 8]
cmp cl, 8
jne 0x10016b11
cmp byte [0x100578e0], 0
mov ebx, dword [0x10057860]
je 0x10016a24
mov ecx, 0x10b8134
call fcn.1000d857
mov esi, eax
test esi, esi
je 0x10016a24
push 4
push esi
call edi
test eax, eax
jne 0x10016a24
push 4
add esi, 0x6dc
push esi
call edi
test eax, eax
jne 0x10016a24
mov al, byte [esi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x10016aa4
sub eax, 1
jne 0x10016c29
mov ebx, dword [0x10057860]
cmp byte [0x100578e0], al
je 0x10016a73
mov ecx, 0x10b8134
call fcn.1000d857
mov esi, eax
test esi, esi
je 0x10016a73
push 4
push esi
call edi
test eax, eax
jne 0x10016a73
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10016a73
mov ax, word [esi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0xcf
je 0x10016a8e
dec eax
sub eax, 1
je 0x10016a8e
dec eax
sub eax, 1
jne 0x10016c29
mov edx, 0x1007
lea ecx, [ebp - 0x28]
call fcn.100084ac
mov byte [ebp - 4], 5
jmp 0x10017005
cmp byte [0x100578e0], 0
mov ebx, dword [0x10057860]
je 0x10016ae2
mov ecx, 0x10b8134
call fcn.1000d857
mov esi, eax
test esi, esi
je 0x10016ae2
push 4
push esi
call edi
test eax, eax
jne 0x10016ae2
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10016ae2
mov ax, word [esi]
mov word [ebx + 0x3e], ax
movzx eax, word [ebx + 0x3e]
sub eax, 0x6b
je 0x10016afb
dec eax
sub eax, 1
je 0x10016afb
dec eax
sub eax, 1
jne 0x10016d3a
mov edx, 0x1007
lea ecx, [ebp - 0x28]
call fcn.100084ac
mov byte [ebp - 4], 4
jmp 0x10017005
cmp cl, 7
jne 0x10016c29
cmp byte [0x100578e0], 0
mov ebx, dword [0x10057860]
je 0x10016b56
mov ecx, 0x10b8134
call fcn.1000d857
mov esi, eax
test esi, esi
je 0x10016b56
push 4
push esi
call edi
test eax, eax
jne 0x10016b56
push 4
add esi, 0x6dc
push esi
call edi
test eax, eax
jne 0x10016b56
mov al, byte [esi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x10016bca
sub eax, 1
jne 0x10016d3a
mov ebx, dword [0x10057860]
cmp byte [0x100578e0], al
je 0x10016ba5
mov ecx, 0x10b8134
call fcn.1000d857
mov esi, eax
test esi, esi
je 0x10016ba5
push 4
push esi
call edi
test eax, eax
jne 0x10016ba5
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10016ba5
mov ax, word [esi]
mov word [ebx + 0x3e], ax
mov eax, 0xcd
cmp word [ebx + 0x3e], ax
jne 0x10016d3a
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.100084ac
mov byte [ebp - 4], 7
jmp 0x10017005
cmp byte [0x100578e0], 0
mov ebx, dword [0x10057860]
je 0x10016c08
mov ecx, 0x10b8134
call fcn.1000d857
mov esi, eax
test esi, esi
je 0x10016c08
push 4
push esi
call edi
test eax, eax
jne 0x10016c08
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10016c08
mov ax, word [esi]
mov word [ebx + 0x3e], ax
cmp word [ebx + 0x3e], 0x69
jne 0x10016d3a
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.100084ac
mov byte [ebp - 4], 6
jmp 0x10017005
cmp byte [ebp + 8], 6
jne 0x10016d3a
cmp byte [0x100578e0], 0
mov ebx, dword [0x10057860]
je 0x10016c6f
mov ecx, 0x10b8134
call fcn.1000d857
mov esi, eax
test esi, esi
je 0x10016c6f
push 4
push esi
call edi
test eax, eax
jne 0x10016c6f
push 4
add esi, 0x6dc
push esi
call edi
test eax, eax
jne 0x10016c6f
mov al, byte [esi]
mov byte [ebx + 0x38], al
movzx eax, byte [ebx + 0x38]
sub eax, 1
je 0x10016cdf
sub eax, 1
jne 0x10016d3a
mov ebx, dword [0x10057860]
cmp byte [0x100578e0], al
je 0x10016cbe
mov ecx, 0x10b8134
call fcn.1000d857
mov esi, eax
test esi, esi
je 0x10016cbe
push 4
push esi
call edi
test eax, eax
jne 0x10016cbe
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10016cbe
mov ax, word [esi]
mov word [ebx + 0x3e], ax
mov eax, 0xcf
cmp word [ebx + 0x3e], ax
jne 0x10016d3a
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.100084ac
mov byte [ebp - 4], 9
jmp 0x10017005
cmp byte [0x100578e0], 0
mov ebx, dword [0x10057860]
je 0x10016d1d
mov ecx, 0x10b8134
call fcn.1000d857
mov esi, eax
test esi, esi
je 0x10016d1d
push 4
push esi
call edi
test eax, eax
jne 0x10016d1d
push 4
add esi, 0x6e4
push esi
call edi
test eax, eax
jne 0x10016d1d
mov ax, word [esi]
mov word [ebx + 0x3e], ax
cmp word [ebx + 0x3e], 0x6b
jne 0x10016d3a
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.100084ac
mov byte [ebp - 4], 8
jmp 0x10017005
mov eax, dword [ebp - 0x70]
sub eax, 5
je 0x10016ddf
sub eax, 1
je 0x10016db3
sub eax, 1
je 0x10016d87
sub eax, 1
jne 0x1001701a
mov esi, dword [ebp - 0x68]
mov cl, 0x2f
mov dword [ebp - 0x1c], 0x5d5b5c2f
mov dword [ebp - 0x18], 0x70484146
mov word [ebp - 0x14], 0x18
mov esi, dword [esi]
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x10016e0b
mov cl, byte [ebp - 0x1c]
jmp 0x10016d74
mov esi, dword [ebp - 0x68]
mov cl, 0x17
mov dword [ebp - 0x1c], 0x65636417
xor eax, eax
mov dword [ebp - 0x18], 0x4870797e
mov word [ebp - 0x14], 0x21
mov esi, dword [esi]
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x10016e0b
mov cl, byte [ebp - 0x1c]
jmp 0x10016da4
mov esi, dword [ebp - 0x68]
mov cl, 0x21
mov dword [ebp - 0x1c], 0x53555221
xor eax, eax
mov dword [ebp - 0x18], 0x7e464f48
mov word [ebp - 0x14], 0x14
mov esi, dword [esi]
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x10016e0b
mov cl, byte [ebp - 0x1c]
jmp 0x10016dd0
mov esi, dword [ebp - 0x68]
mov cl, 0x77
mov dword [ebp - 0x1c], 0x5030477
xor eax, eax
mov dword [ebp - 0x18], 0x2810191e
mov word [ebp - 0x14], 0x43
mov esi, dword [esi]
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 8
jae 0x10016e0b
mov cl, byte [ebp - 0x1c]
jmp 0x10016dfc
sub esp, 0x18
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.10003d99
mov ecx, esi
call fcn.1000cc8b
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x1001701a
push 4
push ebx
call edi
test eax, eax
jne 0x1001701a
mov ecx, ebx
call fcn.1000d6c3
push eax
lea ecx, [ebp - 0x44]
call fcn.10007448
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 [0x100578e0], 0
mov esi, eax
mov eax, dword [0x10057860]
pop ecx
mov dword [ebp - 0x2c], eax
je 0x10016eb4
mov ecx, 0x10b8134
call fcn.1000d857
mov dword [ebp - 0x64], eax
test eax, eax
je 0x10016eb1
push 4
push eax
call edi
test eax, eax
jne 0x10016eb1
mov eax, dword [ebp - 0x64]
add eax, 0x6e8
push 4
push eax
mov dword [ebp - 0x64], eax
call edi
test eax, eax
jne 0x10016eb1
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x2c]
mov al, byte [eax]
mov byte [ecx + 0x3c], al
mov eax, ecx
jmp 0x10016eb4
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + 0x3c]
cmp esi, eax
jl 0x10016ed2
mov edx, 0x1131
lea ecx, [ebp - 0x28]
call fcn.100084ac
mov byte [ebp - 4], 0xa
jmp 0x10017005
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.1000822d
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.10008381
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.10008381
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 0x10016f4a
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.1000d743
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 0x10016f9c
mov ecx, dword [edi + 0x18]
mov dl, 2
call fcn.1000cf8b
mov ecx, dword [edi + 0x1c]
mov dl, 2
call fcn.1000cf8b
mov ecx, dword [edi + 0x20]
mov dl, 2
call fcn.1000cf8b
mov ecx, dword [edi + 0x24]
mov dl, 2
call fcn.1000cf8b
inc esi
mov ecx, ebx
mov edx, esi
call fcn.1000d743
mov eax, dword [ebp - 0x70]
sub eax, 5
je 0x10016fdb
sub eax, 1
je 0x10016fd1
sub eax, 1
je 0x10016fc7
sub eax, 1
jne 0x10016fe3
mov eax, dword [edi]
mov dword [eax + 0x178], esi
jmp 0x10016fe3
mov eax, dword [edi]
mov dword [eax + 0x174], esi
jmp 0x10016fe3
mov eax, dword [edi]
mov dword [eax + 0x170], esi
jmp 0x10016fe3
mov eax, dword [edi]
mov dword [eax + 0x16c], esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x60], vtable.ByteBuffer.0
call fcn.100082a4
jmp 0x1001701a
mov edx, 0x1005
lea ecx, [ebp - 0x28]
call fcn.100084ac
mov byte [ebp - 4], 2
mov edx, 0xffff3b3b
lea ecx, [ebp - 0x28]
call fcn.10007c20
lea ecx, [ebp - 0x28]
call fcn.10003b97
lea ecx, [ebp - 0x44]
call fcn.10003b97
call fcn.1003dd1f
ret 4